flex3

flex 3 and itemRenderers

Hi , i have a datagrid and for one of the columns im using an item renderer to display content. Im wondering is it possible to access the dataprovider content of the datagrid inside a script block in the itemRenderer. Currently I can access the dataprovider in a component in the item renderer using data.variableName. I want to be able...

using RegExp to split string but store whitespace (space or crlf) to items

sample input (orgtext = a[crlf]b[space]c[crlf] ) I like to store each word a,b, c to the words array with the original suffix crlf or space. Currently calling SPLIT drops the suffix as its separator, but I like to store separator as well. Can I adjust regexp to return also suffix and still split? Words = new Array; var ar: Array = ...

I have RTRIM; how to make LTRIM with regexp

I have RTRIM; how to make LTRIM one? public static function rtrim(string:String):String { return string.replace(/\s+$/,""); } ...

how to load website (google, yahoo, any site) to canvas

Hi all how to load website (google, yahoo, any site) to canvas ...

best way to use font colors with textField.htmlText

what is the best way to use more than 1 font color with textField.htmlText I already use code like: textField.htmlText = "blaa blaa" + "< u >"+w+"< /u >"+"blaa blaa" How can I make that to define a specific color as well? ...

How do you set the proper width of a dynamic UITextField before assigning text?

In Flex 3.2, I'm creating a UITextField, then measuring text that I'm about to assign to that field's text property. I then use those metrics to set the size of the field. However, the calculated width is not wide enough to accommodate the text. Is there a different order to achieve proper measurement or am I seeing a problem with the...

Issue with PyAMF, Django, and Python's "property" feature

So far, I've had great success using PyAMF to communicate between my Flex front-end and my Django back-end. However, I believe I've encountered a bug. The following example (emphasis on the word "example") demonstrates the (potential) bug: My Flex app contains the following VO: package myproject.model.vo { [Bindable] [RemoteC...

creating a rounded button from AS3 ?

How to create rounded & good looking "OK" and "CANCEL" buttons from AS3 ? I dont want to use any images for these, just draw them? ...

TextField() Prevent ctrl+a (select all)

How can I prevent ctrl+a from functioning with editable TextField() ...

is there fillArc function available for AS3

is there this kind of function available in AS3: g.fillArc(5,5,w-10,h-10,90,-360*value/limit); // JAVA ...

SharedObject (Flex 3.2) behaving unexpectedly when query string present in URL

Summary: The behavior detailed below seems to indicate that if your app at www.someplace.com sets/retrieves data via a SharedObject, there is some sort of .sol collision if the user hits your app at someplace.com, and then later at someplace.com?name=value. Can anyone confirm or refute this? I'm working on a Flex web app that present...

Flex FileReference.download - is it possible to open associated application

Hi, When using FileReference.download() to retrieve a file from a server, I'd like to give the user the option to open the associated application directly rather than having to save it to disk first. Is this possible in Flex 3? And, if so, how is it done! Thanks, Mark ps. I've tried doing URLLoader.load(URLRequest) also, but no dice....

TextField() - how to prevent mouse select

How can I prevent mouse selecting (and moving caret) with Editable TextField(), this one does not seem to fully work when SELECTING text, but it prevents clicking. I want to keep cursor in place where its going. protected function handleMouseDEvent(evt:MouseEvent):void { if (evt.type == MouseEvent.MOUSE_DOWN) { var max : int; max = this...

Textfield () - how to prevent mouse right click menu

Textfield () - how to prevent mouse right click menu from appearing (a menu having COPY, PASTE, SELECT ALL etc options). ...

how to enumerate object tag parameters from loader page via AS3 ?

I have a few object params in HTML page I like to enumerate, what is the easiest method? I would like to use for loop to go through each param and insert them into my own Array. ...

Using strings to access custom methods dynamically

I am creating a two-dimensional list that has consecutive numbers at the end of "day", for use as dataProvider for a DataGrid i have been accessing them via the command dg1.selectedItem.day1 dg1.selectedItem.day2 dg1.selectedItem.day3 etc... is there any way to take the string ("day"+i) and convert it into a (what is it? variable name?)...

How to add relative paths to FlexBuilder's build path?

Is there a way to add entries to FlexBuilder's build path that are relative? I'm going to have multiple projects that will use a shared codebase, but I'm having trouble getting them to reference that shared code. I can do it with absolute paths, but that isn't going to work well. This code (and the projects) are going into sourcecontr...

Opening Web page from As3 to replace current iFrame

How Can I open a web page from the As3 so that it replaces current iFrame (and Flash object). ...

Detecting if particular string is currently visible on TextField()

I have a TextField() with a quite long text , sometimes last lines are not visible on screen (without scrolling). Now I want to detect if e.g. word IBM is currently visible on screen, or is it outside of screen. Any ideas how to do this? I want to display this particular word IBM by scrolling myself the textField() to the right posit...

easiest way to draw border around stage?

there seem to be no stage.border property in AS 3? my class extends Sprite, what is best way to draw border around flash object? ...