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




.swf Files Not Visible In IE6 But Are In Firefox



I am completely at a loss! I have embeded several .swf files in html pages posted to the web, and they are visible in Firefox by not IE! The plug-ins are the latest versions, and all are enabled. Just a macromedia icon shows!

www.eumarketentry.com/intel.htm

is a prime example.

I did another site for my wife and she has her panties in a bunch because her flash intro with all of our dogs can't be seen by most of the Western world! Please help! Even my tech guys around here are at a loss!

The same thing occured to my Partner 2 states over, and another associate as well. No IE, just Firefox!



FlashKit > Flash Help > Flash MX
Posted on: 09-23-2004, 01:41 AM


View Complete Forum Thread with Replies

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

SWF Invisible In IE But Visible In FireFox
hi,


something weird is happening to my movie. If I view the SWFin firefox it's
displayed normal but in IE I only hear sound ... any idea?

check it out:

www.arenatravel.be/dirixnv/new/intro.swf

Flv Not Visible In Firefox (but I Can Hear It)
hi everyone

i have a really strange problem with my streaming flv. its not visible in firefox or 2.0.0.3 on winxp sp2 but the audio starts right away. on other browsers it buffers for some seconds and then commences as it does locally.

attached the useful code snippet. should i change something???

many thanks!

// 3a) the main net connection object:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var my_ns:NetStream;
var my_ns:NetStream = new NetStream(nc);
my_ns.setBufferTime(30);
my_ns.onStatus = function(info) {
if (info.code == "NetStream.Buffer.Full") {
bufferClip._visible = false;
}
if (info.code == "NetStream.Buffer.Empty") {
bufferClip._visible = true;
}
if (info.code == "NetStream.Play.Stop") {
my_ns.seek(0);
}
};
this.createEmptyMovieClip("vSound", this.getNextHighestDepth());
var sound:Sound = new Sound(vSound);
var listenerObject:Object = new Object();
// 3d) listData is the array used as the data provider for the List component
var listData:Array = new Array();
// 3e) the XML Object that will hold the track information
var videoListXml:XML;
/***************************************
(10)----XML Object definitions
*****************************************/
//the callback function triggered by the XML onLoad event
function loadXML(loaded) {
if (loaded) {
traceIt = "media loaded";
xmlNode = this.firstChild;
header = [];
description = [];
path = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
header[i] = xmlNode.childNodes[i].attributes.title;
description[i] = xmlNode.childNodes[i].attributes.description;
path[i] = xmlNode.childNodes[i].attributes.url;
videoMenu(i);
}
previousBtn = previousBtnValue;
nextBtn = nextBtnValue;
pauseBtn = pauseBtnValue;
resumeBtn = resumeBtnValue;
muteBtn._visible = true;
maxBtn._visible = true;
btnNext._visible = true;
btnPrevious._visible = true;
loader._visible = true;
volume_mc._visible = true;
firstVideo();
traceIt = "";
} else {
traceIt = "media not loaded!";
}
}
videoListXml = new XML();
videoListXml.ignoreWhite = true;
//specify which function to handle on load event
videoListXml.onLoad = loadXML;
videoListXml.load("xml/video.xml");
/**********************************
(9) - The core function: doPlay()
doPlay() clears old Sound object, creates a new one and starts it playing;
It also checks the value of the "continuous" variable, and either calls
the next() function or clears the Sound Object when the current track
finishes playing
*********************************/
function doPlay() {
//we always want to start with a fresh NetStream object,
//so initialize the environment:
clearInterval(videoInterval);
clearInterval(timeInterval);
my_ns.stop();
displayDuration_txt.text = "";
displayPosition_txt.text = "";
//initialization is finished; now start from scratch
theVideo.attachVideo(my_ns);
my_ns.play(path[p]);
nowPlaying = header[p];
nowPlayingDescription = description[p];
//set volume
//this.createEmptyMovieClip("vSound", this.getNextHighestDepth());
btnPause._visible = true;
btnPlay._visible = false;
vSound.attachAudio(my_ns);
volume_mc.slider_mc._x = (Math.floor((volume_mc._width+20)/2));
theStatus.playingPausing.videoStatus = playingStatus;
//create the setInterval functions that display time data
var videoInterval = setInterval(videoStatus, 100, my_ns);
//var timeInterval:Number = setInterval(checkTime, 100, my_ns);
my_ns.onMetaData = function(obj) {
duration = obj.duration;
var Dminutes:Number = Math.floor(duration/60);
var Dseconds = Math.floor(duration%60);
if (duration<10) {
Dseconds = ("0"+duration);
}
displayDuration_txt.text = Dminutes+":"+Dseconds;
};
//what to do when tune ends, clean up stuff from previous song
listenerObject.complete = function(eventObject:Object):Void {
//clean up:
//1. clear the text fields
displayDuration_txt.text = "";
displayPosition_txt.text = "";
//2. stop the setIntervals
clearInterval(videoInterval);
clearInterval(timeInterval);
//3. delete existing Sound object
my_ns.pause();
sound.stop();
delete my_ns;
//4. reset the pausebtn visiblility
pauseBtn._visible = false;
playBtn._visible = true;
};
my_ns.addEventListener("complete", listenerObject);
}
function firstVideo() {
p = 0;
doPlay();
}

