Re: [Flashcoders] recursive function that returns an array

2005-11-18 Thread Martin Wood
you dont 'delay' the return function, just consider that each invocation of the function can pass back a result to the calling function the idea is something like this (its not tested code, but hopefully will give you a starting point...) also, it assumes that each node has only one child,

Re: [Flashcoders] Return a class

2005-11-18 Thread Martin Wood
Will you only be creating one type of object? or multiple types? If its just one, then myFactory.getDrag() can create and return the object..but im guessing thats not the case or you wouldnt be asking :) so, you could return a string of the full class name (including its package) and

Re: [Flashcoders] Movie seems to unload?

2005-11-18 Thread Martin Wood
not sure, case sensitivity ? work on windows, deploy to linux? Kaloudis Stathis wrote: Please guys, any ideas?? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Detect if swf being viewed in html page

2005-11-14 Thread Martin Wood
if you are writing the url, the make sure that the html passes in a variable to the flash movie. if the variable isnt set then you know you have been accessed directly. martin On 11/14/05, Paul Steven [EMAIL PROTECTED] wrote: Is it possible to detect if a swf is being viewed in a html /

Re: [Flashcoders] New Hire Resources list. Input needed.

2005-11-14 Thread Martin Wood
if they are already literate in other programming languages, this might help http://www.timotheegroleau.com/Flash/articles/scope_chain.htm particularly the section about 'this', which we all know has a great potential to cause confusion. :) its a long article, but is quite enlightening about

Re: [Flashcoders] dispatching events from a class

2005-11-13 Thread Martin Wood
that still wont work because you are dispatching the event before you bind the function as the handler. what are you trying to achieve (apart from getting the event to fire), i know this is just an example, but it seems a bit strange. anyway, you cant call init in the constructor to dispatch

Re: [Flashcoders] span class= is breaking ASDT in Eclipse

2005-11-11 Thread Martin Wood
this is a bug in the current public build of ASDT, it doesnt handle keywords in string literals properly. Its fixed in CVS, but I dont expect you to build it :) There will be a new release *sometime soon* if you dont want to build from CVS. thanks, Martin Steve Warren wrote: Hey folks,

Re: ÍøÒ×ÓÊÏä×Ô¶¯»Ø¸ ´: Re: [Flashcoders] span class= is breaking ASDT in Eclipse

2005-11-11 Thread Martin Wood
thats easy for you to say. [EMAIL PROTECTED] wrote: Äú·¢¸øÎÒµÄÐżþÒѾ­ÊÕµ½¡£ ÍøÒ×163ÓÊÏä--רҵµç×ÓÓʾ֣¬2000M³¬´ó¿Õ¼ä£¬Ö§³Ö³¬´ó¸½¼þ£¬È«¹úΨһ24Сʱ¿Í»§·þÎñ¡£ »¶Ó­ÄúÀ´×¢²áʹÓá£ÍøÒ×126ÓÊÏ䣺http://www.126.com -- want to know what i think?

Re: [Flashcoders] Resizing Imported Images

2005-11-08 Thread Martin Wood
no, once its loaded in the mc is the image. you can always use another mc as a container if you require it. martin Lehr, Theodore M. wrote: Is there anyway to resize an image imported via loadMovie - not resizing the mc it is loaded into - but the image itself?

Re: [Flashcoders] scope in classes

2005-11-07 Thread Martin Wood
my favourite topic and my favourite links : http://osflash.org/flashcoders/as2 at the bottom theres a link to this page http://www.dynamicflash.co.uk/2005/02/delegate-class-refined/ from which you can find this implementation http://dynamicflash.com/classes/Delegate.as enjoy. :) martin

Re: [Flashcoders] Dynamic Loading Images

2005-11-07 Thread Martin Wood
look at MovieClip.loadMovie(); despite its name it can load images. :) martin Lehr, Theodore M. wrote: How can I dynamically load images? So when I want to have more images in the movie I just need to put them in the right folder instead of updating the movie.

Re: [Flashcoders] Dynamic Loading Images

2005-11-07 Thread Martin Wood
ah, i think i missed your point. do what Tom said. :) Martin Wood wrote: look at MovieClip.loadMovie(); despite its name it can load images. :) martin Lehr, Theodore M. wrote: How can I dynamically load images? So when I want to have more images in the movie I just need to put them

Re: [Flashcoders] can I dynamically register an MC with an AS2.0 class?

