ActionScript 2.0 :: Load External Dynamic Source Name
Mar 5, 2009
I have a very Simple Flash Player built in AS2. FlashCS3 I want it to load one external movie from root folder. BUT! i don't want to load a specific file name. I need the player to load whatever the file names. for example: if my file name is: Video.swf i want the player load it. and if i change the file name to video2007.swf it will still be able to load it.
I'm using this example [URL] at the moment, using buttons to feed text into a dynamic text box. What I've done is changed it to 'on (rollOver)' when the text pops up, and what I'd like to do is have a on (rollOut) and have it load a blank.txt so the text dissapears when you move your mouse away.
i have a Air Project in which i have added three extenal source folders. but when i reopen project or strat flash builder again i get icon on those folder like this but when i open the configuration for that project and try to validate the path and adding it again i get message like this but the path is valid. proof is this pic what could be possible error,,, is there any way that i when ever re-open project i get no warning and able to navigate through the linked source code. now i am doing it
I created a dynamic text box and gave it the instance name "body" however i loaded the text from an external source using one of my classes. how do i reference the dynamic text box on the stage from my class???
I am trying to load an external swf from a dynamic scrolling textbox?I manage to only to get it to work by loading it as an .html page, but I want it to load in the main page. I tried _parent, _self, and _top I see no difference in using any of them. All of them are making the swf load into a blank html page.
I am using the render as html option. Any ideas on how to make a pop-up window from a dynamic scrolling textbox?
I have this Simple Flash banner, that loads text, colors, and entire banner hyperlink from external .txt file into flash.For importing text into dynamic text fields with �vars� set i use
Ok So everything works nicely. I load flash i load text, and i also load hyperlink. So after a happy job i went to sleep and other morning i tried to enter website with HTML code, that shows flash and i noticed:
1. Some times flash loads animation, but doesn't load my data.txt and places where dynamic text should be are blank, also hyperlink doesnt work, because it also seems to fail to load.
2. So i press "Refresh" on explorer and data loads perfectly.
3. So i keep pressing refresh some times try to turn of explorer and i noriced that some times it fails to load data and only non dynamic flash animation is played, and some times it loads it nicely.
Allow me to briefly sketch the situation i'm in; On my stage i've got a collection of movieclips, each has an unique name. These MC's represent regions of a country on a map.
The most basic task i'd like to achieve is when the user mouse-overs one of these regions, it displays some relative info on the region (Name, size, population etc)
I was thinking about storing this info externally from the fla/swf itself. When the swf lauches it would retrieve the corresponding info for each region.
Having this data outside the swf would make editing and upkeeping it more easy.
I'm leaning towards looking into an XML-file to do this ? (SQL sounds neat but i have no expirience with it)
The Swf would be hosted on a site, but i see it evolve as an AIR-app in the future.
Im making a component for a companies wesite, it is simple enough they want a list of phrases to be displayed one at a time in random order... not a problem. Its just that they want to be able to update the phrases themselves = external txt file to populate the array. I dont work with arrays often enough so I was wondering if someone could tell me the way to populate an array using values in an external txt file.
Im making a component for a companies wesite, it is simple enough they want a list of phrases to be displayed one at a time in random order... not a problem. Its just that they want to be able to update the phrases themselves = external txt file to populate the array.
i'm new in flex.Here is my problem [code]i want to make source path dynamic.i mean i collected userName and albumName from php and i could print in flex.But when i use in source like this this way source="../../user/{userName}/{albumName}/album/{data}".
How to load variables from an external source? For example, Lets say I have a movieclip that contains 6 keyframes, and I want flash to load the proper keyframe when the main swf is opened. Flash knows what the proper keyframe is, because that variable is stored in a MySQL database, or txt file, or xml file, or whatever. Also, how could i have flash write to an external file, so that i can save the changes.
Using Flash CS4 professional And Action-script 3.0 I am currently working on an mp3 player in flash.I have my main fla file in my root folder.Also in my root folder is a folder names 'source_files'Inside the 'source_files' folder there is.A folder named 'songs' (which holds several mp3 files) and a text file named track_list.txt The text in track_list.txt is set out as follows (example values used).
//song1 //song2 Where '//' represents the start of the name of each song.
From within the project I have a code that loads track_list.txt and uses the split function to split the loaded data into an array before adding 'source_files/songs' to the beginning of each index of the array.
I created a Jing video to describe my problem. In short, I'm not sure how external AS3 scripts are supposed to referenced, though I did get it to work in AS2 years ago.
I'm trying to have Flash execute a file, and I can get FSCOMMAND to work. Sort of. While I can use it to run a single batch file, what I really need to do is to pass a parameter from within Flash to the item being executed. I'm currently using Flash to allow a user to select some items, and I need to pass that selection out of it in order to kick off some other processes (Flash is basically just my GUI interface right now until I learn more about how to do things in it).
I don't care if it's a batch file or JavaScript or anything that's not uber complex (so no .NET or C++). I just need to find something that we can run internally for our company (either from an .HTML or a .EXE file output from Flash - not too picky there either).
i am having a problem when reading text form an external txt file into a textbox, the problem is that when i test/ debug my movie on my local computer the text displays from the file but after i have uploaded to my server and try and view it via the internet no text appears
Code: var urlhome:String = "homeText.txt"; var loadit:URLLoader = new URLLoader();
I have a question about setting up an image array from an external source. I have the following action script and would like to edit it so that it reads from an external file. Either TXT or XML. how to edit the array action.
I wanna design a custom scroller kinda like the on... [URL] (right below the word welcome) I don't want to use the dull custom built in version MX provides cause lets face it, its ugly! and I'd like it to be linked to an external text document. I see this all over the place, so I'm pretty sure this is possible! Point me towards a tutorial or post an .fla with an example or something, I'm guessing a few other people may be interested too!
I use loader to load page source of a webpage [code]...
When I used hadleResponse function to handle Event butI only loaded a part of page source. Now I want to load all page source such as when we click right-mouse to firefox and select view page source.
Is there a external-source-path option available in Flex compiler similar to external-library-path? My requirement is that, I am building a "SWC" file but I don't want to include certain folders inside my 'src' folder as these are anyway available in my other application during run time. (Trying to be resource constraint). So, I want to use these folders during compilation but do not want to include them in the generated "SWC" file.
Possible to load an array from a external data source. I.e. like from a .txt file? I tried putting this in the external text file: mytest = new Array("dadada") It loaded, but not as a array, just as text. I am using LoadVars.
In a very simple first AIR application (I'm using Flash Builder 4.5), I am trying to accomplish the following on my MacBook:
Read a local file (JSON format) into the AIR app. Parse through the file. Display some selected contents in a grid.
That's it.
I've found an example that does some simple JSON parsing in Flex, but the problem is that it loads the JSON source from a remote web site.
So do I need to load any file-specific libraries to make this work in AIR? Or can I simply refer to the file by using the Mac file-path? I just want the local file to be the JSON source. The parsing is already taken care of.
how to layer photos imported via an external source (XML) with other art elements? The imported XML photos always seem to arrive on top of anything else no matter what layer your XML code keyframe is on.