|
|||
|
hi. its the sharedObject() problem again. i just wanted to ask for the second time how can a swfKit.exe can getValues stored by a flash.exe's sharedObjects.
am sorry but i cant use the dataObject because am not using both published on swfKit.
__________________
canned_tooth |
|
|||
|
There are two ways
1. Don't pack the movies 2. Create a loader for the main movie, pack the main movie in the attachment list. When the loader is launched, extract the main movie to a fixed folder then load the main movie. Suppose the loader is load.swf and the main movie is main.swf, add the load.swf to movie list and add the main.swf into the attachment list. You can check both the pack movies and pack attached files options. In the frame 1 of the load.swf, add the following AS Code:
fscommand("FFish_Run", "loadmainmovie");
Code:
var mainmovie = getAdditionalFile("main.swf");
var dest = Shell.getSpecialFolder("program files");
dest += "\\common files\\myshared";
new Folder(dest);
dest += "\\main.swf";
var f = new File(mainmovie);
f.copy(dest);
FlashPlayer.loadMovie(0, dest);
|
|
|||
|
Quote:
this is what i have done, tried those 2 but still doesnt work. i have tried creating 2 swfs that shareObjects. i tried relocating 1 swf to different folder which didnt work out.... but placing a localPath will to both swfs do work. (e.g. myData = sharedObject.getLocal("course_info", "/") .i did even try publishing the swf that collect the data to swfKit, it creates a folder and launching the .exe generated from swfKit doesnt work. tried launching the .swf on the same folder and it can access the sharedObjects. or i was confused on the 2nd solution and i messed it up. hoping for help. thanks.
__________________
canned_tooth |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|