| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
In FMX2 we're all going to be using external class files which are neatly encapsulated and very good for OOP but I've come across a situation (using the formatting option of the WebServiceConnector component to be exact) where I need to reference an MC on the stage from within a Class method wich resides in an external file. Now I know HOW to do this, but I'm looking for opinions on what the BEST WAY, in terms of good conding practice would be.
What do people think would be considered best practice when this situation occurs? Using absolute paths? Using relative paths? Passing in the path as an argument? Some other means? I'm after opinions more than anything else, with justification if possible. Thanks in advance.
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
#2 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
pass the path as a argument since using either relative or absolute paths can break down if u starting using this class in a differant place.
|
|
|
|
|
|
|
|
|
#3 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
Hehe I was hoping ppl wouldn't pick that option as the class is actually being invoked automatically as a formatter for the WebServiceConnector... I don't think the invoking WS MovieClip is actually passed. I'll look into it.
Thx.
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
#4 |
|
Addicted To FLASH
|
I didn't read about the new way, just heared about it but i;d say long live relative paths
__________________
â€* GOD Is Near â€* Questions Don't PM for Questions An eye for an eye, make the whole world blind _____________________________________________GHANDI |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Not loading new SWF or Class files | RQFlash | Flash 8 General Questions | 1 | 05-01-2008 06:18 PM |
| Using the mx.util.Delegate class within your classes! | madgett | ActionScript 2.0 | 3 | 09-03-2007 12:11 AM |
| Class files and List component variables... | dan_d | ActionScript 2.0 | 3 | 04-21-2006 01:17 PM |
| Help with component class files and frame export | theiceman | Components | 0 | 02-02-2005 08:13 PM |
| adding class files in classes directory (not found) | yorkeylady | ActionScript 2.0 | 3 | 04-25-2004 11:46 AM |