Search  

AS3 HELP WITH VISIBLE

HomeForumsHelp NeededAS3 help with visible
Default-profile signalr32
15 posts
Bought between 10 and 49 items

Okay i two movie clips on my main stage (scene 1) one of them is

aboutus

the other one is

gallery_1

In the first frame of the scene is says :

aboutus.visible=false;

Now in the movieclip gallery_1 in the first frame has a conditional statement.

in that conditional statement I want to be able to make this happen:

aboutus.visible=true;

when i added that line of code i get an

1120: Access of undefined property aboutus.

Posted about 1 month ago
3113 geoken
541 posts
Author was featured Sold between 1 000 and 5 000 dollars Bought between 1 and 9 items

Does the clip exist in the frame that you’re changing it’s visibility?

Posted about 1 month ago
50143 MSFX
309 posts
Referred at least one person Sold between 100 and 1 000 dollars Bought between 1 and 9 items

yeah if that clip is not existant until a later frame then you will get that message..

its like trying to access a variable before you declare it

Posted about 1 month ago
Default-profile signalr32
15 posts
Bought between 10 and 49 items

what do you mean. I create the turn it to false in frame like 10… the movie clip the has the code in it to turn it true is loaded in frame 15…

my issue is this.. I have code in the Scene 1 that makes it false.. I have a movie clip in scene one with code in the movie clip that makes it true.. How do i get it to work? The reason is i need my menu not to be visible till after a certain effect takes place inside the movie clip.

THANKS

Posted about 1 month ago
59587 wickedpixel
640 posts
Exclusive author Author was featured Referred at least one person Sold between 10 000 and 50 000 dollars Bought between 1 and 9 items
aa.. instead of:

aboutus.visible=false;

try :

parent.aboutus.visible=false;

maybe…

Posted about 1 month ago
Default-profile signalr32
15 posts
Bought between 10 and 49 items

no luck i tired that and root.. :(

Posted about 1 month ago
Default-profile signalr32
15 posts
Bought between 10 and 49 items

also the false statement works.. its the making it true that doesnt work

Posted about 1 month ago
45104 mx9580
5 posts
Referred at least one person Sold between 100 and 1 000 dollars

try

parent.aboutus.visible=true;

or stage.aboutus.visible=true;

Posted about 1 month ago