Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-11-2005, 05:57 PM
Junior Member
 
Join Date: Apr 2005
Posts: 2
Default loadMovie and setBasePath issue

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:\\");
In Actionscript:
Code:
BACKGROUND.loadMovie("background.jpg");
Doesn't work. Tried absolute paths, relative paths, pack movies / don't pack movies in all different combinations. No luck.

Has anyone actually figured this out or is it still a hanging issue?

Thanks for reading this.
Reply With Quote
  #2 (permalink)  
Old 04-12-2005, 07:29 AM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re:loadMovie and setBasePath issue

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");
}
Reply With Quote
  #3 (permalink)  
Old 04-12-2005, 02:20 PM
Junior Member
 
Join Date: Apr 2005
Posts: 2
Default Re:loadMovie and setBasePath issue

thanks lots.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:52 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.