Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




_visible On MC's



Help... Here's the scenario:

I have 8 swf's loading into seperate, blank (holder) MC's. What I want is for the MC's to be invisible until a button is pressed, then the 1 MC corresponding to
the button becomes visible. When a second button is pressed another becomes visible and the rest go invisible. I don't know how to explain it properly, but you
should get the drift. The code on each button may look something like this:

on (release )
_root.MCone (_visible=true)
_root.MCtwo (_visible=false)
_root.MCthree (_visible=false)
_root.MCfour (_visible=false)
_root.MCfive (_visible=false)
_root.MCsix (_visible=false)
_root.MCseven (_visible=false)
_root.MCeight (_visible=false)

The code on each MC will be maybe like this:

onClipEvent (load)
(visible=false)

The reason for doing this is so that I can load all the clips while the intro is running to increase the smooth running of the site. Please could someone help me
with the code for the visibility on the clips AND the buttons...

Many thanks for any help given...



FlashKit > Flash Help > Flash ActionScript
Posted on: 01-24-2002, 09:21 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

_visible
Hey guys, thanks for all the help so far, you have been very helpful, and i have learned a lot from it.

I have another prob here

I have made this spacegame where i have enemies coming agains me, and when i crash, its game over (hit test)

but when i am at the game over screen the enemies keeps coming over the screen. I want them to dissapear when i crash and its game over.

