Visible On LoadMovie
Hi, I was wondering how to make the visibility of a movie = 0 when I call it on a loadMovie action. I want an action that will loadMovie but will not display it until I change the visibilily later.
Thanks Jay
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-09-2004, 05:58 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Switch Visible Mc From LoadMovie Swf
How can I switch visible a moviclip from a button in a swf loaded with
loadMovie in the principal movie
_root.myMC._visible = 1;
doesn't work
Thanks manner
Off-stage Content Visible After LoadMovie
Hello,
I created a small 300x200 movie animation which has content on the off-stage area which is not visible when the movie is played in the browser - good. However, when I load THAT movie as an external swf into a blank movie clip using the 'loadMovie' script, when the movie loads into position all the off-stage content is now visible. How do I git rid of it. Do I need to use a mask layer somewhere?
Cheers,
David
LoadMovie - SWFs Off-stage Components Are Visible
I am loading a swf into an blank movie clip. The swf has multiple things off-stage that flow off and into the stage as the animation goes through its run.
Of course when I play it by itself it works and looks fine. When I load it into the blank MC which is inside my porfolio, all of the offstage content is visible and the stage size of the loaded SWF is not even used. Well, not sure what to do. I tried playing with the movies x and y scales onLoad, I tried masking the stage, I tried using big suqares the same color as the background, but still no luck. Is there something that I can do to fix this problem?
THanks
Brian P
LoadMovie Clip--graphics Outside Stage Visible?
I have searched this forum and can't seem to find an answer. I'm loading an external movieclip inside an empty movie clip. But when the clip loads, I can see all my graphics that i have placed outside the stage area, that i want animating in.
I understand I can use a mask, but i feel like the mask is slowing my animation down because of how big it is. There must be another way. Anyone know?
LoadMovie - SWFs Off-stage Components Are Visible
I am loading a swf into an blank movie clip. The swf has multiple things off-stage that flow off and into the stage as the animation goes through its run.
Of course when I play it by itself it works and looks fine. When I load it into the blank MC which is inside my porfolio, all of the offstage content is visible and the stage size of the loaded SWF is not even used. Well, not sure what to do. I tried playing with the movies x and y scales onLoad, I tried masking the stage, I tried using big suqares the same color as the background, but still no luck. Is there something that I can do to fix this problem?
THanks
Brian P
Visible=false / Visible=true Not Working For Buttons
I have a button when pressed loads a movie into a level above the root. I put this code on the button and it works fine.
on (release) {
loadMovieNum("links.swf", 1);
_root.button1._visible=false;
_root.button2._visible=false;
_root.button3._visible=false;
}
Unloading my movie from level 1, however, I have this...
on (release) {
unloadMovieNum(1);
_root.button1._visible=true;
_root.button2._visible=true;
_root.button3._visible=true;
}
This is not working and I'm ready to freak out. Does anyone know what I'm doing wrong? I just don't want the buttons from the root to be active under level 1.
My kingdom for any help
Help With Visible=true/visible=false Animated Movie
in my main timline
action layer:
PHP Code:
stop();
_root.attachMovie("mcNavi","mcNavi",1);
mcNavi._visible=false;
_root.attachMovie("mcContact","mcContact",2);
mcContact._visible=false;
in another layer labeled buttons, one button "Contact Us" has the following script:
PHP Code:
on(release){
mcContact._visible=true;
mcContact._x=115.8;
mcContact._y=165.3;
mcNavi._visible=true;
mcNavi._x=459.6;
mcNavi._y=29.1;
}
in the mcNavi movie clip there is a button labeled Close Window with:
PHP Code:
on (release){
_parent.mcNavi._visible=false;
_parent.mcContact._visible=false;
}
all the movies can be seen when needed however, once you click "Contact Us" to see mcContact and click "Close Window" to remove it, then every time you open "Contact Us" to see mcContact it won't show the animation, it will only show the end frames.
how do i get around this. is there other actionscript i should use for animated movie clips other than:
visible=false; and visible=true;
??????
[mx] Dynamic Text On WWW Not Visible (visible On Local Machine)
Thank you for reading this. I hope you can help me.
I have an mp3 player (learned from the Golden Mean) that works great. It loads text from an xml file that displays the track name (list of tracks available from xml file) and gets the track path. I've successfully edited it to now display lyrics/song notes as well. These visual displays are listBoxes with scroll bars. It also displays song length and current position (h/m/s) in dynamic text boxes.
I've edited the source and have a small compact player, a single player (one song only, if you will), that reads the xml file and displays the song length and current position, plays the song, but I'm not happy with the display fo the track title. I don't need a scroll bar for a single song, and I can't get rid of it.
What I am trying to do is load the song title from either the xml file or a simple text file and display in a dynamic text window. I've done it, tested the movie, and published the movie. These all work great. I can see everything in the swf by itself, and I can see everything when I call the html that has the swf embeded. I upload it to our intranet server and everything works as expected except the song title in the Dynamic Text box: I get nothing. Song plays, position and duration show fine.
I have done a search here in the forum and come up with a few possible solutions, none of which work for my situation:Paths correct? (yes, everything is where is should be relative to the swf file - in the same directory)
Mime type (server servers swf - the mp3 player works except the title)
Embed font (yes, I have embeded outline for all)
Font type is the same as the currently working duration/position and larger movie's title
I am using the same machine to view the file locally and the remote file (do I have to code multiple files for different platforms???)
Failure is consistent with every viewing machine available to me: Windows (XP, 2000), Fedora (core 1 & core 4), Redhat 9 and cross browser: Opera 8, Netscape 7.1, Firefox 1.0.4, Explorer 5 & 6, Mozilla 1.0.
I've been trying without success to google answers, and searching multiple fora. I thank you in advance for any help you might offer,
JW
Why Does A Draggable MC Become Visible Where The 'make Visible' Button Is Clicked?
Hello, i have a MC which is draggable and controlled by the code below.
The first time the user opens the draggable mc, it is positioned nicely on the screen (where i have placed the instance of the MC, then made it invisible).
But if the user closes the draggable MC, then click on the 'open' button, it appears where the user clicks the button.
This looks very ugly.
How can i tell the MC to become visible where the initial MC is placed on the screen?
code i'm using
Code:
largeimg._visible = false
largeimg.onPress = function() {
this.startDrag();
if (this.closeMC.hitTest(_xmouse, _ymouse, true)) {
this._visible = false
largeimg.gotoAndPlay(1)
}
};
largeimg.onRelease = stopDrag;
The window is reopened when a button is clicked
Code:
enlarge.onRelease = function() {
_root.largeimg._visible = true
_root.largeimg.gotoAndPlay(2)
}
Thanks a lot for any help in advance
Can A (mc, Visible,false), Make It Self (mc,visible,true)?
Hi...Im just playing around here
I have _level0.variable=false... when the user clicks a button it sets _level0.variable=true... I have movies loaded through out the levels waiting for _level0.variable=true i get them to work fine in their actions ... but then I have a mc that is not visible and I want to make visible but from its own script
onClipEvent(load){
setProperty(_level0.mc, visible,false);}
onClipEvent(enterFrame){
if (_level0.variable==true){
setProperty(_level0.mc,visible,true);}}
I get it to work, when I have the script in the buttons actions directly
on(release){
setProperty(_level0.mc,visible,true);
but I'm just wondering if it could be done inside the actual mc... all instances are named property.
thank you
Visible Not Visible On Button Controlling Mc
I am trying to make a movie clip visible or invisible useing a button. I want the button to check and see if the mc is visible if it is than make it disappear. If it is not visible make it appear. The is the code that I have on the button and it does disappear, but not reappear. Please help, I know this code looks horrible, but I am winging it.
on (release) {
pt._visible = false;
if (pt._visible=false) {
} else {
pt_visible = "true";
}
}
Setting Layers Visible/not Visible
Next thing I'm adding to my game is a base that you can upgrade. What I want to do is create a MovieClip that is an instance of a Base class. Each layer in the MC will contain an upgrade. When you purchase an upgrade the corresponding layer becomes visible. Otherwise the layer is not visible.
Is it possible to change the visibility of MC layers via AS3? If not, any suggestions on how to accomplish what I'm trying to do?
If this is possible, will a layer that is set to not visible still be contained in the hit test? For example, one upgrade is an outer wall that surrounds the base. Every time a zombie hits the wall, the wall loses health. If I have not purchased this wall will the program still register the zombies hitting the base at the point that the outside wall would exist.
Thanks in advance.
Visible.false Objects Are Visible
Hi,
I currently have 16mc's all labeled something_found somethingelse_found and somethingelseagain_found they all start as visible=false; then as you progress they appear one by one using if statements, which is working perfectly. My problem is that when I enter the frame sometimes all these not visible items flash up (which kind of defeats the purpose of the game). They are the first thing after the stop(); action and it doesn't happen every time. I've put the visible=false; part in the actions layer within the frames they appear in. If I put it into the maintimeline would it help the problem and if so how do i direct the timeline into finding them, when i've tried MovieClip(root).map_mc.something_found=false; it hasn't found it.
any suggestions would be greatly appreciated I feel like i've been going round in circles copy pasting code in and out of every layer and frame and getting no further.
Visible
Hi!
How can I modify visibility of text in one MC that is inside an other MC from one button?
I think it´s using _root.Mc1.Mc2.... AND???
Thanks!
Visible =0?
How come this doesent work?
on (release) {
setProperty (_root.genua, _x, 100);
setProperty (_root.genua, _y, 100);
_root.genua.gotoAndPlay(2);
if (_root.genua._visible=0) {
setProperty (_root.genua, _visible, 1);
_root.genua.gotoAndPlay(2);
}
}
i have a mc called genua and when clicked first time it aint no problems.. but in genua i have a "close" button that says:
on (release) {
setProperty (_root.genua, _visible, 0);
}
and after i press the first script again mc genua wont show.. how come?
MC NOT Visible
Hi,
I try to load some MC’s. At the load time, I want to make the clips invisible.
OK, here my code
Frame1:
attachMovie("test1", "test2", 0);
loadMovie ("Test1.swf", "_root.test2");
_root.test2._visible = false;
But the MC is visible!!!!
I have already tried to give the “_root.test2._visible = false;” statement onto frame2, but that also NOT work -> still visible!
The only think, that works, is, if I give the statement “_root.test2._visible = false;” on a button release event!
Why can I NOT make the MC invisible at the load time??? I think, the MC isn’t ready loaded, is this right???? If YES, what can I do???
Thanks
David
Mc Visible
Ok, ive got this mc with alpha:0% and im trying to make it to where when you put your mouse over it, it becomes alpha:100%. I'm trying to do this with _x & _y tracing. Not having much luck though. PLease help! Thanks.
Here's a link to the .fla: www.frequencyflux.net/ff2.fla
Visible
Hi,
I have ten movie clips and ten buttons, I want to write a function so that if i click a button i need see a particular movie onlt rest clips are in visible. any help from masters
thanks a lot
Visible
i have a dynamic text box called prospectus. what i need to do is set the default for the text box as invisible and make it only visible when i roll over a button.
spiders
Visible _ Help
Hi all,
I need a button to be "invisible" once the flash is started and want it to be visible if one button is pressed by user.
need some help here.
i'd tried using onClipEvent or Loadmovie during the start and set the button property under _visible=false.
However, its showing error all the time :
OnClipEvent can be used for movie clip only
load movie should be 2-3 bla bla bla....
any one can help me please..? thanks...
Visible Mc
Hey guys, ok to explain... I have an mc that is invisible until its button is clicked. On the frame on the timeline I have:
code:
themc._visible=false;
themc.onRelease = function() {
this._visible=false;
}
the actions in the button are:
code:
on(release) {
if(themc._visible == true)
{
themc._visible = false;
}
else
{
themc._visible = true;
}
}
and the mc has the instance name of "themc"
So what this does is hide the mc until the button is clicked, and then you have to click the mc or its button to make it invisible again. What I want is to be able to click elsewhere(other than on the mc or button) and still have the button disappear. Any suggestions or help would be much appreciated.
Thanks everybody.
[F8] Visible
What would be the action script to make a movie clip visible or invisible?
I have an idea, i think it is like visible (True); or something like that.
Thanks
[F8] <Help> Not Visible
when i try to read the help section by click on the small button that is there in the actions panel top corner, the content(all the texts) inside the help panel appear Toooooo small ... Why is this?? How can i bring it to readable size
.visible?
For some reason in my conditional statement, the .visible property is not working right. No error given, just doesn't work. Any suggestions, I'm sure I'm just not typing something right.
ActionScript Code:
if (this[lastIconClicked]["Electrical"] < 5) {upgrade_mc.option1_btn.addEventListener(MouseEvent.CLICK, electrical1Click)}
else {upgrade_mc.option1_btn.visible = false}
Visible
how do you check if something's visible, and if it's not visible, make it visible.
why won't this work : (
i have orange, red, yellow, green and blue as part of container so i can apply a mask on all 5 objects, and i want to make the corresponding Box visible everytime the mouse is over each object
ActionScript Code:
private function showSlide():void
{
orangeBox.visible = false;
redBox.visible = false;
yellowBox.visible = false;
greenBox.visible = false;
blueBox.visible = false;
if (container.orange.MOUSE_OVER == true) {
orangeBox.visible = true;
} else if (container.red.MOUSE_OVER == true) {
redBox.visible = true;
} else if (container.yellow.MOUSE_OVER == true) {
yellowBox.visible = true;
} else if (container.green.MOUSE_OVER == true) {
greenBox.visible = true;
} else if (container.blue.MOUSE_OVER == true) {
blueBox.visible = true;
}
}
Visible ~~~Help
Hi all,
I need a next_buttonto be "invisible" once the flash is started and want it to be visible if another button is pressed by user.
need some help here.
i'd tried using onClipEvent or Loadmovie during the start and set the button property under _visible=false.
However, its showing error all the time :
OnClipEvent can be used for movie clip only
or
load movie should be 2-3 bla bla bla....
any one can help me please..? thanks...
Visible Bug?
Can anyone tell me what I am doing wrong or is this a bug? I am dynamically creating a MovieClip and calling an image to load into it. Then I want to set clip1._visible = false. This doesn't seem to work. See code:
ActionScript Code:
visibleTest = function(){
this.createEmptyMovieClip("clip1", 1)
clip1.loadMovie("image/image1.jpg")
clip1._visible =false
}
visibleTest()
but when I use the alpha peroperty it does work. See Code:
ActionScript Code:
visibleTest = function(){
this.createEmptyMovieClip("clip1", 1)
clip1.loadMovie("image/image1.jpg")
clip1._alpha =0
}
visibleTest()
Is this a bug? I want to use visible to make sure any links that are added to the clip are disabled.
Visible?
Hi,
I have 2 loader components on the stage.
I want button 1 to load an external swf with the first component.
And button 2 to load an external swf with the second component.
If I use the visible.false and visible.true, it works - hiding one component while showing the other.
The only problem is that when I go back to a section that I've already viewed, the external swf becomes visible, but it doesn't load (animate).
It just appears.
What code do I need to do this?
Thanks!!
menu_one_mc.onRelease = function() {
stick("menu_one_mc");
myLoader.contentPath = "HOME_TEST.swf"
myLoader._visible = true;
myLoader2._visible = false;
gotoAndPlay(45);
};
menu_two_mc.onRelease = function() {
stick("menu_two_mc");
myLoader2._visible = true;
myLoader._visible = false;
myLoader2.contentPath = "BIO4.swf";
};
Visible And Var?
Hi @ll~!
Well, i have a small problem...
I made a Var and called it Pic...
Pic=1;
now i have a few MC's that i want to be visible and not to be visible....
i called all of them like 1,2,3,4 and so on~
now i made the visible code...
setProperty("_root.Pic", _visible, 1);
and i made some buttons... with...
on (release) {
Pic=Pic+1;
}
actualy i want that it show the MC with the actual number... like,if Pic=3 it shows the MC with the instance name 3 and so on...
but it does not....
i tryed something like...
nummber=number+1; (for the button)
"Pic"+nummber;
and than
setProperty("_root."Pic"+number", _visible, 1);
so the names of the MC's are Pic1ic2......
but that does not work to...
can som1 help me plz?
If Visible Question
Hey All,
Could someone tell me how to write a script that basically states if box1 and box2 and box3 and box4 etc until box7 are not visible then got to frame 10.
I tried this prelim script with 2 points but it is a no go
if (("box0", _visible, "0") &&("box1", _visible, "0") ) {
gotoAndPlay (10);
}
can someone tell me what is wrong or if there is an easier way.
Much appreciated.
Fleep
Visible Question
i have an actionscript that is duplicating a movie clip x number of times. x equal to so many letters. everything works fine, but when each MC is finished I wanted to set the visibility to 0,
I tried something like this:
setProperty("words" + x, _visible, 0);
which doesnt work. How to i set a property when i dont know what the exact target name is. x is equal to the current mc number that it is running through. does anyone know how to do this?
Visible Clip
I have a movie clip(A) that contains other child movie clips(B) that are supposed to be hidden when the main movie clip(A) begins. I have buttons that continuously move horizontally across the screen. What is supposed to happen is that when the user rolls over the button a child movie clip(B) is supposed to appear. I have figured out how to roll over a button for the name to appear by using actions, but I can not figure out how to make the clips(B) be "hidden" when the main clip(A) is first played.
I have put the following script in the first frame of the parent movie clip(A) but it doesn't seem to be working. Any suggestions?
Set Property ("billboards", Visibility) = "0"
(Billboards is just one of the movie clips within the main movie clip)
PS: The point is to make "Billboards" appear when in a stationary position when the billboards button is rolled over. This is why can not do this within the button itself.
Thanks for any advice.
How Do I Specify A Visible Area?
hi all,
i have afair bit of stuff on the stage...how do insert a visible area box/mask to specify what area of the stage will be visible in the movie???
thanx
Pop-up Or Visible/notvisible?
Hey guys,
In my photography section, I want a flash-looking window to pop-up when a thumbnail is pressed and show the larger photo with a little X at the top for close.
Generally speaking, is this a getURL pop-up thing or a simple MC that becomes visible when a user hits the thumbnail and invisible when a user hits the X in the corner?
I don't want a browser looking pop-up.
Thanks.
Visible And Alpha
if you set alpha to 0 or _visible flash, does it do the same thing? like i know they both make it turn invisible, but alpha can make movies lag. but if its at 0 it shouldnt lag right? does this mean that they work the same way? is either way better to use(assuming you arent going to tween alphas or anything)?
Making A MC Visible From Within Another MC?
Hi! I have a button, and clicking it makes a MC visible. But I have another button inside that MC, and I want it to be able to close the MC (make it not visible). But using the mc._visible doesn't seem to work to close the MC it is in. Does this make sense?? How do I go about accomplishing this?? Thanks for any help.
Levels That Should Be Visible, Ain't
I have a pretty typical setup, where a loader movie loads a more functional movie, aka my "main" movie, on level 1. My main movie then dynamically creates an MC on level 5, and loads a random .jpg into it. The code is like so:
_root.createEmptyMovieClip("PicClip", 5);
PicClip.loadMovie("http://yackety.com/smackety.jpg");
This works nicely. I can see the loaded .jpg.
The main movie loads other movies, each into it's own level. the idea is that the loaded .jpg doesn't change unless you reload the site. However, anytime I click the button to load a movie into another level, the .jpg immediately dissappears. This is making me nuts! Any help is appreciated.
Thanks!
Frank
Flash Not Visible To Everyone
I have created a flash video using flash mx and created a seperate swf preloader. From the preloader I loadmovienum("mymovie")
I use the full http address for mymovie.
When I upload the files and preview from my machine I see everything just fine.
However, when I attempt to view the website from any other computer I do not see the movie.
I have looked for file references to stuff on my machine and did not find any...
Any help would be appreciated.
web site that I am testing:
http://www.reflectionsbydesign.com/wedding.htm
files for the preloader (which show a loading bar)
http://www.reflectionsbydesign.com/assets/preloader.fla
http://www.reflectionsbydesign.com/assets/preloader.swf
fla file for myvideo "wedding"
http://www.reflectionsbydesign.com/assets/wedding.fla
http://www.reflectionsbydesign.com/assets/wedding.swf
Visible In .swf, But Not In Html?
There's something I don't understand. I am using the load movie function to load a movie into level1.
When I preview it in .swf mode, it works fine, but when I put it into HTML, the movie that is loaded into level 1 has bits missing.
Why is this???!?!?!!!?
Thanks
.swf Not Visible To Netscape.
I am having trouble getting my .swf file to play in Netscape. I have published them in flash 4 up to mx and rechecked my embed codes. Nothing seems to work. Can someone help? I have attached a txt file with the code I use.
.jpg Loads OK But .gif Is Not Visible
I have a simple movie that loads a .jpg file into a placeholder MC when a button is pushed. It works great with .jpg format files. But when I try to load the same file but converted to .gif there is nothing to see. There are no errors or anything like that.
I am using photoshop and image ready to do the conversion to .gif. I have also tried using Irfanview to do the conversion and still, I can view the .jpg version of the image, but the image.gif does not show anything.
Any help is greatly appreciated.
Visible With Variables
I posted something like this already but I thought I'd try to be clearer.
I am trying to load a variable from a text file that tells a movie wether it should be visible or not.
Here's what I have but it doesn't seem to matter what the variable is. As if the movie doesn't even see it.
Frame 1
myMovie._visible = false;
Frame 2
this.loadVariables("Vars.txt");
(the text inside is &Vars=1) (However, this number will change)
Frame 10
if (_root.Vis == 2) {
Vvisible1._visible = true;
} else {
Vvisible1._visible = false;
}
stop();
What am I missing? Do I need to do something with onClipEvent (Data)?
Please Help.
Thanks.
Playing On Becoming Visible?
I'm trying to make spiffy animated menus, and I'm having trouble making something begin its movie tween upon becoming visible.
For example, I have menubar A, and on rollover of Item 1, submenubar A is supposed to scroll into appearance.
I have the property of submenubar A at TRUE on rollover of Item1, but it blinks into appearance suddenly, and doesn't play it's scroll in tween, except sometimes on the very 1st load.
Any suggestions? Is there a onVisible...Play() kind of tag, or am I going about this all wrong?
Thanks for any suggestions!
Liam
Playing On Becoming Visible?
I'm trying to make spiffy animated menus, and I'm having trouble making something begin its movie tween upon becoming visible.
For example, I have menubar A, and on rollover of Item 1, submenubar A is supposed to scroll into appearance.
I have the property of submenubar A at TRUE on rollover of Item1, but it blinks into appearance suddenly, and doesn't play it's scroll in tween, except sometimes on the very 1st load.
Any suggestions? Is there a onVisible...Play() kind of tag, or am I going about this all wrong?
Thanks for any suggestions!
Liam
Playing On Becoming Visible?
I'm trying to make spiffy animated menus, and I'm having trouble making something begin its movie tween upon becoming visible.
For example, I have menubar A, and on rollover of Item 1, submenubar A is supposed to scroll into appearance.
I have the property of submenubar A at TRUE on rollover of Item1, but it blinks into appearance suddenly, and doesn't play it's scroll in tween, except sometimes on the very 1st load.
Any suggestions? Is there a onVisible...Play() kind of tag, or am I going about this all wrong?
Thanks for any suggestions!
Liam
|