_visible=false Path Problem
I just created a .swf that goes inside a scroll pane v2 component and when you click on a button called 'MORE INFO' it does a number of things onRelease. It loads a clip on a empty MC on the _root timeline and it also is supposed to make a number of MC's go _visible=false. The clip loads fine but the mc's aren't not becoming invisible. Here's my code:
var loadrec:MovieClipLoader = new MovieClipLoader(); moreInfo_btn.onRelease = function() { loadrec.loadClip("store/movie.swf", _root.store_mc); _root.movie1_mc._visible = false; _root.movie2_mc._visible = false; _root.scrollPane_sp._visible = false; };
Again, the scrollPane_sp is on the root timeline, it already loads up a .swf inside of that. That .swf has a button called moreInfo_btn and when clicked on the following actions above are supposed to occur but only the loadClip action actually occurs. Any ideas?
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-05-2004, 02:26 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
_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
_visible = True/false ?
i'm making a fps where u have 2 shoot the enemy more than once 2 kill em. the way i did this was to make a movie clip of him and everytime tha button over the clip was pressed (shot), it would go2 the next frame with a different pic of the enemy (one of him w/ a bullet in his head). i also wanted to put a health bar over each enemy so u culd c how may more times u wuld have 2 shoot him 2 have him dead. but after i put them in the whole screen was 2 crowded. so now my idea was 2 only show the health of the enemy that ur mouse was over. what i did was to put in the health bars code(movie clip):
Onclipevent (load) {
_visible = false;
}
In the button that tell the enemy to advance 2 the next frame, i put the code(ehealth = enemy health bar{instance name}):
On (rollOver) {
ehealth = _visible = "true"
}
but that didnt work. then i tried:
On (rollOver) {
var ehealth
_visible = "true"
}
didnt work either
i'm confused about it. i know i have to use set variable 2 change the visiblity from false to true, but i cant figure owt how 2 tell (in the code) what thing 2 turn from false to true. ?? does anyone know how to solve this ??
Button Set To _visible, False
Hi there
My life would be alot less complicated if there is some way to set a button to _visible,false by standard so that is is not shown before you set its property to visible=true
can this be done?
thanks ...
Dynamic Value : _visible = False
Hello,
Please help. What I need is :
1) totalX1 is dynamic value which comes if user clicks on BUY NOW.
2) alltogether there are 180 i.e. totalX1, totalX2, totalX3...totalX180.
3) Since I am having 180products I cant place items having ZERO value.
4) I want to remove totalX.... having ZERO VALUE.
5) Following codes are not working
codes :
totalX.onLoad=function(sucess){
if (sucess){
if (totalX1=0){
totalX1._visible=false;
}
}
}
Please help me.
Thanks
SweeetStranger
[FMX] _visible = False; Has No Effect.
I'm using a function here that is repeated to load a whole array of jpegs until the array is empty. At the top of the function a new movieClip is made to hold each of the images.
after creation I try I hide the images with _visible, although it isn't quite working.
any ideas?
Code:
var objHolder = _root.mc_anim.createEmptyMovieClip("gall_img_"+img_load_index+"", depth++);
objHolder._visible = false;
objHolder traces as:
Quote:
_level0.mc_anim.gall_img_0
_level0.mc_anim.gall_img_1
_level0.mc_anim.gall_img_2
_level0.mc_anim.gall_img_3
etc etc...
_visible = False Vs. RemoveMovieClip
I am just wondering what the differences between these two are. I have an animation that I am trying to make as optimized as possible to get the best possible frame rate. I have clips on the stage that start out visible, but are then set to _visible = false for the remainder of the animation. Basically I am just wondering, is a clip still using cpu power if it is set to invisible? Would it be more optimized to swapdepth the clip to a removable depth, then remove it from the stage with AS? Thanks for any help!
[FMX] _visible = False; Has No Effect.
I'm using a function here that is repeated to load a whole array of jpegs until the array is empty. At the top of the function a new movieClip is made to hold each of the images.
after creation I try I hide the images with _visible, although it isn't quite working.
any ideas?
Code:
var objHolder = _root.mc_anim.createEmptyMovieClip("gall_img_"+img_load_index+"", depth++);
objHolder._visible = false;
objHolder traces as:
Quote:
_level0.mc_anim.gall_img_0
_level0.mc_anim.gall_img_1
_level0.mc_anim.gall_img_2
_level0.mc_anim.gall_img_3
etc etc...
_visible = False Vs. RemoveMovieClip
I am just wondering what the differences between these two are. I have an animation that I am trying to make as optimized as possible to get the best possible frame rate. I have clips on the stage that start out visible, but are then set to _visible = false for the remainder of the animation. Basically I am just wondering, is a clip still using cpu power if it is set to invisible? Would it be more optimized to swapdepth the clip to a removable depth, then remove it from the stage with AS? Thanks for any help!
_visible=false Still Rendering
Hi, I would need a little help with this please:
www.customerfocus.ro is the site where you can see this happening...
I have several display screens with (usually) html content inside. You may see that when a display screen opens anotherone closes and sometimes all the otherones change their positions, so ALL THESE SCREENS change some properties, and the whole thing doesn't move smooth at all.
If I pull out the html content it moves as it should, but when I put it in, even if I make it invisible the whole thing goes crazy, because even if it's set to _visible=false flash still renders it...
Any idea how could I make it stop doing that? Rendering invisible clips? Choking up my processor whenever something moves there? What if I had 2000 invisible animations and only 1 visible one, it looks like that would choke it too...
Thank you...
UseHandCursor._visible = False?
Hi,
I am trying to do something pretty simple but cant get it to work.
I have a main movieclip that holds my entire application. I want to disable the hand icon for all of the active buttons and Movie clips inside this main movie clip
Code:
mainMovie.useHandCursor._visible = false;
i have placed this code on frame 1 in the main timeline on the actions layer.
this doesnt work
Any suggestions would be great!
Mymovieclip._visible = False // Won't Work
could somebody tell me wy this action suddenly fail :
Code:
mymovieclip._visible = false
Instead I used setproperty(...,...,..)
and this works
I'm getting really mad !!!
News
Scrollbar Component..._visible=false?
Is there a way to set the scrollbar components visible property to false if there is not enought text to scroll or if there is no text at all?
Thanks
_visible = False; Will That Slow Tweens?
I'm creating a site. It's 15 FPS. I'm loading an external swf with the same frame rate with minimal animation such as a shape tween. However, the animation isn't smooth when previewed inside the main swf. Only when published alone is it smooth.
I don't have any for loops running or anything like that. But I do have a MC that is set to _visible = false;
Could that invisible MC be the cause of the sluggish animation? Is it better to remove the clip?
_visible = False Upon Tween Completion?
I have a movie clip on my stage with an On and Off button. Its on (visible) by default, and I'm using this code for my Off button which causes the movie clip to fade away:
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
function pilotOff() {
var pilotOffAlphaTween:Tween = new Tween(_root.pilotmc, "_alpha", Regular.easeOut, 100, 0, 15, false);
}
I call the function when the button is pressed and it works fine.
My On button code is similar, only it fades in instead off:
Code:
function pilotOn() {
var pilotOnAlphaTween:Tween = new Tween(_root.pilotmc, "_alpha", Regular.easeOut, 0, 100, 15, false);
_root.pilotmc._visible = true;
}
Now notice my "_root.pilotmc._visible = true;" in the On function. I have that there because what I WANT to do is have the _visible property set to False when the Off button is pressed. However, I don't know how to do that because it would need to wait for the alpha of the Off animation to be 0 before setting it's visiblity to false, or else you'd never see the fade out animation.
Ideas?
[CS3] Problem With Buttons And _visible=false;
Hi everybody.
I have a clothes and shoes Template with for example created buttons : "numericstepper" and "size" for shoes.
I used "_visible=false;" and that is very good. But now, I wish to see these buttons "numericstepper" and "size in the shoes item and nothing in the "bagd" or "clothes" items, but I don't know how to do.
Here is the end of my Database.as file...
Can you help me please ? I am searching for a long time the reply...
Thanks a lot,
Regards,
jack.
}
_parent.meuScroll.scroller._y = 0; //GET SCROLLBAR TO THE TOP
//ONLOAD GET PICTURE + DESCRIPTION
_parent.alvo.loadMovie(loadImageBig)
_parent.des.description_txt.html = true;
_parent.des.description_txt.htmlText = "NOM DU PRODUIT : "+loadName+"<br /><br />"+"PRIX : € "+loadPrice+"<br /><br />"+loadDescription;
_parent._parent.point._visible=false;
_parent._parent.pointure_ns._visible=false;
_parent._parent.divers._visible=false;
_parent._parent.Chaussures._visible=false;
}
Name._visible = False; Showing Up As The Swf Is Loaded
I am having an issue with things that are set to name._visible = false; showing up as the user opens the swf in a browser.
I have the code on the first frame of the movie...is there anything I could put before it to make sure the user does not see this appear until they click on something?
I don't have any issues seeing it when I open it as a freestanding swf...just when it is placed inside the site I am making it for.
Any ideas?
Thank you!
Multiple _visible = False; - Possible To Simplify?
Hi,
I have 20 bullet_mc that are _visible = false; and when users click a button which is over the invisible bullet_mc, that particular bullet_mc becomes visible. That all works but I would like to simplify the code if possible. This is what I'm using now:
Frame:
Code:
_root.bullet1_mc._visible = false;
_root.bullet2_mc._visible = false;
_root.bullet3_mc._visible = false;
_root.bullet4_mc._visible = false;
//etc etc
Button which is on top of bullet_mc:
Code:
on (press){
_root.bullet1_mc._visible = true;
}
on (rollOver){
_root.bullet1_mc._visible = false;
}
How can I make this easier to use?
_visible = False Affecting Processor?
{
Not having a movie clip on the stage until needed (attachMovie when it's time, and then kill it as soon as it's temporarily of no use)
v.
_visible = false
}
^ Is there a difference in processor demand? When setting visible to false, it seems to me that a few extra variables would need to be stored for the movie clip..._x, _y, _width, _height, _alpha, etc., etc., etc...but I wasn't sure how Flash goes about handling these things or which was better practice?
.unloadMovie(); Or _visible=false; Or .stop ?
Hi,
Whats the most efficient way to remove (temporarily hide) my swf on level 4 while a user is looking at another swf on a higher level please? I want the swf to be remembered in the cache for when the user requests it again but i don't want it running because it includes a detailed animation which im worried uses up unnecessary resources on slower pc's and could therefore slow down other animations. It needs to remain on level 4 because it is sometimes used in conjunction or blends in with the levels above.
Do you recommened : _level4.unloadMovie();
or: _level4.stop
_level4._visible = false;
Thanks, Sam.
_visible Of All Movieclips On Stage Is True Or False....how?
ok i have a dynamic menu...
when i move over with my mouse the submenus should be visible and when i roll off they should be invisible...
its important because the submenus are dynamicliy named and i dont know how much they are and how many they are....
my question: is there a command that can talk to all movieclips in a timeline or in a parentmovieclip at once...
i thougt about a solution to store alle names in a arry when they containermovieclip is duplicated....but before i want to ask if there is a easyer solution....
thx
Movie Wont Unload When = _visible = False;
Alright, I am missing the answer because this is too easy:
The true or false states of each movie seem to have no bearing on whether they are actually visible or not, both movie clips are visible regardless of what is said below, how can I fix this?
Code:
_root._clock._visible = true;
_root._keypad._visible = false;
btn1.onPress = function () {
_root._keypad._visible = true;
_root._clock._visible = false;
nor this:
Code:
_root._clock._visible = true;
_root._keypad._visible = false;
btn1.onPress = function () {
if (_root._clock._visible = true){
_root._clock._visible = false;
}
if (_root._keypad._visible = false){
_root._keypad._visible = true;
}
MovieClip._visible = False On A Mask Layer?
Is it possible to have a movie clip on a mask layer where you can turn it on and off using ._visible? I'm thinking it's not because I can't get it to work.
I want to start with no mask then be able to activate a mask and drag it around. Then turn the mask off again.
I've tried ._visible and attachMovie with a setMask unsuccessfully. Although setMask worked, I just couldn't drag the mask around after that.
Here's the code that creates the mask but then the drags don't work:
Code:
maskee_mc._visible = false;
activateMask_btn.onRelease = function(){
maskee_mc._visible = true;
_root.attachMovie("m_Mask", "mask_mc", _root.getNextHighestDepth());
maskee_mc.setMask(mask_mc);
}
mask_mc.onPress = function(){
startDrag(mask_mc);
Mouse.hide();
}
mask_mc.onRelease = function(){ /
stopDrag();
Mouse.show();
}
Any help is appreciated.
-Layne
Making A List Component ._visible = False;
I am trying to make a list component invisible for now by using the following code
tileList._visible = false; //(And later there will be a button that activates it)
And this is the error that it's giving me
1119: Access of possibly undefined property _visible through a reference with static type fl.controls:TileList.
If anyone could help me out that would be awesome Thanks
Movieclips Still On Stage Eventhough _visible = False
Hello,
I have a scenario where a question will appear on the screen, and when the student thinks they know the answer, the facilitator clicks on the their name, and correct and incorrect boxes appear. If the answer is correct, all names on the screen SHOULD disappear and the next question appears. But right now, only the last name disappears. Attached is my code... what am I doing wrong?
Any help would be greatly appreciated
Thanks
Doug
Attach Code
//"players" is an array that holds the number of players specified at the beginning of the game.
for(var i:Number = 0; i < players.length; i++){
mcName = this.createEmptyMovieClip("mcName" + i, this.getNextHighestDepth());
mcName.border = true
var tfName = mcName.createTextField("tfName" + i, 1 + i, 50 + (200 * i), 400, 100, 25);
tfName.setNewTextFormat(tfNameFmt);
tfName.border = true;
tfName.borderColor = 0xFFFFFF;
tfName.text = players[i];
mcName.onPress = function(){
var mcCorText:MovieClip = this._parent.createEmptyMovieClip("mcCorText", 1)
var corText = this._parent.mcCorText.createTextField("corText", 3, 300, 500, 100, 25);
corText.text = "Correct";
corText.border = true;
corText.borderColor = 0xFFFFFF;
corText.setTextFormat(tfNameFmt)
mcCorText.onPress = function(){
nextFrame();
mcName._visible = false;
mcCorText._visible = false;
}
}
}
Movie Clips In Array Set To _visible = False?
I have 92 movie clips (yeah, I know) on stage whose default visibility I'd like to set to false when the movie runs, of which selected movie clips will be turned on later via another function. So say one the arrays is var FusterCluck_ary:Array = Array("n1", "n2", ...."n36");
What would be the easiest way to set them all to ._visibility = false within the array? I'd prefer to avoid entering a line for each individual movie clip if I can call a function to do so from the get-go at runtime.
If Any "i" Is False Help... If (_level0["holder_mc"+i]._visible == False) {
How do I say
if any of the i numbers == false do something
?
Code:
on (release) {
for (var i=0; i<5; i++) {
trace(_level0["holder_mc"+i]);
if (_level0["holder_mc"+i]._visible == false) {
trace("yyyyyy something is hiding");
_level0.holder_globe._visible = false;
_level0.holder_mc2._visible = true;
_level0.holder_mc2.gotoAndStop(3);
trace(_level0["holder_mc2"]);
trace("jumped preloader YAY and went to mc2");
} else {
Glen Charles Rowell
For "custom Scroll Bar" Make Arrows ._visible = False?
I followed Kirupa's custom scroll bar tutorial and I'm trying to tweak a few things. Where would I put the code to make the arrows invisible when the content can't be scrolled any higher or lower? This is different from the scrollFace being invisible. I don't mean when there is no scrolling at all. Also, where would the "return to visible" (else) code go? The code I plan on using is:
btnDown._visible = false;
else btnDown._visible = true;
btnUp._visible = false;
else btnUp._visible = true;
Is "_visible = False" Efficiency Friendly?
basically, i'm writing a flash program that generates several entire menus of links on the fly from an XML file. i'm kind of anal about my code performing the best it can, and i've run into an efficiency crossroads... i'm trying to decide on the best implementation, and there's only one thing i don't know for sure:
if i have a movieclip on the stage, but _visible = false, is that movie clip still draining CPU cycles (accepting onEnterFrame events and such), or has it been completely frozen? basically, could i have an arbitrarily large number of _visible = false MovieClips on the stage without a significant hit on performance?
HandCursor = False Path Issues
I have a seemingly simple path issue here..and i'm almost embarrassed to ask this question But oh well.
My scenario:
I have a button (instance name "btn") within a movieclip (instance name "MC"). I need the button within the movieclip to not have the handcursor. I have the standard btn.useHandCursor = false; on the maintimeline (not the timeline where the button is located). But the handcursor just doesnt seem to want to dissapear.
What simple error am i doing wrong here?
take care.
DlgBox._visible = "false"; ?
Does anyone know why my movie clip would be doing this?
I have this code on the last frame of a timeline:
dlgBox._visible = "false";
dlgBox.duplicateMovieClip("helpDlgBox", 1);
helpDlgBox.path = "facts.html";
it loads a dynamic text window into the movie, but when I click on any other button within that same timeline for the movie it go's to where I tell it to (a labeled frame) but doesn't get rid of the dynamic text window...it's layered over the content. I want it to just activate when that frame is hit, not the whole time! I was thinking that I needed to load the other stuff on a different level when the other buttons were clicked...I'm stumped.
I had it working correctly and FLash MX did some debug crap that meesed it up...it tried to fix something that wasn't broken. It said it had to fix breaks or something like that.
Any suggestions? If you want the code, let me know...it's over 7mb though...this is a CD-ROM. I have to have this project done within the week and this isn't working right!!...urrggge!!
Thanks,
Target Path & Button Enabled=False
Ok...I have two buttons. Both buttons are inside of a movie. Button 1 has an instance name of "exhibit". Button two when you do a rollover disables Button1. But there is my problem that I can't get it to disable using this code.
Code:
exhibit.enabled = false;
Now I have tried several different paths to try and locate the button. For example using _root.movieInstanceName.button1.enabled = false; but still no luck. Is there a reason why it's not locating it? Thanks
Also, I should mention that I've tried putting this code on the Button 2 so that when Button 2 is initiated it will activate Button 1 to be false.
Also I've tried putting it into this code but doesn't work.
Code:
onClipEvent (enterFrame) {
exhibit1.exhibit2.enabled = false;
if (active) {
nextFrame();
} else {
prevFrame();
}
}
I've tried this code with _root as well.
"Mask" Or "_visible = False" ?
I am designing a game that has large graphics for the background. The large graphics are cut into three pieces that fit the screen size.
I am wondering whether it's faster for Flash to Mask large images so that only the part on the screen is showing, or program it so that pieces that are currently off the screen have their _visible value set to false? (i.e. are the vectors that are masked out still drawn?)
Thanks in advance!
Using Eval Function And Variable In A Path (target Path)
Hello,
I have to reprogram some of my website and it calls to conjugate strings in a way that's beyond my understanding. Please help me with some suggestions. Kind regards.
the original code is:
code:
if (_global.useCount<10) {
//hide
var diff = 10-_global.useCount;
for (diff; diff>0; diff--) {
eval(String(11-diff))._visible = false;
}
}
There are buttons named 1 to 10 and this turns off the ones that are not used. Now I want to nest those buttons in subclip "buttonsRow", instead of having them on main timeline. How do I rewrite that code to make it work with new path?
I have already tried the "associative array" method, but it don't really know how to pack the whole eval function in there. I've tried many combinations, like:
code:
this.buttonRow[eval(String(11-diff))]_visible = false;
//or
this.buttonRow["eval(String(11-diff))"]_visible = false;
//or
buttonRow[eval(String(11-diff))]._visible = false;
//or
buttonRow["eval(String(11-diff))"]._visible = false;
//or
buttonRow[eval(11-diff)]._visible = false;
// or
buttonRow[8]._visible = false;
//the last one at least turns off button 8, lol
Some of those return syntax error and some just don't work. Anyone have any ideas? Thank you again.
Cannot Export An Avi Of Motion Along A Path When Path Is Specified With Action Script
Hello!
I have the following problem: I am using Flash 8 Professional to produce a series of avi files showing the motion of a dot along different paths. Whenever I use the drawing tools to draw the path everything is all right: I can export both a swf and an avi file showing the motion. The problems start when I use action acript to specify the path: then a swf can be exported, but not an avi file (Flash acts as if it is exporting but the avi file produced shows only a stationary dot). Can anybody help me?
_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...
_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;
|