the game are on keyframe 1 and the gameover is on keyframe 3.. Everthing else dissapear (background, points, etc..) but not the enemyes (

Can anybody help me with this ?


thnx

Synthieboy !

_visible, Help Please
using buttons to handle MC properties (_visible). they work fine on the initial click but NOT if you click them a second time (on the second click it hides the clip again, but on the third click it functions properly????). script is as follows:

on (release) {
_root.mc1._visible=true;
_root.mc1.gotoAndPlay(1);
_root.mc3._visible=false;
_root.mc4._visible=false;
_root.mc5._visible=false;
_root.mc6._visible=false;
_root.mc7._visible=false;
_root.mc8._visible=false;

}

the default state of the MC's is
onClipEvent (load) {
_visible=false;
}

what am i doing wrong???

_visible ?
I am trying to do this with two buttons. One button only becomes visible when the other is clicked. I know the commands, but just can't get them to work.

I have two buttons, "generate" and "checkButton"
To the first button, called "generate" I apply this code:
_root.checkButton._visible = 0;

and

on (release) { _root.checkButton._visible = 1; }


Help??

_visible Bug?
Can anyone else reproduce this error?

I have an empty MC that I'm loading an .swf into.

Before I execute loadmovie, i'm setting the _visible property to false. AFTER I execute the loadmovie, I again set the _visible property to false.

The MC is still visible on the stage, even though the property reports itself as being false.

._visible ?
Hey all, I've got this form that I'm working on, with input boxes. Over the boxes is an mc of text (single frame), essentially labeling the input boxes and notifying users what info to put where. What I'm looking to do, (unsuccessful so far) is, that when the user clicks on any box to input their info, the mc visible = false.

I guess another way to word it, is there any code that can be used with selecting an input box?

Thanks,

Robb

This.MC._visible=0;
Hello,

I have 2 MCs in my library.
From the main MC, I created an instance of the firtst MC of the library. (MC1)
In the newly created MC1, I created an instance of the second MC in my library (MC2).

I want to make MC2 invisible from MC1.

I tried this actionscript :
this.MC2._visible=0;
MC1.MC2._visible=0;

But it doesn't work. After looking in newsgroups I also tried the following :

this["MC2"]._visible=0; but without success.

I'm a beginner and don't have much experience, can someone help me with this please?

_visible Help
The function below is executed and all runs well (i.e. the percentage preloader works fine and displays the percentage values in my Dynamic Text Field which has a Var label of 'loadText'. It is stored inside my percentage_mc movieclip on the main timeline), however, when the whole movie has loaded, I need to be able to hide the text field from view, but it's not working with the code I have below.

Any idea on what i'm missing? (apart from a good actionscript brain!)

Thanks for reading.









Attach Code

percentage_mc.onEnterFrame = function() {
getPercent = target.getBytesLoaded()/target.getBytesTotal();
this.loadText = Math.round(getPercent*100)+"%";

if(Math.round(getPercent*100) >= 100) {
delete this.onEnterFrame;
this.loadText._visible = false;
}
}

_visible Problem...HELP
Hello!

I am loading 10 swf's into 10 instances of a clip as a holder (as needed for positioning). In frame one of the clip that does this, I have all the instances set to _visible false. The next frame loads all the swf's into the clips. Then a mouse over list toggles the visibility for the various clips on and off. The last part works great. Like a javascript roll. However, when the movies load, even though the clips at this point in frame one where set to _visible false, I see the movies stacked up, and the last clip, 10, is still visible. There is another button on the interface that turns all those clips off and that works. Why do I see the movies in the clips when they load, even though the clips have been set to _visible false? Is there an order or processing or something? If I (and I haven't done this yet) set the mc's to visible false in frame 1 on the main timeline, would that behave any differently? It should work whereever I put it, right?

db

_visible Problems...HELP
I am loading 10 swf's into 10 instances of a clip as a holder (as needed for positioning). In frame one of the clip that does this, I have all the instances set to _visible false. The next frame loads all the swf's into the clips. Then a mouse over list toggles the visibility for the various clips on and off. The last part works great. Like a javascript roll. However, when the movies load, even though the clips at this point in frame one where set to _visible false, I see the movies stacked up, and the last clip, 10, is still visible. There is another button on the interface that turns all those clips off and that works. Why do I see the movies in the clips when they load, even though the clips have been set to _visible false? Is there an order or processing or something? If I (and I haven't done this yet) set the mc's to visible false in frame 1 on the main timeline, would that behave any differently? It should work whereever I put it, right?

db

_visible Over Frames
hi there, thanks for reading this post.

I have a movieclip called myMovie in a number of keyframes:

| | | | | | | | | | | | |
o o o o o o o o o o o o o
a


and on the first frame I call something like

stop();
this["" + myMovie]._visible=false; // as part of function

and this does make the movieClip invisible within that frame. But as soon as I go to another frame by a gotoAndPlay() action, the movieClip becomes visible. It is called myMovie on all frames.

I would like it to stay invisible. What am I doing wrong, dudes?

Thanks, Richard

How Do I Set The _visible Function?
I want to preload a movie on _level1 and make it invisible until the user clicks a button to load it into _level0 How would i do this? The code I'm using right now dosen't seem to be working.
Code in the main movie:
if (_level1.getBytesLoaded() == _level1.getBytesTotal() ) {
loadMovieNum ("allseasons.swf", 1);
allseaVisible = false;
gotoAndStop (20);
} else {
gotoAndPlay (9);
}

Code in the external .swf:
if (_level0.allseaVisible == false){
this._visible = false;
}
_level0.allseaVisible=true;

I Have Problem With _visible
i dont know what happen but first time that i click at button it not have any problem and secound time still ok but third time when i click again sth that i _visible it ...blink i try many time to find it but dont know y ??

file is at http://www.geocities.com/wondermail/Movie1.fla

_visible = False?
O.k this is what I want to happen... I load a swf into my main scene with loadMovieNum, name.swf, 1); And I added _visible = false on frame 1 of name.swf. So what I want is to click on a button within the main movie and have it bring the loaded movie into view with _visible = true, but then also make that loaded movie jump to frame 2 and play.
How would I do that. It's probably simple and I am having a brain fart, so please bear with me.

Thanks in advance, william

Stupid With _visible?
What`s wrong?

"naar_werk" is a button in a mc, in a mc.

This is what I have:

on (release) {
_root.naamtex = "tex/agenda.txt";
_root.gotoAndPlay("cv-agenda");

setprop...("instancename", _visible," must dissapeare")
setProperty ("_root.naar_werk", _visible, "false");

trace (_root.naamtex);
_root.buttonChange = 1;
}

thanx

_visible Does Not Work
Hi,

i try this:

on (press) {
_root["InhaltVorwort"]._visible = 30;
}
on (release) {
InhaltVorwort._visible = false;
}

but both versions do not work. The only thing that works is _root._visible = false. But i can not change the visible property for InhaltVorwort. Please can anyone help me?

Regards,
Alex

Question About The _visible A/s
I have an external movieclip loading into another by the a/s of

loadMovieNum("/menu.swf", 3);
it loads onto layer 3 because the menu.swf has the option to play load yet another MC inside the original.

The problem I'm having...
the second MC is just some pictures that use fades and fade in and out. When they fade in and out the original image becomes visible, which I don't want. I just want the black background to be showing...

how would I go about making the MC on 0 not be visible if the movie is loaded?

I tried
if (movie.swf=true) {
_visible=false;
}
to no avail.. lol
I'm not that great at a/s but pretty good at problem solving and this one has me puzzled...

_visible Not Working...
anything wrong with this line?

_root.stuff.gallMC._visible = false;


I can't seem to make this MC invisible.

_visible Problems....
Hi all...

On the stage I have 16 small movieclip (it's a flash gallery), then when a thumbnail is pressed, a new movieclip(viewPicture) attaches that displays the selected picture...now, I would like to hide all the things on the stage so the user can't press any new thumbs while he or she is viewing the full size picture..only the viewPicture stays visible with its exit button...how do I do that??

Now I'we used the _visible thingy and I just don't get it (well call me stupid)... I can't figure out how to write the sintax so the stage get's hidden and the movieClip stay visible..anybody out there got any ideas how to do that?

Thanks for your time...

Yurosch

_root._visible = 0; << How To Do This On A....
//_root._visible = 0;

This will change the visibilty for the whole movie. But is there a way of making it work on a single layer [so it removes just that layer]?

Thanks

Buttons._visible Not Doing What They Should Do
i posted this in another thread but it was an older thread, im still looking for the solution if anyone could help...


I start off returning 3 result sets from a mysql db via a php script. i also return values for previous, next and another called offset.

So far, the script runs the first time round and displays the 3 results. (There are 4 entries in the db, just for test purposes). I know there are 4 result sets, so i've set a variable called next to "on" and the variable previous to "off" cos i know i cant go back now. Then i've set offset to 0.

Now first off, i do have the next button visible to me, the previous button is invisible and offset is set to 0, so so far so good.
However when i press the next button, the data does move to the next result set but the variable next becomes "off" but it is still visible, the variable previous becomes "on" but is still invisible and offset becomes 1.

This is set in three frames and the code in the frames are...

frame1:

PHP Code:



if (next eq "on") {
_level0.myMc.buttonNext._visible = true; }
else if (next eq "off") {
_level0.myMc.buttonNext._visible = false; }
if ( previous eq "on") {
_level0.myMc.buttonPrevious._visible = true; }
else if ( previous eq "off" ) {
_level0.myMc.buttonPrevious._visible = false;}
stop();




the buttons in frame1 have this code...

buttonNext:

PHP Code:



on(release) {
offset = (Number(offset)+1);
loadVariables("path/to/script.php", "_root.myMc", "GET");
gotoAndPlay("nextFrame");}




then in frame2 im waiting for a variable called result to come back to tell me whether successful or not

frame2:

PHP Code:



if(result eq "ok") {
gotoAndPlay("frame1");}
else if(result eq "fail") {
gotoAndPlay("afailureframe");}




and finally on frame 3 i just have...

frame3:

PHP Code:



gotoAndPlay("thelastcheckingframe");




i have set up three dynamic text fields that show the states of next, previous and offset and each time i click the buttons they are in the correct state but the buttons are not. its driving me mad, any help is much appreciated.

Problem Concerning _visible
I've got some problems with the "_visible"-command.
I've converted two textfields into two movieclips. Then I tried to make the first one (named Test1) invible by using the following script:

_root.Test1._visible=false;

But this script doesn't work. The movieclip is still visible. Is anybody able to tell me what I'm doing wrong?

I attached the .fla-file I made for the test.

_visible Problems
Hey,
i'm trying to make a simple background change depending on the button pressed. I currently only have two.
Please take a look at the attached FLA's. If you run the larger of the two, and click on "contact", the transition should occur, and when the doors reopen, the new background does not appear. The old one disappears, though. It's driving me batty! All i'm doing when the doors are closed it putting one's visibility to false and the other to true. I'm sure my paths are correct, i must be missing something really obvious though..

The code for the visibility change is located on the MC called "transition_door_mc". The variable "file" it looks for is located on the main timeline. The value is determined by the button you press, which should also determine the file loaded and the background visibility toggle..
Help?

PS - this was created in MX2004

thanks,
-myk

_visible And Performance...
does anyone know if setting the _visible- property of mc's to false decreases cpu consumption? Or are they still calculated..?

Bart

_visible Problem
Ok Here's the problem:

I have a movieclip called "text_mc". Inside that movie clip I have movieclips "1_1", "1_2", "1_3", "1_4" on the first frame. From the main timeline I can say: setProperty("text_mc.1_1", _visible, false);
And that works perfectly.

Then I move the "text_mc" forward to the next keyframe where there are new movieclips "2_1", "2_2", "2_3" and "2_4". I can't get anything on the main timeline to find these clips and change there properties. The following will not work: setProperty("text_mc.2_1", _visible, false);

Does anybody know why?

_visible... How About _audible?
I have a movie clip that contains animation and sound. I have it on the stage, but I've set it to be _visible = false; My thinking was that if the clip was invisible, it would also be inaudible.

Is there any sort of _audible = false; equivalent that can be used? I don't want to stop all sounds - i just don't want what isn't seen to be heard.

Any ideas?

Trouble With _visible
In my game im making it so when you get hit a message appears saying "Ouch!" so I decided to use _visible to make it invisble until you get hit. But it appears at the start anyway and dissapears after a while.

Heres the script for the ouch MC:

onClipEvent (load){
function reset (){
this._visible = false;
counter = 0;
}
}

onClipEvent (enterFrame){
counter +=1;
if (this._visible == true and counter >= 48){
reset();
}
}

And heres the little bit on the control layer:

function loseLife () {
_root.ouch._visible = true;
resetAllEnemies();
lives--;
if (lives<=0) {
gotoAndStop ("Scene 2", 6);
}
}

Im new to flash actionscript so try to make things easy to understand if ive made a mistake.

If you can see the problem it would be greatly appreciated.

Thanks, Plog.

_alpha And _visible
Hi all!!!

This is my first post, I hope someone can help me out

I'm trying to change the alpha or visibility value of a dynamic textfield when reaching a certain frame, but it aint working.

Here's some of the code:

TXTDO._alpha =0;

or

TXTDO._visible =false;

How can i get this to work?

Thanks a lot!

CreateEmptyMC._visible?
I have created a new empty movie clip and successfully loaded an external swf into it. I would then, immediately, like to make the not visible and then have buttons that control when it becomes visible. Is this not possible? Here is the code I have:
code:
this.createEmptyMovieClip("textBox", 5);
textBox.loadMovie("textbox.swf");
textBox._visible = false;

But alas the textbox.swf is still visible! Why?

_visible Property?
In my main timeline i have a movie clip instance called "menu_mc" that consists of 4 buttons that animate. So when i first load the my swf or whatever i want it so 3 of the 4 buttons dont show. I tried going "_root.menu_mc.buttonName._visible=false; but it doesnt seem to work. Am i doing something wrong or what? plz help thanks!!

_visible Problem
here's my problem: I have a preloader that transfers to the movie. The movie consists of one frame, on which are many mc's. One of the mc's has "onClipEvent(enterFrame){this._visible=false}" set on it.

The problem is that when the movie is displayed, that mc shows up for 1 frame and then goes invisible, making it not look good.

I can't change it to "onCLipEvent(load)" b/c the enterFrame is crucial to the movie. I can't post the movie cause i'm scared of ppl stealing it or whatever.

_visible Command
I have a button with the follow statement

on(release){
_root.startMove.call(test, 200, 200, 350, 160);
if(test._xscale=350&&._yscale=160){
test._visible = false;
}
}

What the above does is resize a mc with code from another keyframe. I have this working correctly. What I want to do (attempted above) is have the mc vanish if it reaches a certain size.

Any ideas?

_Visible Problem?
Hi,

I have 2 buttons and 1 movieclip. One button sets the movieclip visiblity to false and the other button sets it to True. Simple so far.

The problem is i have the buttons on frame1 and the movieclip in frame 5 then the movieclip visibility remains True regardless which button i press. IF i move the movieclip to frame 1 then it works?

I need my movieclip to be in frame 5, so why cant i do this????

Thanks in advance.

LoadMovie And _visible
Hello.
Trying to load jpgs for a slideshow, but don't want to see the flicker of jpgs as they are loading. So something like this:


Code:
if (j == inputdata.length-1) {
var slide = layer(panel, inputdata[j].substring(0, inputdata[j].length-4));
slide.loadMovie(dir+"/"+inputdata[j]);
panel._visible = 1;
} else {
var slide = layer(panel, inputdata[j].substring(0, inputdata[j].length-4));
slide.loadMovie(dir+"/"+inputdata[j]);
panel._visible = 0;
}


panel._visible = 0 works very well by itself. But when (j == inputdata.length - 1), the last jpg is loaded, and panel._visible = 1, then there is a fleeting moment of flickering jpgs. How does that happen when _visible is only turned on as the last jpg is loaded? Is there a better way to handle this? Thanks much.

_visible Problems
I am trying to get movie clips that I set to _visble = false ro _visible = true. The only problem is that flash doenst seem to want to take it when the path is dynamic.

this works fine:
boardPieces[clipName][movieType]._visible = false;

this, however, doesn't:

boardPieces[clipName][movieType]._visible = true;

Now it works when they are placed right after each other (I did this for testing purposes). But when they aren't it doesn't even if I forcible set the clipName and movieType variables to a move clip that I know is there and is invisible. Any thoughts?

Help With '_visible'. Flash MX.
I have the current actionscript on a button.

on (press) {
_root.cover._visible = !_root.cover._visible;

}

cover being the name of one of my symbols.

What this does is Hide and reveal a symbol on the click of a button. What I want the script to do is reveal THEN hide a symbol on click. Flash brings up an error when I move the !, so I'm at a loss.

Any help would be much appreciated.

Class And _visible
I've done a little bit with classes and am trying to learn more, so I've been experimenting.

I have a movie clip. I clicked Properties and put in "myPlayer" as the AS 2.0 class.

Then I defined my class:


Code:
class myPlayer extends MovieClip {
function myPlayer(){
this._alpha=50;
this._x=100;
this._visible=false;
}
}
Setting the _x works, setting the _alpha works, but setting the _visible does not work. Why?

Problem With _visible
hi,

i have a series of buttons with instance name, btn1, btn2, btn3 and so on... (up to btn30)
i want to make them invisible in the first frame. so i use the following code:

for (num=1; num<31; num++) {
btn = "btn" + num;
btn._visible=0;
trace(btn);
}

when i trace btn, the output is btn1...btn30. but "btn._visible=0;" doesn't work.

btn has been replaced with btn1...and so on, when i use "btn._visible=0;", isn't it the same as using btn1._visible=0 ?

please help.

many thanks in advance.

Lawrence

_visible Question
Hey,

Im loading a swf into a container but i want it to hide until i tell it to show so ive done this.


PHP Code:



_root.onEnterFrame = function() {
    loadMovie("car_doors.swf", holder);
    holder._visible = false;
}; 




Here it hides but i cant get it to show again...

ive also tried

PHP Code:



loadMovie("car_doors.swf", holder);
    holder._visible = false; 




any ideas? thanks

Having Trouble With _visible
Ok I've got a movie clip that upon clicking you can drag and release on another movie clip.What I want it to do is to disappear without coming back. This is for a game i'm making you see. So I declared a variable called watchNumber which is a number and when the movie first starts it sets it at zero indicating that the users has not yet touched the movie clip and of course in the code for this specific movie clip(which is called watch_mc) I've put in watchNumber = 1 indicating that the user has click and drag the movie clip to the approapriate spot.I've put in an if statement saying that the watch_mc is only visible if watchNumber = 0 but is otherwise not visible. But for some strange reason after clicking and dragging the movie clip, leaving that particular part of the timeline then coming back the watch_mc is still there.
Here's the code for watch_mc:
on(press){this.startDrag()
}

on(release){
stopDrag();
if(hitTest(_root.slot1_mc)){
_root.slot1_mc._alpha= 100
_root.watch_mc._visible = false
_root.havethat.start();
_root.watchsee = true;
watchNumber = 1;
}else{
_root.watch_mc._x =413.5
_root.watch_mc._y = 496.1
_root.watchsee = false;

}}


onClipEvent(load) {
watchNumber = 0
}

onClipEvent(enterFrame) {
if(watchNumber = 1) {
watch_mc._visible = false
}else{
watch_mc._visible = true
}
}

And of course this was my variable declaration:
var watchNumber:Number = new Number();

So I really don't know why it keeps reappearing when i specifically told it not to do that.

AttachedMovieClip _visible
Hi,

I attach a MovieClip:

Code:
this.attachMovie("mySymbol","mySymbol_mc", this.getNextHighestDepth());
I then want to let a button in the attached MovieClip not to be visible.

Code:
mySymbol_mc.b1_btn._visible=false;
But that does not work. "b1_btn" is still visible.
If however I drag the MovieClip to the stage, I can set the MovieClip as not visible.
Does anybody know why this doesn't work?

Thanks

_visible. Is There A Limit?
Hi

How does _visible work? Is the mc still loaded into memory?

Basically I was going to use this method for a problem I had, but I might have up to 20 or more INvisible clips on the stage, I'm guessing this will effect performance?

Having Problems With ._visible
Hey, I'm really, really, REALLY new to flash so I wanted to do some things to get some experience in Flash.

So I'm trying to get a movie clip image to display a larger image of it when they click on it. As I know this way only for displaying thing, I decided to use it but I can't get it to work.

Their both movie clips, and the larger images' alpha is at 0%, then I put this code on it in the main scene;



cocoa.onRelease = function()
{
cocoaBIG._visible = true;
}



It didn't work though. Any reasons why?

Togle _visible On And Then Off...
Howdy folks I'm a newbie here and don't get to do as much action scripting as I would like. At any rate here is my prob.

I have a button.
I want that button to make movie clips visible and then if clicked again they go invisble etc etcad infinitum.

In the frame action I put this...
//makes movieclip1 invisible
movieclip1._visible = false;

then attached to the button I put this...

on (release) {
setProperty ("movieclip1", _visible, true);
}

I would like to use if else type statements but I can't seem get it to work right. My attepmt at that looked something like this

on (release) {
if (_root.movieclip1._visible = false)
{ setProperty (_root.movieclip1._visible =true);
}
else if (_root.movieclip1.visible = true)
{ setProperty (_root.movieclip1._visible =fasle);

Is this too simple minded? Well at any rate it isn't working so I must be doing something wron...

thanks
for any advice

Ethan

Turning _visible On/off
Firstly a big hi to my fellow Flash gurus. I have just joined the forum and I am presenting (a not so unique) problem

I am making a Flash movie spotlight (main mov on the home page) which picks up images, links and other data from an XML file. The structure of the Flash movie is simple 2 column one. The left contains the main image, the right begins with a headline then a related content text and ends with some links to the related spotlight. Some of the spotlights contain 2 links while some of them contain just one. For eg.

Some headline Appears here
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.
» Some Link Comes here (Dynamic text instance name link_txt)
» Some Link Comes here (Dynamic text instance name link_txt1)


Just before the link starts, I have assigned a design element like this one - » and converted the same into a movie clip called 'arrow'. The thing is that where the spotlight has only 1 link, I do not want the second » to show. I tried various options but failed in all. I am sure it can be done easily but alas!! Any help from you will be appreciated

_visible Problem
Just a quickie. I have this code:


Code:
loadMovie("myMovie.swf", _root.load_mc._visible = "false");
...which loads in a swf and hides it right. Trouble is, I can't seem to make it visible when a button is clicked with this:


Code:
on (release) {
_root.load_mc._visible = "true";
}
not sure why this is, any clues?

C

Another 'easy One' _visible
Hey all, no need to welcome me, I've been on here thousands of times, just there has always been answers to my questions already via search! Anyways, this is probably easy, I've just got a blank in my mind right now.

I've got an object I want to set like this:

this._visible=0;

I want this to happen when the frame loads. Now I was thinking onLoad, but I thought that was when the .swf is actually loaded, and this object is being called later on in the frame sequencing.

I know I could always just set it to this._alpha=0; but I would rather use _visible.

Someone's gotta know this easy one.


Please & thx,
102020

_visible Troubles
Hi everyone!

I'm still a big newbie to flash and Actionscript and i really cannot figure out how to make things work , so i was wondering if you kind folk can help me!

I have a movie clip with an instance name "subtitles" and with a click of a button I want it to dissappear and reappear. I can make it dissappear but not reappear. To make it dissapear I used this code.

HTML Code:
on (release) {
if (subtitles._visible = true); {
subtitles._visible = false;
}
}
And it works. i also thought i could use "else" to make it reappear if it was already invisible so i put

HTML Code:
on (release) {
if (subtitles._visible = true); {
subtitles._visible = false;
} else {
subtitles._visible = true;
}
}
Now I might be doing this totally wrong, (as usual) but i get this error message,

Quote:




'else' encountered without matching 'if'
} else {
subtitles._visible = true;}




What does the message mean and how do i fix this?

._visible Problem
Hello,

I have a small problem with my website.

If you click on the VanAsep logo, you go to a rotating menu page. If you click on the Home button on this page, my sound on/sound off buttons or text disappear, and they don't reappear. I can't figure out why they don't. If anyone would look at my fla file, I'd greatly appreciate it.

Cheers in advance,

P

Myclip._visible ?
hi everybody...
i've got 2 movie (movie1 and movie2)

when my film starts... i select random which movie to show... and start
a miovie inside it..

movie(n)._visible=true
movie(n).insidemovie.gotoAndPlay(2);

now my "insidemovie" is the same in movie1 and movie2... and i wabt to
make this to hidden (visible=false) when it (insidemovie) ends...

i tried
this._visible=false

but it doesn't work... please help me.....

thanks.... Mirko

Copyright © 2005-08 www.BigResource.com, All rights reserved