Flv Not Visible In Firefox (but Can Hear It)
hi everyone

i have a really strange problem with my streaming flv. its not visible in firefox or 2.0.0.3 on winxp sp2 but the audio starts right away. on other browsers it buffers for some seconds and then commences as it does locally.

attached the useful code snippet. should i change something???

many thanks!

// 3a) the main net connection object:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var my_ns:NetStream;
var my_ns:NetStream = new NetStream(nc);
my_ns.setBufferTime(30);
my_ns.onStatus = function(info) {
if (info.code == "NetStream.Buffer.Full") {
bufferClip._visible = false;
}
if (info.code == "NetStream.Buffer.Empty") {
bufferClip._visible = true;
}
if (info.code == "NetStream.Play.Stop") {
my_ns.seek(0);
}
};
this.createEmptyMovieClip("vSound", this.getNextHighestDepth());
var sound:Sound = new Sound(vSound);
var listenerObject:Object = new Object();
// 3d) listData is the array used as the data provider for the List component
var listData:Array = new Array();
// 3e) the XML Object that will hold the track information
var videoListXml:XML;
/***************************************
(10)----XML Object definitions
*****************************************/
//the callback function triggered by the XML onLoad event
function loadXML(loaded) {
if (loaded) {
traceIt = "media loaded";
xmlNode = this.firstChild;
header = [];
description = [];
path = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
header[i] = xmlNode.childNodes[i].attributes.title;
description[i] = xmlNode.childNodes[i].attributes.description;
path[i] = xmlNode.childNodes[i].attributes.url;
videoMenu(i);
}
previousBtn = previousBtnValue;
nextBtn = nextBtnValue;
pauseBtn = pauseBtnValue;
resumeBtn = resumeBtnValue;
muteBtn._visible = true;
maxBtn._visible = true;
btnNext._visible = true;
btnPrevious._visible = true;
loader._visible = true;
volume_mc._visible = true;
firstVideo();
traceIt = "";
} else {
traceIt = "media not loaded!";
}
}
videoListXml = new XML();
videoListXml.ignoreWhite = true;
//specify which function to handle on load event
videoListXml.onLoad = loadXML;
videoListXml.load("xml/video.xml");
/**********************************
(9) - The core function: doPlay()
doPlay() clears old Sound object, creates a new one and starts it playing;
It also checks the value of the "continuous" variable, and either calls
the next() function or clears the Sound Object when the current track
finishes playing
*********************************/
function doPlay() {
//we always want to start with a fresh NetStream object,
//so initialize the environment:
clearInterval(videoInterval);
clearInterval(timeInterval);
my_ns.stop();
displayDuration_txt.text = "";
displayPosition_txt.text = "";
//initialization is finished; now start from scratch
theVideo.attachVideo(my_ns);
my_ns.play(path[p]);
nowPlaying = header[p];
nowPlayingDescription = description[p];
//set volume
//this.createEmptyMovieClip("vSound", this.getNextHighestDepth());
btnPause._visible = true;
btnPlay._visible = false;
vSound.attachAudio(my_ns);
volume_mc.slider_mc._x = (Math.floor((volume_mc._width+20)/2));
theStatus.playingPausing.videoStatus = playingStatus;
//create the setInterval functions that display time data
var videoInterval = setInterval(videoStatus, 100, my_ns);
//var timeInterval:Number = setInterval(checkTime, 100, my_ns);
my_ns.onMetaData = function(obj) {
duration = obj.duration;
var Dminutes:Number = Math.floor(duration/60);
var Dseconds = Math.floor(duration%60);
if (duration<10) {
Dseconds = ("0"+duration);
}
displayDuration_txt.text = Dminutes+":"+Dseconds;
};
//what to do when tune ends, clean up stuff from previous song
listenerObject.complete = function(eventObject:Object):Void {
//clean up:
//1. clear the text fields
displayDuration_txt.text = "";
displayPosition_txt.text = "";
//2. stop the setIntervals
clearInterval(videoInterval);
clearInterval(timeInterval);
//3. delete existing Sound object
my_ns.pause();
sound.stop();
delete my_ns;
//4. reset the pausebtn visiblility
pauseBtn._visible = false;
playBtn._visible = true;
};
my_ns.addEventListener("complete", listenerObject);
}
function firstVideo() {
p = 0;
doPlay();
}

