Monday, 1 September 2008

Using the loader component 2

This is a continuation of the previous tutorial: using the loader component. This Flash tutorial would be an alternative to step 3, but using actionscript instead.

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.