Solved

action script, reading an exteranl text file into flash

Posted on 2011-02-25
2
347 Views
Last Modified: 2012-06-27
Reading an external (text or png) files into flash.
0
Comment
Question by:amielDorel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Learn how to use the remote presentation tool in Prezi to allow you to harness the power of this cloud based presentation platform. You can show your presentation with a remote audience using this free tool.

738 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