Hi, Jurgen,
I got it to work with the LabelFunction, thanks!
JT
--- In flexcoders@yahoogroups.com, Jurgen Beck [EMAIL PROTECTED] wrote:
When returning a result set, make sure you are accessing the proxy
through the object property:
var myObject:yourVO = event.result.object as yourVO;
Hi all,
I'm trying to base some calculations on the stageHeight and
stageWidth, but I end up getting 636 and 464 every single time for
stageWidth and stageHeight (resp), no matter what parameters I give
for -default-size. I'm running the swf in the standalone player and
I've built it with the
Hi,
Here's an example:
package com.mypackage { [SWF(width=320, height=470,
backgroundColor=#FF9966)] public class MainApplication extends
Sprite { public function MainApplication() {
addChild(childObjectInSamePackage); } } } The first line
after package
Just another option:
var total : Number = 0;
for each (var obj : Object in myAC) {
total += obj.population;
}
R.
On 6/3/07, Jurgen Beck [EMAIL PROTECTED] wrote:
Hi Todd,
One of the ways would be to traverse your ArrayCollection with a cursor:
var cursor:IViewCursor =
I have a requirement to be able to copy and paste a chart from my
flex app to another application via the clipboard. The chart has to
come exactly as it appears on the screen, almost like an
alt-printscreen, but only the portion of the screen displaying the
chart.
Has anyone tried anything
Hello everybody,
I am experimenting with Flex.
I started from official examples, from Adobe.
Particularly this one: http://www.adobe.com/devnet/flex/quickstart/httpservice/
Looking at the demo I thought it would have been nicer to have the picture of
page open when the picture itself, and not
Hello All, great group here. Delighted to have stumbled upon it.
I have an arrayCollection which is used to pass info to a function which
filters an XMLList.
The arrayCollection, in an ideal world, would change in size and content based
on user
selections of a series of checkboxes. (i.e.
Need to correct (add) one line. Forgot to add the cursor.moveNext():
var cursor:IViewCursor = myAC.createCursor();
var sumPop:int = 0;
var myObject:Object;
while (!cursor.afterLast) {
myObject = cursor.current;
sumPop += myObject.population;
cursor.moveNext();
}
Jurgen Beck wrote:
This may be a simple question, but it's stumping me.
I have a component that contains a property (type object) that holds
a reference to an VO on my model.
How to I unlink that reference?
For example, when I set the property:
var vo : Object = model.someObject;
I then do something like
Hi,
I would think that setting;
vo = null;
then
vo = someNewObject
would unlink the reference.
OR
vo = new Object();
then
vo = someNewObject
Peace, Mike
On 6/3/07, Kevin [EMAIL PROTECTED] wrote:
This may be a simple question, but it's stumping me.
I have a component that contains
Rather than just assigning the model.someObject directly to the vo
object, you may first need to instantiate it with:
var vo:Object = new Object();
The assign the model.someObject to it:
vo = model.someObject;
When you then assign a different object to it, it should leave
model.someObject
Hi,
I wanna parse a XML file like this:
contacts
contact
name href=http://www.example.com;Huber/name
...
/contact
contacts
I have no problem parsing it, except of the href within the name tag.
My DataGrid looks like this:
mx:DataGrid dataProvider={xmlContacts.contact}
thanks. I will try this and let you know if it works.
- kevin
On Jun 3, 2007, at 9:33 AM, Jurgen Beck wrote:
Rather than just assigning the model.someObject directly to the vo
object, you may first need to instantiate it with:
var vo:Object = new Object();
The assign the
i couldn't get either of these solutions to work. When I reset the
vo variable to nul (or new Object), it still modifies the object on
the model. I could be doing something wrong, but for now, i decided
to instantiate an entirely new super class each time the vo changes.
I'll look into
package yanggang.tstAS3.tstRefChain{
public class RefChain{
public static function main():void{
var model:Object = { someObject:{ name:someObject}};
var vo:Object = model.someObject;
vo = {
Afaik this is not possible. I guess your example is incomplete, or ?
Cheers,
Ralf.
On 6/3/07, Kevin [EMAIL PROTECTED] wrote:
This may be a simple question, but it's stumping me.
I have a component that contains a property (type object) that holds
a reference to an VO on my model.
How to I
Tried it in hotfix2, tooltip came up and editor did not lose focus.
Which player, browser, os?
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nxzone
Sent: Friday, June 01, 2007 12:08 PM
To: flexcoders@yahoogroups.com
Subject:
I saw an internal discussion that there may have been a bug. I tried a
similar example in hotfix 2 and it worked for me so upgrade to hotfix 2
and give it a try there.
-Alex
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of
Hey Kevin,
See if this makes sense in your configuration:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
creationComplete=initApp()
layout=vertical
mx:Script
![CDATA[
private var obj1:Object = new Object();
You'd have to scan the arraycollection. I wouldn't use an AC in a
filter function, I'd probably use an object map indexed by fieldTag so
you can remove faster. The filter function should use for..in to
iterate the fields.
From: flexcoders@yahoogroups.com
Is it just me? References don't need unlinking. The original example
should just work. Kevin, can you post your code so we can see what
you're trying to do?
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jurgen Beck
Sent: Sunday,
I think SAFlashPlayer might do a quick resize so if you check later it
has the right size. Try tracing on enterFrame events.
In general, we do very little in the constructors. There is an INIT
method which is used to kick off real work.
From:
hi, anyone know how i can get the 'click' property of the datagrid to only
fire when i click a row? right now it fires even if you are clicking on one of
the headers
...
mx:DataGrid width=100% height=100% id=leadsList
click={displayProfile(event);}
mx:columns
Hey Alex,
Given an XML structure like so:
[Bindable]
private var myXML:XML = contacts
contact
name href=
http://www.example.com;Huber/name
/contact
Andrew Trice has a great tutorial on this...
http://www.cynergysystems.com/blogs/page/andrewtrice?entry=flex_2_bitmapdata_tricks_and
On 6/3/07, simonjpalmer [EMAIL PROTECTED] wrote:
I have a requirement to be able to copy and paste a chart from my
flex app to another application via the
Do you have an image or example of what you're trying to accomplish? You're
able to plot values in all 4 quadrants of the x/y axis both positive and
negative, but it sounds like you want to render the axis and it's labels in
the middle of your chart with a series above and below it... is that
No, you are not alone. Maybe the content of my email just didn't come
across.
Kevin, is your example code complete?
r.
On 6/3/07, Alex Harui [EMAIL PROTECTED] wrote:
Is it just me? References don't need unlinking. The original
example should just work. Kevin, can you post your code so
You'll need to use a custom renderer for your bar series items, and then
write conditionals within the renderer to display differently depending on
the value, or whatever affects the display you want.
Ely's got some great examples on his site...
You should listen to ListEvent.CHANGE.
From the documentation:
change - Dispatched when the selectedIndex or selectedItem property changes
as a result of user interaction.
Greetz Erik
On 6/3/07, Derrick Anderson [EMAIL PROTECTED] wrote:
hi, anyone know how i can get the 'click'
For custom styles I recommend you to add style metadata to the class like
this:
[Style(name=downloadIndicator, type=Class, inherit=no)]
This will give you code hinting in FlexBuilder for the component and in CSS
files aswell.
Greetz Erik
On 6/1/07, Mark Ingram [EMAIL PROTECTED] wrote:
thanks that event does work better, but hopefully this can be expanded upon-
for instance, using ListEvent.CHANGE fires when the user uses arrow keys to
switch between records- in my case that will open a popup each time. it would
be best if i could fire an event on dbl click of a row only,
mx:DataGridColumn headerText=Link dataField=@href /
Doesn't that work?
Peter
On 6/3/07, alexander.marktl [EMAIL PROTECTED] wrote:
Hi,
I wanna parse a XML file like this:
contacts
contact
name href=http://www.example.com;Huber/name
...
/contact
contacts
I have no problem parsing it,
This doesn't get you a 100% solution, but maybe it's good enough for you:
http://dougmccune.com/blog/2007/06/03/save-a-snapshot-image-of-a-flex-app-without-a-server/
It opens a popup window with a snapshot image of whatever Flex component you
specify. The user can then right click and copy or
Is there a way to make flex sleep for a specified amount of miliseconds?
I'm trying to make an icon flash
or does anyone have any alternate solutions for this
Hi all,
In actionscript 3, is there any function that are able to check if the
regular expression entered has the right syntax or not.
I'm trying to make a page that allows user to define their own regular
expression and i'm just trying to make sure that the expression that
they enter is in the
rid_b80 wrote:
Hi all,
In actionscript 3, is there any function that are able to check if the
regular expression entered has the right syntax or not.
Sure! Its called a regular expression!
boom boom!
(sorry, i just couldn't resist :)
I'm trying to make a page that allows user to define
Ya sure.
Here's a snapshot.
http://oss.oetiker.ch/rrdtool/
But I guess now that I think about it, all I need to do is plot the
second line series with a negative value (so that it gets plotted
below the x axis) and return the positive value in the labelFunction
of Linear Axis (so that now a
Hello All,
I have a WEIRD problem, and I am hoping you can all shed some light on
this.
I have a Popup TitleWindow which serves the purpose of displaying
details from a Master Grid. Among all the other controls housed within
the TitleWindow, I am using the ObserveValue Component, which monitors
You can monitor MouseEvent.DOUBLE_CLICK event and then use
mouseEventToItemRenderer to fetch the item renderer at the mouse position.
If the item renderer is not present in the listItems[0] array, that mean it
is not part of the header i.e. it is rendering a data/row.
Regards,
Swaroop
39 matches
Mail list logo