PDA

View Full Version : Embed problem with as3 and flex 3


markblue777
10-03-2008, 09:17 AM
Hi all,
I have a problem with the [Embed(source = "")] function (in as3 developing in flex 3)

When i embed i do [Embed(source = "/../img/Havana.swf")]

So i am therefore goin back a directory and looking in an img folder. obviously i dont want this to happen as i want it to be [Embed(source = "img/Havana.swf")] so it looks in the current directory it is in. But when i do this it just does not find the files to embed (even though the files and folder is there) and it just crashes. Any thoughts?
Regards
Mark

rawmantick
10-03-2008, 09:30 AM
This question should go for Flex branch of forum.

The path is relative of output swf file that is your project is compiled into.

If your swf will be in the folder "MyProject/bin-debug" and picture is in "MyProject/img", then the path is
"../img/pict.jpg".