Solved

Share variables between a version6 and a version7 .swf file?

Posted on 2004-04-05
4
136 Views
Last Modified: 2010-05-18
Hi,
I have a flash movie made in version 6 that loads another movie made in version 7. I want to share some variables between these two... how do I do that?

Cheers!
0
Comment
Question by:IngerOlofsson
  • 2
4 Comments
 
LVL 39

Expert Comment

by:blue-genie
Comment Utility
i don't think it makes any difference what version they are, simply make them global variables.

if you're embedding the flash in html, you can parse the variables with query string.

blu.
0
 
LVL 9

Accepted Solution

by:
krishnaprathab earned 500 total points
Comment Utility
Hi,

 What knd of variables you want to store? Persistent or Non-persistent? If you want the variables to be stored only for that session you can use global variables or attach them to a level.

Example:

_global.isClicked = true;

and inside your loaded movieclip you can just refer to this variable as isClicked.

(OR)

_level0.isClicked = true;

and inside your loaded movieclip you can just refer to this variable as _level0.isClicked=false.

If you want the variables available to your next session too then you need to use Flash SharedObjects which is more like cookies in HTML.

More information and tutorials on Shared Objects can be found at :

www.kirupa.com/developer/mx/sharedobjects.htm
www.macromedia.com/support/flash/action_scripts/ local_shared_object/

Hope this helps !

Thanks,
KP
0
 
LVL 9

Expert Comment

by:krishnaprathab
Comment Utility
Hi,

Did my reply answer your question. If so please close this question.

Thanks,
KP
0
 

Author Comment

by:IngerOlofsson
Comment Utility
sorry,
I´ve been away for a while...
it works fine now.. don´t know exactly what the prob were.. thanks!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now