The only difference is that if you choose ActionScript Class,
FlexBuilder presents a wizard-y dialog and then autogenerates some
starter code for you.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of haravallabhan
Sent:
As far as I'm aware, Object was made different from * in order to make
it possible to program without thinking about the 'undefined' value,
which Object can't store. It banishes the 'undefined' value from the
part of the language that is compile-time-typed, because toher
compile-time-typed
In what sense do these appear to be missing? I see them in the Language
Reference as inherited properties.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lincoln Mitchell
Sent: Tuesday, May 22, 2007 4:03 AM
To:
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Wednesday, 23 May 2007 12:35 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DateChooser X and Y?
In what sense do these appear to be missing? I see them in the Language
Reference
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Wednesday, 23 May 2007 6:07 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DateChooser X and Y?
x and y are properties, not styles.
A DateField pops up its DateChooser in a location
In the Flex Compiler pane of the project's Properties dialog, enter
-dump-config myconfig.xml
in the Additional compiler arguments field. This will output a file in
the project directory similar to flex-config.xml which shows the options
that the compiler is using.
- Gordon
You could also use nested Array and Object literal syntax to do this in
one statement:
myTree.dataProvider =
[
{ label: Top level, children:
[
{ label: First },
{ label: Second }
]
},
{ label: Another top level }
];
When you set the
I don't know much about Xpath... can it do XML manipulations that E4X
can't?
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Hall
Sent: Monday, May 14, 2007 9:46 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Gordon Smith gosmith@ wrote:
Use rollOver and rollOut instead of mouseOver and mouseOut.
- Gordon
From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders
You should be able to simply override updateDisplayList() and, after
calling super.updateDisplayList(), reposition the one child that you
want to be in a different location.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of
I think the current guidance for the release of Apollo 1.0 is the
second half of 2007.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Kellogg
Sent: Friday, May 04, 2007 11:29 AM
To: flexcoders@yahoogroups.com
Subject:
Also, getQualifiedClassName(Application.application) will give you the
name of your application class.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Flexing...
Sent: Wednesday, May 02, 2007 11:28 PM
To:
Don't pull data from outside your component. Push outside data into your
component, but store it in data vars, not directly in the children. Then
when the children get created, have them pull data to display from those
data vars.
- Gordon
From:
mx:Style
.panelTitle { fontSize: 24; color: red }
/mx:Style
mx:Panel title=Panel titleStyleName=panelTitle/
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ian Skinner
Sent: Wednesday, May 02, 2007 2:55 PM
To: [EMAIL
describeType() can give you information about class's [Style] metadata.
But you have to use the -keep-as3-metadata compilation option to tell
the MXML compiler which metadata to compile into the SWF.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL
the container, but what if that container has controls that need
to be clicked and stuff?
Thanks again,
Claudia
On 4/27/07, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
wrote:
Isn't there something like turn shield on or off?
Doh! I forgot! Try setting
when i create an instance of MyPrintView, its children are not
created. why is that?
if you addChild() to the Applicationthey are created. why is that?
The reason that components do not create their children immediately when
they are created is so that you can set properties after calling
This doesn't make the children get created at 'new' time.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Yiðit
Boyar
Sent: Monday, April 30, 2007 11:25 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] creating
like this
class MyPrintView extends VBox
{
public contact:Label;
public printDG:PrintDataGrid
public MyPrintView()
{
super();
contact = new Label();
contact.text = 'batman'
addChild(contact)
//etc
}
}
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Gordon Smith [EMAIL
Whatever problem you're having isn't related to event.label or probably
to anything in your Flex code. When I tried this code it constructed the
proper URL, such as
http://localhost/FlashSite2/bin/ghostb
Does that URL work when you paste it into a browser?
- Gordon
.
As for the actual WHY question... the answer is: The designer wants it.
It is really not just one button under the translucent piece... it is a
part of the application, and the button and other controls happens to be
right there.
Thanks,
Claudia
On 4/26/07, Gordon Smith [EMAIL PROTECTED
That doesn't ring a bell. Can you post simple-as-possible versions of
your subclass and an that shows the problem?
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of johnknyc
Sent: Thursday, April 26, 2007 7:46 AM
To:
This list works best when people ask specific questions. Can you be more
explicit about what you don't understand?
Getting the external XML file into your app? Use mx:XML source=
Looping over the button elements? Look at some E4X examples.
Extracting the label and text for a particular
I don't think this is easy to do. How much interactivity with the Button
do you actually need? When you roll over the button, do you need it to
highlight? When you click, do you need the button to depress? Or do you
just need the button's click handler to execute?
And I'm curious... why do you
Was this a compilation error or a runtime error? It sounds like you were
trying to call a private method, selectPlayer(), from another class. It
doesn't sound like the error had anything to do with testing whether
LAST_SELECTED was null or not. You didn't show any code that actually
called
The code
var value:String = cbData.(@label == M)[EMAIL PROTECTED];
will set value to 1000. You don't dot down into menu when you
start with XMLList.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent:
You can access properties and methods declared in your mx:Application
script from component scripts like this:
MyApp(parentApplication).someData
MyApp(parentApplication).doSomething()
Many people would say this isn't good architecture, but others find it
useful for simple projects.
- Gordon
'left', 'top', 'right', and 'bottom' are styles, not properties. You set
them in the same way in MXML, but in ActionScript you have to write
myImage.setStyle(top, 18);
myImage.getStyle(top); // evaluates to 18
- Gordon
From: flexcoders@yahoogroups.com
to XMLList.menu, right?
Troy.
On 4/25/07, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
wrote:
The code
var value:String = cbData.(@label == M)[EMAIL PROTECTED];
will set value to 1000. You don't dot down into menu when
you start with XMLList
Use rollOver and rollOut instead of mouseOver and mouseOut.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of iko_knyphausen
Sent: Wednesday, April 25, 2007 10:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to
I see nothing wrong with what you're doing. You can certainly use == to
compare a var typed as some class against null, so I suspect that the
error is caused by something else.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of
Try using the Image component to load your image.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nishantkyal
Sent: Monday, April 23, 2007 11:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can't load image in flex
These are a way to implement a property when you want getting or setting
the property to have side effects.
The setter is called when you set the property. For example,
statesNames = foo;
will call function set statesNames with value equal to foo.
The getter is called when you get the
UIComponent has measureText() and measureHTMLText() methods.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Shaun
Sent: Monday, April 23, 2007 7:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to measure text?
After your application loads the module, have it pass a
reference-to-itself to the module for the module to use.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of boy_trike
Sent: Monday, April 23, 2007 2:54 PM
To:
, this typecast do works for numbers:
var numTest:Number = Number(3.5);
trace(numtest = +numTest);
but this not to Boolean:
var numTest:Boolean = Boolean(false);
trace(numtest = +numTest);
best regards and thank you again for your help!!
Luís Eduardo.
Gordon Smith escreveu:
how to cast String true
No, you cannot overload operators in AS3. The point has been made several times
now: the only way to convert true to true and false to false is to write
var btest:Boolean = someString == true;
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL
I think that will give you two ArrayCollections which share the same
data items. For example, if you do
arrayCollection.setItemAt(foo, 0);
trace(arrayCollection2.getItemAt(0));
you'll probably get foo.
- Gordon
From: flexcoders@yahoogroups.com
It's more efficient to simply write
btest = testValue == true;
The right-hand-side already evaluates to true or false, so there is no need to
add ? true : false.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Hilary
how to cast String true to Boolean true ?
The expression s == true evalues to the Boolean value true if the String s is
true, and to false otherwise.
BTW, there is no point in writing
var btest:Boolean = new Boolean()
You should just write
var btest:Boolean = false;
or
This is not just a style change, but you should be able to do it by
writing a subclass of DateChooser. Override createChildren() to hide the
buttons and labels that you don't want and create and initialize the two
comboboxes that you do want. Then override measure() and
updateDisplayList() so that
It sounds to me like you're having problems because Flex is front-end
technology that doesn't talk directly to databases like Access. You need
to decide which middleware your'e going to use on the server side: Java?
ColdFusion? PHP? Flex Data Services? The choice will probably depend on
whether
I tried || and it short-circuits for me. Please post a complete miniapp
with a case that doesn't work.
- Gordon
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent: Thursday, April 12, 2007 9:49 AM
To: [EMAIL PROTECTED]
Subject: Re:
This capability is planned for the next version of
Ecmascript/JavaScript/ActionScript.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dorkie dork from dorktown
Sent: Tuesday, April 10, 2007 2:20 PM
To:
You say your container is a DisplayObjectContainer. Is it also a Flex Container
such as Canvas or VBox? If so, there is a bug with using swapChildrenAt() and
maybe with swapChildren() as well. Try using removeChildAt() and addChildAt()
instead.
A Flex Container does tricky stuff with child
The framework loads the localized day and month names from the resources
into properties of the DateBase class, but lets you change them.
Try setting DateBase.dayNamesShort, DateBase.dayNamesLong,
DateBase.monthNamesShort, or DateBase.monthNamesLong before calling the
format() method of your
That's correct.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Wednesday, April 11, 2007 4:28 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]Where is the right property?
I think its a
It looks like you can't use Function() as a cast operator. I'm not sure
whether this is an AS3 compiler bug or not. Instead of
Function(call.callbck).call(this);
try
(call.callbck as Function).call(this);
or simply
call.callbck.call(this);
- Gordon
). This perfectly solves my problem.
(And you forgot to say, Yes, you're wrong.)
Thanks,
Chris
--- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
, Gordon Smith [EMAIL PROTECTED] wrote:
The framework loads the localized day and month names from the
resources
into properties of the DateBase
Adobe agrees enough that they're planning on adding runtime resource
loading, I think in Flex 3
Yes, this will be in the next release. I'm the one implementing it. : )
- Gordon
From: Gordon Smith
Sent: Wednesday, April 11, 2007 10:26 PM
To: '[EMAIL
In general, the Flex framework expects to own the 'name' attribute and
we don't recommend that developers use it for their own purposes.
It's trivial to subclass Sprite and add an id:
public class SpriteWithID extends Sprite
{
public SpriteWithID()
{
super();
}
public
import mx.core.UIComponent;
private function createInstance(classString:String,
properties:Object):UIComponent
{
var c:Class = Class(getDefinitionByName(classString));
var instance:UIComponent = new c();
for (var p:String in properties)
{
instance[p] = properties[p];
Your reference to combining applications makes me think that you're
being overwhelmed by the complexity of complex multi-featured apps like
FlexStore. My own counter-recommendation would be to first gain a good
understanding of each feature that you want to use, in isolation, in the
context of the
You could also subclass Timer and store any additional data you want on
MyTimer.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Erik Price
Sent: Tuesday, April 10, 2007 10:53 AM
To: flexcoders@yahoogroups.com
Subject: Re:
What doc was this in? It won't work if 'this' is a Flex Container,
because a Container expects that its children are IUIComponents.
If you're putting an image into a Flex Container, you should be using a
Flex Image control, not a low-level Flash Loader.
- Gordon
property ?
thanks.
- Original Message
From: Gordon Smith [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 10, 2007 9:01:02 AM
Subject: RE: [flexcoders] SOLVED: How do I tell what I clicked on?
In general, the Flex framework expects to own the 'name' attribute and we don't
anybody knows how to convert the Strings to numbers
Just cast them:
Number(1.23)
int(1)
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lcujino
Sent: Tuesday, April 10, 2007 10:36 AM
To: flexcoders@yahoogroups.com
Subject:
or that need extending checkbox class ?
thanks in advance
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Gordon Smith [EMAIL PROTECTED] wrote:
Sorry... in the second example,
var rb:RadioButton;
should be
var rb:RadioButton = new RadioButton();
- Gordon
Is it better to generate a different XML files for each of the
different trees I want to build, or load all of the data in one XML
file and let flex split up the data into the different pieces.
I wouldn't do either. First I'd make an XML file that is a simple
view-independent list of
You don't say what event you want to listen to from the Tree, but I'll
assume it's change from tree1.
The simplest way is to write
mx:Tree id=tree1 change=tree1_changeHandler(event)/
and
private function tree1_changeHandler(event:Event):void
{
// do something to combo,
I have also long wondered about primitives in AS3. What is an int?
What primitives are there? What is a Boolean?
Here are the types where you don't need to (or can't) use the 'new'
operator because AS3 has literal notation for values of that type:
int: 32-bit signed integer
var i:int;
can you help me on part you should keep variable referencing to
checkboxes
Define an instance variable in your app or component. When you
dynamically create a CheckBox, store it in that variable:
mx:Script
// Any other method in this class can access the radio buttons using
these
The totalMemory property of the flash.system.System class gives you The
amount of memory (in bytes) currently in use by Adobe Flash Player. I
don't know of a way to find out the total RAM.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Sorry... in the second example,
var rb:RadioButton;
should be
var rb:RadioButton = new RadioButton();
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Thursday, April 05, 2007 1:17 PM
Use a Array when you look up a value by a numeric index. Use an Object
when you look up a value by a string key like name or property.
BTW, I think using Object-literal syntax to combine these four lines
into
categories.addItemAt({ name: All, categoryID: o });
will create smaller, faster
We no longer provide a schema for MXML. The language was designed to be
easily written by a human and isn't well-suited to being described in a
schema -- it's too loosy-goosy in terms of what can nest inside what,
whether you write a property as an attribute or child tag, etc.The
schema we offered
I think this may be another way...
if (obj.hasOwnProperty(getChildren))
children = obj.getChildren();
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dordea cosmin
Sent: Tuesday, April 03, 2007 12:13 PM
To:
errors?
Or simply write the UI in ActionScript?
Neil
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Gordon Smith [EMAIL PROTECTED] wrote:
We no longer provide a schema for MXML. The language was designed to
be
easily written by a human and isn't well-suited to being
) : Boolean { ... }
to enumerateItems(), pass
function( itemNo : int, numItems : int, items : Array ) : Boolean {
... }
He said this seems to make it work.
- Gordon
From: Gordon Smith
Sent: Tuesday, March 27, 2007 8:55 PM
To: 'flexcoders@yahoogroups.com
What are you trying to do? If you want a list of words wouldn't you want
to parse the 'text' rather than the 'htmlText', which includes a bunch
of HTML markup?
You can use the split() method of String to create an Array. For the
first argument pass a RegExp representing one or more whitespace
, March 27, 2007 2:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Whatever happened to Peter Ent's scrolling
text ticker?
any particular reason why?
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Gordon Smith [EMAIL PROTECTED] wrote:
I recommend using
I noticed two peculiarities in your code: You declare
myAnimationFunction() and myEventFunction() in verifyContainer() to
return void rather than Boolean. But when I declare them to return
Boolean and actually return true, I still see your problem.
In stepping through it in the FlexBuilder
I recommend using a Timer rather than calling doLater().
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of simonjpalmer
Sent: Monday, March 26, 2007 12:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Whatever
Brett, I'm not clear on what you're trying to accomplish. You said you
need to create components dynamically and set their properties. If you
simply need to set the width and height of a newly created component,
you can do that immediately after 'new'ing the component in the same way
that you set
What makes you think that that error is coming from that code? What is
your handleComplete() method? And aren't you getting a line number
telling you the exact line in which value is not a function?
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL
Is bubbling then set to true by default?
As Alex said, Events have a constructor parameter as to whether the
event bubbles or not. In other words it is up to the code that creates
the event to decide whether it bubbles or not. For each event dispatched
by the Player or Flex Framework classes,
(Application), and listener in
b.mxml(Application), is it useful like as localConnection between two
Applications?
if it's useful ,can you give me an example?
thanks.
2007/3/23, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
:
Any listener can use event.target to get
MXML components do not have constructor parameters. You set properties
after calling 'new'. If you write
mx:Button id=b label=OK labelPlacement=right/
the compiler generates code similar to
var b:Button;
...
b = new Button();
b.label = OK;
b.labelPlacement = right;
The Menu component supports having multiple items of type check which
can be toggled on or off by selecting them.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: Friday, March 23, 2007 3:09 PM
To:
Try calling validateNow() after invalidateDisplayList(). This should cause
updateDisplayList() to get called immediately.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Janis
Radins
Sent: Thursday, March 22, 2007 7:19 AM
To:
%40yahoogroups.com
, Gordon Smith [EMAIL PROTECTED] wrote:
I don't think there is an automatic way to do this in the visual
rendering. I think you'll have write AS to loop over your data and
create another array of records that look like
Record #1: Author=John Doe Title=Advanced Cat Juggling
Record #2
This is a FOL of using types like Number in ActionScript or float/double
in Java, C, C++, etc. They can't do exact decimal fractions, because
they store values in binary and can't exactly represent a value like
0.99. You'll either need to do rounding or compute in pennies rather
than dollars in
Any listener can use event.target to get a reference to the object which
called dispatchEvent(), and thereby access its properties and methods.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ju Aedis
Sent: Thursday, March 22,
This sounds like it could be a Flash Player bug in
flash.display.TextField. The text components don't parse the htmlText,
they just pass it to the internal TextField.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Justin
Sent:
I don't think there is an automatic way to do this in the visual
rendering. I think you'll have write AS to loop over your data and
create another array of records that look like
Record #1: Author=John Doe Title=Advanced Cat Juggling
Record #2: Author= Title=Surviving Cat Scratch
I can't deal with forums. Is it possible to get all posts as individual
emails? Sorry if this is a dumb question, but I know some forums don't
support this.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of d3lix3
Sent: Monday,
I like the name Apollo myself, and I'm sure the Apollo team is
interested in the community's ideas about what the product should be
named, but picking a product name is a tricky business that involves
legal as well as marketing considerations.
Gordon
From:
myBarSeries.setStyle(showDataEffect, myZoomOutEffect);
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of iilsley
Sent: Thursday, March 15, 2007 10:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] newbie question re:
If the Button is in JobSearch.mxml, then walking the DOM up would mean
calling
parentDocument.preTrafficNav.selectedIndex = 1;
because the parentDocument of JobSearch is the app (or component)
containing it, which also contains the ViewStack preTrafficNav.
- Gordon
Yep. I got 1.5 million hits when I googled regexp tutorial.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tonyx_788
Sent: Wednesday, March 14, 2007 10:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Regexp wont
If you set selectedItems, the array you set it to needs to contain
actual object references to particular data items in the dataProvider.
It can't simply contain objects with the same data.
If you want to set the selection based on data, you'll have to loop
through all the items, inspect whether
). I've never seen that mentioned in the docs and
just assumed there was no dead-stripping...
For example, if I created an app that used no UI elements (or minimal UI
elements) then it should be pretty small, huh?
Troy.
On 3/13/07, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
wrote
, 2007 4:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Getting selectedItems to properly
*select*...
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Gordon Smith [EMAIL PROTECTED] wrote:
If you want to set the selection based on data, you'll have to loop
On Mar 13, 2007, at 8:17 PM, Gordon Smith wrote:
newInstance[someMethodName](someParam)
For example, myCanvas[addChild](new Button())
- Gordon
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED
can keep up with it (the prototype stuff always
made my head spin a bit). I was just under the impression that they
co-existed (or one piggy-backed on the other), but it make sense that
there are VM optimizations for the non-dynamic stuff...
Troy.
On 12 Mar 2007 13:25:14 -0700, Gordon Smith
Your application file itself should be MXML. In other words, you should
have at least an mx:Application tag, or you'll run into various
problems. But every other component instance can easily be
programmatically created using 'new'. I'm not very knowledgeable about
states, but I'm pretty sure that
for a very simple example
Application that illustrates what you are trying to do?
- Gordon
From: Thierry Bertossa [mailto:[EMAIL PROTECTED]
Sent: Friday, March 09, 2007 12:58 AM
To: Gordon Smith
Subject: Re: Init Global Object Best Practice
Thanks Gordon
It's
Actually, preventDefault() does NOT prevent other listeners from executing;
this is what stopPropagation() and stopImmediatePropagation() do.
preventDefault() simply sets the flag returned by isDefaultPrevented() to be
true. However, some event-dispatching code in the Player or the framework
{
uidNumber=UIDUtil.createUID();
return 'a'+uidNumber.substr(0,5);
}
Thanks,
Kumar
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Wednesday, March 07, 2007 5:39 AM
If your Application's initialize handler has set
public var init:Object;
in the Application's mx:Script, then you can access this Object from
any class as
Application.application.init
if you import mx.core.Application.
BTW, MXML files simply get translated by the MXML compiler
801 - 900 of 1602 matches
Mail list logo