Ok, my major problem is that i have a movie clip i made saved in my library, but not actually emedded in the timeline. What want to do is have it become visible when i clic a buton. How would i go about doing this?
Printable View
Ok, my major problem is that i have a movie clip i made saved in my library, but not actually emedded in the timeline. What want to do is have it become visible when i clic a buton. How would i go about doing this?
Why don´t you want to put it in your timeline onto a certain frame? Then you would only have to put a simple jump command on your button, such as
on(release) {
gotoAndPlay(number of frame containing movie clip);
}
For simple applications this is probably the easiest way...
If you enable the export for ActionScript in the movieclip´s linkage settings you could also bring it on stage by using the attachMovie method without manually putting it on the timeline before.
Hope it helps,
Toby.
I think you need to use attachMovie
You have to rightclick the library symbol and check the export option.
the full story is available here
http://www.macromedia.com/support/fl...ionary508.html
Hope this helps,
Jon 8o)
what do you mean by checking the export options?
Sorry Mate,
It was late when I posted that, here's the full instructions.
1. find the symbol you want in the Library
2. Right click to get the symbol options list
3. Select "Linkage"
this opens a new dialogue box
4. Check the "Export for actionscript" option and then the "Export in first frame"
5. Give a name in identifier panel preferably something small
Then you can write actionscript to make the MC appear
on (release) {
_root.attachMovie("my_Mc",my_Mc1,1);
setProperty(_root.my_Mc1,_x,10);
setProperty(_root.my_Mc1,_y,10);
}
This lot assumes you are using MX if not then
put your movie clip off stage area (_x @ 1000) and just use the setProperty _x & _y to place the movie clip on the screen at the required time
Hope this helps?
Jon 8o)
because of you i think i will name my first child jonothan
thanks allot man
No problem!
Glad to help - been at college this year and not had time to post
as much as I used to.
Tell us all when you finish the site.
Jon 8o)