Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2008, 05:05 AM
jon jon is offline
Junior Member
 
Join Date: Sep 2007
Posts: 25
Default Application.getBasePath() problem

Hi
I cant seem to get Application.getBasePath() to work. In the example below, path comes up as undefined. I've tried a few things with where i call the code from and whether i'm preveiwing or building the app.

Code:
path = Application.getBasePath();
Dialogs.msgBox("path = " + path);
I'm at a bit of a loss.

Jon
Reply With Quote
  #2 (permalink)  
Old 02-07-2008, 02:09 PM
Member
 
Join Date: Nov 2007
Posts: 46
Default Re: Application.getBasePath() problem

if you mean to get the application dir, you should use this code ;D:
Code:
var path = getAppDir();
Dialogs.msgBox("path = " + path);
Reply With Quote
  #3 (permalink)  
Old 02-07-2008, 02:35 PM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default Re: Application.getBasePath() problem

My question would this work as well?

var path1 = getAppDir();
Application.getBasePath() = path1;
Dialogs.msgBox("path = " + path1);
Reply With Quote
  #4 (permalink)  
Old 02-07-2008, 06:57 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Application.getBasePath() problem

That method is used to set the base path of the flash player, whose default value is undefined. If you want to set its value, please use the setBasePath method.
Reply With Quote
  #5 (permalink)  
Old 02-12-2008, 11:02 PM
jon jon is offline
Junior Member
 
Join Date: Sep 2007
Posts: 25
Default Re: Application.getBasePath() problem

Thanks guys
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:58 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.