View Full Version : question regarding symbols
captain_beefhea
03-31-2005, 04:20 PM
Hi I'm newish to flash and new to this forum!
I have searched but can't find the answer to this, I'm probably searching the wrong thing I presume. Anyhow what I would like to be able to do is while the program is running be able to show and hide symbols (that are either small animation or just a graphic). I have the program so far that I can show and hide a text or start and stop music but not show and hide symbols. Any help would be great, thanks.
hi and welcome to As.org
a symbol is a movieclip
which you can hide by
My_mc._visible=false;
Amnac
03-31-2005, 04:45 PM
What action is required in order for the symbols to be shown or hidden? Do you want them to be on the timeline or do you want the user to press a button to show or hide the symbols? For the latter, try the code
On (release) {
symbol.hide \\symbol is the instance name of the symbol you want to hide
}
captain_beefhea
03-31-2005, 07:17 PM
Thanks both of you for the quick reply.
Basically I have the probably quite well known pan zoom example from the macromedia site. I have inserted a bitmap that I converted to a vector. I have put in dots at points around the screen, using buttons on the screen you navigate a flashing box around the screen. Using hittest I have got it to play a sound and show text when you move the flashing box over one of the dots. But I would like to also use symbols so I can add more effect.
I have the visible=false bit working on the first frame however if I put eye._visible=true; where I want to to be visable it doesn't work.
Hope this makes sense I'm not the best at explaining things, I can post the flash file if that helps?
is the "eye" exist on the frame ?
of not --> of course it will not work
else post the file (just the basics to show the problem)
captain_beefhea
04-01-2005, 06:48 AM
Yes, the eye refers to the instance name. I have attached the file below
captain_beefhea
04-01-2005, 02:19 PM
cheers, many thanks
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.