Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-17-2004, 05:02 AM
Junior Member
 
Join Date: Oct 2004
Posts: 19
Default sharedObject() help!

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
Reply With Quote
  #2 (permalink)  
Old 11-17-2004, 11:21 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:sharedObject() help!

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");
Edit the laodmainmovie script in swfkit like this
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);
All the two means make the main movie have a fixed path name. If the path name of the main movie is changed, it cannot access the sharedObjects. Generally, A swfkit app extracts the packed movies to a temporary folder, but the temporary folder is changed every time you run it.
Reply With Quote
  #3 (permalink)  
Old 11-18-2004, 12:21 AM
Junior Member
 
Join Date: Oct 2004
Posts: 19
Default Re:sharedObject() help!

ok . will try that one. thanks! :'(
__________________
canned_tooth
Reply With Quote
  #4 (permalink)  
Old 11-18-2004, 06:54 AM
Junior Member
 
Join Date: Oct 2004
Posts: 19
Default Re:sharedObject() help!

Quote:
Originally Posted by topcmm
All the two means make the main movie have a fixed path name. If the path name of the main movie is changed, it cannot access the sharedObjects. Generally, A swfkit app extracts the packed movies to a temporary folder, but the temporary folder is changed every time you run it.
ok does this means that the path is changed, it cannot access the sharedObject?

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
Reply With Quote
  #5 (permalink)  
Old 11-18-2004, 07:17 AM
Junior Member
 
Join Date: Oct 2004
Posts: 19
Default Re:sharedObject() help!

the second one is now working... will work around with it now. thanks!

will post updates.

cheers!
__________________
canned_tooth
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 03:33 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.