| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Mar 2005
Posts: 4
|
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. |
|
|
|
|
|
#2 |
|
Off-Line
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
|
hi and welcome to As.org
a symbol is a movieclip which you can hide by ActionScript Code:
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jun 2004
Posts: 53
|
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 } |
|
|
|
|
|
#4 |
|
Registered User
Join Date: Mar 2005
Posts: 4
|
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? |
|
|
|
|
|
#5 |
|
Off-Line
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
|
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) |
|
|
|
|
|
#6 |
|
Registered User
Join Date: Mar 2005
Posts: 4
|
Yes, the eye refers to the instance name. I have attached the file below
|
|
|
|
|
|
#7 |
|
Off-Line
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
|
PHP Code:
|
|
|
|
|
|
#8 |
|
Registered User
Join Date: Mar 2005
Posts: 4
|
cheers, many thanks
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|