[flexcoders] Re: Code not lining up - brackets

2013-02-07 Thread jaywood58
Jerry, I think your issue is the opening brace at line 6 (right after case Const.ALERT_LIST_RETRIEVED:) and the closing brace at line 32 (right after the break statement)... the code block for a case statement in ActionScript is typically not enclosed in braces (perhaps it is even illegal, I'm

[flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!

2010-02-24 Thread jaywood58
I ran into this same issue recently. When you load the image, you just need to specify a LoaderContext with checkPolicyFile set to true. Here's a link to a blog post that explains it pretty well: http://www.toybot.nl/blog/2008/03/19/bitmapdatadraw-and-checkpolicyfile/ --- In flexcoders@yahoog

[flexcoders] Re: Modify context menu of TextArea

2010-02-20 Thread jaywood58
Here is a very simple example in MXML: http://www.adobe.com/2006/mxml"; layout="absolute" contextMenu="{cm}" creationComplete="init()"> --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > I'm pretty sure you can't alter the context menu for a TextArea unless you >

[flexcoders] Re: Modify context menu of TextArea

2010-02-20 Thread jaywood58
You can't alter the clipboard items (cut, copy, paste, etc.), but you can add your own custom items. If that's what you want to do, see the code example on Adobe livedocs for the ContexMenu class. --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > I'm pretty sure you can't alter the cont

[flexcoders] Re: How transmiting a string to variable in contexmenu

2010-02-20 Thread jaywood58
Your posting is unclear. What is it that you want to copy to searchString? Your snippet will set searchString to "[object ContextMenu]". Is that really what you want? Also, ContextMenu already has a clone() method, so I don't get why you are declaring one of your own. --- In flexcoders@yahoo

[flexcoders] Re: ArrayCollection of a specific type?

2010-02-11 Thread jaywood58
You want something like Java 5 generics... sorry to say Actionscript does not have it, so you are stuck with type-casting the members of your collection. Here's a link to an article that outlines the differences between Java 5 and Actionscript: http://www.artima.com/lejava/articles/actionscrip

[flexcoders] Flash player not recognizing microphone plugged in after program launch

2009-10-21 Thread jaywood58
I have run into a problem with Flash player's handling of microphones --if I launch the program with a mic attached, then call Microphone.getMicrophone(), everything works fine; however, if I start out with no mic attached, then attach one while my program is still running, subsequent calls to

[flexcoders] Re: *** So you think you know ActionScript? (Read original post first) ***

2009-08-13 Thread jaywood58
--- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > _ > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of Paul Andrews > Sent: Wednesday, August 12, 2009 9:33 PM > To: flexcoders@yahoogroups.com > Subject: Re: [flexcoders] *** So you think you

[flexcoders] Re: TabNavigator changing from MXML to actionscript.

2009-08-13 Thread jaywood58
An easy way might be to use different viewstates (e.g., a base state without the restricted tab, and a derived state that includes the restricted tab), then simply set the appropriate viewstate based on user permissions. Similar to your init() code, it might look something like: if (Permissions

[flexcoders] Re: TabNavigator changing from MXML to actionscript.

2009-08-12 Thread jaywood58
An easy way might be to use different viewstates (e.g., a base state without the restricted tab, and a derived state that includes the restricted tab), then simply set the appropriate viewstate based on user permissions. Similar to your init() code, it might look something like: if (Permissions

[flexcoders] Image control reports wrong size

2009-07-12 Thread jaywood58
My app needs to display an image inside a VBox, with content auto-scaled to fit the width of its container, and the VBox height adjusted to accommodate its children. The problem arises when the loaded image has content width > VBox width, i.e., when the image content is scaled to fit --VBox ap

[flexcoders] Problem setting initial value(s) using programmatic track skin with HSlider

2008-09-24 Thread jaywood58
This post began as a plea for help, but in the course of writing it I landed on a solution I can live with. I am posting it anyway, on the chance that it might help someone else, or in case somebody has a better idea. The problem came up when I was trying to create a custom HSlider using a pro

[flexcoders] Re: Positioning from a label in a Button

2008-05-22 Thread jaywood58
; } } --- In flexcoders@yahoogroups.com, "jaywood58" <[EMAIL PROTECTED]> wrote: > > I'm replying to this very old post, but thought someone might > still find it helpful. My solution is not *exactly" easy, but seems > simpler than having to define a new

[flexcoders] Re: Positioning from a label in a Button

2008-05-22 Thread jaywood58
I'm replying to this very old post, but thought someone might still find it helpful. My solution is not *exactly" easy, but seems simpler than having to define a new theme and tinker with programmatic skinning. I had a custom class that extends Button, where I wanted the labels to be placed a

[flexcoders] Re: Error 1009 When Calling a WebService

2007-11-17 Thread jaywood58
; response from the NDFD web service. > > Hope this helps, > > Bob I. > > > --- In flexcoders@yahoogroups.com, "jaywood58" wrote: > > > > > > I am having a problem getting data from the National Weather Service's > > "National Digital For

[flexcoders] Re: Flex 3 beta 2 RemoteObject and DjangoAMF

2007-11-17 Thread jaywood58
I'm just getting started using Django as a backend for Flex apps, and wondering what kind of troubles I'll encounter with all the middleware involved... DjangoAMF has me concerned, as there seems to be very scarce documentation, even less in English. Glad to see others are using Flex and Django

[flexcoders] Re: Internal build errors

2007-11-15 Thread jaywood58
I got this one recently when I tried to link in a SWC into my project... turns out the SWC had been compiled in Flex 3, my project was in Flex 2. --- In flexcoders@yahoogroups.com, duncan mcmillan <[EMAIL PROTECTED]> wrote: > > Hi > > I've suddenly been getting "An internal build error has oc

[flexcoders] Error 1009 When Calling a WebService

2007-11-15 Thread jaywood58
I am having a problem getting data from the National Weather Service's "National Digital Forecast Database" XML Web Service... http://www.weather.gov/xml/ . I',m using Flex Builder 2.0.1. The service provides 9 functions for accessing the NWS' vast database of weat