Hide Interface Elements When File / SWF Loads
Dec 5, 2009
I'm currently trying to make an application and am rather new with AS3. What I'm trying to do is hide a few elements (buttons, movieclips, etc) when the flash file/swf file loads, or at least set their visible = false untill another button is clicked to turn it visible = true.
View 1 Replies
Similar Posts:
Jan 31, 2011
We're currently developing a small Flash application to display our company's capabilties. This application will be stored on a small USB thumb drive that we give to our potential clients. When the thumb drive is accessed, users will see two folders "Media" and "Other"; and an SWF file entitled "Start." There is; however, one more file that displays: the interface/skin file that we used for our FLV videos (entitled "SkinUnderPlaySeekStop.swf"). If this file is not included in the same location as the main SWF file, the interface/skin will not display on the video.
We would like only the two folders and the main SWF file to be displayed on the root of the thumb drive. Is there anyway to move the interface/skin file into another folder (for example, the "Other" folder) and call it up from that location within the original FLA file?
View 3 Replies
Feb 16, 2009
I am having trouble figuring out how to implement TweenLite with an xml menu (jumpeye component) Im using actionscript 2 (as I figure Flash player 8 is stilll more widely used) and Im doing it in Flash CS4 with TweenLiteI have a rectangle (glass_mc) on my stage that acts as my main "window" with the menu off to one side, and both sit over a background Movieclip (stage_mc). the buttons load different external swfs into a moviecliploader. so far so good. But what I would like to do next is where I get hung up.when a button is pressed I would like to pass parameters that are stored in the xml file to the different movieclips throughout the interface.
I would like to be able to resize glass_mc to the xml specified values of height, width, alpha and color, and at the same time tween the tint of the stage_mc (again, specified in the xml). The way the component works is I have to call a function from the fla to make this all happen. Im not sure how to get TweenLite to communicate with the xml file though. or rather, Im not sure how to load the xml variables into a function that can then be read by the tween. Im stumped and I cant find any tutorials online about how to do this (Im using actionscript 2.0)
View 1 Replies
Apr 5, 2010
There are many tutes on the web on how to make interface elements, such as drop down menus, or accordion menus. The example Menu Class includes all the event listeners and functions. It invariably ends with the CLICK event function tracing some comment so you know it works. But no information on how to implement the Menu Class. So say you have a Main Document Class that instantiates a Menu Class. How can you pass the CLICK event back to the Main Document Class to do something with it? As far as I can see, the Menu Class can build the menu but all the listeners and functions for it have to reside in the Main Document Class. Or do you have to build a custom Class that extends the Event Class?
View 3 Replies
Jul 30, 2009
I have a problem with showing and hiding a link to another page. The following is the code thats placed inside cfform(format is flash).
[Code]...
View 0 Replies
Apr 15, 2011
Myapp loads an external swf and adds it to MovieClip.External swf movie has elements that are placed outside the stage (they go on the stage during swf playing). But after loading that elements are visible in the main MovieClip.In other words, it looks like the whole space outside the stage is visible as well as the stage.How to hide elements outside the stage of loaded swf?
View 1 Replies
Mar 29, 2011
I am cutting my teeth with some actionscript.My knowledge of programming and AS is limited but I am getting familiar with the language.In my fla i am using this code as a custom document class:[code]We managed to get it to preserve the aspect ratio when it detects a RESIZE event.Now, the fla file is empty. I want to use the swf this actionscript generates to call several different .flv files.The problem is, I don't know how to add functionality (for instance, a button) that is placed on top of the video. Seems the video is loaded ontop of everything else.
View 6 Replies
Feb 23, 2010
have this flash xml menu that loads external swf files like this:
Code:
<item title="ABOUT"content_path="http://mysite.com/folder1/folder2/folder3/about.swf"target=""mouse_rollover_color="0xFFFFFF" mouse_rollout_color="0xDDDDDD" />
and I have this swf file with cms that I'd like for this menu to load. Currently the swf file load external text using this code:
Code:
if (contenturl1 ne "") {
loadVariablesNum(contenturl1 + "/" + userid + "/content.txt", 0);[code].....
but when the xml menu loads this swf file its structure loads but not its data.I tried using :
Code:
this._lockroot = true;
in the loading swf main time line but it did not work.I should also mention that the dynamic data that loads onto the swf that is to be loaded by the menu, resides not in it main time line but 4 movie clips deep .I don't know if that makes a difference or not.
View 1 Replies
Jun 25, 2009
I have an animated logo swf file that loads and runs once on the home page every time the page loads. The logo has been updated to appear in three different colour schemes. I want one scheme to load and when the page is refreshed or revisited, one of the other colour schemes to load in its place. They can appear in any random order, just a different one to the one that played before reloading.Can someone point me to an answer or tell me how to do it? I have found a way in JavaScript but this only works on plain images, not swf files.
View 6 Replies
Jul 15, 2011
is it possible to hide your .swf file so that it can not be taken.Is there a way to protect it?
View 2 Replies
Jun 8, 2011
So I wanted to give a demo of my project to someone, but I encounter a problem, Im loading an external swf file, and even if I give him both files, it doesn't work.Share swf file that loads another external file?
View 1 Replies
Oct 28, 2007
I'm have a flash file which loads an xml file sub.domain.com/data.xml. It loads fine when the swf is loaded from sub.domain.com but it does not load from [URL]..It's all the same directory on the webserver. I tried using crossdomain.xml and allowed access from *.sub.domain.com. Doesn't work.
Any idea what would work? besides using php to determine the current domain (www or not) and load in the path via flashvars.
View 2 Replies
Oct 6, 2005
I am trying to create a XML file & a flash based interface which would:
A) Sort the data on the node specified (I tried, it doesnot sort correctly many times)
b) Search the XML nodes for the text the user inputs and display the data
Say he gets 5 results all five must be displayed.
View 5 Replies
Feb 11, 2008
Not sure if this is possible but it has been annoying me for the least few days. Basically im aware i can do this to instantiate a class
[Code]...
However, if i pass in a string for the SOME_VARIABLE , is there anyway i can get the above to work? If i pass a string in i either get no error, or the fact that the datatype is incorrect. Im using an xml file to build up an interface. but the value of SOME_VARIABLE is passed in from the xml file as a string. I want to be able to detrmine which class to create from this string.
View 5 Replies
Apr 18, 2010
I really enjoy flashing (I just do it for fun) but I'm very slow (read:dumb) when it comes to scripting.
Currently I want to create a site where in a region (the green textblock) your cursor disappears, gets replaced by an ecliptic mask and instead of the normal textblock, you see another textblock (red in the picture above) with hopefully hilarious changes to the original text with said mask when I'm done. When you move outside of the textblock(picture, whatever) to hit the link at the end of the page, your mousecursor reverts to the one you always have and is not hidden and replaced by the mask anymore.
I got the two textblocks done, it works fine. But for the life of me i don't know how to code that the mouse cursor is ONLY hidden in the region where the text is and not everywhere.
My script looks like this so far:
_root.maskee.setMask(_root.glass.masker);startDrag (glass, true);
Mouse.hide();
View 4 Replies
Oct 7, 2009
I'm loading data into a Flash application via XML, which is in the same directory as the swf file on the server, and would like to prevent the XML from being viewed in a browser. I was assuming I could set the XML's permissions to allow Owner and Group read and prevent Others from reading (UNIX 770), but when I do that the XML won't load.
I thought about using an .htaccess file but I don't want a password dialog to pop up when the swf requests the XML. Is there a way of doing this via permissions?
View 1 Replies
Oct 18, 2010
I am loading my SWF file onto stage. Later, I want to hide it. For movie clips, I am using the following code:
TAC_mc.visible =false;
But I can't do the same to my SWF file.
Countdown.swf.visible = false;
View 2 Replies
Nov 28, 2011
I used the code fscommand("showmenu", "false");
its woking fine with fp9 as3
but problem with fp10 as3
View 1 Replies
Sep 28, 2004
I'm trying to generate a random background and css file using an xml document. My xml structure is as such:
PHP Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<backgrounds>
<pic>
[Code]....
The problem is, I don't want to use an array like I have it right now, because then updating it is a pain. What I want to do is retrieve the xml file, count the *pic* element and take that number and put it into a variable to multiply it by *random*. I then want to display the background file in an empty mc, as well as retrieve the *name* and *location* elements and display them in a text box. D**n this sounds complicated now.
View 5 Replies
May 11, 2011
I have a photo gallery with a navigation button that allows for additional photo categories that I don't want to appear. Unfortunately, I can't open the .fla as it appears to have been created with a newer version of Flash. The code in the config.xml file is basically:
<navigation> <menu 1> <content>
</menu 1>
<menu 2> <content>
</menu 2>
etc.
</navigation>
Is there a tag I can add to make the navigation link disappear?
View 5 Replies
Jun 1, 2009
When I use Mouse.hide() function in the actions panel of my fla file it works, but if I use the same function in my class i got 1120: Access of undefined property cursor. error.
View 4 Replies
Dec 4, 2009
If it's possible for Flash to read an XML file and look for element names rather than using myXML.firstChild.firstChild.firstChild; etc? So say I have the following:
Code:
<music><song>Song 1</song>
</music><food>
<curry>Tikka</curry>
</food>
Rather than using "firstChild.nextSibling" etc to navigate itself to the Food element, is there a way to just have something like "find the food element in the XML and return its childNodes"? It makes more sense to me this way because then it doesn't matter how you structure your XML file. And if you change the XML structure later on.. you don't then have to update the Flash as well. My reason for this is i'm using Expression Engine CMS and want to pull the data from that into Flash.
View 1 Replies
Aug 14, 2009
I have have applied the progress bar from the componets panel in Flash CS3 using AS2 and I have been able to make it function: however, I have not been successful in getting the progress bar to unload once my file loads. I have tried a couple of things like using an if statement and the unLoadMovieClip but I seem to be wording the code wrong because neither have worked at all, they even have cancelled out all the other code. Here is my code:[code].......................
View 3 Replies
Nov 22, 2010
I have a video player swf which loads in a flv file via flashvars. This works perfectly, but when it reaches the end it loops ie Goes back to start and plays again. This only happens when it is embedded in a page because when I press cntl+Enter to preview as swf alone it works.
[Code]...
View 2 Replies
Mar 23, 2011
I have one Swfloader. This swfloader loads file A.swf.On creationComplete event, File A.swf loads another swf(file B.swf).
Everything works fine when I run the application once in the same machine.But when I run two or more instance of the application, the first works fine (both file A and B are loaded) but the second swf (file B) is not loaded by file A.why the first swf (file A) doesn't load file B, when the application is running in multiple instance ?
View 1 Replies
Feb 7, 2010
how to load images from an xml file into my flash file. I want to make something very similar to: [URL] So that it has a next and previous option. All my images will be exactly 128x128 pixels (png files), but there could be any number of them.
View 1 Replies
Apr 5, 2011
I will be creating a UI that loads an xml file. The UI will allow the user to edit some questions and categories that are found in the xml. (UI pulls data from xml). Will this require use of php and mysql? Is there a way to do it without using a server side language-say I want this to run standalone..not online....
View 3 Replies
May 31, 2004
Got a movie that loads some variables from an XML file. The content of each XML.node fills the corresponding dynamic (on the fly) recipients (mcs).
I know how to do this once, not using a for (loop) basic parser, so, I got stuck with this simple code while I was trying to "make it" with a "loop" parser.[code]The idea is to have 2 buttons that change the number of the array sothat I can access the next XML.node without having to write all the code again, neither the dynamic recipients -movie clips- nor the parser. Can't I make a function from all of these sothat I can call it later?
View 1 Replies
Nov 1, 2005
I am trying to figure out how to run a php file when a flash file is opened on a site or ran. the php file has no output or anything to do with the flash, it just needs to be run to update the mysql database. I need the script to be run from my site even if the flash is on another site, but i do not want to show that it is being run. I want it to be a hidden thing. Is there any way possible to do do this with flash?
View 2 Replies
Jan 16, 2011
For some reason, gotoAndStop isn't working when I call it from either the main timeline of my main classes constructor. I'm guessing I need to call it once everything has loaded - but I don't what what event to fire it off on, besides a timer, which just seems bad.wrote this back when I still used the timeline and am trying not to have to rewrite it - it works, it's just hard to work on.
View 1 Replies