-
Sir solves own questions :-D
gotoAndPlay stuff (not too advanced, not too newbish)
Ok I am making a jeopardy like game, and I want it so after I click on one of the prices a red X (which is the second frame in a MC would appear.
All of the buttons are inside of a mc
So in the button I put
[code]
on (release) {
_root.gotoAndPlay (4); //not relevant
_root.child.gotoAndPlay (2);
}
Now why wont the child movieclip goto its second frame?
I just cant figure it out!
-
Between Flash & Flashkit
you have to target its instanceName .not CHILD ..
I want to learn .
wannabe flasher [ Actionscript 2.0 ]
-
Sir solves own questions :-D
child is the instance name!
-
All of the buttons are inside of a mc...
What's this above mc's instance name?
You should add it to your path of the child movie clip...
And possibly use stop rather than play...
on (release) {
_root.gotoAndPlay (4); //not relevant
_root.other_instance.child.gotoAndStop(2);
}
-
Sir solves own questions :-D
ok now that works,
I can see that the new MC changes for about a split second before it goes into the question. My only problem is now when I go back to the bored, it doesnt stay covered up!
how do i do this?!
-
Did you use stop as in gotoAndStop(2); , rather than gotoAndPlay(2)?
-
Sir solves own questions :-D
Yes I did exactly that!!
I thought this woiuld be sooo simple too!
-
Senior Member
Im not sure, but it sounds like you are moving away from the frame that shows your board and then going back to it? If that is so you probably need to use a variable or something that changes when it crosses the box out. Then when it goes back it checks that variable and sees if it has been chnaged. I could be wrong, but i believe that when the timeline goes back to the movieclip it forgets stuff that has happened to it and just goes back to what it looked like before. If you check the variable and it says that it has already been changed then you can make it cross it out. I'm not really sure how to do this, but maybe that can get your wheels turning?
"A piece of toast always lands butter side down, and a cat always lands of its feet. If one was to tie a piece of toast to the back of a cat butter side up, would it hover above the ground in perpetual indecision?"
-
Best if you can't get it going, would be to attach your .fla, zipped up and in MX only format.
-
Sir solves own questions :-D
Yes MILO thats exactly what im doing.
The FLA is very large right now (it has a lot of sound files etc.). How would I go by making it a variable or whatever??
-
You could allways make a copy of your .fla, using Save As...., and after deleting all sounds and unused items in the Library.
That copy should also be saved in MX only format, and zipped up.
-
Senior Member
Im sorry, im not really sure how to do it. I just remember reading someones post where they were talking about it alittle. I never really tired to figure it out. See if you can read around, or maybe someone else will be able to figure it out.
Sorry
"A piece of toast always lands butter side down, and a cat always lands of its feet. If one was to tie a piece of toast to the back of a cat butter side up, would it hover above the ground in perpetual indecision?"
-
Sir solves own questions :-D
I decided to just not include that, because its due tomorrow!
Thanks anyways!!
NOW IT STAYS GO FIGURE.
ONCE AGAIN AV SOLVES HIS OWN PROBLEMS
Last edited by antivirus; 03-22-2004 at 05:19 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|