Hi there......

Out of my personal preference, I preferto avoid absolute paths and use relative 
paths in
my actionscript (easier to port in movies and movie clips, etc).

Now in my current project I have been having a go with a custon class I wrote 
(which
obviously resides in an external AS file), and I am having a problem trying to 
figure
out what is the best way to code my paths and still maintain portability....

In my external class AS file I have:

function handleGetBlog(re:ResultEvent)
{
this._DB = re.result;
// initialize the last record count
this._lastRecord = (this._DB.length - 1);
// initialize title
_root.blog_mc.user_txt.text = this._DB.getItemAt(this._currentRecord).User;
}

As you can see in this case I need to target a text field (user_txt) that 
resides in a
movie clip (blog_mc) that resides on the root time line. Is there a better way 
I can
target this? Without having to use the _root to access it? In hopes to re-use 
this class
with other projects, I have no idea if this class will be used in a nested 
movie clip
and so on..... I could just modify it (and maybe i will have no choice), but I 
am hoping
to write portable code.

Any suggestions?

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