Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,673 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,171 people online right now. Registration is fast and FREE... Join Now!




How to pass variables in AS3?

 
Reply to this topicStart new topic

How to pass variables in AS3?

Everice
post 15 Sep, 2008 - 10:19 PM
Post #1


New D.I.C Head

*
Joined: 27 Apr, 2008
Posts: 5

function onResult(e :OperationEvent):void
{
var sd:Number = new Number(e.data);
}

Is there anyways to pass this variables to other swf files as a session?
User is offlineProfile CardPM

Go to the top of the page

Kerplope
post 22 Sep, 2008 - 12:55 PM
Post #2


New D.I.C Head

Group Icon
Joined: 22 Sep, 2008
Posts: 6



Dream Kudos: 100
My Contributions


You should consider putting variables inside of a sharedObject and link back (from inside the users hard drive or on a server) to that object.

QUOTE(Everice @ 15 Sep, 2008 - 11:19 PM) *

function onResult(e :OperationEvent):void
{
var sd:Number = new Number(e.data);
}

Is there anyways to pass this variables to other swf files as a session?

User is offlineProfile CardPM

Go to the top of the page

DilutedImage
post 24 Sep, 2008 - 07:46 PM
Post #3


D.I.C Addict

Group Icon
Joined: 20 Nov, 2006
Posts: 642



Thanked 6 times

Dream Kudos: 25
My Contributions


Shared Objects are a great approach.

Optionally, I like to use AMFPHP to pass data between Flash and PHP. In doing such, you could simply call a PHP function that sets the session variable, and then another function for retrieving it.



This post has been edited by DilutedImage: 24 Sep, 2008 - 07:46 PM
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 06:14AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month