> I was wondering if Flex/Actionscript allows you to create references
> to object properties on the fly with a dynamically created string.
Yes. If obj is an object and s is the String "foo", then obj[s] is
obj.foo.
- Gordon
From: flexcoders@yahoogroups.com
I'd argue that best-practice is #4, the 'in' operator.
#1 is Ecmascript legacy useful for prototype-based inheritence, to tell
whether an object has the property or one farther up its prototype
chain. Flex makes almost no use of prototype-based inheritence.
#2 isn't useful because if it compile
The Sprite class has startDrag() and stopDrag() methods. If your 'something' is
an mx.controls.Image, it inherits these methods. Perhaps their parameters have
changed, or your Image is something else?
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PR
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 language
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: Wednesday,
> If I brouwse to the stafflist.php file from a browser I get XML in
avalid format :-)
> How do I get the data into my flex app???
To get XML from PHP, you must set resultFormat="e4x" on your
tag. Otherwise, you will receive your data as
ActionScript Objects. And, like Tracy said, you need a "r
xcoders@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 relative to the
DateField.
quot;dateChooserStyleName" as below but this didn't
work:
http://www.adobe.com/2006/mxml";>
.
.myDateChooser{x:200;y:200}
Linc
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Wed
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: flexcoders@yahoog
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 data
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
___
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] "
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 Michael
ave asked 5 hours ago ! ;-)
>
> Thanks Gordon
>
>
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , "Gordon Smith" wrote:
> >
> > Use rollOver and rollOut instead of mouseOver and mouseOut.
> >
> > - Gordon
> >
> &g
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: [f
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: flexcoders@yahoog
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: flexcoders@yahoogroups.c
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 PROTE
.panelTitle { fontSize: 24; color: red }
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ian Skinner
Sent: Wednesday, May 02, 2007 2:55 PM
To: [EMAIL PROTECTED]; flexcoders@yahoogroups.com
Subject: [flexcoders] What can
h 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!
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
__
ontact: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 PROTECTED]> wrote:
>
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 instan
> 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
ct with the
button.
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
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: flexcoders@yah
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 ne
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 .
Looping over the elements? Look at some E4X examples.
Extracting the and for a particular ? Look at
some E4X examples.
Creating
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 preve
uot;? What if the XMList contained 's and 's
and 's, all with label attributes... how would I select the menu
element with the correct label attribute? My first guess would be you'd
have to first get a list of just menu elements, which would be calling
XMLList.elements("men
'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 [mai
You can access properties and methods declared in your
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
__
The code
var value:String = cbData.(@label == "M")[EMAIL PROTECTED];
will set value to "1000". You don't "dot down" into when you
start with .
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent: Wednesday, Ap
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 selectPl
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 t
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
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 Man
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: flexcoders@yahoog
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?
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 [mailto:[E
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
ecast... why not Boolean too?
see, 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 aga
> 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
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
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 you
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:
> 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 P
DateFormatter). 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
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
__
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 style
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 DateF
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 ind
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: flexcoders@yahoogroups.com
n do in flash with movieclips mc.number = i
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,
>
>
> 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
Subj
developers not to use name
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
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
___
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: [flexc
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 th
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];
}
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
> 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 sermo
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
and
private function tree1_changeHandler(event:Event):void
{
// do something to combo, such as set its dataProvider
}
If for some r
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, f
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
To
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
> 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:
// Any other method in this class can access the radio buttons using
these variables
> 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
find 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
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: flexco
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
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
cha
:
Array ) : 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:
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 debugg
t: Tuesday, 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
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 x
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 happene
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 PROT
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: flexcoders@yahoogr
MXML components do not have constructor parameters. You set properties
after calling 'new'. If you write
the compiler generates code similar to
var b:Button;
...
b = new Button();
b.label = "OK";
b.labelPlacement = "right";
It doesn't know what MXML attributes corre
.mxml(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 c
> 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,
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: T
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, 20
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 ord
excoders%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
>
>
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: f
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 Fe
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, Mar
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: flex
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: Bar
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
ednesday, March 14, 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 wa
cript apps ... usually a meg difference
for bare bones stuff). 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/0
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
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
params );
Thanks,
- Kevin
On Mar 13, 2007, at 8:17 PM, Gordon Smith wrote:
newInstance[someMethodName](someParam)
For example, myCanvas["addChild"](new Button())
- Gordon
From: fl
[flexcoders] Dynamic Instance of Class & Data Typing
what do you mean 'linked into your app'? the rest I understood.
thanks!
- Kevin
On Mar 13, 2007, at 7:19 PM, Gordon Smith wrote:
Yes, assuming that myFavoriteClass is actually linked into your
app. You can use th
ubject: Re: [flexcoders] Dynamic Instance of Class & Data Typing
by the same token how would I call a method dynamically.
newClass[someMethodName](someParam);
I tried the above with no luck.
thanks, Kevin
On Mar 13, 2007, at 7:19 PM, Gordon Smith wrote:
Yes,
801 - 900 of 1667 matches
Mail list logo