Groups | Blog | Home
all groups > flash actionscript > february 2004 >

flash actionscript : movieclip.gotoandplay



TheKeith
2/6/2004 2:38:57 PM
PICS should not be the instance name, but rather the frame number or name
within the movie clip you want to start playing from. The instance name of
the clip should be where *MovieClip* is instead. Good Luck.



[quoted text, click to view]
ive looked long now, and this is just for a f**ng simple thing as getting a
movieclip to play. it just wont work. im a beginner at this, and i cant
figure what im doing wrong. i got no problemn with loading external
clips,pictures,etc. but i i cant get one simple movie clip to play within my
main FLA
[quoted text, click to view]
action where i want it to stop. after this i want a movieclip containing 2
pictures to play,and i gave it an instance name, set it correctly in the
script, and put it after the stop action, on a layer by itself but nothing
happens
[quoted text, click to view]

VOMIT BOY
2/6/2004 7:35:42 PM
maybe i shouldnt expect more than a RTFM from this post, but believe me ive looked long now, and this is just for a f**ng simple thing as getting a movieclip to play. it just wont work. im a beginner at this, and i cant figure what im doing wrong. i got no problemn with loading external clips,pictures,etc. but i i cant get one simple movie clip to play within my main FLA
all i want to do is when i press a button, it plays a movieclip. i named the instance and all and wrote it like this

on (release) {
MovieClip.gotoAndPlay(PICS);
}

PICS being the instance name of the movie clip.

my file starts with an intro, to what could be a website, and i put a stop action where i want it to stop. after this i want a movieclip containing 2 pictures to play,and i gave it an instance name, set it correctly in the script, and put it after the stop action, on a layer by itself but nothing happens

i feel really stupid....i used hours trying to figure it out...and nothing really made it clearer as to what im doing wrong...could someone help?

im using MX...

Media Pimp
2/6/2004 8:07:17 PM
this...

on(release){
MovieClip.gotoAndPlay("PICS");
}

---------------------
Quentin Fountain - interactive design director
VOMIT BOY
2/6/2004 8:24:09 PM
was just about to go hit myself there, but no...it still doesnt work....

Carl Fink
2/6/2004 8:24:32 PM
[quoted text, click to view]

Don't type "MovieClip", type the designation of an actual MovieClip, e.g.

_root.PICS.gotoAndPlay("frame_label");

Notice that I specify where the MovieClip to be loaded is (in the root
movie) and that the parentheses contain the frame to start playing in,
not the name of the clip (which goes place of "MovieClip" in your
code).

Macromedia recommends ending the names of all MovieClips with "_mc",
and later versions of Flash may include a feature to automatically document
programs based on this kind of naming standard, so it's worth looking at.
--
Carl Fink
Please respond to the newsgroup only.

VOMIT BOY
2/6/2004 9:05:47 PM
thanks a lot for the information, but i think i know why it still doesnt work now
i made the whole thinginto one movieclip, so the movieclip i wanna activate isnt actually in the root of things. do i just name the movieclip its within? ill try this out

respond only to the newsgroup?

Media Pimp
2/6/2004 9:08:29 PM
PICS being the instance name of the movie clip.

Oops... It appears that I overlooked this sentence. I was assuming that PICS was the name of the frame label WITHIN the movie clip.

My apologies

---------------------
Quentin Fountain - interactive design director
VOMIT BOY
2/6/2004 9:17:54 PM
I figured it!!!

thanks x 1000000! i love you! :D

AddThis Social Bookmark Button