Re: {Disarmed} [flexcoders] WebServices and ObjectProxy

2007-06-03 Thread ehsiao_bea
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;

[flexcoders] stage.stageWidth/stageHeight lies in standalone player?

2007-06-03 Thread seriousbraincancer
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

[flexcoders] Set size of the SWF application depending on parameters

2007-06-03 Thread jairokan
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

Re: [flexcoders] summing a value in an arrayCollection?

2007-06-03 Thread Roman Protsiuk
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 =

[flexcoders] Chart snapshots

2007-06-03 Thread simonjpalmer
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

[flexcoders] Image click handler

2007-06-03 Thread Cesare Rocchi
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

[flexcoders] removeItemAt combined with getItemAt - Manipulating an arrayCollection

2007-06-03 Thread michaelmatynka
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.

Re: [flexcoders] summing a value in an arrayCollection?

2007-06-03 Thread Jurgen Beck
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:

[flexcoders] Change Object Reference

2007-06-03 Thread Kevin
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

Re: [flexcoders] Change Object Reference

2007-06-03 Thread Michael Schmalle
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

Re: [flexcoders] Change Object Reference

2007-06-03 Thread Jurgen Beck
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

[flexcoders] Flex XML parsing E4X question

2007-06-03 Thread alexander.marktl
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}

Re: [flexcoders] Change Object Reference

2007-06-03 Thread Kevin
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

Re: [flexcoders] Change Object Reference

2007-06-03 Thread Kevin
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

[flexcoders] Re: Change Object Reference

2007-06-03 Thread apple_sky_2000
package yanggang.tstAS3.tstRefChain{ public class RefChain{ public static function main():void{ var model:Object = { someObject:{ name:someObject}}; var vo:Object = model.someObject; vo = {

Re: [flexcoders] Change Object Reference

2007-06-03 Thread Ralf Bokelberg
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

RE: [flexcoders] Re: Tooltip in itemeditor of datagrid BUG or... WIsh...

2007-06-03 Thread Alex Harui
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:

RE: [flexcoders] Re: Custom Attributes

2007-06-03 Thread Alex Harui
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

Re: [flexcoders] Change Object Reference

2007-06-03 Thread Jurgen Beck
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();

RE: [flexcoders] removeItemAt combined with getItemAt - Manipulating an arrayCollection

2007-06-03 Thread Alex Harui
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

RE: [flexcoders] Change Object Reference

2007-06-03 Thread Alex Harui
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,

RE: [flexcoders] stage.stageWidth/stageHeight lies in standalone player?

2007-06-03 Thread Alex Harui
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:

[flexcoders] click event handler of datagrid, make it fire on rows only

2007-06-03 Thread Derrick Anderson
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

Re: [flexcoders] Flex XML parsing E4X question

2007-06-03 Thread Brendan Meutzner
Hey Alex, Given an XML structure like so: [Bindable] private var myXML:XML = contacts contact name href= http://www.example.com;Huber/name /contact

Re: [flexcoders] Chart snapshots

2007-06-03 Thread Brendan Meutzner
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

Re: [flexcoders] Inverted charts

2007-06-03 Thread Brendan Meutzner
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

Re: [flexcoders] Change Object Reference

2007-06-03 Thread Ralf Bokelberg
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

Re: [flexcoders] Making an individual Bar on a BarGraph stand out?

2007-06-03 Thread Brendan Meutzner
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...

Re: [flexcoders] click event handler of datagrid, make it fire on rows only

2007-06-03 Thread EECOLOR
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'

Re: [flexcoders] Best way to set styles in actionscript?

2007-06-03 Thread EECOLOR
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:

Re: [flexcoders] click event handler of datagrid, make it fire on rows only

2007-06-03 Thread Derrick Anderson
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,

Re: [flexcoders] Flex XML parsing E4X question

2007-06-03 Thread Peter Hall
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,

Re: [flexcoders] Chart snapshots

2007-06-03 Thread Doug McCune
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

[flexcoders] Sleep / Blink Image

2007-06-03 Thread Christopher Olsen
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

[flexcoders] Regular expression

2007-06-03 Thread rid_b80
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

Re: [flexcoders] Regular expression

2007-06-03 Thread shaun
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

[flexcoders] Re: Inverted charts

2007-06-03 Thread Sandeep Malik
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

[flexcoders] Flex Component still active, even know TitleWindow it resides in, is deleted -

2007-06-03 Thread Mike Anderson
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

RE: [flexcoders] click event handler of datagrid, make it fire on rows only

2007-06-03 Thread Swaroop C H
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