Skip to main content
Participating Frequently
December 11, 2009
Question

Movie Variables

  • December 11, 2009
  • 1 reply
  • 443 views
Hi,

I hope you can help me. I expect it's a straight forward question.

I'm using a Flash accordion component. This component is made of movies and includes text boxes whiach people can enter locations into.

These values are processed on the main stage on the click of a button.

My question is, how do i get the value that was entered in the accordion movies into a variable on the main stage that the can be used.

At the moment i have a text box on the page, and have added this code to the first frame. Although i think the value is stuck within the movie and cant be accessed on the main stage.

keyword = varkeyword

Any help or advice is gratefully recieved.

Thanks
This topic has been closed for replies.

1 reply

December 12, 2009

Hi,

Better you assign the value to the SharedObject in flash.

Saransoft

Participating Frequently
December 12, 2009

Thanks for the reply. I have googled share objects and its seems rather excessive to read a variable from a movie on the stage.

Wouldnt something like

_root.user = _root.movieclipname.name;

be better. I'm not sure what the syntax should be. But there are many references to reading variables in movies using global or root variables. I just cant figure how

In short a text box sits in a movie on the stage and I need to get the data from the text box into another variable on the stage.

December 14, 2009

Hi,

Yes u can assign like that. or SharedObject is better.

As per ur convenient.

var my_so:SharedObject = SharedObject.getLocal("kookie");

my_so.data.user = _root.movieclipname.name;

Saransoft