I'm making a yearbook for my school and I have A LOT of information to be shown on it (in case you were wondering, its a digital year book lol). Theres a certain page that has all the headshots of all the students, and when the picture is clicked, a new scene opens with the information on the student (along with fancy opening animations). Firstly, is that the easiest way to do it, or can i have an overlapping MC that appears over the pictures, fading out or blurring the background, then click an X to shrink and fade out and unblur the background...Secondly, is there a way to create a template thingo for this MC or scene so that it can automatically read data from an xml or text file and place it in the appropriate position for that name. For example-the text would look like this
Below, I will copy the code I am using and I have placed to .fla file and images online, but I cannot place the link here (don't have enough posts yet), so ask me if you want.he script runs perfectly and loads its parameters from the "hardcodedXML" variable. This way, however, whenever the images and their information need to be changed, someone with knowledge of flash and AS will need to open the sourcecode and alter the "hardcodedXML".I am currently assigned to make a renewed website for my employers and would like to enable them (no knowledge of flash or AS whatsoever) to edit the contents of the scroll box. The easiest way for "dummies" is to have a .txt file in the same directory, that contains the stuff that is put in the "hardcodedXML" right now.My actual question/problem: how can I create a txt file that is read by the script, to store the string in "hardcodedXML" (the current string that is hard coded looks like "<photos>...</photos>".I've tried searching Google, but didn't come up with anything.
I am currently trying to modify a hangman game I found on here (URL...). I'm not very good at actionscript and hopefully this will be a good exercise to learn more - I really want to learn how to make games. I have seen hangman games that include clues for words, but the only games I can find that I can read the source in don't have a clue field, and pull the words from an external .txt file. Is there a way of also pulling phrases to be as clues from these files? I could just create another .txt file and make it a new variable, but of course I would have the problem of it not matching the word. I hope i made sense.
A friend of mine has a Flash Action script running on a LAMP server that currently reads an xml config file. He's asked me if it's possible to remove the xml file, and replace it somehow with a system (lets call it an 'auto xml generator') that intercepts the request to read that file and generates an output, so it appears to all intents and purposes as if the file still exists and contains the contents that has actually been returned from our auto xml generator'
I have a dynamic text instance in Flash named dynamic_txt and I want it to display information from a php file. What command allows me to do this? Here is the code:
PHP <?php print "dynamo_txt=DYNAMIC"; ?> ActionScript (2.0) var my_lv:LoadVars = new LoadVars(); my_lv.onLoad = function(success:Boolean) { if (success) { //Here is Where I want the command that will allow Dynamo_TXT to display the String // From the PHP File }; my_lv.load("cars.php");
I try to read a txt file and split the content into variables, I use the following:
var fileURL = fl.browseForFileURL("open", "Select file"); var str = FLfile.read( fileURL);
the problem is the str get the whole test file, if the text file has multiple line,can I read the file each line by line, such as a function like readLine or something,so the str only get information for each line?
I am trying to read a simple text file. Nothing seems to happen. From the code below, I only see 'loading' and 'loaded' in my trace. I get the same results even when I change the file name to something that does not exist.
Note that I am compiling my code by using mxmlc from the command line as follows:
I am setting up a page that will read in data from an xml file. Text on the page will de read from the xml file and siplayed on the screen. I am also reading a website in from the xml file that I would like some of the the text to link to. Everything is reading in correctly, and displaying correctly, but I can't seem to get the text link to work.
I have inherited a AS2 project and it currently uses XML to store the text strings. I really want to switch it to ini.The ini file formating looks like this:
Code: TEXT="ladi da di da" ANOTHER_TEXT_STRING="more ladi da di da"
I need to read a text file from a server and then it puts the text from the text file into the text area of my choice. And also, how do I make a variable for a text thing I made with the text tool?
I have an ActionScript driven flash project that displays a sequence of images. Currently I am using an array with the names of the images. Is there any way I can open a text file for reading and populate the array. Otherwise I would have to keep compiling the SWF each time.
How I can save data to a .txt file. This .txt file will be stored on the same server that the flash file is stored on and is executing from. I want to, later, be able to access the data previously stored on the .txt file from my flash movie.
There is some way to make the flash put the content of one text file in a string, or at least put it in the .swf, so the user don't need to download it?
Is there any hook to react to a user drag and dropping a text file onto a browser? If the user drops a text file onto the browser with my page loaded, I'd like to be able to open the contents of the text file using javascript. I don't think this is possible, but just checking.
Is something like this possible in flash?
As an alternate, the user could specify a file path for me, then I could open the text file and read it. Seems like this is a security risk and probably won't be allowed, but just checking. It looks like this is possible with flash 10?
Writing a couple of vars to a txt file is relatively easy.I store them as .sql (sort of) layout, so that i can import them into mysql later.But obvious this is not necessary..
The thing i am struggling is how do i read these vars back into flash[code]...
when the flash file reads text from a xml file, the font display is unclear. when the text is embedded in the flash, it appears clearly
problem in detail -
i am unable to resolve this problem despite my best efforts. see '~about.fla'. it has been decompiled from a swf file as the original source code was not available (can this be causing the problem?). the xml folder resides in the same folder as '~about.fla'. it contains 'about.xml'. you can download these files at [URL]
i discovered a problem - if you view 'about.swf' - when you click on 'history' link, you can see that the text is distorted. this text is read from the xml file. but is you click on the 'key people' link, you can see that the text appears perfectly. this text is embedded in the flash itself.
i have given the screenshots 'text is unclear.jpg' and 'text is clear.jpg' to further explain my query.
I would like to see a line of a text file on the frame that I want (and view it in a dynamic text). This is my text file: Foo Candy Bar Dog
This is my code in the first frame: var myTextLoader:URLLoader = new URLLoader(); firstLine.wordWrap=true; firstLine.autoSize=TextFieldAutoSize.LEFT; myTextLoader.addEventListener(Event.COMPLETE, onLoaded); function onLoaded(e:Event):void { [Code] .....
With this I can see "Foo" in the first frame. How could I see "Candy"? a second frame. Is it repeated all this code again? Is there any way to just invoke the Lines array: Array = e.target.data.split (/ n /) And obtain the desired Item?
I am creating a CBT course using Flash CS4 As3. I need to capture progress information from the user as they complete each unit in the course so that the next time they access the course they can pick up where they left off. To do this I need to know how to write and retrieve this information to and from a text file or a cookie so that it can be retrieved re-enters the course.
i am unable to resolve this problem despite my best efforts. please see '~about.fla'. it has been decompiled from a swf file as the original source code was not available (can this be causing the problem?). the xml folder resides in the same folder as '~about.fla'. it contains 'about.xml'. you can download these files at discovered a problem - if you view 'about.swf' - when you click on 'history' link, you can see that the text is distorted. this text is read from the xml file. but is you click on the 'key people' link, you can see that the text appears perfectly. this text is embedded in the flash itself
best way to read in like 200k words and have them each tween from the center of the screen as small dots and tween up to the word filling the SWF then "fly through my head" not literally, but you probably get it...
I know of some of the workarounds to prevent the double line spacing when reading dynamic text files.
The 'oll line 1 line 2 line 3
[code]....
Anyway...I know that you can type the text in Word and then save it as plain text with the CR/LF changed into either CR or LF.For me it works fine and so will it for most of you.I'm writing a website for a firm who has someone to update the textfiles the site is reading. She is cute, but I want to make the darn thing fool proof of course. So isn't there a way to read the text file, search for double linefeeds and skip it before it is placed into the textframe? Just to tell her to type the info into notepad and then WYSIWYG? (It's going to be code-free, so no bold, italics etc.)
I have a rotaing menu that loads in images from an xml file, I would also like it to load in text info from the same xml file to the left side of the images that load in. In my main .fla have created a movieclip and called it 'textInfo' and inside that I have two dynamic text fields called 'headerText' and 'bodyText' where I want to load the text in. this is what I am using to loading in the text in my actionscript, is this correct?
Created an mp3 player that works fine, but i need the track name, artist name, track timer, to be shown aswell?and i dont have a clue how do go about doing this.