You control depth by the order in which the display object appears
in the display tree.
To adjust to order, you need to remove and re-insert the child object
using something like this:
this.addChildAt(this.removeChildAt(1),0);
The remove statement pops the item out of the display list,
mx:Label id=linkTxt htmlText=font color=#FFa
href='http://mysite.com'goto mysite/a/font mouseOver=hover() /
function hover():void{
linkTxt.htmlText = String(linkTxt.htmlText).replace('FF','00FF00');
}
you get the idea
--- In flexcoders@yahoogroups.com, Ethan Miller [EMAIL PROTECTED]
As a simple approach to this I'd create an inline renderer for this
column as:
mx:DataGridColumn headerText=Port Country
mx:itemRenderer
mx:Component
mx:Label text={data.port.country} /
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn
In this case the 'data' object is
I've most often encountered this type of error when I am setting state
based properties in mxml. It generally means that I've coded
target=someThing instead of target={someThing}. The target wants
an object with {} not a string with . I suggest you look at your
code to see if you haven't done
I've most often encountered this type of error when I am setting state
based properties in mxml. It generally means that I've coded
target=someThing instead of target={someThing}. The target wants
an object with {} not a string with . I suggest you look at your
code to see if you haven't done
When in doubt dump your data to make sure you are getting what you
think you are (in a change event handler for instance):
import mx.utils.ObjectUtil;
trace(ObjectUtil.toString(masterList.selectedItem));
--- In flexcoders@yahoogroups.com, bghoward3 [EMAIL PROTECTED] wrote:
i am trying to use
I'm trying to capture a mouseOver event and propogate it as if it were
a click event to control menu opening without forcing the user to
actually click.
Perusing the MenuBar.as and Menu.as class files, I've seen candidate
functions, but they are either set as private or I get a 1061 or 1195
Use a Currency Formatter:
// import the class
import mx.formatters.CurrencyFormatter;
// in code create and instance and set the format (also include $|,|.
selection)
var cashFormatter:CurrencyFormatter = new CurrencyFormatter();
cashFormatter.precision=2;
// apply the format to the raw and
Look into using the dataChange event in your renderer class. Basically
this event fires whenever the dataProvider is changed on your list:
this should include reapplying the same dataprovider that was
previously assigned.
I'd apply a change event function on your check box that basically
In ActionScript there is a property available that is not available in
MXML, and it is. [drum roll]
percentWidth !!!
(and of course percentHeight)
In some of the betas this was also available in MXML.
--- In flexcoders@yahoogroups.com, Doug Arthur [EMAIL PROTECTED] wrote:
How can I
I'm trying to cascade states (mxml format) in a top down fashion. At
each level children are being added, and I need to wait for this to
happen before trying to effect their states. What is the best event
model to approach this? I'm thinking of using the creationComplete
event on the child, that
Trying to cascade states in mxml based item renderer.
I've got a viewer that has states, and I'd like to be able to cascade
a state transition through a HorizontalList component that uses an
mxml based itemRenderer on its data provider. The renderer creates
thumbnails that I want to change state
So I finally broke down and am trying to play with the CF/Flex
connectivity, but I'm running into problems.
Here's the story so far:
- I have a local developer environment set up for CF
(C/:ColdFusionMx7) with a mapping to a remote datasource.
- I have IIS setup to run (C:Inetpub/wwwroot) with
I generally pass a reference to the parent or to the Application scope
in my constructor, depending on what scope I'm interested in having
access to within my custome component (in this cass class instances).
The code generally looks like this:
// where the instance is constructed could be a sub
--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote:
How easy is it to use Flex Beta to make an application where you
have a
password that is secure from being seen, you know to store information?
Most text components have a Boolean called 'password' that you can set
to hide display
My best guess is mid-May, but there is a slight possiblity it could be
in the next two weeks. My reasoning is as follows: 1.) Beta 2 expires
June 1, and they've usually released several weeks before expiration
2.)The recently announced contest rules state that all entries (due
date is May 1) must
@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
I'd use the HTML template that we provide from FB as a guideline for
what we recommend.
Matt
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Darin Kohles
Sent: Friday, February 24, 2006 8
I recently had a colleague recommend not using the Embed tag for
loading SWF files into html. I personally use swifs generated from
multiple applications and I've currently got FP 8.5 on my main browser
apps (IE/Moz-FF). I'm wondering if there is a definitive statement
from someone who develops
Flex 2 docs on this a very thin. Has anyone tackled this? Is it
similar enough to Flex 1.5, that I can use them as a starting point?
Or has the model change drastically for AS3?
Thanks for any feedback.
--
Flexcoders Mailing List
FAQ:
here are some examples:
http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href=0325.htm
--- In flexcoders@yahoogroups.com, Jason Doyle [EMAIL PROTECTED] wrote:
I would like to create a reusable cellRenderer that I can use on
multiple columns in a
If you write your renderer in AS instead of MXML, you can pass a
reference to the parent when you call the constructor for the class e.g.
in calling class (Application)
myRenderer:myRendererClass = new myRendererClass(this);
someObject.cellRenderer = myRenderer.doRender;
in custom Renderer
It's easier to do the object route:
var myImages:Object;
myImages = new Array(length);
for (:xmyImages.length:){
myImages[x].image = new Image();
myImages[x].image.source = http://etc.;;
}
Good Luck
--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote:
Do you make an array of Objects
If this is the future, lets hear about it.
Fritz: Because it doesn't really work (at least for me), to use the
existing swf in Flex (I read from some issues with AS2 / AS3...) I try
to port the entire app.
Let's sum up shall we? If anyone's keeping track, and are willing to
call this one discussed, please do so.
The yahoo format is not the best, but I've been trying to follow some
threads without overburdening my intake. I think there are a few
things getting lost in the shuffle when time is
I've just been dealing with this in Flash 8 (AS 2).
myAcc.setStyle('headerHeight',20);
I also had problems with header text - do a:
var headerObj:Object = myAcc.getChildAt(x);
for (var i:Object in headerObj){
trace(i + myAcc[i])
}
Look at the defined values (and undefined) and use
Try passing the explicit values to your function:
setFBack(mytext.Selection.getBeginIndex(), mytext,Selection.getEndIndex())
function setFBack(begin:Number, end:Number){
}
OR (Flex 2??):
public var begin:Number;
etc..
Maybe one of these will help.
Good Luck
--- In
a similar approach with repeater and Image tag...thanks for
the tip!
Stace
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Darin Kohles
Sent: Tuesday, December 13, 2005 10:32 AM
To: flexcoders@yahoogroups.com
Subject
You might try playing with some style properties like:
setStyle(borderThinkness,0)
setStyle(focusThinkness,0)
setStyle(marginLeft,0)
setStyle(marginRight,0)
Maybe one of these will do the trick.
Good Luck
--- In flexcoders@yahoogroups.com, stepanhil [EMAIL PROTECTED]
wrote:
Hi,
I'm
are looking for, but perhaps it may help you
anyway...
http://www.helpqlodhelp.com/blog/archives/000141.html
http://www.livejournal.com/users/mannu/305284.html
cheers
-michael
On 12/13/05, Darin Kohles [EMAIL PROTECTED] wrote:
I was wondering if anyone can point me to some good
A couple fo issues here:
function startUp():Void
{
/* event listener needs target (this) event to listen for
(MouseTypeEvent.CLICK) and what to do about it (myClickFunction - stay
away from using key words like 'click' for custom functions */
this.addEventListener(MouseEventType.CLICK,
Stacy, yes and no. Just create a new image dynamically when your XML
data is returned (no need to use Embed in this case):
private function resultHandler(event:ResultEvent):Void {
myImage: new Image();
myImage.source=event.result._xml_path_to_image_url;
));
but what about my 'val1' value (hello);
The docs don't give enough info
regards
bod
--- In flexcoders@yahoogroups.com, Darin Kohles [EMAIL PROTECTED] wrote:
A couple fo issues here:
function startUp():Void
{
/* event listener needs target (this) event to listen
PROTECTED] wrote:
Thanks for the link. Need to do some reading.
Is there an alternative to your suggestion regarding someFunction
and val1.
regards
bod
--- In flexcoders@yahoogroups.com, Darin Kohles [EMAIL PROTECTED] wrote:
I little bit more to clarify:
You should have
I was wondering if anyone can point me to some good documentation for
interacting with Flash generated SWF files in Flex 2.0. At present I'm
trying to re-skin some components with dynamic content (small event
triggerd animations) but so far to no avail.
Any help would be appreciated.
Thanks
and the solution was ?
--- In flexcoders@yahoogroups.com, Greg Morphis [EMAIL PROTECTED] wrote:
nevermind, I got it
On 12/9/05, Greg Morphis [EMAIL PROTECTED] wrote:
getURL() doesnt like I keep getting
The reference to entity date must end with the ';' delimiter.
So how do you get
Encounter this often in DOM JS coding. I would just add to Matt's code:
for (var key:String in obj){
trace(var: +var+ | Obj[var]: +String(obj[var]));
Alert.show(var: +var+ | Obj[var]: +String(obj[var]));
}
Do somthing like that and you'll be able to know which object/property
you want to
Try /* */ and // on the auto-generated code. When you hit something
that is required you'll know it.
Unfortunatly, I end up doing this when I add too much at once,
thinking that everything is supported.
Good Luck
--- In flexcoders@yahoogroups.com, zlayabuka [EMAIL PROTECTED] wrote:
I wonder
If you're familiar with the concept of a deep copy, then you can
apply the same to a compare function (of course you'll have to write
it yourself ;). Anytime you are dealing with a complex and/or custom
type it's a good idea to plan on comparison and choose what is, in
fact, 'equal'.
This can be
Dunno if this will help but try amp;
Otherwise use encodeURI() on your URL string and you'll be much
happier. (I think)
Good Luck
--- In flexcoders@yahoogroups.com, Greg Morphis [EMAIL PROTECTED] wrote:
getURL() doesnt like I keep getting
The reference to entity date must end with the ';'
If you're familiar with the concept of a deep copy, then you can
apply the same to a compare function (of course you'll have to write
it yourself ;). Anytime you are dealing with a complex and/or custom
type it's a good idea to plan on comparison and choose what is, in
fact, 'equal'.
This can be
Ralf,
Wie Gehts? (no I really don't remeber my german 5 years ~ 20 years ago)
Be careful of your use of 'this' as the target of your effect (Jesse
stop by DP some time, ask for Ben, and maybe we can meet - Flash issues).
I've had similar code that I've changed the effect type one several
times
In the dataGridColumn set cellRenerer=myRenderer, then create a new
component based on a container like VBox and name it myRenderer.mxml.
Inside this new file add code like:
?xml version=1.0 encoding=utf-8?
mx:VBox xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=*
mx:Link label=Buy
Thanks for the responses Matt and Sreenivas.
For those interested my, work-around for this was to simply remove the
exiting slider, and add a replacement at the same place in the child
stack (within an VBox). myBox.removeChildAt() and myBox.addChildAt().
One other thing tho - I tried setting
Not entirely sure about why it in the middle of your order. But I've
handled this in Flash by doing the following:
For display, set up a custom cellRenderer (listItemRenderer) that
checks for undefined values and gives them a default display value:
e.g. NA (Not Available) etc.
For sort, provide
--- In flexcoders@yahoogroups.com, Michel Bertrand
[EMAIL PROTECTED] wrote:
Hi !
I've tried to find an approuch to validate fields of a data form.
chech this:
http://www.macromedia.com/cfusion/webforums/forum/categories.cfm?forumid=72catid=582flcache=2109871
--- In flexcoders@yahoogroups.com, Michel Bertrand
[EMAIL PROTECTED] wrote:
Hi !
I've tried to find an approuch to validate fields of a data form.
chech this:
http://www.macromedia.com/cfusion/webforums/forum/categories.cfm?forumid=72catid=582flcache=2109871
Thought this might have gotten buried by the holidays, anyone have any
thoughts?
Thanks,
--- In flexcoders@yahoogroups.com, ur_dtrain [EMAIL PROTECTED] wrote:
I've encountered the following issues with Event triggers during an
Effect playback:
I've set up several Resize Effects
47 matches
Mail list logo