No Stage Visible In Files Bigger Than 500k..?
maybe you pros have an idea what's happening with my flash 5 files....since 2 days i see no stage in all my movies that are bigger than 500k in filesize. (all the timelines, library and scenes are fine, i just can't see the stage. files smaller than 500 k are fine, also opening a new file is ok.) the files open fine in mx, although the scripting is gone in mx and i'm not advanced enough to "translate" the scripting into mx. any ideas appreciated!!

thanks a lot!

Swf Files Suddenly Not Visible In Html File- Whats Happening?
suddenly my swf files are not visible in the html file and I am wondering why?
Even long ago html files that i did years ago are not showing up in their respective html files..
Is it a memory issue?

or a virus?
pls help
thx
shaf

Firefox Caching SWF Files
sometimes I need to update my website to reflect changes in pricing/promotions, etc. Some of this information is housed in SWF files. Normally i'd just replace the old SWF file with the updated version with the same file name. Problem is, Firefox caches the swf files so the changes aren't seen by users unless they clear their cache. Anybody know of a way to prevent this from happening without changing the filename of the swf?

Downloading Files Works In FIREFOX, But No In IE
i have this website:

http://www.theguaz.com/sitrans

and when i try to download the files located in:

• EMPRESA ---> SEGURIDAD
• SERVICIOS ---> DEPOSITO DE CONTENEDORES ---> FORMULARIO DE RETIRO...

It doesn't download the files but only when i'm navigating with IE, when i'm with Firefox it download the files normally.

What i'm doingg wrong?

Please help me with this.. because it's really weird...

theguaz

I Cannot Stop Firefox From Caching Files
Okay, I have this huge problem with firefox caching flash files I am serving up... I have done everything I could find on the internet to prevent it, yet I still get cached files. Let's begin:

1. I send the following headers for the html file that contains the flash file:

Expires: Tue, 27 Sep 1980 14:03:40 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Last-Modified: Tue, 27 Sep 2006 14:03:40 GMT

2. In the object tag, whevever the flash file is referenced, I use a randomly generated guid for the file name with ?sess_id=(random string) at the end and use mod_rewrite to change this to a php file that loads the flash file. For example:

51c20693-9706-a3e7-b964-4339a4e55e40.zzz?sess_id=2345234523452345

The filename is randomly generated each time.

3. I randomly generate a guid for the classid attribute for the object each time.

4. I have a php file that sends the same headers mentioned above, opens the flash file, reads it, and echoes the output.

5. In hopes of the above 3 not working, I completely generate the object node from javascript. A vain effort.

