Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-08-2005, 03:21 PM
Junior Member
 
Join Date: Aug 2005
Posts: 11
Default I'm new / file help...

First of all this looks like a great app, cheers guys.

Right I’m new, so excuse my, well lameness..! I'm struggling for time as ever, BUT want to get my head round this AS MUCH as possible.

Basically we have an application that downloads an xml file and documents for a server (keeping the clients files 100% up to date). This above is already built, and I’m working on the GUI and flash side of things.

I just wanted to know, can I open files, NOT contained within my project?
Presumably its:

•Shell.open(getAppDir()+"\\fscommand\\urFileName") ;
What’s the "\\fscommand\\urFileName" bit?

Also, if I want to send a file to a script in SWFExpress, eg

on (release)
{
fscommand("ffish_run", "openMe");
}

How can I send the arguments to SWFExpress for this command?

Eg my buttons in flash in the past would have worked like so:

on (release)
{
What_ever_Function_to_Call_inFlash(this._name);
}

So how would I send this._name to my command “openMe”

If this make no sense then excuse me as I have a blinding cold / headache at the moment, maybe I’ll re-write when I can think straight!!!
Reply With Quote
  #2 (permalink)  
Old 08-09-2005, 01:46 AM
Member
 
Join Date: Sep 2003
Posts: 95
Default Re:I'm new / file help...

Hi,

getAppDir will return where your application is being run from (e.g. C:\Run From Here\). You can then append whatever you want to the end of it. Bear in mind if you are Previewing the project it possibly won't behave as expected.

If you want to run a file from another location (e.g. Program Files) then I'd recommend using getSpecialFolder and then appending the relevant information.

Or you could hardcode a location. But that is not a very flexible solution.

To send arguments you have to set variables in the Flash file itself, and then use the Flashplayer object in SWFKit to bind / access them. Or just use get / setVariable.

All of this is covered in the Help section, but if you have any code that needs debugging please feel free to post it here.

Cheers,

G.
Reply With Quote
  #3 (permalink)  
Old 08-09-2005, 08:50 AM
Junior Member
 
Join Date: Aug 2005
Posts: 11
Default Re:I'm new / file help...

Cheers, G

All I need to do now is shift this cold!
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 01:53 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.