instead of adding the calculation to the value object, which is scoped
locally, try adding it to the data object:
super.data.net_lbs = total;
--- In flexcoders@yahoogroups.com, "bsdensmore" <[EMAIL PROTECTED]> wrote:
>
> yes, they do.
>
> I'm just doing a very small example to get my head aroun
goto mysite" 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]> wrote:
>
> While in general I've been fairly happy with my ability to styl
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, retur
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
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 do
I encountered the same problem and wrote my own version.
public var categoryNodes:XML = new XML(); // xml data of the tree set
elsewhere
public var arrayFromNodes:ArrayCollection = new ArrayCollection();
public var nodeCount:Number = 0;
/**
* returns an xml node based on a tree index
*/
public
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 do
As a simple approach to this I'd create an inline renderer for this
column as:
In this case the 'data' object is replicated for each row of your
collection. You can then drill down in the usual fashion to retrieve
embeded objects and their contained values. The same could
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
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
re-assign
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 save
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
error:
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 wo
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 w
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
--- 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 displ
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 c
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 b
- In flexcoders@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:
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 the
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 (cons
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
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: http://groups.yahoo.com/group/flexcoders/files/flexcodersF
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: http://groups.yahoo.com/group/flexcoders/files/flexcodersF
It's easier to do the object route:
var myImages:Object;
myImages = new Array(length);
for (:xhttp://etc.";;
}
Good Luck
--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote:
>
> Do you make an array of Objects or do you make an array of
>
Yahoo! Groups Sp
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."
http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/common/html/wwhelp.htm?context=
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 limit
ecember 13, 2005 10:39 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Re: Using Embed with dynamic values possible?
>
>
>
> Was taking a similar approach with repeater and Image tag...thanks for
> the tip!
>
> Stace
>
>
>
>
>
&g
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 flexcoders@yahoogroups.com
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 setSty
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,
ot;bhaq1972" <[EMAIL 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 Ko
rent (actually this.parentDocument if
> you take my original question)
>
> > dispatchEvent({type:"myEvent", val1:"hello"});
> > dispatchEvent(new Event("myEvent));
>
> but what about my 'val1' value ("hello");
>
>
> The docs
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;
someContainerObjectLikeCanvas.addChild(myIm
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, myClickFunc
Not exactly what you 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 PROT
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
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
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 wa
Transed lots'a (of) code from many plats (platforms) ((and it sucks)).
What you(I) assume in one, aint gonna work in t'other. But sometimes
what does 'work' is better to work around than re-write ('smother
times it be aint). 'nuff said. ( if'n,... - If you can understand the
preceading, well mo p
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 u
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 &
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
check Here:
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=584&threadid=1090772&enterthread=y
--- In flexcoders@yahoogroups.com, "Ralf Rottmann"
<[EMAIL PROTECTED]> wrote:
>
> Has anybody managed to apply effects to state transitions so does a
> currentState="xyz" causes
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:
http://www.macromedia.com/2005/mxml"; xmlns="*">
Here the dataObject represents the bound dataProvider, and .
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 this
On dynamic mySilder.labels re-assignment, the .labels array always
retains the first label (and appears to pre-append its value to the
assigned array).
Setting the labels array dynamically after the initial display appears
to retain the low value.
mySlider.labels=[0,100]; //displays OK
... more c
In addition to what Matt has said: it depends on when you're firing
your validator.
in MXML do validation on user event:
-or-
If you're doing it programmatically in AS, you can add an event
listener for mouse events for this target.
myCheckBox.addEventListener(MouseEvent:MOUSE_UP,myValidation);
--- 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=72&catid=582&flcache=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=72&catid=582&flcache=2109871
--
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 a
wrote:
>
> you might try using removeEventListener() onEffectStart and
reassign it onEffectEnd
> //Philippe
>
>
>
> From: flexcoders@yahoogroups.com on behalf of Darin Kohles
> Sent: Tue 29/11/2005 5:34
> To: flexcoders@yahoogroups.com
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 pro
55 matches
Mail list logo