|
|||
|
I got a problem with such a function: in Flash program it is called on(press){
getURL("index.html","_blank"); } it is a relative address, and when I make in swfKit program "exe-file" from "swf-file" with {on(press){getURL("index.html","_blank");}) code on the button, then IE-browser does not find the page we need (index.html) and places http://index.html, though we need the relative path on the needed disc or CD-disk. Please, help me to solve this problem, if it's possible. |
|
|||
|
try something like (in your initialize script)
var path = getAppDir(); //gets the directory your exe is in. FlashPlayer.bindData("url''); //allows swfkit 'talk' to that variable in your flash. Flashplayer.url = path; //changes flash variable to path variable. FlashPlayer.updateData(false); //updates the variables return true; //make sure you have this line at the bottom otherwise it'll fudge your application then in flash you would have something like on(press){ getURL(path+"index.html","_blank"); } |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|