Hiding A Button
how to do it? for example I placed 2 button on frame 2 and on frame 1 I made a button,to go to frame 2 and I want those 2 buttons to hide I already use on press event on button 1 ,but it didn't work need help plz
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 12-14-2006, 12:25 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Hiding An MC/Button
I have a few custom buttons, each a seperate MC with instance names but I need to have it so that on(release) of one of the MCs, it makes itself invisible.
Thanks & Regards, Jonnie
Hiding A Button
can someone tell me how to hide a button when I enter a frame
so I drag the button to my stage on frame 2,and I want the button to hide when I enter the frame
how do I do it ?
thx
Help With Hiding Button
Hey guys, I need some help hiding a button that I have in a drop down menu. The button works when the drop menu is activated but I can also click on it when it's not. My Actionscript looks right so I don't really know where I'm going wrong. Any help would be greatly appreciated!!!!!!!!
Where Is The Button Hiding?
Hi
I have attached a file that I picked up from somewhere. It doesn't use Flash components.It sort of simulates how they behave. The main asset is mc_btn, of which there is 6 instances used in the movie. I have dissected this little guy using movie explorer. It consists of 3 layers. The checkmark layer contains mc_checkMark movie clip. It has its visibility turned off and on so it looks like a tick is appearing and disappearing in a checkbox-like way. The script that gives the functionality is on Frame 1 of the main time line in Scene 1. The mc_btn is controlled by this script using an onRelease event. This is a button event - I think? - there is a third layer on mc_btn that is called button. If you click on Frame 1 of the button layer you see a sort of square of hash type lines appear in the region of mc_btn. This must be defining the hit area of the button but for the life of me I can not find any trace of this button. It is not listed in the library or movie explorer and I can't double click it or use the drop down to right of stage that is used for selecting symbols to edit. Please, put an end to my searching and tell me where it is hiding!
Hiding A Button Behind Another Object
Does anyone know if it is possible to completely hide a button behind another object? The problem I have is that when i hide a button behind an mc, the button's actions still work. When i hide it behind another action-less button set to 'track as button', the hidden button's actions no longer work, but i still see the hand mouse pointer. I would like to hide it behind an object so that none of its actions work and i don't see the hand mouse pointer.
Please help!!!
Hiding The Hand When On A Button
Hey
I know I saw this here before but I'm not really sure what to search for.
I want the cursor to stay the same when on a button. Like instead of having the pointing finger, have the original arrow cursor.
Thanks
Hiding Button After Release?
I'm using flash 8 pro and building a Jeopardy-type quiz game. This consists of a number of buttons which are linked to movie clips containing the questions &
a selection of answers.
The buttons should only be used once, but I can't figure out how to remove it from the root once clicked.
right now I'm using:
on (release) {
_root.A1_Button._visible=false;
gotoAndStop("Q1");
}
on the actual button,where frame Q1 contains the relevant clip. I've also used
on (release) {
_root.gotoAndStop("go1");
_root.A1_Button._visible=false;
}
in the buttons inside the clip which return to the root menu, but neither script will remove (or hide) the button instance from the root timeline.
Can anyone help with this ?
Hiding Button In Levels
hi, i have a problem that i've had many times now, but still didn't find any solution...
if you go to this link http://robokoneko.couchblip.com/Robo.../interface.htm and press discography for example you should see that when you don't move your mouse the link still remains, so now is the question how can i hide the buttons from my lower level?
Hiding My Back Button...
Hey everyone.
Okay so i have a movie clip that holds 20 thunbnails, when i click the thumbs i get a large image that loads into my imageHolder.mc etc.
What im having problems with is i have a "back button" which you can use to go back from the larger image back to the thumbnails. Which all works fine.
But how can it so the back button, only shows up when i have the loaded the larger image? I dont want to see the "next button" on the thumbnails page.
This is the code im using for my images.
goback.onPress = function(){
unloadMovie("container_mc");
disableall(true);
}
goback._visable = false;
function disableall(t) {
for (var i = 1; i<numBut; i++) {
this["image"+i+"_btn"].enabled = t;
}
}
image1_btn.onRelease = function() {
loadMovie("futbol1.jpg", "container_mc");
trans_mc.gotoAndPlay("transition");
disableall(false);
}
Any help would save me hour.......... many thanks
ck
Button Target Hiding?
I am a designer, and every time I have to use Flash, *it sucker punches me harder* than the last time. It just frustrates me so! Anyway, I really do want to learn and I need some help on this stuff...
Here's how I am trying to work it:
Example of what the crap I am trying to do...flash_trouble.jpg (114.13 KiB) Viewed 180 times
Hiding Mouse Pointer On Button.
I have an invisible button, and I want to hide the hand on the mouse that happens when it rolls over the button... I know how to hide the whole mouse, but not to set properties on the button to make it not link the mouse...
thanks in advance.
Hiding A Button Behind Another Image / Movieclip
Alrite chaps
I was wondering if anyone knew of a simple way to cancel out the effects of a button.
by this i mean, imagine you have a button which you can click on. say you load a graphic over that button, you don't want the button to be clickable because you can't see it (it is hidden behind the graphic).
is there an easy way to do this rather than having to create movieclips and write if statements.?
cheers
Hiding Or Blocking A Button Under A Button
Hi,
if you visit http://www.muchamichele.com
click on t-shirt button (botton right)
then click on one of the bags, while that brown description "window" is open if you click again it will open up those buttons underneath it. Can someone offer some suggestions on how to stop that? I have some ideas but what to hear some suggestions.
those brown description boxes are loaded using external .swfs using the levels cmd. I thought that info might be useful.
thanks
does this make sense? I always wonder that I am not making sense when explaining flash.
Hiding Text Layer With Button Containing Actionscript
does anyone know if you can let the user hide a layer in a movie by then clicking a button? I have a movie with closed-captioning and I want to have a button that allows the user to not have the text show up. Right now I have the text in a seperate layer, so I was wondering if I could have a button with actionscript added to it to show/hide the text layer.
Hiding Button Properties When Enlarging A Contained Image
On part of my website I have rollover buttons with large images embedded in the "over" keyframe. It all works fine, the image enlarges when you rollover the thumbnail like it was meant to.
The problem is that I need to reduce the "rollover" area to just the thumbnail rather than the whole button.
the website address is
www.justkandb.co.uk/flash
Go to the "kitchens" page from the main menu and the rollover images are in there.
Cheers
Hiding Buttons - Then Showing - Then Hiding
I have an issue
I want to click a button and have it dissapear then another button to appear.
I have that susted,
However, im using a mask and as the second button shows behind the mask it dispears again
i'll send the file if anyone needs more info
PLEASE HELP ME !!! - BEEN BUGGING ME FOR AGES
NAble Sea
FLVplayback Complete Vs Hiding W/ Javascript(triggered By Flash Button)
Hello,
I am really stumped on this and would greatly appreciate any help.
quick overview of what I'm trying to do:
1. A swf embedded (via javascript) in a page, by default hidden.
2. user clicks button on page to show movie (via javascript/dhtml), auto play (has FLVPlayback that loads external flvs)
3. when user clicks close button (in flash) the play list index is incremented, next flv loaded (to prepare for next view)
the flash 'window' is closed
4. OR when the movie completes the play list is incremented, the next flv loaded (to prepare for next view)
the flash 'window' is closed
5. Next time the user clicks the button, same behavior - show movie, auto play, etc (this time playing the
next flv in the playlist)
Make sense?
So - let me focus on the close button vs the flvplayback complete
if I click my close button, all works as expected - play list index increments, next flv loaded, hide flash (it is now NOT playing)
--> the flash window is hidden, no sound or other indication of the flv continuing play
if I seek the movie any amount, and then let it finish up playing, all works as expected...like just described above.
HOWEVER, if I just let the movie play through, w/out seeking or clicking close - the play list index increments, next flv is loaded, the flash
'window' is closed BUT the newly loaded flv continues to play!
I have it set up such that the button release event AND the flvplayback complete event share the same code to increment, load, close...
So what is the possible difference in how this is getting executed? the 3 scenarios:
button click - works
seek movie a bit, let it play out - works
let movie play in entirety - almost works but flv continues to play in backround! its hidden, but hear audio...
Thoughts or suggestions?
I would greatly appreciate any suggestions/help ANYTHING!
I've included my code:
////start of code
//the base url
var baseUrl:String = "http://www.site.com/";
//our incoming playlist
var playListArray:Array = playList.split(",");
//the playIndex
var playIndex:Number;
//should we play or stop, by default we play
var isPlay:Boolean = true;
//the current movie
var movieUrl:String;
//get the shared object
var so:SharedObject = SharedObject.getLocal("mySO");
//we clear the shared object in case there is old data
so.clear();
this.attachMovie("FLVPlayback", "myFlvPlayback", 10);
//load the player skin
myFlvPlayback.skin = "http://www.site.com/test/MyExternalPlaySeekMute.swf";
//set the movie/index
setMovieIndex();
//listen for the end of the movie
var listenerObject:Object = new Object();
//update our play index for the next time through
listenerObject.complete = function(eventObject:Object):Void {
buttonClick();
};
myFlvPlayback.addEventListener("complete", listenerObject);
myFlvPlayback.play();
///////////////////////////////////////////
function setMovieIndex()
{
//default to first in playlist
if (so.data.movieIndex == null || so.data.movieIndex >= (playListArray.length - 1))
{
so.data.movieIndex = 0;
}
else
{
so.data.movieIndex = playIndex;
}
so.flush();
//make sure index and shared object are in sync
playIndex = so.data.movieIndex;
//get the movie
movieUrl = baseUrl + playListArray[playIndex];
//attach it to the player
myFlvPlayback.contentPath = movieUrl;
}
closeButton.onRelease = function() {
//increment to the next video index before closing
_root.playIndex++;
_root.setMovieIndex();
getURL("javascript: closeFlash()");
}
buttonClick = closeButton.onRelease;
////end of code
Thanks!
-K
[F8] FLVplayback Complete Vs Hiding W/ Javascript(triggered By Flash Button)
Hello,
I am really stumped on this and would greatly appreciate any help.
quick overview of what I'm trying to do:
1. A swf embedded (via javascript) in a page, by default hidden.
2. user clicks button on page to show movie (via javascript/dhtml), auto play (has FLVPlayback that loads external flvs)
3. when user clicks close button (in flash) the play list index is incremented, next flv loaded (to prepare for next view)
the flash 'window' is closed
4. OR when the movie completes the play list is incremented, the next flv loaded (to prepare for next view)
the flash 'window' is closed
5. Next time the user clicks the button, same behavior - show movie, auto play, etc (this time playing the
next flv in the playlist)
Make sense?
So - let me focus on the close button vs the flvplayback complete
if I click my close button, all works as expected - play list index increments, next flv loaded, hide flash (it is now NOT playing)
--> the flash window is hidden, no sound or other indication of the flv continuing play
if I seek the movie any amount, and then let it finish up playing, all works as expected...like just described above.
HOWEVER, if I just let the movie play through, w/out seeking or clicking close - the play list index increments, next flv is loaded, the flash
'window' is closed BUT the newly loaded flv continues to play!
I have it set up such that the button release event AND the flvplayback complete event share the same code to increment, load, close...
So what is the possible difference in how this is getting executed? the 3 scenarios:
button click - works
seek movie a bit, let it play out - works
let movie play in entirety - almost works but flv continues to play in backround! its hidden, but hear audio...
Thoughts or suggestions?
I would greatly appreciate any suggestions/help ANYTHING!
I've included my code:
////start of code
//the base url
var baseUrl:String = "http://www.site.com/";
//our incoming playlist
var playListArray:Array = playList.split(",");
//the playIndex
var playIndex:Number;
//should we play or stop, by default we play
var isPlay:Boolean = true;
//the current movie
var movieUrl:String;
//get the shared object
var so:SharedObject = SharedObject.getLocal("mySO");
//we clear the shared object in case there is old data
so.clear();
this.attachMovie("FLVPlayback", "myFlvPlayback", 10);
//load the player skin
myFlvPlayback.skin = "http://www.site.com/test/MyExternalPlaySeekMute.swf";
//set the movie/index
setMovieIndex();
//listen for the end of the movie
var listenerObject:Object = new Object();
//update our play index for the next time through
listenerObject.complete = function(eventObject:Object):Void {
buttonClick();
};
myFlvPlayback.addEventListener("complete", listenerObject);
myFlvPlayback.play();
///////////////////////////////////////////
function setMovieIndex()
{
//default to first in playlist
if (so.data.movieIndex == null || so.data.movieIndex >= (playListArray.length - 1))
{
so.data.movieIndex = 0;
}
else
{
so.data.movieIndex = playIndex;
}
so.flush();
//make sure index and shared object are in sync
playIndex = so.data.movieIndex;
//get the movie
movieUrl = baseUrl + playListArray[playIndex];
//attach it to the player
myFlvPlayback.contentPath = movieUrl;
}
closeButton.onRelease = function() {
//increment to the next video index before closing
_root.playIndex++;
_root.setMovieIndex();
getURL("javascript: closeFlash()");
}
buttonClick = closeButton.onRelease;
////end of code
Thanks!
-K
A Button In A MC In Frame 1 Of _root Hiding An MC In Frame 2 Of _root?
Hi. I have a button, "auroraB" in a movie clip "startupMC" which is in frame 1 of _root. There is another MC, "scenic" in frame 2 of _root.
The button "auroraB" is clicked and takes the user to frame 79 of the MC in frame 1. From there the user clicks another button to go to frame 2 of the _root.
How do I get it to hide MC "scenic" in frame 2 of _root when the button "aurroraB" is clicked? Thanks
Hiding MC's
what is the best method to hide MC's that u wanna use but in specific time/place. Is is to use visible=false and then make it true when you wanna see it? or to make that MC with empty first frame and put stop there and then goto Action to the second frame when you need that MC...or attach method from library?
or something else?
Hiding A Mc
Im hoping someone can offer some assistance....
I have a swf I have created that changes a number of values of text fields dynamically based on a sliders position. I would like to hide a mc (bolt) when one of the textfields (TextFieldVDC) values is 0. The existing script I am using is below. Does anyone have any suggestions on how I could do this?
function calculation(val) {
fieldvoltage = 30-(val/10);
trace(val);
// assign to TextFields here
TextFieldVDC.text = fieldvoltage +" VDC";
TextFieldwinding1.text = (Math.round((120.2*(fieldvoltage/24.6))*100))/100+" VDC";
TextFieldwinding2.text = (Math.round((121.7*(fieldvoltage/24.6))*100))/100+" VDC";
TextFieldExciter.text = (Math.round((78.3*(fieldvoltage/24.6))*100))/100+" VDC";
TextFieldSensor.text = (Math.round((17.4*(fieldvoltage/24.6))*100))/100+" VDC";
TextFieldSubwinding.text = (Math.round((18.6*(fieldvoltage/24.6))*100))/100+" VDC";
TextFieldDCwinding.text = (Math.round((16.8*(fieldvoltage/24.6))*100))/100+" VDC";
}
slider_mc.slider_mc.onPress = function() {
startY = this._parent._ymouse-this._y;
this.onMouseMove = function() {
newPos = this._parent._ymouse-startY;
if (newPos<=0) {
this._y = 0;
} else if (newPos>=this._parent.bg_mc._height-this._height) {
this._y = this._parent.bg_mc._height-this._height;
} else {
this._y = Math.round(newPos);
}
this._parent._parent.calculation(this._y);
};
};
slider_mc.slider_mc.onRelease = slider_mc.slider_mc.onReleaseOutside=function () { delete this.onMouseMove;};
slider_mc.slider_mc._y = 54;
// TextFieldVDC.text = 24.6;
// TextFieldwinding1.text = 120.2;
// TextFieldwinding2.text = 121.7;
// TextFieldExciter.text = 78.3;
// TextFieldSensor.text = 17.4;
// TextFieldSubwinding.text = 18.6;
// TextFieldDCwinding.text = 16.8;
// just to test it
calculation(slider_mc.slider_mc._y);
Hiding Mouse
Simple, yet i HAVE NO CLUE type question.
I got another cursor, a sword, to flollow the mouse but:
A) it lags behind when i move teh mouse too fast, or much, it does eventually catch up but this could be frustrating, since it is in a game and:
B) I done the the code to make the mouse cursor, the arrow, be hidden i was told _root.mouse.hide, or _root.hide.mouse
but niether work.
can either of these be solved(i know the latter can be, i just cant figure it out.)
Hiding The Preload
after the intro or your main site is loaded my preload always stays inplace i dont know what to do to make it gone or hide it can someone please help me out.
How Do You Go About Hiding And Showing MC
If i have 2 buttons that target MC 1 and MC 2
MC 1 = false
if MC 1 = true
else MC 1 = false
MC 2 = false
if MC 2 = true
else MC 2 false
((I think that is the logic????? i don't know))
if i want so hide MC 1 and show MC 2 when I click on button 2
Is there a tutorial out there?
Hiding The Buttons
Hi
I got the problem while hiding the movieclip inslide the frame. can anybody help me how to hide the movieclip. and I am also having the poblem while hiding the buttons.
Sathya
Hiding Layers
Need help. I have a movie on level 1. I am loading another external movie onto level 2. My problem is that the buttons on level 1 are still coming through the movie on level 2. How can I make it so that the movie on level 1 remains underneath level 2, but the buttons become inoperable. Thanks in advance.
Hiding PASSWORD Value?
Hi FK..
how can you hide a password value with ********i know its something to do with
TextField.password=true
but how is this implemented in the movie? my in put variable is called "pw12" and is located on the first frame of my movie.
Any help appreciated i have searched FK to no avail...
Thanx in advance
Hiding Layers
got a quick question for you people.
Is it possible to hide and show layers of a timeline via actionscipt? if so how is it done.
Thankz people
HTML Is Hiding Some Of SWF
How do I get my browser to scroll down and show this entire SWF? I've tried changing the movie size and the number of pixels defined in the html code, but nothing works.
http://www.bbm.net/discountloops/discountloops.htm
Thanks!
Hiding The Toolbar
I've done this before, but can't for the life of me remember how..
I'm creating a .exe file from a .swf and I don't want anyone fiddling with the control/view/file settings etc.. how do i turn em off?
Many thanks!
Sven
Hiding Your ActionScript Like This
Take a look at this game:
http://www.orisinal.ws/games/sea.htm
I tried to open the SWF with Action Script Viewer 3.09, and I couldn't see the Action Script. What is the trick to hide the code like that?
Hiding The Placeholder
im trying to replace swf with a static jpg if the viewer does not have flash installed ................so far its been ok table with background of the static image and the swf positioned on top ......this shows the graphic no problem ................only thing is you can still see the place holder for the swf e.g the little white box with a red x inside it ( like for an image that isnt there ) anyone any ideas on how to get rid of this ?
Hiding Url In Window
Am I able to create a link on my button to open a new window and hide the url (address)? I don't need to resize it, just a basic HTML window. Thanks.
Jared
Hiding A Layer.
Is there code which I can apply to a button that when released will hide a layer on my main timeline?
much thanks for checking this out.
-h
Mouse Hiding
Hi, this is probably really easy. I have a movie clip set as teh cursor and I want it to make the area underneath it invisible so that it can see the layer underneath it - how do I do this?
Thanks,
Alex
Hiding Movies
ppl,
So i have a number of different movie clips on the main timeline. For arguments sake lets number them 1-4.
In a separate movie clip, there are 4 buttons. I would like it so that when a button is pressed, a piece of action script initiates which hides the other 3 movies on the main timeline, and therefore only plays the movie clip which the user selects.
There may be another way that i have not thought about, such as loading each movie into a container on the main timeline each time a button is pressed - but i have no idea how to do this !
Any help is greatly appreciated.
Hiding Lines
I'm creating a little scenario whereby a moving image (movieclip) is behind another graphic. Problem is, I can see a sort of ghost outline of the clip that plays behind the graphic.
Is there any way of making the image that is behind the graphic being completely masked by it ?
Hiding Buttons
Any way to make buttons invisible (or non-clickable) when a another movie is loaded on top? I don't really need them vissually invisible (I can't see them when the opther movie is loaded on top) but the curser does turn into the hand. Need them unclickable when movie is loaded on top.
Hiding Something To Show Something Else?
hello, im kinda stuck right now... what im trying to do is if you click on one of the links it highlights then tabs come out, then if you click on another it does the same. my question is - how would i have it so if i click on one it shows then if i click on another it hides and the other shows
im guessing ill use an "if then" statement but i wouldnt know how to write it... ive provided a link for the swf if you need the fla let me know
http://webmedia.bcit.ca/~a00572953/menu.swf
-Cody
Hiding Mc's Inside An Mc
ok i have buttons on the main timeline which i need to be able to set to hide movieclips inside a movieclip!!
the movie clip i need to hide has the instance name "pt1" and the movie clip which contains "pt1" has the instance name "page1"
any ideas???
many thanks
Displaying And Hiding MC's
Hi,
Situation:
I'm currently working on a Flash app where you can place furniture on a drawing of a house (top-view). The furniture is represented by movieclips and placed on the stage with the 'attachMovie' command. I have an array (called storage) where i keep track of the furniture's id, name, xpos, ypos, rotation, heigth, width and floor. When a new piece of furniture is placed on stage, a record will be added in the storage-array. When a piece of furniture is moved or rotated, the storage-array is updated, by looking up the name of the editted movieclip in the array.
Problem:
Since there is a possibility to switch between floors (3), i have to hide the current floor's furniture and display the new floor's furniture. This doesn't seem to work out the way i did it: i just delete (unloadMovie) the mc's from the stage (NOT FROM THE ARRAY) that carry the current floornumber, place the new pieces of furniture back with the attachmovie command. BUT, however the newly placed pieces carry the same name, id and so on, it just isn't the same piece...No matter what action i do, i always refer to a piece of furniture via the array...
Question:
Is there a easy way to hide and display MC's that are placed on the stage with the attachMovie command?
Thanks!
Hiding Layers
Hi -
I'm very much a newbie to the world of flash and I just need to know if there's a way to hide layers when they aren't currently in use. I'm hoping that it's something really easy and I'm just being dumb.
Cheers,
Helen
Hiding The Pasteboard
I have a number of swf files that I load into my master swf. This loading all works perfectly. The problem I have is that when these swfs are loaded and begin playing you see the images that begin on the pasteboard or the relevant swf before they appear on the stage.
To explain, when I constructed a swf some of the images/graphics used begin 'off' the stage and move onto the stage. When exported as a standard swf file and played independently this 'off' stage does not show up. But when the swf files are loaded into my main swf and play I get all the spurious 'off' stage stuff shows up.
How do I get rid of this. I have tried putting a white border on the original swf's but then this blanks out the buttons and graphics on my main swf. Can I export the swf files and limit it to the stage dimensions?
Any help most appreciated.
THANKS
LEE
Hiding The Pasteboard
I have a number of swf files that I load into my master swf. This loading all works perfectly. The problem I have is that when these swfs are loaded and begin playing you see the images that begin on the pasteboard or the relevant swf before they appear on the stage.
To explain, when I constructed a swf some of the images/graphics used begin 'off' the stage and move onto the stage. When exported as a standard swf file and played independently this 'off' stage does not show up. But when the swf files are loaded into my main swf and play I get all the spurious 'off' stage stuff shows up.
How do I get rid of this. I have tried putting a white border on the original swf's but then this blanks out the buttons and graphics on my main swf. Can I export the swf files and limit it to the stage dimensions?
Any help most appreciated.
THANKS
LEE
Hiding FLV After Playback
Hi All,
I have an embedded FLV video via the mediaplayback component in a flash file.
Basically, after it plays, the mediaplayback screen stays black. I would like it to not be visible when the clip reaches the end, revealing the image on the layer below it.
Any ideas?
Thanks
Hiding Buttons
I have a button that I would like to become invisible when it has been clicked.
How do I do this?
Also when I click another button somewhere else on the stage, I would like it to become visible again!
Is there an easy way?!
Cheers
Chris
Hiding Animation
Please let me know if the question is hard to understand, and maybe I can try explaining a different way.
When hovering the mousecursor over a button, I want a seperate image to appear, and play an animation. So the animation is not on the button itself, but on a new image that appears. I have managed to make the image appear and the animation to be played.
The problem I am having is that if you hover the cursor over the exact area on which the new image appears, the animation is also played. Is there any way to hide this so that the image only appears when hovering the cursor on the button?
I hope my explanation is understandable. All help is very appreciated!
[F8] Hiding Some Symbols
I don't know if these codes are correct....
Code:
var player_so = SharedObject.getLocal("player", "/", false);
if (Player_so.data.timerMode == 0) {
used._visible == false;
}
used is a text box converted into a symbol and player_so.data.timerMode is a boolean sending back whether it's free mode or not...
I want to hide the used symbol if it's free mode. Is this correct?
Hiding The Preloader...
Hi all,
I'm trying to have my preloader be completely hidden once the movie has loaded so when someone reloads the page they dont see it flash before the animation starts.
This is what i've thrown together based on some preloaders from other tutorials but i don;t think its working:
code:
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
gotoAndStop(int(_parent.getBytesLoaded()*100/_parent.getBytesTotal()));
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
Thanks,
Nick
|