Using the loader component – Actionscript
Step 3
Give your loader component an instance name so the component can be controlled by actionscript. This is used instead of the entering a filename in the contentPath. I used the instance name: “myLoader”.

**If you have any file name contentPath parameter, be sure to remove it.
Step 4
On the timeline right click on the first frame and select actions. And then enter the following code:
myLoader.contentPath = “yourfilename.jpg”;
*Change the “yourfilename” to whatever you filename is called.








0 comments:
Post a Comment
Welcome to ilike2flash! If you like this post you can subscribe here to get updates via RSS or opt to have them sent directly to your inbox .
I appreciate your feedback, so please feel free to comment.