Re: [flexcoders] self reference to component inside binding brackets?

2008-11-15 Thread Keith
Thanks Pat, Sorry I used a bad example earlier, yes I could do that with events but I meant like using it in other properties that "event" is not available. . Here's a better example situation where I'd wish for a shortcut "self" reference to each component. For example if I wanted to assign the

[flexcoders] Re: HTTP request error

2008-11-15 Thread Rob Kunkle
It sounds as though only local admins have permission to the directories and files in your web directories. You might want to check permissions on the files and folders, and make sure that regular users also have permissions. --- In flexcoders@yahoogroups.com, "markgoldin_2000" <[EMAIL PROTECTE

[flexcoders] Re: Export high res png from flex

2008-11-15 Thread Rob Kunkle
Hi Kyle - I don't think the scaleX/Y actually changes the size of the canvas, so what you want might want to try is actually resizing the container. If for some reason you can't do that, maybe you could copy the contents into a new canvas that is not visible then resize that one. I'm curious how

[flexcoders] Help with Binding

2008-11-15 Thread rss181919
In the following code, the localProductId binding fails. Why? The 1st alert pops with a new value for the variable (indicating that it is changing). But the second alert never pops. Attach Code [Bindable] public var localProductsAC:ArrayCollection = new ArrayCollection; [Bindable] public var

[flexcoders] Export high res png from flex

2008-11-15 Thread Kyle
Hey Everyone, I'm trying to come up with a clever way to export a high res (300dpi) .png image from flex to be saved on my server and later printed. The initial bitmapdata is being taken from a 400x400 pixel Canvas container. I then use the PNGEncoder class to turn the bitmapdata into a bytearray a

Re: [flexcoders] self reference to component inside binding brackets?

2008-11-15 Thread Pat Buchanan
Keith: Sorry, hit send to quick and forgot to mention that I you don't need the binding brackets anyway, because a Click event is not bound but called on each click. See my first example. On Sat, Nov 15, 2008 at 5:41 PM, Pat Buchanan <[EMAIL PROTECTED]> wrote: > Hello Keith! > > Try this: > >

Re: [flexcoders] self reference to component inside binding brackets?

2008-11-15 Thread Pat Buchanan
Hello Keith! Try this: so in your case, it might look something like this. You might need to cast. event.target will point to the component that was clicked. Thanks -Pat www.DataNotion.com Information By Design On Sat, Nov 15, 2008 at 12:30 PM, Keith <[EMAIL PROTECTED]> wrote: > Is t

[flexcoders] XMLList to Number

2008-11-15 Thread Richard Rodseth
I'm decoding some XML and want to detect whether a particular element (whose text should be a number) is present and use a default number if it isn't. It seems that if node.min is not present the expression still returns an XMLList, so I'm doing something like this: private static functi

[flexcoders] Re: Referring to parent in components

2008-11-15 Thread plugsymmv
Rather than give a short anser I'd suggest you read Ted Patricks's blog post on acquisition. http://www.onflex.org/ted/2007/01/acquisition-within-flex.php --- In flexcoders@yahoogroups.com, "chrycheng" <[EMAIL PROTECTED]> wrote: > > Is it alright for a component to make references to its parent

[flexcoders] Re: Accessing a Basic Auth protected site from flex.

2008-11-15 Thread wdsnapper
Thank you. This explains a lot. I had seen posts on how to do this but nowhere did I stumble on the info you provided. Specifically, that 9.0.115.0 was a version that blocks the Authorization header regardless of what you do. Guess what version I've been running? So, I will update to a m

[flexcoders] self reference to component inside binding brackets?

2008-11-15 Thread Keith
Is there a shortcut way to reference the current component that you are using Binding Brackets with in its tags without using "id" ? Like using "this" but it would be for the current component instead of the class of the MXML file. I just feel it's redundant and tiresome when I have to retype th

[flexcoders] Re: Calling functions with optional parameters

2008-11-15 Thread Amy
--- In flexcoders@yahoogroups.com, Gordon Smith <[EMAIL PROTECTED]> wrote: > > You can write either > > MyClass.foo = bar; > > or > > MyClass["foo"] = bar; > > to set a static property of a class. Cool, thanks :-). This has really been a learning week for me.

[flexcoders] Foreign Keyboard Mappings

2008-11-15 Thread markdemich
I have a flash application that's being used in other countries. I'm having reports that certain keys from certain keyboards are not getting translated properly. My application uses a custom "equation editor" that I wrote. I'm using key up and key down handlers to capture key strokes. I can'

[flexcoders] Re: Success!!! But I still need help!! (RE: Custom scrolling with TileList)

2008-11-15 Thread Rob Kunkle
I realize this post is over 2 years old, but I'm having a similar problem, and I can't find much info out there. I'm using a TileList control, and I've added buttons to the top and bottom and removed the scroll bars. I'd like buttons to smoothly scroll in the new images, but right now it just fl

Re: [flexcoders] Advanced datagrid dataprovider changing error

2008-11-15 Thread shaun
Hi, Try calling validateNow on the DG after setting the DP source. Or you might have to actually change the DP to a new HierarchicalData. cheers, hworke wrote: > Hi I am trying to change the dataprovider of a > advanced datagrid where I am using HierarchicalData > as data provider. My ADG

[flexcoders] Advanced datagrid dataprovider changing error

2008-11-15 Thread hworke
Hi I am trying to change the dataprovider of a advanced datagrid where I am using HierarchicalData as data provider. My ADG code is this: I tried to switch the dataprovider as HD.source = anotherArray; But it did

[flexcoders] PopUpMenuButton like a combobox

2008-11-15 Thread arshak_navruzyan
Hello, I have hierarchical data nicely binding to a PopUpMenuButton which I'm using on form. I've managed to create a handler that changes the label when an item is selected but can't seem to figure out how to pre-set the value of the PopUpMenuButton when the user wants to edit an existing reco

Re: [flexcoders] How do you load a page in a tab

2008-11-15 Thread Romain de Wolff
As far as I know, this is not a supported action. You cannot choose to open a link in a tab, as it's not standard to have tabs in a browser. Even if this is very common now. It's up to the user to choose the option, for exemple, to force new windows to open in a tab. Maybe I'm wrong.. let's see wh

[flexcoders] How do you load a page in a tab

2008-11-15 Thread dorkie dork from dorktown
How do you open a url in a tab? This is what you use for a page: navigateToURL(new URLRequest(url),'_blank'); dorkie dork from dorktown