Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:25 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Flash Shared Object Support in Flex
PostPosted: March 31st, 2010, 4:17 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi,

Is it possible to use the Flash Shared Object in Opus Pro v7 Flex?

The Opus Pro v7 help guide refers to new features in Flex including Shared Object support in Flex, using an ActionScript template. Not sure how to access the Actionscript template mentioned? I tried using conventional ActionScript in a script object in Flex. It entered without error messages, but in preview, the script showed an error (unidentified identifier for 'SharedObject').

If Shared Objects can be used in v7 Flex, can someone suggest how to set-up and script a basic shared object?:
(1) to create the SO
(2) to write a test item of data to it
(3) to read a test item of data from it back into a Flex pub

This would be very helpful: I could then try out a test project.

Here's some more information on SO's in ActionScript: http://www.kirupa.com/developer/actionscript/shared_objects.htm.

Kind Regards,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Flash Shared Object Support in Flex
PostPosted: April 1st, 2010, 10:13 am 
Offline
User avatar

Joined: October 25th, 2004, 10:33 am
Posts: 257
Location: UK
Opus: Pro 8
OS: Windows 7 Professional x64
System: Dell XPS15 i7x4 2.1Ghz 6GB 128GB SSD
Yes.

To save something to a shared object:

Code:
var so = SharedObject.getLocal("nameofcookie")
so.data.value = OPUSVARIABLE
so.flush()


To load data from a shared object:

Code:
var so = SharedObject.getLocal("nameofcookie")
OPUSVARIABLE = so.data.value


You do not have the required permissions to view the files attached to this post.


For this message Dave Emberton has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Flash Shared Object Support in Flex
PostPosted: April 1st, 2010, 12:28 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi Dave,

Thanks for your reply and sample.

When I run it in preview I get a script error message: Undefined Identifier 'Shared Object' but when I publish to SWF and run it, no script error message and it works: the entered text is saved and loads OK.

Can the script error message be ignored? Will the SWF fully run OK even with an error message? Or does the script need changing?

(I tried to attach a screen shot of the script error during preview mode, but this board would not take the jpeg or png: kept saying too big even though I reduced the image size to the allowed limits <800x<600.)

Kind Regards,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Flash Shared Object Support in Flex
PostPosted: April 1st, 2010, 1:48 pm 
Offline
User avatar

Joined: October 25th, 2004, 10:33 am
Posts: 257
Location: UK
Opus: Pro 8
OS: Windows 7 Professional x64
System: Dell XPS15 i7x4 2.1Ghz 6GB 128GB SSD
Yes ignore the script error. Unfortunately the problem with using Flash specific scripting is that it doesn't work in Opus, so you'll have to quick publish to test it.


For this message Dave Emberton has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Flash Shared Object Support in Flex
PostPosted: April 1st, 2010, 4:28 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi Dave,

Thanks for that information.

I've just been testing the SO function in Flex, and it's working perfectly.

Adds very useful capabilities. Great new feature!

Thanks for developing this in Flex.

Kind Regards,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 37 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group