Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-02-2008, 12:30 PM
Junior Member
 
Join Date: Oct 2008
Posts: 7
Default Problem with setBasePath... lost whole day

Hi,
I've tried everything, but still haven't found the way to make this script work. I have a function in my Flash like....
Code:
function playIt(file){
	snd=new Sound();
	snd.load(urlReq);
	snd.play();
}
playIt('some.mp3');
Everything works fine if I attach 'some.mp3' to myApp.exe . But when I want to change the directory with setBasePath... it just doesn't want to work. I've tried everything, this...
Code:
Application.setBasePath(getAppDir());
and this...
Code:
Application.setBasePath(getAppDir()+'\\');
even this...
Code:
Application.setBasePath(Folder(getAppDir()).path);
... but it doesn't work. To say nothing about trying what I really need, it's
Code:
Application.setBasePath(Shell.getSpecialFolder('appdata'));
The only thing works fine is...
Code:
Application.setBasePath('C:\\');
And if I place 'some.mp3' to C: drive. What can be the reason?

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 12-02-2008, 12:46 PM
Junior Member
 
Join Date: Oct 2008
Posts: 7
Default Re: Problem with setBasePath... lost whole day

Ok. I finally got it. The problem is setBasePath and foreign language names of folders. I have no idea what to do now... as it is impossible to fix it.
Reply With Quote
  #3 (permalink)  
Old 12-03-2008, 09:48 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Problem with setBasePath... lost whole day

The method doesn't work if the base path contains some special characters. It's a problem of the Flash Player, so there is nothing we can do. A solution is to use absolute path names.
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 05:29 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.