PDA

View Full Version : dynamically importing images


krazyjl
05-02-2002, 03:03 AM
is there any way to use flash to dynamically import an image? i.e. is there some function that will create a new clip with the image (not initially in the flash file) in it?

kinda like loadVariables but with images

Billy T
05-02-2002, 03:24 AM
only in MX

krazyjl
05-02-2002, 03:50 AM
how do you do that in MX?

Billy T
05-02-2002, 04:11 AM
think you just do it like your loading in an external swf

loadMovie(blahblah.jpg, etc);

krazyjl
05-02-2002, 05:12 AM
sweet thx a lot. i was afraid flash couldn't do this and my whole project woulda bee stuck:D

it works on flash 5.0 too btw

Billy T
05-02-2002, 05:15 AM
Originally posted by krazyjl


it works on flash 5.0 too btw

you sure about that?

krazyjl
05-02-2002, 04:31 PM
yeah, loadMovie command. it's not in the documentation but it worked

Billy T
05-02-2002, 11:30 PM
well I just did a test and it didn't work for me so I dont know whats going on...

can you send me an example?

billy@tableau.com.au

krazyjl
05-03-2002, 01:49 AM
i just put

loadMovie("test.jpg", testClip)

in a ifFrameLoaded() event... i found out certain jpegs won't load for some reason, i can't tell why.. don't know if this problem was fixed in MX

if its not working you might wanna try different jpegs