This seems like it should be foolproof... the client should think it is downloading a different file any time it tries. Tough luck. This works in all browsers BUT firefox... heck, if I change the loader.php file to echo "screw you"; rather than the flash data, that is actually what it gets, but when I echo the flash data, it will show the cached flash file and not the real one. If I clear my cache, I can see the real flash file.

What is going on? How can I get around this? I have no access to the flash itself as it is generated by a 3rd party app. Is firefox somehow reading the first few bytes of the flash file, determining it has it cached, and using that? Is there a way around it?

I have tried this on firefox on windows, Linux, and Mac with the same results.

How To Make Text Visible When A Button Is Pressed?(and Not Visible At All Other Times
My unfinished .swf can be found here:
http://blitzing.5u.com/Untitled-1.htm
What do i have to do to have the correpsonding text appear when i push a button? I got
on (release) {
}
down but pretty much no clue what to do from there. Btw, each text-field-thingy is on a separate layer. Thanks

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

Firefox Can't Open Local HTML Files With GetURL
When Firefox is a the default browser getURL("localfile.html") will not work properly.

What happens is Firefox opens a blank tab then a second tab which can't locate the local file. Firefox then uses Google to try and locate a public website. So if you’re local files are within My Documents, Google redirects you to the page http://support.microsoft.com/kb/236621 "Cannot move or rename the Documents and Settings folder" which is the best match for a "documents and settings" search with "I'm feeling lucky".

Now here's the weird thing. Once one Firefox window is open, any more getURL functions will work. It doesn't work if you have two getURL functions on the same button but if you push the same button two times, the first will produce the error the second will work correctly.

Using getURL("localfile.html", "_blank") doesn’t change anything either.

Works fine with IE set as your default browser. No idea what a Mac does.

Using:
Publishing from Flash 8 Pro
Firefox version 1.5
IE version 6
Published as Action script 1.0 or 2.0 (makes no difference)
Published as player 7 or 8 (makes no difference)

Final published file is to be an EXE. Symptoms still happen when using the SWF file. When the SWF is embedded into a html page, everything works because a Firefox window is obviously already open.

Please help.

Firefox Can't Open Local HTML Files With GetURL
When Firefox is a the default browser getURL("localfile.html") will not work properly.

Using getURL("localfile.html", "_blank") doesn’t change anything either.

Why Do Cross-domain Policy Files Not Work For Firefox?
Anyone else have trouble with this thing?

These cross-domain policy files seem to not work at all for Firefox but works fine for IE. I'm using the most general policy.


Code:
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="*"/>
</cross-domain-policy>
Seems to work for IE but not FF.

Anyone else have trouble with this?

FireFox Not Loading External Files-FIXED (thx Todd LaJ)
Hi everyone.

FF isn't loading my (blah blah blah) into my main movie in PC or Mac....the site

Any ideas?

fyi- nothing complicated w/preloaders, etc. BUT trying to use Adobe's newest detection scripts. Go to my site and check out source code if you think it could be an issue.

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

Flix SWF Video Files Dont Work In Mozilla Firefox Browser
http://www.kirupa.com/developer/flix/encoding.asp

The sample flix SWF video file for that tutorial does not work in the Firefox browser, but it works fine when I visit the tutorial page in IE. Is something set wrong with my Firefox browser, or is there a big problem with the flix video SWF format in Firefox? I am interested in using this technology, but it is useless to me if it doesn't work in all browsers. I would appreciate any help you could offer, Thanks!

Tyr

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 & Non-visible Question
what is the scropt to make a button visible and non-visible?

How Can I Make One Button To Make A Mc Visible. The Mc Is Not Visible In The Beginnin
How can i make one button to make a mc visible. The mc is not visible in the beginning.

Importing Files/ Opening Files In Files/ Adding Files Into Scenes.
Alright Here is the deal.
I got some movies, which are seperate FLA. files, and I want to eventually add all these 4 seperate files, into scenes in one main FLA. file. How do I do this so that I have the symbols ect. I am pretty sure you can't just copy/paste.

Which FLASH** guru out there can lead me in the right direction?


greatly appreciated...

*g.guru.

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

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