Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Scrolling Gallery



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Flash Forum
View previous topic :: View next topic  
Author Message
kate!!



Joined: 04 May 2007
Posts: 3

PostPosted: Tue Jun 12, 2007 1:15 pm    Post subject: Scrolling Gallery Reply with quote

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 Very Happy
Back to top
View user's profile Send private message
flabbyrabbit
500+ Club


Joined: 25 Jan 2007
Posts: 590
Location: UK

PostPosted: Tue Jun 12, 2007 4:36 pm    Post subject: Re: Scrolling Gallery Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Flash Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
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:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap