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...
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 one?
public static function rtrim(string:String):String
{
return string.replace(/\s+$/,"");
}
...
Hi all
how to load website (google, yahoo, any site) to canvas
...
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?
...
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...
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...
How to create rounded & good looking "OK" and "CANCEL" buttons from AS3 ?
I dont want to use any images for these, just draw them?
...
How can I prevent ctrl+a from functioning with editable TextField()
...
is there this kind of function available in AS3:
g.fillArc(5,5,w-10,h-10,90,-360*value/limit); // JAVA
...
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...
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....
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 from appearing (a menu having COPY, PASTE, SELECT ALL etc options).
...
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.
...
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?)...
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...
How Can I open a web page from the As3 so that it replaces current iFrame (and Flash object).
...
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...
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?
...