# Passing data from nested SWF to main SWF help?

**URL:** <https://forum.kirupa.com/t/passing-data-from-nested-swf-to-main-swf-help/282509>\
**Category:** flash\
**Created:** [February 23, 2009, 1:55am UTC](https://forum.kirupa.com/t/passing-data-from-nested-swf-to-main-swf-help/282509 "2009-02-23T01:55:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdobeAcolyte](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@AdobeAcolyte](https://forum.kirupa.com/u/AdobeAcolyte)\
**Post date:** [February 23, 2009, 1:55am UTC](https://forum.kirupa.com/t/passing-data-from-nested-swf-to-main-swf-help/282509/1 "2009-02-23T01:55:46Z")

</div>

Hi there.

I have a problem that has stumped me for days.

My main SWF file, “working\_login.swf” has a movieclip that loads another SWF file, called “membership.swf”.

[http://www.rsupra.com/members/working\_login.swf](http://www.rsupra.com/members/working_login.swf)

It loads this SWF file inside of a movie clip which, upon a press of a button, tweens the movie clip containing the “membership.swf” onto the screen.

membership.swf allows you to login using “testing” as the user, and “testing” as the password.

MY PROBLEM:

I have NO idea how to dynamically change the username\_txt dynamic text on the main swf.

What I want:

I want it to display “Hello, guest!” when there is noone logged in and no cookie set.

I want the program, upon someone logging in as “testing” to have the dynamic text box display “Hello, testing!” upon a successful login.

Right now, I have absolutely no idea how to go about this. I am using a class to set the dynamic text, but I cannot figure out for the life of me how to set it up to recognize a guest VS someone logged in.

These are the following files that I am using:

[www.rsupra.com/flash/membership.fla](http://www.rsupra.com/flash/membership.fla)  
[www.rsupra.com/flash/working\_login.fla](http://www.rsupra.com/flash/working_login.fla)  
[www.rsupra.com/flash/Greeter.as](http://www.rsupra.com/flash/Greeter.as)

Any help would be GREATLY appreciated!!!
