<snip>
>I am having a problem trying to 
> figure out what is the best way to code my paths and still maintain 
> portability....
</snip>

Ok - I have come up with a way, but I am wondering if this is the best way to 
do it...

I call my class with:

var myBlog:BlogData = new BlogData(this);

So I pass in the reference to my current MC.

In my external class I then set a private var (through the classes constructor) 
that
holds this data (just showing needed code in the constructor):

function BlogData(theTarget:MovieClip)
{
// Initialize the target MC
this._targetMc = theTarget;
//test the target
trace("The target is " + this._targetMc);
}

Then when I need to target the text fields I can do so with:

this._targetMc.user_txt.text = myUser;


it works. Does anyone see any issues with this? Is there a better way? Or is 
this the
best way to accomplish this?


Thanks!

Dustin
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to