Click to See Complete Forum and Search --> : 2 flash actionscript3 questions - Classes & Text/Shape
funkdaweb
02-28-2008, 12:33 PM
1 - In AS3 is it possible to add a class to a dynamically loaded image? (like right clicking and viewing properties if it was in the library) If so can anyone point me to an example of how to go about it?
2 - Is there a simple way to convert text to a shape (break apart) using actionscript? (not using double break apart in flash)
blue-eye-labs
02-28-2008, 12:45 PM
I don't do flash any more but can't you write a class that loads an image dynamically, a kinda "img = new Image(url)"... I'm not sure about doing it in flash though.
And I think that the answer to your second point is no.
funkdaweb
02-28-2008, 12:47 PM
Ive loaded the image ok just need to assign a class to it but not sure how to as im new to AS3.
thanks
blue-eye-labs
02-29-2008, 11:44 AM
surely if you load the image into the class loaderOBJ or whatever you want to call it, then the image will have that class (I've never used AS3, mind, only AS2, and that was a while ago).