Solved

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

Posted on 2004-04-05
4
141 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
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 what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

617 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