Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-04-05
4
Medium Priority
?
146 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
ID: 10763579
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 2000 total points
ID: 10773004
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
ID: 10812474
Hi,

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

Thanks,
KP
0
 

Author Comment

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.

886 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