Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-06-2007, 02:46 PM
Junior Member
 
Join Date: Aug 2007
Posts: 2
Default Base path

Hi.

I want to set the base path to an http server. Is it possible?

When I do:
Application.setBasePath("C:\\"); // Works fine
Application.setBasePath("http://myserver/"); // Doesn’t work

I need this because I want to have a local file (exe projector) that loads a swf from an http server. That swf has components that are linked with a shared library by a relative path (something like ../library/library.swf). The problem is that the file tries to load the shared library from the local disk instead of the http server.

Thks.
Reply With Quote
  #2 (permalink)  
Old 08-07-2007, 09:59 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Base path

The setBasePath method is only for local path names. Please tell us which edition of swfkit you are using, swfkit express, swfkit, or swfkit pro. We will add a new method for you.
Reply With Quote
  #3 (permalink)  
Old 08-07-2007, 10:15 AM
Junior Member
 
Join Date: Aug 2007
Posts: 2
Default Re:Base path

Hi.

We are using swfkit pro v3.

Thks.
Reply With Quote
  #4 (permalink)  
Old 08-07-2007, 11:30 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Base path

Sorry, no method need to be added. The following code in the "initialize" script will work well

Code:
FlashPlayer.base = "http://www.xxxsite.com";
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 04:31 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.