|
|||
|
Hi,
I've read everything I could find on this forum about loading images and setting base path. Still no luck. My SWF has an empty object named BACKGROUND I want to load a jpg into that object. For testing purposes I have a file: C:\background.jpg in FFish script I do: Code:
Application.setBasePath("C:\\");
Code:
BACKGROUND.loadMovie("background.jpg");
Has anyone actually figured this out or is it still a hanging issue? Thanks for reading this. |
|
|||
|
Your flash movie doesn't know what the basepath is.
I think the setbasepath is only for swfkit actions. To set the basepath for both flash and swfkit i mostly do this. in a swfkit-script that is called from the first frame of my movie Code:
Application.setBasePath("C:\\");
path = Application.getBasePath();
trace(path)
FlashPlayer.setVariable("path",path)
And in flash when I load stuff I do it like this Code:
on (release) {
BACKGROUND.loadMovie(path+"background.jpg");
}
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|