Re: [flexcoders] I just ran software update on Mac OS X, now FB cannot locate the debugger

2008-10-21 Thread Toby Ashley
I had this at the weekend, presumably some kind of update also caused it. The easy solution for me was... reinstall the debug version of the Player. Worked fine afterwards. On Tue, Oct 21, 2008 at 4:06 PM, tchredeemed [EMAIL PROTECTED] wrote: /Library/Internet Plug-Ins/Flash Player.plugin

Re: [flexcoders] Want to build a SWF on the fly when someone requests it

2008-08-30 Thread Toby Ashley
You'd most likely be better off storing your users' data / choices as XML or something, then build a SWF which can read in that XML and load / display the relevant text / video / audio / links / whatever. Rather than creating one SWF for each user, just create one SWF and pass it different XML for

Re: [flexcoders] Adding border to circle

2008-08-26 Thread Toby Ashley
Setting the lineStyle only affects future lines that are drawn, not lines that have already been drawn. Simplest way is to just redraw the circle on mouse click. You can set the new background colour, set the line style, and just redraw it. You'll probably want to call circle.graphics.clear ()

Re: [flexcoders] state and country dropdown boxes

2008-08-18 Thread Toby Ashley
You could have a look at this - http://www.peterelst.com/blog/2006/12/24/flex-country-combobox-component/ This might be useful too - http://aralbalkan.com/1351 On Mon, Aug 18, 2008 at 2:58 AM, Scott [EMAIL PROTECTED] wrote: Does anyone have/care to share a premade country/state/province

Re: [flexcoders] Problem with ExternalInterface.call

2008-08-18 Thread Toby Ashley
What specifically is the problem here? If you uncomment the reload line, presumably it'll reload the entire page without you seeing the Alert box. If you want to wait for the Alert box to be closed before reloading the page, you'll need to listen out for the CloseEvent.CLOSE event. On Sun, Aug

Re: [flexcoders] Re: How do I show only part of an image?

2008-08-05 Thread Toby Ashley
You could try something like mx:Image source=path/to/image/file scrollRect={new Rectangle (0,0,16,16)}/ If you fiddle with the scrollRect property, you should be able to choose which 16x16 segment of the image is displayed. Cheers, Toby On Wed, Aug 6, 2008 at 12:37 AM, Alex Harui [EMAIL

Re: [flexcoders] link report question

2008-07-30 Thread Toby Ashley
While we're on the subject, does anyone know if it's possible to somehow generate a report which also includes the size of any embedded assets / fonts / whatever? Something along the lines of the generate size report option in the Publish Settings of the Flash IDE? On Wed, Jul 30, 2008 at 10:56

Re: [flexcoders] SoundChannel position misreporting

2008-07-29 Thread Toby Ashley
Double check the sample rate of the sound file (not the bitrate). I recently fixed a problem in an Actionscript 2 project, so relevant to the previous AVM, where this exact problem was happening with MP3s using a sample rate which wasn't 44200, 22100 or 11050Hz. Haven't come across it in AVM2 yet,

Re: [flexcoders] SoundChannel position misreporting

2008-07-29 Thread Toby Ashley
Interesting... I'll test our findings again with some 22050Hz MP3s just to make sure it's working for us. When we we testing this the other day, it was files using 32000Hz (or something) sample rate that were causing problems, those at 44100,22050 and 11025 were fine. This was in AVM1 though,

Re: [flexcoders] Getting error when trying to get id of label when adding evt listener

2008-07-23 Thread Toby Ashley
Try using evt.currentTarget.id instead of evt.target.id. From your error message, you can see that evt.target is a UITextField object, rather than the Label which you are expecting. Cheers, Toby On Wed, Jul 23, 2008 at 10:16 PM, timgerr [EMAIL PROTECTED] wrote: Hello all, I am getting this

Re: [flexcoders] Flex Text Selection Problem...

2008-07-12 Thread Toby Ashley
Corey, There are some potential workarounds which Ive seen, all using similar techniques to the one found here - http://labs.hellokeita.com/2008/03/13/textfield-selection-color/ It's not ideal by any means and won't work for all situations, but depending on what you need, it may be of use.

Re: [flexcoders] Re: Flex Builder Eclipse Builder Syntax Checking

2008-07-02 Thread Toby Ashley
Semi-colons at the end of each line are optional in AS3, which is why Flex Builder won't be highlighting those. What other errors are still being ignored? On Wed, Jul 2, 2008 at 4:27 PM, steve.baney [EMAIL PROTECTED] wrote: Alright, I just did a fresh install on a different computer with the

Re: [flexcoders] Re: Flex Builder Eclipse Builder Syntax Checking

2008-07-02 Thread Toby Ashley
Yeah that should definitely cause an error. I'm out of ideas I'm afraid, good luck sorting it On Wed, Jul 2, 2008 at 5:05 PM, steve.baney [EMAIL PROTECTED] wrote: Thanks for the response! I'm sure I sound like a raving lunatic by now, but I'm halfway through wasting a second day of

Re: [flexcoders] Looking for the right loop

2008-06-24 Thread Toby Ashley
There are fancier ways of doing it I'm sure, but changing your code to the following will make it work. var numThings:int = things.length; var nothingSelected:Boolean = true; for (var i:int=0;inumThings;i++){ // note that it should be things[i] below, not numThings[i] , as numThings is just