Solved

action script, reading an exteranl text file into flash

Posted on 2011-02-25
2
341 Views
Last Modified: 2012-06-27
Reading an external (text or png) files into flash.
0
Comment
Question by:amielDorel
  • 2
2 Comments
 
LVL 16

Accepted Solution

by:
sjklein42 earned 500 total points
ID: 34982502
This is an except from code to read in an image file and display it (at x=123,y=456):

var myImageFileName = 'myimage.png';
var myImage_mc = this.createEmptyMovieClip('myImage', this.getNextHighestDepth());
myImage_mc._x = 123;
myImage_mc._y = 456;
myImage_mc.loadMovie(myImageFileName);

Open in new window

0
 
LVL 16

Expert Comment

by:sjklein42
ID: 34982525
To read a text file into a variable, you can use the LoadVars function.

Here is an extended discussion of all the ways you can do it:

http://www.actionscript.org/resources/articles/46/2/LoadVariables-and-LoadVars-Objects/Page2.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Adobe InDesign Creative Cloud 2015 Crashes After New Update 3 1,012
flash in chrome 4 83
Actionscript in Flash 3 44
word is recognized as adobe and adobe as IE files 14 6
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
Learn the basics of inputting and editing your text components in Prezi. We will cover how to set styles, position, and group your text components. In your Prezi editor, click anywhere on the canvas to add text: A flashing cursor informs you that yo…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now