|
|||
|
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!!! |
|
|||
|
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. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|