Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-23-2004, 12:16 PM
Junior Member
 
Join Date: Jun 2004
Posts: 1
Send a message via ICQ to Eduard
Default help

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.
Reply With Quote
  #2 (permalink)  
Old 06-24-2004, 01:22 AM
Member
 
Join Date: Mar 2004
Posts: 44
Send a message via ICQ to anhedonic Send a message via MSN to anhedonic
Default Re:help

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");
}
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 03:11 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.