Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-02-2003, 11:44 AM   #1
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default Best practice re: paths in class files

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

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.
Jesse is offline   Reply With Quote
Old 10-03-2003, 05:40 AM   #2
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,858
Default

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.
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 10-03-2003, 10:20 PM   #3
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

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

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.
Jesse is offline   Reply With Quote
Old 10-05-2003, 04:12 AM   #4
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

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 . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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 05:18 PM
Using the mx.util.Delegate class within your classes! madgett ActionScript 2.0 3 09-02-2007 11:11 PM
Class files and List component variables... dan_d ActionScript 2.0 3 04-21-2006 12:17 PM
Help with component class files and frame export theiceman Components 0 02-02-2005 07:13 PM
adding class files in classes directory (not found) yorkeylady ActionScript 2.0 3 04-25-2004 10:46 AM


All times are GMT. The time now is 03:55 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.