2005-11-02 Thread Martin Wood
alternatively you could just have a setClip method defined in IMapHolder and implemented in the two classes. Then keep a reference to the clip as a member variable and work with that instead of subclassing movieclip. martin Liam Morley wrote: I'm working in FlashPro8. I have an empty movie

Re: [Flashcoders] Flash capabilities

2005-11-02 Thread Martin Wood
8ball Developer wrote: Hi guys, I'm giving a presentation on using flash for an application in a few hours and would like to have a firm answer on the following items. 1. Can flash play audio streamed from Helix (Real Server)? flash streams mp3. thats all. (why it doesnt do ogg, i dont

Re: [Flashcoders] Flash capabilities

2005-11-02 Thread Martin Wood
8ball Developer wrote: 1. Can flash play audio streamed from Helix (Real Server)? flash streams mp3. thats all. (why it doesnt do ogg, i dont know.. :) Sorry. I meant to say: can a flash player, play mp3 streamed from Helix? Or does it have to come From Flash comm? no, it can come from

Re: [Flashcoders] Flash capabilities

2005-11-02 Thread Martin Wood
about this? Is this documented someplace? I'm trying to get them to replace Helix with FCS. On 11/2/05, Martin Wood [EMAIL PROTECTED] wrote: 8ball Developer wrote: 1. Can flash play audio streamed from Helix (Real Server)? flash streams mp3. thats all. (why it doesnt do ogg, i dont know

Re: [Flashcoders] ASDT data loss?

2005-11-01 Thread Martin Wood
Its a known issue, which is fixed in the CVS build. unfortunately if you point the current version at an existing directory for a new project, it decides to forcibly delete the contents. sounds like you discovered that bug. the fix has been in cvs for a while now, so its probably time we got

Re: [Flashcoders] Debugging wih FAMES?

2005-11-01 Thread Martin Wood
i'll combine my answer to jesse with a response to this as well, because they cover some of the same ground..hope you dont mind. why choose open source vs flexbuilder 2 ? because A: its open source, if it doesnt do what i want, there is always the possibility to change that B: it would

Re: [Flashcoders] Circle, rotation to ?

2005-11-01 Thread Martin Wood
-Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Martin Wood Sent: Tuesday, November 01, 2005 3:22 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Circle, rotation to ? but you'll need some trigonometry to work out the rotation angle from

Re: [Flashcoders] Circle, rotation to ?

2005-11-01 Thread Martin Wood
be worth it. The Tween class seems to only want to += until it gets to the desired rotation - which is understandable. But sometimes we need tighter control ;) e.dolecki On Nov 1, 2005, at 4:16 PM, Martin Wood wrote: well, what you need to do is work out the shortest route to the angle you

Re: [Flashcoders] Profiling the clients CPU

2005-10-31 Thread Martin Wood
maybe it would be best to do the profiling using the code that is being performed, otherwise your results may be unreliable. i dont know if thats possible in your case, but you could start from the bottom and work up. run a few loops of the doSomethingEasy() and see how fast its running, if

Re: [Flashcoders] Flash and ASP/MSSQL

2005-10-30 Thread Martin Wood
The person who gave me the brief said something along the lines of Sure Flash can talk straight to a database! All you need to do is set the connection string or something! I hitherto hadn't realised this was possible - I've always thought you used loadVariables to call an (in my experience) ASP

Re: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Martin Wood
anyway. So, I'm with ryanm on this one ;-) regards, Muzak - Original Message - From: Martin Wood [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, October 28, 2005 11:03 PM Subject: Re: [Flashcoders] Newbie AS3 question ryanm wrote: What I

Re: [Flashcoders] Re: Newbie AS3 question

2005-10-28 Thread Martin Wood
If you come along maintain someone's code 6 months from now and you find a complex method of 200 lines of so, it's useful to have the this prefix to distinguish between variables that are local to the function and those that are available to the instance. true, but i would also immediately

Re: [Flashcoders] javascript function SetVariable doesn't work withFlash Player 8

2005-10-25 Thread Martin Wood
Stan Vassilev wrote: If you run this offline, make sure this file you test is in the trusted list. You gotta go to the advanced flash panel hosted on macromedia.com to do this. but surely therein lies a paradox. if i want to run it offline, you must first go online?

Re: [Flashcoders] Normalizing point

2005-10-19 Thread Martin Wood
you can also combine that with some curve smoothing Once you have 3 points you can calculate the angle between the first and the third and use a tolerance (some call it the 'breaking angle') to determine if the middle point can be removed from the data set. so one idea could be to use 1

<    1   2