Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-31-2005, 05:20 PM   #1
captain_beefhea
Registered User
 
Join Date: Mar 2005
Posts: 4
Default question regarding symbols

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.
captain_beefhea is offline   Reply With Quote
Old 03-31-2005, 05:43 PM   #2
Xeef
Off-Line
 
Xeef's Avatar
 
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
Default

hi and welcome to As.org

a symbol is a movieclip

which you can hide by

ActionScript Code:
My_mc._visible=false;
Xeef is offline   Reply With Quote
Old 03-31-2005, 05:45 PM   #3
Amnac
Registered User
 
Join Date: Jun 2004
Posts: 53
Default

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
}
Amnac is offline   Reply With Quote
Old 03-31-2005, 08:17 PM   #4
captain_beefhea
Registered User
 
Join Date: Mar 2005
Posts: 4
Default

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?
captain_beefhea is offline   Reply With Quote
Old 03-31-2005, 08:40 PM   #5
Xeef
Off-Line
 
Xeef's Avatar
 
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
Default

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)
Xeef is offline   Reply With Quote
Old 04-01-2005, 07:48 AM   #6
captain_beefhea
Registered User
 
Join Date: Mar 2005
Posts: 4
Default

Yes, the eye refers to the instance name. I have attached the file below
Attached Files
File Type: zip pan_zoom2.zip (15.1 KB, 77 views)
captain_beefhea is offline   Reply With Quote
Old 04-01-2005, 10:44 AM   #7
Xeef
Off-Line
 
Xeef's Avatar
 
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
Default

PHP Code:
_root.eye._visible=true
Xeef is offline   Reply With Quote
Old 04-01-2005, 03:19 PM   #8
captain_beefhea
Registered User
 
Join Date: Mar 2005
Posts: 4
Default

cheers, many thanks
captain_beefhea is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:57 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.