Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-17-2002, 12:07 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default [quote]Using local shared object

flash.pro says:

Quote:

I'm using the local shared object to save some info about the user on the computer of the user. When a user restarts the application this information should still be available (just like cookies in a web-browser).

In the Flash authoring environment it works fine, even exported as a .swf it works fine and also when i create a projector the old fashioned way.

But when I'm creating a projector file with SWF kit, it does not work. It deletes the local shared object file every time (it does not retreive the info saved with this function). Is the local shared object not supported by SWF kit? Or should i use a different approach when use SWF kit?

Greetings,
Flash.Pro
webmaster@flashpro.nl
http://www.flashpro.nl
Reply With Quote
  #2 (permalink)  
Old 12-17-2002, 12:08 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: [quote]Using local shared object

Sorry we haven't found any method to make it work: if the swf file was packed into the output exe, it is extracted to the variant temporary directory every time you launch the exe. The swf movie in different path owns different shared object.

If you still want to use shared object with SWFKit, you should uncheck the "pack movies" option in the "Add movies and set icons" dialog.
Reply With Quote
  #3 (permalink)  
Old 12-17-2002, 12:08 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: [quote]Using local shared object

You can also save user info in another way: use the Windows Registry. SWFKit provides a "RegKey" object as well as a pair of "readProfile/writeProfile" methods.
Reply With Quote
  #4 (permalink)  
Old 12-21-2002, 01:12 PM
Junior Member
 
Join Date: Dec 2002
Posts: 2
Default Re: [quote]Using local shared object

even unchecking the pack movies is not supporting the
shared objects.

Still anywayz to go..
Reply With Quote
  #5 (permalink)  
Old 12-21-2002, 02:13 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: [quote]Using local shared object

It works. Just keep the movie always in the same path. In SWFKit 1.0, you must unckeck the "pack movies" option. In SWFKit 1.05, there is another way:

SWFKit 1.05 can pack addtional files and extract any file dynamically. You can add the movie into the "Addtional files" and extract it to an unchanging path every time.
Code:
var dest = "an unchanging pathname";
//extract the movie
var path = getAdditionalFile("a movie.swf");
//copy the movie to the specified path
var file = new File(path);
file.copy(dest);
//load the movie
FlashPlayer.movie = dest;
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:54 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.