Flash Games

 FAQ   Search   Members   Groups   User Control Panel      Login 

It is currently Wed Dec 03, 2008 12:08 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Scrolling Gallery
PostPosted: Tue Jun 12, 2007 1:15 pm 
Offline

Joined: Fri May 04, 2007 3:02 pm
Posts: 3
Hi, Everyone

I am having trouble with using hierarchy in action script. What it is I have a movie clip where the images scroll from right to left and there is a controller which should tell the right (previous) arrow to scroll the other way. The scripting and controller work when on the main scene but in the movieclip it doesn’t work, so I am just assuming it's because I have a movieclip inside a movie clip.

On the left button (which works) I have:

on (rollOver) {
play();
}
on (rollOut) {
stop();
}

On the right button (don't work) I have:

on (rollOver) {
_parent.controlmc.gotoAndPlay(2);
- controlmc is the instance name for my controller
}
on (rollOut) {
_parent.controlmc.gotoAndStop(1);
}

it was _root but I changed it to _parent as I thought that might work as it applies to the current timeline – I think

Then I have movieclip inside this movieclip on the stage which is the controller
Inside is:

frame1: stop();
frame2: _root.mc.prevFrame(); - mc is the instances name for the main movieclip which is on the main scene

frame3: gotoAndPlay(2);

So if anyone can solve my conundrum that would be extremely appreciated

Thanks Kate :D


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 12, 2007 4:36 pm 
Offline
500+ Club
User avatar

Joined: Thu Jan 25, 2007 2:10 pm
Posts: 626
Location: Midlands, England
Any chance of you uploading the .fla so i can fiddle around with it or email it to me: nosmo-kings@hotmail.com

Flabby Rabbit

_________________
http://www.hackthis.co.uk


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User:
Pass:
Log me on automatically each visit: