actionscript 3 - how to override base path parameter inside flex application -


i'm having difficult time solving absolute/relative path issues.

when using as3 , embed swf via swf object js, 1 of parameters being transferred embed js function "base=http://www.mydomain.com" needed in order load external widget application.

now, loading external assets styles.swf placed locally on client side, , when i'm trying load these assets error don't found in http://www.mydomain.com/.

for example:

stylemanager.loadstyledeclarations("styles.swf"); 

error:

can't load http://www.mydomain.com/styles.swf 

is possible somehow load styles.swf local assets??? i've tried use

stylemanager.loadstyledeclarations("../styles.swf"); stylemanager.loadstyledeclarations("./styles.swf"); stylemanager.loadstyledeclarations("/styles.swf"); 

but none of them works...

thanks

if base http://www.mydomain.com, think you're stuck (so relative urls relative location).

you can current swf url through application.url resolve url directly (also see references externalinterface , browsermanager in so question).


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -