Groups | Blog | Home
all groups > flash (macromedia) > october 2003 >

flash (macromedia) : Automatic targeting from the main timeline to a different level movie


wooliecat
10/8/2003 10:44:33 PM
I am a new user.
How do I get the main movie (moving) playhead to trigger a script frame, causing it to target some frames in another movie?
Can some give me a little example code?
I as able to get a button to work.
Thanks
Roger (714) area code

wooliecat
10/9/2003 3:01:18 AM


Thanks for trying to help me however I am just a beginner and need a very simple answer.

If the movie is named "JO"
what is the code to make "JO" stop on frame (5)?
Something like. ==== _root.jo.gotAndStop(5)
But of course that dosn't work that's why I am searching.
Any Clue what I am talkin about yet?

Roger

urami_
10/9/2003 8:37:32 AM

[quoted text, click to view]

the topics says level but you don't mention it in the body .

anyway ,
_levelXYZ.gotoAndStop(123);

where XYZ is the level number and 123 is the level XYZ timeline frame.

Target Movieclip in loaded level :
_levelXYZ.MovieName.action here.......

_levelXYZ.MovieName._alpha=20;
or
_levelXYZ.MovieName.gotoAndPlay(123);




Regards

urami_*



<lsym>

There's no place like 127.0.0.1

urami_
10/9/2003 12:55:44 PM


[quoted text, click to view]

your action is correct , might the instance name.
Is it a Movie Clip library name that you give it while you made that
movie or is it actual instance . Because the movie can have any name
and you still can target it as JO if you give it instance name JO.
TO check the actually name paste thins in first frame of the movie and tell
me what it says in trace :

trace(this);

it will trace your actual movie name , copy and paste it here.
I'm worry we have some miscommunication or you missing something
obvious .




Regards

urami_*



<lsym>

There's no place like 127.0.0.1

wooliecat
10/9/2003 10:23:01 PM
I was not sure how to run the "trace" facility you suggested accurately but I am sure that I have the instance called out and named correctly.
Steps.
1. I selected the movie in the window.
2. I gave it an instance name.
3. I entered a script in the main timeline on a frame on the actions layer.
4. The action script was _root.Jo.gotoAndStop (4); Where "Jo" is the name of the movie instance.
5. The playhead passes over the script frame without doing anything at all.
6. When I create a button with the same code in it, it works fine?

Can you direct me to a working Flash file where this is type of code is a successful ?

I thought I did everything by the book.
Thanks Roger

rogeryovan@hotmail.com

Much appreciated............ All of your effort................

urami_
10/10/2003 8:42:02 AM

[quoted text, click to view]

just copy and paste in first frame of the movie clip .....

trace(this);


[quoted text, click to view]

what window ? you must enter the properties panel to give it instance name .

[quoted text, click to view]

zip and upload the fla with the only problematic part , remove all unnecessary content.
AddThis Social Bookmark Button