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.


  COPYRIGHT © 2014 · ILIKE2FLASH · Theme by Ourblogtemplates

Back to TOP