troubleshooting Question

How do I share a variable in flash?

Avatar of JohnnyBCJ
JohnnyBCJFlag for Canada asked on
Adobe Flash
9 Comments1 Solution992 ViewsLast Modified:
I have a variable located at

Scene 1
button1_mc
Layer Buttons
Frame 20

This is how the variable is declared:

var strSearch:String;

Whenever a person clicks on a button, code like the following is triggered.

btnProdTwoWayRadio.addEventListener(MouseEvent.CLICK, TwoWayRadios);
function TwoWayRadios(event:MouseEvent):void
{ strSearch="TwoWayRadios";
event.target.parent.parent.gotoAndStop("List");}

I give the variable a value and I go to frame "List".

Frame "List" is located at

Scene 1
Layer Information
Frame List

Now on the "List" frame, I'm trying to take the value of strSearch and put it in a text box named
txtTest.

How do I do this?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros