[flexcoders] ObserveValue, and how to reference within AS3 Class File

2007-01-16 Thread Mike Anderson
Hello All,

I am trying to figure out how to use the ObserveValue Component, when I
use it inside of a Class File.

In all the examples I've seen, they all utilize the Class File as a MXML
Component - and when I use it in this manner, it works just fine.

BUT, I really need to use this inside my Class Files - and as far as I
can tell, I should be able to import the Class File, and create a new
variable - casting it as an ObserveValue() - but when I use it this way,
nothing happens.

Per the examples, here is the proper use of the file:

ac:ObserveValue 
id=valueObserver 
source={ model.myVarToBeWatched } 
handler=valueObserverHandler 
value=true/

Now, I'd like to use it using pure ActionScript - and here's what I got
so far: (keep in mind, the AS Class File below, is extending the Control
in which it belongs to - and rest assured, that I am placing all the
appropriate code within all the proper Event Listeners, like
onCreationComplete, etc.)  I am just keeping it simple, for this
particular post.

package
{
import com.adobe.ac.*;

class myClass extends Panel
{
private var myObserve:ObserveValue = new ObserveValue();
[Bindable]
public var model:ApplicationModel =
ApplicationModel.getInstance();

public function myClass():void
{
initObservers();
}

private function initObservers():void
{
myObserve.source = model.myVarToBeWatched;
myObserve.handler = valueObserverHandler;
myObserve.value = true;
}

private function valueObserverHandler( event:Event
):void
{
trace( it worked );
}
}
}

In my real code, I wait for the Creation Complete Event, before I
initialize all of my Event Listeners, etc.  So you can assume that my
real code, is properly setup.

My real question here is, when creating component written purely in AS3,
can they be used either way - like as an inline Component in MXML, or if
you choose, referenced within an AS3 Package?  I don't see why not,
since MXML Controls are all just Class Files anyway...

So I just wanted to know if somebody could shed some light on what I'm
doing wrong, or if the ObserveValue Class just wasn't designed to be
used in this manner.

Thanks in advance for all your help,

Mike


[flexcoders] problem with DataGridListData

2007-01-16 Thread sanjaypmg
Hi,

I am facing a problem when I initialise DataGridListData class in 
testCombo.mxml.

I have initialised it in changeCombo method of testCombo.mxml but 
when i change the combo it doesnt show the value of column index in 
alert.

If i have comment the initialisation and display somethingelse or 
some hardcode value, it shows the alert but doesnt show the 
columnIndex.

Please help me to resolve this prblm.

Thanks,
Sanjay sharma



 filterTest.mxml

?xml version=1.0 ?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;  
xmlns=../*   viewSourceURL=srcview/index.html

mx:Script
![CDATA[
import mx.events.DataGridEvent;
import mx.rpc.events.HeaderEvent;
import mx.collections.ArrayCollection;
import mx.core.ClassFactory;
import mx.controls.Alert;
import mx.events.DataGridEvent;


public var object2:Object = new Object();
public var object:Object = new Object();
[Bindable]

 
 [Bindable]
   public var authorsDataProvider : ArrayCollection = new 
ArrayCollection( [
{ Country: USA, Gold: 35, Status:Active, 
URL:http://www.google.com; },
{ Country: China, Gold: 32, 
Status:Deactive,URL:http://www.yahoo.com},
{ Country: Russia, Gold: 27,Status:Deactive, 
URL:http://www.hotmail.com; },
{ Country: India, Gold: 12, 
Status:Active,URL:http://www.gmail.com},
{Country: Russia, Gold: 27, 
Status:Deleted,URL:http://www.hotmail.com; },
{Country: Russia, Gold: 27, 
Status:Deleted,URL:http://www.hotmail.com; } ]);

public function headerClick(evt:DataGridEvent):void{
}
]]
/mx:Script
mx:Panel title=Header Filter width=100% height=100%
  mx:DataGrid id=gridPanel headerRelease=headerClick(event) 
dataProvider={authorsDataProvider} width=100% height=100% 
sortableColumns=false   
mx:columns
  mx:Array
mx:DataGridColumn width=300 headerText=Country 
dataField=Country /
mx:DataGridColumn width=300 headerText=Value 
dataField=Gold/
mx:DataGridColumn width=300 headerText=Status 
dataField=Status headerRenderer=testCombo/
mx:DataGridColumn width=300 headerText=URL 
dataField=URL/
  /mx:Array
/mx:columns
  /mx:DataGrid
/mx:Panel
/mx:Application

= testCombo.mxml ===

?xml version=1.0 encoding=utf-8?
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
mx:ComboBox id=cboAuthorsStatusFilter
dataProvider={authorsArray} preinitialize=init() 
change=changeCombo()   
mx:Script
![CDATA[
import mx.controls.DataGrid;
import mx.controls.Alert;
import mx.collections.*;
import 
mx.controls.dataGridClasses.DataGridListData;   
[Bindable]  
public var authorsArray:Array = [All,
Active,
Deactive,
Deleted];
public function init():void{
addEventListener(dataChange, 
handleDataChanged);
}
public function handleDataChanged
(event:Event):void { 
Alert.show(s+handleDataChanged);
} 
public function changeCombo():void{
var testData:DataGridListData = DataGridListData
(parentDocument.listData);
Alert.show
(s+testData.columnIndex.toString());
}
]]
/mx:Script
/mx:ComboBox
/mx:HBox




Re: [flexcoders] Some AS3 component troubles

2007-01-16 Thread Janis Radins

Tnx, this docs seems a lot more usefull than built in ones.

07.15.1 Stephen Gilson [EMAIL PROTECTED] rakstīja:


   You can find the Creating and Extending Flex 2 Components doc here:

http://livedocs.macromedia.com/flex/201/html/Part3_CreateComps_135_1.html

You can also try the Flex QuickStart for building components in
ActionScript:

http://www.adobe.com/devnet/flex/quickstart/building_components_in_as/

Stephen

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Janis Radins
*Sent:* Monday, January 15, 2007 9:16 AM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Some AS3 component troubles

 Thankyou both for answers.
You finally gave me some pointers to explore.

07.15.1 Ralf Bokelberg [EMAIL PROTECTED]  rakstīja:

   Hi Janis

 Your component looks very different from a common Flex component. Flex
 components follow a certain structure to create sub instances and update
 their ui. I don't remember the url, but i think you can find some
 introductory tutorials about Flex component development at Adobe's website.

 Good luck,
 Ralf.

 On 1/15/07, Janis Radins  [EMAIL PROTECTED] wrote:
 
Hey people!
 
  I already tried to ask in here but no one answered, then I tried
  flashcoders list and no solution in there as well, so I'm trying one more
  time, maybe someone can explain where is my problem.
 
  I'm trying to make some pretty simple UI component in Flex and it
  seems like I'm missing something.
  I think I've read everything I could but I cannt find what is it I'm
  missing, maybe someone on this list knows wheres the problem.
  So what I am doing is:
  1. I create some pretty simple MXML project just for test with this
  content
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx= http://www.adobe.com/2006/mxml;
  xmlns:myComp=components.* layout=absolute
  myComp:TestComponent/myComp:TestComponent
  /mx:Application
 
  Pretty simple.
  xmlns:myComp=components.* defines that components can be found in
  folder named components in root of project, where I have this file
  TestComponent.as with following content
  package components {
  import mx.core.UIComponent;
  import mx.controls.Image;
  import flash.display.Shape;
  public class TestComponent extends UIComponent {
  private var imageInstance:Image = null;
  public function TestComponent() {
   super();
  imageInstance = new Image();
  imageInstance.source = icon.gif;
  addChild(imageInstance);
  trace(TestComponent initialized!);
  var shape:Shape = new Shape();
  shape.graphics.beginFill(0xFF);
  shape.graphics.drawCircle(50,50,25);
  addChild(shape);
  }
  }
  }
 
   icon.gif is bitmap stored in root folder of project.
  Seems like pretty stright forward and theres nothing to break, but it
  isnt so. Shape appears, which make me think that component instance is
  initialized and placed in display list.
  But I really have bad luck with creating mx.controls.Image i think I
  tried everything with no luck.
  There must be something I'm missing, but I have no idea what is it :)
 
  Oh, and when I tried to extend some component directly it works, seems
  like thers no blank components for me!
  Any help will be apreciated!
 
  Jānis
 
 


 --
 Ralf Bokelberg [EMAIL PROTECTED] 
 Flex  Flash Consultant based in Cologne/Germany
 Phone +49 (0) 221 530 15 35


  



[flexcoders] Loading assets with inheritance issue ** UPDATE**

2007-01-16 Thread jerome_cordiez
... and I thought I was done with that issue :)... It just popped back
again today during development.

Let me recap what happened : 

I have a shell application, that loads at runtime other swfs that
contain classes which all extend and implement the same superclass and
interface. So far, everything's ok.

Now, I need some of these classes (that are in the loaded swf) to load
external data, such as other swfs, images, videos etc.
The loaded swf is local, but the external data is, well, external
(i.e. on another server, domain, etc)...
Which, as you might guess, make me run into a sandbox violation issue
(error #2028 : local swf can't load stuff from http://...)

Since I'm in development and working with local files, I can't seem to
set the securitydomain of the loaded swf's via LoaderContext (error
#2142)... So I thought ok, nevermind, I'll temporarily allow the local
files inside my development folder to access remote data.

That solves the sandbox issue, but, to my surprise, it made my old
inheritance issue pop up at the surface again...

So... I'm pretty much clueless here... How would one solve this, and
have an application loading local swf files containing shared classes
(via LoaderContext.applicationDomain), that in turn load external swfs?

thanks a lot for any help, terribly appreciated !:)
cheers,
J.



[flexcoders] Re: Compiling problems

2007-01-16 Thread olivier
Hi


I'm experiencing the same problem SINCE I've upgrated to flex builder 
2.0.1

I receive the error Unable to export SWC Oem for my flex library 
project and when I'm launching my projects I receive the following two 
errors

Connect failed because the object is already connected.

and

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.

when using my custom SWC.


I'm highlighting the fact that these projects were working with the 
previous version and no modification has been made.



the flex builder 2.0.1 seems to have a big problem !


Olivier



--- In flexcoders@yahoogroups.com, Webdevotion [EMAIL PROTECTED] wrote:

 Ok, I found a way to reproduce my problem.
 Create a new project.
 
 Add a new child ( eg: a Car class which extends Sprite ).
 Inside the Car class, try to access stage.
 eg: var w:Number = stage.stageWidth;
 
 From that moment on, your app fails to compile,
 even after removing the stage.stageWidth line.
 
 Can anyone verify this for me ?





RE: [flexcoders] Cairngorm support for Flex 2.0.1 modules?

2007-01-16 Thread Alistair McLeod
Hi Tom,

Before any additions are made to the Cairngorm framework, we always
ensure that they have been used in real-life projects first. I'm doing
some investigation into Cairngorm/Modules and will post results when I
get them, but don't expect any immediate changes to Cairngorm around
this. What will likely happen first is blog posts/DevNet articles
suggesting how we see things working, and then additions to the
framework once those ideas have been proven.

I'd be interested in hearing the thoughts and experiences on others on
this too.

Best,

Alistair

--
Alistair McLeod
Technical Practice Leader (Rich Internet Applications and LiveCycle)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6108
[EMAIL PROTECTED], http://weblogs.macromedia.com/amcleod
 


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Baggett
Sent: 15 January 2007 18:02
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm support for Flex 2.0.1 modules?

Hello all,

I'm evaluating the new module interface in the Flex 2.0.1 update and
have some questions in regards to Cairngorm-architected apps.

Does anyone have recommendations on how you would slice up a
Cairngorm-based Flex app into modules?

For example, the ModelLocator- and FrontController-derived classes would
need to allow values and commands to be dynamically added and removed as
modules are loaded and unloaded.  How should this be implemented so that
data binding to the model works as expected?

Is there any work being done on the framework to facilitate these types
of things?

Thanks for any thoughts,

Tom



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





Re: [flexcoders] datagrid row moves up to the header when scrolled?

2007-01-16 Thread Tom Chiverton
On Tuesday 16 January 2007 03:58, arpan srivastava wrote:
 I am using custom item renderers to draw charts. Datagrid contains
 only charts. What i found is that when i scroll fast then all the rows move
 up. it's like the first row moves upto the header and all other also
 leaving a blank space at bottom. ?

This is a common problem with custom item renders, if you look in the list 
archive you should be able to find a number of work arounds.

-- 
Tom Chiverton
Helping to paradigmatically lead transparent web-readiness



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Re: Minimized Panel

2007-01-16 Thread Tom Chiverton
On Monday 15 January 2007 17:01, Pablo wrote:
 VDividedBox and when I drag divider minimized Panel's instance became
 unminimized. I  e its this.height increased automaticaly. So how I can
 avoid this?

You need to set a 'current state' flag, and overide this behaviour in the 
measure method or with a resize event handler. 

-- 
Tom Chiverton
Helping to synergistically foster professional products



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Cairngorm support for Flex 2.0.1 modules?

2007-01-16 Thread Tom Chiverton
On Tuesday 16 January 2007 10:11, Alistair McLeod wrote:
 I'd be interested in hearing the thoughts and experiences on others on
 this too.

Modules would register their interest in particular Events when they were 
loaded - multiple modules repsonding to the same Event would also be 
possible.
Likewise, Modules could also register the list of Events they could generate 
with the main shell, allowing other modules to invoke their Events via a core 
Controller.

-- 
Tom Chiverton
Helping to paradigmatically customize one-to-one mindshares



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] calling a TitleWindow modal from main app without using a button on app start

2007-01-16 Thread Michael Schmalle

Hi,

make a createLoginWIndow() method that calls PopUpManager.


From there you can have the window creation anywhere, click, compltete ect.


To answer your question, you could now put the createWindow() method in
either the applicationComplete or creationComplete handler of the
Application tag.

IE

mxApplication ...
  applicationComplete=createWindow() .. 

...

/mx:Application


Peace, Mike

On 1/16/07, jonalexander370 [EMAIL PROTECTED] wrote:


  Hello,

Any ideas would be greatly appreciated. I am trying to have a login /
registration modal TitleWindow using the PopUpManager in Flex 2.

When my main app runs first then there is a button to press for login,
then the TitleWindow displays.

How can I have it automatically created and display without needing
the button, upon arrival at my web site at www.e-revenues.com, you can
see what I have been trying.

Any and all suggestions would be greatly appreciated.

Thank you.

Jon Alexander
[EMAIL PROTECTED] sales%40e-revenues.com

 





--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] htmlText attribute of TextArea

2007-01-16 Thread KP
Hi All,

 

I have a text area in which I am putting some html content but problem here
is if I directly put the contents in cdata then things are fine but if I
take data in a variable and then I bind that in htmlText property then it
does not render html tags.

 

Below is the html code if I put it directly in htmlText CDATA it works fine
but if assign it to a string var and then bind it html tags are not
rendered.can some one suggest some approach

 

  p

bSunnis blast hanging of 2 Saddam aides (AP)/b

/p

br/

pa

 
href=http://us.rd.yahoo.com/dailynews/rss/topstories/*http://news.yahoo.com
/s/ap/20070116/ap_on_re_mi_ea/iraq

img

 
src=http://d.yimg.com/us.yimg.com/p/ap/20070115/capt.bag12401152022.iraq__e
xecutions_bag124.jpg?x=130y=97sig=sTeFNZ1LVcYvIbQ8GEotbA--

align=left height=97 width=130

alt=People carry the coffin of one of two of Saddam
Hussein's co-defendants found guilty in a trial along with Saddam in the
killing of 148 Shiite Muslims,  who were executed at dawn Monday in Baghdad,
in the town of Ouja, 115 kilometers (70 miles) north of Baghdad, Iraq,
Monday Jan. 15, 2007. Barzan Ibrahim, Saddam's half brother and former
intelligence chief, and Awad Hamed al-Bandar, head of Iraq's Revolutionary
Court were hanged before dawn Monday, the government said, two weeks and two
days after the former Iraqi dictator was executed in a chaotic scene that
has drawn worldwide criticism.   (AP Photo/Bassem Daham)

border=0/

/aAP - The Iraqi government's attempt Monday to close a chapter on
Saddam Hussein's

repressive regime #151; by hanging two of his henchmen #151; left
many of Saddam's

fellow Sunni Muslims seething after the former leader's half brother
was decapitated on the

gallows./p

br clear=all/

br/

p

bStorm blacks out parts of Northeast (AP)/b

/p

br/

pa

 
href=http://us.rd.yahoo.com/dailynews/rss/topstories/*http://news.yahoo.com
/s/ap/20070116/ap_on_re_us/winter_blast

img

 
src=http://d.yimg.com/us.yimg.com/p/ap/20070115/capt.moms10201151735.winter
_blast_moms102.jpg?x=130y=86sig=oU6GLZQm8BanbibC31Yt_w--

align=left height=86 width=130

alt=Missouri Gov. Matt Blunt, center, talks with Wilda and
Edwin Krost of Springfield, Mo., at McDonald Arena on the campus of Missouri
State University in Springfield, Mo., Monday, Jan. 15, 2007. The arena is
one of dozens of emergency shelters opened around the state following
devastating weekend ice storms. (AP Photo/Mark Schiefelbein)

border=0/

/aAP - A winter storm that slathered the Midwest and Plains under
a thick coat of ice

crashed into the Northeast, downing power lines, making roadways
treacherous and chasing

away spring-like temperatures. The six-state death toll stood at
41./p

br clear=all/

br/

  

 

 

 

 

Thanks,

 Kumar

 



Re: [flexcoders] htmlText attribute of TextArea

2007-01-16 Thread Tom Chiverton
On Tuesday 16 January 2007 11:46, KP wrote:
 I have a text area in which I am putting some html content but problem here

Just to be clear, you are using TextArea.htmlText and not .text ?

-- 
Tom Chiverton
Helping to widespreadedly harvest ubiquitous materials



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: Compiling problems

2007-01-16 Thread olivier
It seems I've solved the problem.

First of all, I rebuild the workspace using the instructions (I did 
not see it before:( ) like FlexBuilder -clean -vmargs -Xmx512m. 

Furthermore, it remained the problem of the connection for my swc. 
After reading all debug instructions, I saw that the cause was the 
history management. I disable it and it works.

But why the history management caused an error during execution (no 
modification made to the swc)  ?


Olivier



--- In flexcoders@yahoogroups.com, olivier [EMAIL PROTECTED] 
wrote:

 Hi
 
 
 I'm experiencing the same problem SINCE I've upgrated to flex 
builder 
 2.0.1
 
 I receive the error Unable to export SWC Oem for my flex library 
 project and when I'm launching my projects I receive the following 
two 
 errors
 
 Connect failed because the object is already connected.
 
 and
 
 TypeError: Error #1009: Cannot access a property or method of a 
null 
 object reference.
 
 when using my custom SWC.
 
 
 I'm highlighting the fact that these projects were working with the 
 previous version and no modification has been made.
 
 
 
 the flex builder 2.0.1 seems to have a big problem !
 
 
 Olivier
 
 
 
 --- In flexcoders@yahoogroups.com, Webdevotion webdevotion@ wrote:
 
  Ok, I found a way to reproduce my problem.
  Create a new project.
  
  Add a new child ( eg: a Car class which extends Sprite ).
  Inside the Car class, try to access stage.
  eg: var w:Number = stage.stageWidth;
  
  From that moment on, your app fails to compile,
  even after removing the stage.stageWidth line.
  
  Can anyone verify this for me ?
 





[flexcoders] Custom axis drawing (charts)?

2007-01-16 Thread vigen2000
Hi,

is there a way to draw/add objects to the axis? im trying to draw
little lines on the vertical axis to represent the average value.

any ideas?

vigen



[flexcoders] Re: calling a TitleWindow modal from main app without using a button on app star

2007-01-16 Thread jonalexander370
WOW, that easy?  I can't believe it.  THANK YOU. THANK YOU.

Jon



--- In flexcoders@yahoogroups.com, Michael Schmalle
[EMAIL PROTECTED] wrote:

 Hi,
 
 make a createLoginWIndow() method that calls PopUpManager.
 
 From there you can have the window creation anywhere, click,
compltete ect.
 
 To answer your question, you could now put the createWindow() method in
 either the applicationComplete or creationComplete handler of the
 Application tag.
 
 IE
 
 mxApplication ...
applicationComplete=createWindow() .. 
 
 ...
 
 /mx:Application
 
 
 Peace, Mike
 
 On 1/16/07, jonalexander370 [EMAIL PROTECTED] wrote:
 
Hello,
 
  Any ideas would be greatly appreciated. I am trying to have a login /
  registration modal TitleWindow using the PopUpManager in Flex 2.
 
  When my main app runs first then there is a button to press for login,
  then the TitleWindow displays.
 
  How can I have it automatically created and display without needing
  the button, upon arrival at my web site at www.e-revenues.com, you can
  see what I have been trying.
 
  Any and all suggestions would be greatly appreciated.
 
  Thank you.
 
  Jon Alexander
  [EMAIL PROTECTED] sales%40e-revenues.com
 
   
 
 
 
 
 -- 
 Teoti Graphix
 http://www.teotigraphix.com
 
 Blog - Flex2Components
 http://www.flex2components.com
 
 You can find more by solving the problem then by 'asking the question'.





[flexcoders] Re: Updating a DataService fill

2007-01-16 Thread spirit_ryder2k
Hi Jeff,

I tried your code but it didn't help. The Javadocs gives a little 
information about transactions in an assembler method except that it 
auto commits after the method ends.
Maybe the fill refreshes before the item created is commited so it 
refreshes with the same data?

--- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote:

 Try changing your code to:
 
  
 
   DataServiceTransaction dtx =
 DataServiceTransaction.getCurrentDataServiceTransaction();
 
   dtx.refreshFill(CategoryDS, null);
 
  
 
 You also don't want the dtx.commit() in there.  The basic problem is
 that when your createItem call is made, the current transaction is 
still
 open (i.e. not committed).  In this case, you want to do the 
refreshFill
 in the new (i.e. the current) transaction.  If you create your own 
new
 one, it will refresh the fill but before the current change has been
 committed to the database.
 
  
 
 Jeff
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of spirit_ryder2k
 Sent: Monday, January 15, 2007 5:21 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Updating a DataService fill
 
  
 
 Hi, I'm writing a small forum application which uses multiple 
 DataService destinations.
 
 In my CategoryDS destination I fill a datagrid with a list of forum 
 categories and each category has a property which keeps track of 
the 
 number of threads in it.
 
 In my ThreadDS destination I retrieve a list of threads in a 
 category. This works fine. When I create a new thread I want the 
 CategoryDS to refill itself so the thread count is updated:
 
 // in my thread assembler
 public void createItem(Object newVersion)
 {
 ...
 DataServiceTransaction dtx = DataServiceTransaction.begin(false);
 dtx.refreshFill(CategoryDS, null);
 dtx.commit();
 }
 
 Unfortunately this does not work :(
 When I manually refresh the counter is updated. Am I missing 
 something in my code? I can post mxml source or config source if 
 needed.





Re: [flexcoders] Re: Compiling problems

2007-01-16 Thread Webdevotion

I also solve my problem by recreating the swf files.
I rename my main app class and set it as default file.
This way the needed files are recreated in the bin folder.

It's a hassle but I'm gonna look into your tip of using:

FlexBuilder -clean -vmargs -Xmx512m


[flexcoders] Re: Setting the backgroundcolor of a canvas with a function - Newbie alert

2007-01-16 Thread Cato Paus
Hi use uint for colors like getColor(swift:uint):uint


The uint class is primarily useful for pixel color values (ARGB and 
RGBA) and other situations where the int data type does not work 
well. For example, the number 0x, which represents the color 
value white with an alpha value of 255, can't be represented using 
the int data type because it is not within the valid range of the int 
values.

Cato



--- In flexcoders@yahoogroups.com, oneproofdk [EMAIL PROTECTED] wrote:

 In my first Flex2 app, I'm trying to set the background color of a
 canvas inside a repeater, to a specific color depending on a value 
in
 the datasource.
 
 In my mx:Script I made this function:
 private function getColor(swift:String):String {
if (swift=='1') {
   return '#00'
}else{
   return '#FF'
   }
 }
 
 
 mx:Canvas
 backgroundColor=getColor({myRepeater.currentItem.left.page.swift})
 width=50%
 
 This generates an error in FB when I save :
 1067 - Implicit coercion of a value of type String to an unrelated
 type uint.
 
 I'm pretty sure that I got this all wrong, isn't it possible to use
 the return value directly in the repeater, should I use a var to 
hold
 it - what to do ??
 
 Any help telling me why (and why not) is greatly appreciated.
 
 Thanks,
 Mark





[flexcoders] Re: Flex Post with Special Characters

2007-01-16 Thread hugocorept
I GOT IT!

Solution:

Define the PHP script with headers like this:

header('Content-Type: text/html; charset=UTF-8;'); 

or in the Mail Script

mail($mailto, $subject, 
$messageproper, 
From: From The\n . 
MIME-Version: 1.0\n . 
Content-Type: text/html; charset=UTF-8;); 


--- In flexcoders@yahoogroups.com, Yiðit Boyar [EMAIL PROTECTED] wrote:

 i dont know any idea how you can solve this problem in client side
but you may try 
 php preg_replace to replace § with ç  etc...
 exm:
 $patterns[0] = '/§/';
 $patterns[1] = '/á/';
 $replacements[0] = 'ç';
 $replacements[1] = 'A';
 $text=preg_replace($patterns, $replacements, $text);
 see http://tr2.php.net/preg_replace for more info about preg_replace
 - Original Message 
 From: hugocorept [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, December 26, 2006 9:00:55 PM
 Subject: [flexcoders] Re: Flex Post with Special Characters
 
 
 
 
 
 
 
 
 
   
 
 
 
 --- In [EMAIL PROTECTED] ups.com, hugocorept
hugocore@ . wrote:
 
 
 
  Here is the thing, i have a Flex Application that POST into a PHP 
 
  Script. Real Simple, the script send a Email with the data from 
 
 the 
 
  Flex.
 
  
 
  My Problem is: What i have to do , in Flex our in PHP Script, so 
 
 that 
 
  charters like ç , á , ~ can be send in the Email correctly.
 
  
 
  At the moment, if the e-mail have characters like ç i receve 
 
 char 
 
  like this §.
 
  
 
  Thanks in Advance,
 
  Core
 
 
 
 
 
 Any one ? :(
 
 good x-mas..
 
 
 
 
 
 
   
 
 
 
 
 
 
 
 !--
 
 #ygrp-mlmsg
{font-size:13px;font-family:arial,helvetica,clean,sans-serif;}
 #ygrp-mlmsg table {font-size:inherit;font:100%;}
 #ygrp-mlmsg select, input, textarea {font:99%
arial,helvetica,clean,sans-serif;}
 #ygrp-mlmsg pre, code {font:115% monospace;}
 #ygrp-mlmsg * {line-height:1.22em;}
 #ygrp-text{
 font-family:Georgia;
 }
 #ygrp-text p{
 margin:0 0 1em 0;
 }
 #ygrp-tpmsgs{
 font-family:Arial;
 clear:both;
 }
 #ygrp-vitnav{
 padding-top:10px;
 font-family:Verdana;
 font-size:77%;
 margin:0;
 }
 #ygrp-vitnav a{
 padding:0 1px;
 }
 #ygrp-actbar{
 clear:both;
 margin:25px 0;
 white-space:nowrap;
 color:#666;
 text-align:right;
 }
 #ygrp-actbar .left{
 float:left;
 white-space:nowrap;
 }
 .bld{font-weight:bold;}
 #ygrp-grft{
 font-family:Verdana;
 font-size:77%;
 padding:15px 0;
 }
 #ygrp-ft{
 font-family:verdana;
 font-size:77%;
 border-top:1px solid #666;
 padding:5px 0;
 }
 #ygrp-mlmsg #logo{
 padding-bottom:10px;
 }
 
 #ygrp-vital{
 background-color:#e0ecee;
 margin-bottom:20px;
 padding:2px 0 8px 8px;
 }
 #ygrp-vital #vithd{
 font-size:77%;
 font-family:Verdana;
 font-weight:bold;
 color:#333;
 text-transform:uppercase;
 }
 #ygrp-vital ul{
 padding:0;
 margin:2px 0;
 }
 #ygrp-vital ul li{
 list-style-type:none;
 clear:both;
 border:1px solid #e0ecee;
 }
 #ygrp-vital ul li .ct{
 font-weight:bold;
 color:#ff7900;
 float:right;
 width:2em;
 text-align:right;
 padding-right:.5em;
 }
 #ygrp-vital ul li .cat{
 font-weight:bold;
 }
 #ygrp-vital a {
 text-decoration:none;
 }
 
 #ygrp-vital a:hover{
 text-decoration:underline;
 }
 
 #ygrp-sponsor #hd{
 color:#999;
 font-size:77%;
 }
 #ygrp-sponsor #ov{
 padding:6px 13px;
 background-color:#e0ecee;
 margin-bottom:20px;
 }
 #ygrp-sponsor #ov ul{
 padding:0 0 0 8px;
 margin:0;
 }
 #ygrp-sponsor #ov li{
 list-style-type:square;
 padding:6px 0;
 font-size:77%;
 }
 #ygrp-sponsor #ov li a{
 text-decoration:none;
 font-size:130%;
 }
 #ygrp-sponsor #nc {
 background-color:#eee;
 margin-bottom:20px;
 padding:0 8px;
 }
 #ygrp-sponsor .ad{
 padding:8px 0;
 }
 #ygrp-sponsor .ad #hd1{
 font-family:Arial;
 font-weight:bold;
 color:#628c2a;
 font-size:100%;
 line-height:122%;
 }
 #ygrp-sponsor .ad a{
 text-decoration:none;
 }
 #ygrp-sponsor .ad a:hover{
 text-decoration:underline;
 }
 #ygrp-sponsor .ad p{
 margin:0;
 }
 o {font-size:0;}
 .MsoNormal {
 margin:0 0 0 0;
 }
 #ygrp-text tt{
 font-size:120%;
 }
 blockquote{margin:0 0 0 4px;}
 .replbq {margin:4;}
 --
 
 
 
 
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com





[flexcoders] Re: Flex Builder 2.0.1 the update !

2007-01-16 Thread pauscato1
Hi all thanks for responding,

I have only one project running in my flex builder, this is realy 
anoing it uses 20% of my day.

do it have something  to do with the way it is installed, i had flex 
2 installed and then i installed the update, but did uninstall all, 
and reinstalled the flex builder 2.0.1 whit fds2.0.1 

did yourselves do dis ?

Cato

--- In flexcoders@yahoogroups.com, Thijs Triemstra [EMAIL PROTECTED] wrote:

 Did you close your projects in flex builder as described in http:// 
 www.onflex.org/ted/2007/01/close-projects-to-improve-
compilation.php  
 and does that improve the compilation performance?
 
 Thijs
 
 
 Op 15-jan-2007, om 20:18 heeft Allen Riddle het volgende geschreven:
 
 
  I am experiencing the same thing. I created a thread on here, 
but  
  didn't get any responses. We're gonna have to revert back to 
2.0.0  
  unless we can figure this out.
 
 
 
  From: flexcoders@yahoogroups.com  
  [mailto:[EMAIL PROTECTED] On Behalf Of pauscato1
  Sent: Sunday, January 14, 2007 7:28 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex Builder 2.0.1 the update !
 
 
 
  Hi all, is there anyone that have notice that flex builder 2.0.1 
use
  long time to building workspace hangs on about 47% to 50% 
and
  when you save it even uses more time. Flex builder 2 was a loot 
faster
  and funn to work whit. is this an issue or is it only my computer 
that
  sucks ??
 
  Cato
 
 
 
 





[flexcoders] Total used memory

2007-01-16 Thread fliabrussa
Hello to all, 
I am fighting with a subject again that had crossed to me before, 
which I left it of side with the idea that when proved version 2.0.1 
to not it happens me, but lamentably to me it continues happening. 

It is very probable that I am confused, for that reason I go to you 
so that they give a hand me. 

My problem is the use of the memory: basically, which I see is that 
the GC does not release memory when we erased a component that 
includes a control TabNavigator or Accordion inside. 

In order to show better he arms it a small application in which we 
can instantiate n times the control Simple (that contains 2 
DataGrid) and see that the used memory becomes stabilized in 8Mb or 
10 Mb. In order to see this in the application we must make several 
times click in the button that says Component Simple. 
Soon, to see what I call problem, we must do several times click on 
the button Component WithNavigator, this will instantiate n times 
the control WithNavigtor (that contains 1 TabNavigator with 2 grids 
inside), is there where we will see that the memory never lowers, but 
that is increased always. By this it is that it seems to me that 
there is some problem in this type of controls. 

The Link of the application is this: 
http://www.managernet.com.ar/MemoryNav/MemoryNavigator.html 
right click to see the source code. 

if somebody has some idea of as I can solve it or if it sees that I 
am making something bad, please help me since this the dream is 
clearing me. 

greetings to all 
Fabian 





[flexcoders] Sandbox Security help, please, god help!

2007-01-16 Thread targetplanet
I am building an app that will be run in the browser off of a cd.
(don't ask my why, for some reason the client has to have it in the
browser...) so basically all of the files are local.
The problem is I am using ExternalInterface, and no matter what I do,
it throws security error #2060, saying the swf can not access the html
file it is embeded in.  I tried a crossdomain file, tried setting
Security.allowDomain(*), I tried seting the allowScriptAccess in the
object param and embed tags on the html page to always, and I added
allowNetworking, no matter what it throws the error.  The only time it
doesn't throw the error is if I select the html file in flex builder,
and say open in browser, then it runs fine.
please give me an answer other then this can't be done...

Thanks
Russ



[flexcoders] Re: Compiling modules

2007-01-16 Thread kevin_hammer
I wrote about how I'm debugging module based applications here:
http://blog.kevinhammer.net/2007/01/debugging-with-flex-modules.html

I also wrote how I configured a multiple project application that uses
modules and shared classes here:
http://blog.kevinhammer.net/2007/01/flex-modules-sharing-classes.html

This thread helped me a lot - thanks all!



[flexcoders] ControlBar at the top of a panel?

2007-01-16 Thread Alex MacCaw
Just wondering, is it possible to make a ControlBar appear at the top of
a panel, rather than at the bottom?

Alex
attachment: Green_awareness3.jpg


Re: [flexcoders] Re: Flex Builder 2.0.1 the update !

2007-01-16 Thread Tom Chiverton
On Tuesday 16 January 2007 08:19, pauscato1 wrote:
 I have only one project running in my flex builder, this is realy
 anoing it uses 20% of my day.

Have you got auto-compilation turned off ?

-- 
Tom Chiverton
Helping to heterogeneously incubate robust meta-services



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Total used memory

2007-01-16 Thread Tom Chiverton
On Tuesday 16 January 2007 13:12, fliabrussa wrote:
 if somebody has some idea of as I can solve it or if it sees that I
 am making something bad, please help me since this the dream is
 clearing me.

I wouldn't bother about it.
When the browser (tab) is closed, it's all reclaimed, and computers these days 
have silly amounts of RAM.

-- 
Tom Chiverton
Helping to globally market cross-media designs



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: Cairngorm support for Flex 2.0.1 modules?

2007-01-16 Thread Derrick Grigg
My team is currently in the process of developing a large modular Flex
application that is based on Cairngorm and uses the mx:Modules.

We put the Cairngorm framework and all 'core' classes (ie Controller,
ModelLocator, ValueObject, centralized Commands) into a Flex Library.
Each module was setup as a separate Flex project along with a shell
project that was responsible for loading the modules and creating the
basic shell application. Each of the modules accessed the 'core'
classes as an RSL during development and then the option was set to
'external' for deployment to reduce file size and duplication. The
shell used the 'include' compiler option to compile the entire 'core'
library into the shell so that all classes where available for the
modules. Each module ran a method upon loading that would register any
module specific Commands with the FrontController and register for any
events, etc.

The one thing that was quite tricky was uncoupling binding from the
ModelLocator during module unloads. Using the {} method in the
property attribute of a control (ie mx:DataGrid
dataProvider={model.shoppingList}/) does not allow you to uncouple
the binding at a later time, which prevents garbage collection.
Instead we had to use the BindingUtils and then call a method just
before unloading a module to remove the bindings, then the module
could be properly unloaded and garbage collected. Also we had to make
sure we used weak reference event listeners in order to ensure garbage
collection would properly occur on the unloaded modules.

Hope that information helps you out.

Derrick
-
Derrick Grigg
[EMAIL PROTECTED]



RE: [flexcoders] Total used memory

2007-01-16 Thread Steve Cox
Take a read of this: 
http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html
 
There's 3 articles in the series which provide an insight into the gc.
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fliabrussa
Sent: 16 January 2007 13:12
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Total used memory
 
Hello to all, 
I am fighting with a subject again that had crossed to me before, 
which I left it of side with the idea that when proved version 2.0.1 
to not it happens me, but lamentably to me it continues happening. 

It is very probable that I am confused, for that reason I go to you 
so that they give a hand me. 

My problem is the use of the memory: basically, which I see is that 
the GC does not release memory when we erased a component that 
includes a control TabNavigator or Accordion inside. 

In order to show better he arms it a small application in which we 
can instantiate n times the control Simple (that contains 2 
DataGrid) and see that the used memory becomes stabilized in 8Mb or 
10 Mb. In order to see this in the application we must make several 
times click in the button that says Component Simple. 
Soon, to see what I call problem, we must do several times click on 
the button Component WithNavigator, this will instantiate n times 
the control WithNavigtor (that contains 1 TabNavigator with 2 grids 
inside), is there where we will see that the memory never lowers, but 
that is increased always. By this it is that it seems to me that 
there is some problem in this type of controls. 

The Link of the application is this: 
http://www.managern
http://www.managernet.com.ar/MemoryNav/MemoryNavigator.html
et.com.ar/MemoryNav/MemoryNavigator.html 
right click to see the source code. 

if somebody has some idea of as I can solve it or if it sees that I 
am making something bad, please help me since this the dream is 
clearing me. 

greetings to all 
Fabian 
 


[flexcoders] Announcement: FlexCoders 2007 Conference Call for Papers

2007-01-16 Thread Steve Drucker

Join Fig Leaf Software, Adobe. and Carahsoft for the highly anticipated Flex
2 Developers Conference on June 25-26 in Washington, DC.

LEARN ABOUT DEVELOPING WEB 2.0 APPLICATIONS WITH FLEX 2, ACTIONSCRIPT 3, and
APOLLO !

With two full days of 60 minute lectures and 90 minute HANDS-ON practice
sessions dedicated to Flex 2 and developing Rich Internet Applications
(RIA), you're sure to get all of the information you need.

With sessions for project managers, beginner, intermediate, and advanced
developers, the FlexManiacs conference is poised to deliver maximum return
for your training dollar.


Confirmed FlexManiac speakers include:

Ted Patrick
Flex Evangelist, Adobe Systems

Dan Blackman
Certified Flex 2 Instructor, Fig Leaf Software

Mike Nimer
Former ColdFusion Engineer for Adobe, now a principal of Tapper, Nimer, and
Associates

Jeff Tapper
Certified Adobe Flex instructor and Author of Adobe Flex 2: Training from
the Source. Principal of Tapper, Nimer, and Associates

Jason Perry
Certified Adobe Flex instructor, Fig Leaf Software

Keenan Keeling
Certified Adobe Flex instructor, CEO, Automata Studios

Branden Hall
CTO, Automata Studios

Dave Watts
CTO and Certified Flex instructor, Fig Leaf Software

Find out more about the conference at http://flex2conference.figleaf.com


If you would like to speak at the conference, please fill out our call for
papers application at
http://flex2conference.figleaf.com/Sessions/callforpapers.cfm

Regards,
Steve Drucker
CEO
Fig Leaf Software
www.figleaf.com




Re: [flexcoders] Re: Flex/Flash on The iPhone ?

2007-01-16 Thread Shannon Hicks
It seems that Apple has confirmed that Flash  Java will be supported on 
the iPhone. Now if Adobe or Apple would just tell us what version will 
be supported.

http://arstechnica.com/journals/apple.ars/2007/1/15/6632

Shan



[flexcoders] new modules chapter on Flex docs blog

2007-01-16 Thread Matt Horn
The flex doc team has their own blog now: 

http://blogs.adobe.com/flexdoc/

First up is a new version of the chapter on modules. Enjoy!

-matt horn
flex docs


RE: [flexcoders] Cairngorm Duplicate Remote Object Return Events

2007-01-16 Thread Battershall, Jeff
I'm not sure a singleton delegate would do the trick - and then you
might have threading issues - right? I'm kind of suspicious of the fact
that the RO instances are being persisted in the singleton
ServiceLocator.  It's those RO instances' methods that are getting
listeners attached to them.  
 
I'm going to try a couple of things - one is to explictly remove the
event listener when the result comes over the wire.  I've determined
this - the remote object is invoked only once outgoing from Flex.  It is
the duplicate result events that are happening.  
 
One way to work around this would be to add a unique token to the rpc
call as described in the Flex docs (search ACT in the Flex Dev guide)
and only execute your return code when the token matches the one coming
over the wire. I'm going to experiment with that as well.  I think this
may well be some sort of scoping issue caused by the level of
abstraction that the Cairngorm framework stipulates. 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Doberenz
Sent: Monday, January 15, 2007 10:31 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm Duplicate Remote Object
Return Events


  I was seeing this same thing today with some stuff I was
working on.  I hadn't spent any time trying to remove the event
listeners before adding them again though.  So, I don't know if that
would work, but apparently not. 
  I wonder if the delegate should actually be set up as a
Singleton so that multiple instances of the delegate weren't floating
around cathing the events every time.  This way, you could guarantee
that only one instance was being used.  Just a thought. 
 
  I don't have the code in front of me, but if you're
reinstanciating the delegate every time the command is called, then this
could explain it.
 
  Try setting a breakpoint in your delegate and look at the
memory address for this and see if it's changing each time the
delegate's called.

 
On 1/15/07, Battershall, Jeff [EMAIL PROTECTED]
wrote: 


This is a tough one - and I'm getting a similar behavior
with fileupload - duplicate completion events in subsequent calls to the
same Event/Command/Delegate. I'm having to parse out the duplicates on
the client side and I've yet to determine the culprit.   You'd think
that there's a new instance of each Event, Command and Delegate classes
responding to each gesture, but somehow something is getting persisted
and producing a ghosting effect after the first call to the same class.
The remote object instances in ServiceLocator are getting persisted,
that's for sure, and I don't know if that has anything to do with it. 
 
Jeff


-Original Message-
From: [EMAIL PROTECTED] ups.com
http://ups.com/  [mailto:[EMAIL PROTECTED] On Behalf Of
Thijs Triemstra 
Sent: Monday, January 15, 2007 4:04 PM
To: flexcoders@yahoogroups.com http://ups.com/

Subject: Re: [flexcoders] Cairngorm Duplicate
Remote Object Return Events 


I'm having the same problem with NetConnection
and Cairngorm, it triggers more and more NetStatus events everytime I
reconnect to the server. The server doesn't show any reconnects so it's
a clientside thing but not sure why.. I also tried removing the
listeners but nothing changed. 

Thijs

 

Op 15-jan-2007, om 19:01 heeft Martin
Wood-Mitrovski het volgende geschreven:




 One theory I have about what 'might'
be happening is that before I make
 my servce call, I'm adding event
listeners for the result/fault and
 these may be duplicate ones, because
the remote object instance is being
 persisted in ServiceLocator. However,
I tried explictly removing the 
 listeners before adding them and no
dice.

sounds like the most likely thing to be
happening.

try setting a breakpoint on where you
remove / add the listeners and check that 
the references are the ones you expect,
i.e. you are not trying to remove a 
different listener or something.










 





[flexcoders] How do you capture the browser's onclose event in Flex 2.0?

2007-01-16 Thread chrislpigg
I need a way to capture the browser's close event so I can log the
user out with my Flex 2.0 app.. If anyone knows how to do this...
Please help!

:)



RE: [flexcoders] Column Chart Question

2007-01-16 Thread Matt Horn
Unless I am misunderstanding something, those sets are known as
series, and you can have any number of series in a column chart. The
examples here should get you started:

http://livedocs.macromedia.com/flex/201/html/charts_types_109_06.html

hth,
matt horn
flex docs

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of g_vaccarezza
 Sent: Monday, January 15, 2007 5:51 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Column Chart Question
 
 Guys, I wanna pull a column chart with the following structure
 
 Example http://www.id-studio.com.ar/tmp/shot.jpg  
 
 As you can see, I have sets of columns over teh X axis. I'm 
 a newbie and don't know how to do this.
 
 Any tutorial at hand? Thanks!
 
 -g
 
  
 


Re: [flexcoders] How do you capture the browser's onclose event in Flex 2.0?

2007-01-16 Thread michael . corbridge
I finished doing this a week ago if you are interested ...

On my first attempt, I used the browsers onUnload event to call a service
in the swf, but this did not work.  Apparently the object in the DOM is not
available to the javascript when browser begins unloading (ie6).

My solution was to make an AJAX call to a jsp, upon onUnload, which in turn
called the appropriate java service to log the user out.  If this sounds
promising to you, or if it makes sense, you can contact me off-list for the
code.

 - mike
\



  

  
 chrislpigg  To: flexcoders@yahoogroups.com   
  
 [EMAIL PROTECTED]cc: 
   
 Sent by:  Subject:  [flexcoders] How do 
you capture the browser's onclose
 flexcoders@yahoogroups.com  event in Flex 2.0? 
  
 01/16/2007 11:13 AM
  
 Please respond to  
  
 flexcoders 
  

  














 I need a way to capture the browser's close event so I can log the 

 user out with my Flex 2.0 app.. If anyone knows how to do this...  

 Please help!   



 :) 







 


---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---

pic26292.gif
Description: GIF image


Re: [flexcoders] Cairngorm Duplicate Remote Object Return Events

2007-01-16 Thread Mark Doberenz

OK, so maybe having a Singleton delegate wouldn't be a good idea.

Here's a bit more I've found on the topic.

I put a breakpoint at the Command result method and found that the address
location for the commands were changing.  So, essentially, the commands are
being persisted which in turn are persisting new instances of the delegate
and the event listeners that are a part of those delegates.  Removing the
event listener in the delegate first won't work because the memory locations
of the responder (the command) are changing.

Essentially, every time you create a new cairngorm event, you will create
new instances of the delegate and then the event listeners, so the same
result will fire the event listeners multiple times when you've created
multiple cairngorm events.

That's at least my take on the issue.

I have an app where I'm trying to perform a LoginEvent and I noticed that
every time I hit the Login button, I was creating a new LoginEvent and so
the more I tried to login, the more results I was getting back.  I tried
making the LoginEvent a private var on the view, and that seemed to work the
first time, but after that it wasn't passing the user data anymore.  Not
sure what that's about.

I don't like this fix because it would mean that there's only one instance
of each of the cairngorm events in the whole app.


On 1/16/07, Battershall, Jeff [EMAIL PROTECTED] wrote:


   I'm not sure a singleton delegate would do the trick - and then you
might have threading issues - right? I'm kind of suspicious of the fact that
the RO instances are being persisted in the singleton ServiceLocator.  It's
those RO instances' methods that are getting listeners attached to them.

I'm going to try a couple of things - one is to explictly remove the event
listener when the result comes over the wire.  I've determined this - the
remote object is invoked only once outgoing from Flex.  It is the duplicate
result events that are happening.

One way to work around this would be to add a unique token to the rpc call
as described in the Flex docs (search ACT in the Flex Dev guide) and only
execute your return code when the token matches the one coming over the
wire. I'm going to experiment with that as well.  I think this may well be
some sort of scoping issue caused by the level of abstraction that the
Cairngorm framework stipulates.

 -Original Message-
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Mark Doberenz
*Sent:* Monday, January 15, 2007 10:31 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Cairngorm Duplicate Remote Object Return
Events

  I was seeing this same thing today with some stuff I was working on.  I
hadn't spent any time trying to remove the event listeners before adding
them again though.  So, I don't know if that would work, but apparently not.

  I wonder if the delegate should actually be set up as a Singleton so
that multiple instances of the delegate weren't floating around cathing the
events every time.  This way, you could guarantee that only one instance was
being used.  Just a thought.

  I don't have the code in front of me, but if you're reinstanciating the
delegate every time the command is called, then this could explain it.

  Try setting a breakpoint in your delegate and look at the memory address
for this and see if it's changing each time the delegate's called.


On 1/15/07, Battershall, Jeff [EMAIL PROTECTED] wrote:

This is a tough one - and I'm getting a similar behavior with
 fileupload - duplicate completion events in subsequent calls to the same
 Event/Command/Delegate. I'm having to parse out the duplicates on the client
 side and I've yet to determine the culprit.   You'd think that there's a new
 instance of each Event, Command and Delegate classes responding to each
 gesture, but somehow something is getting persisted and producing a ghosting
 effect after the first call to the same class.  The remote object instances
 in ServiceLocator are getting persisted, that's for sure, and I don't know
 if that has anything to do with it.

 Jeff

  -Original Message-
 *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED]
 *On Behalf Of *Thijs Triemstra
 *Sent:* Monday, January 15, 2007 4:04 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Cairngorm Duplicate Remote Object Return
 Events

 I'm having the same problem with NetConnection and Cairngorm, it
 triggers more and more NetStatus events everytime I reconnect to the server.
 The server doesn't show any reconnects so it's a clientside thing but not
 sure why.. I also tried removing the listeners but nothing changed.
 Thijs



  Op 15-jan-2007, om 19:01 heeft Martin Wood-Mitrovski het volgende
 geschreven:

One theory I have about what 'might' be happening is that before I
 make
  my servce call, I'm adding event listeners for the result/fault and
  these may be duplicate ones, because the remote object instance is
 being
  persisted in 

RE: [flexcoders] Cairngorm Duplicate Remote Object Return Events

2007-01-16 Thread Battershall, Jeff
Mark,
 
Interesting discussion - interesting problem.  BTW, I don't think these
return events are really 'duplicates' per se, but repeats of the earlier
return events.  LIke
 
First invoke
 
returns event1
 
Second invoke
 
returns event1 then event2
 
etc.
 
Out of curiosity, what middleware are you using? I'm using CFMX 7.02.
 
Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Doberenz
Sent: Tuesday, January 16, 2007 11:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm Duplicate Remote Object
Return Events


OK, so maybe having a Singleton delegate wouldn't be a good
idea.

Here's a bit more I've found on the topic.

I put a breakpoint at the Command result method and found that
the address location for the commands were changing.  So, essentially,
the commands are being persisted which in turn are persisting new
instances of the delegate and the event listeners that are a part of
those delegates.  Removing the event listener in the delegate first
won't work because the memory locations of the responder (the command)
are changing. 

Essentially, every time you create a new cairngorm event, you
will create new instances of the delegate and then the event listeners,
so the same result will fire the event listeners multiple times when
you've created multiple cairngorm events. 

That's at least my take on the issue.

I have an app where I'm trying to perform a LoginEvent and I
noticed that every time I hit the Login button, I was creating a new
LoginEvent and so the more I tried to login, the more results I was
getting back.  I tried making the LoginEvent a private var on the view,
and that seemed to work the first time, but after that it wasn't passing
the user data anymore.  Not sure what that's about. 

I don't like this fix because it would mean that there's only
one instance of each of the cairngorm events in the whole app.



On 1/16/07, Battershall, Jeff [EMAIL PROTECTED]
wrote: 



I'm not sure a singleton delegate would do the trick -
and then you might have threading issues - right? I'm kind of suspicious
of the fact that the RO instances are being persisted in the singleton
ServiceLocator.  It's those RO instances' methods that are getting
listeners attached to them.  
 
I'm going to try a couple of things - one is to
explictly remove the event listener when the result comes over the wire.
I've determined this - the remote object is invoked only once outgoing
from Flex.  It is the duplicate result events that are happening.  
 
One way to work around this would be to add a unique
token to the rpc call as described in the Flex docs (search ACT in the
Flex Dev guide) and only execute your return code when the token matches
the one coming over the wire. I'm going to experiment with that as well.
I think this may well be some sort of scoping issue caused by the level
of abstraction that the Cairngorm framework stipulates. 


-Original Message-
From: flexcoders@yahoogroups.com [mailto:
flexcoders@ mailto:flexcoders@ yahoogroups.com] On Behalf Of Mark
Doberenz
Sent: Monday, January 15, 2007 10:31 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm Duplicate
Remote Object Return Events


  I was seeing this same thing today with some
stuff I was working on.  I hadn't spent any time trying to remove the
event listeners before adding them again though.  So, I don't know if
that would work, but apparently not. 
  I wonder if the delegate should actually be
set up as a Singleton so that multiple instances of the delegate weren't
floating around cathing the events every time.  This way, you could
guarantee that only one instance was being used.  Just a thought. 
 
  I don't have the code in front of me, but if
you're reinstanciating the delegate every time the command is called,
then this could explain it.
 
  Try setting a breakpoint in your delegate and
look at the memory address for this and see if it's changing each time
the delegate's called.

 
On 1/15/07, Battershall, Jeff
[EMAIL PROTECTED]  wrote: 



This is a tough one - and I'm getting a
similar behavior with fileupload - duplicate completion events in
subsequent calls to the same 

[flexcoders] Hyperlinks in text that call a function, not a URL

2007-01-16 Thread thegators_2002
I am trying to add dialog boxes to my app that contain help text.  The
user clicks something in the UI, and the dialog pops up.  In it, there
will be some text that says, for example This value is found by
multiplying a net income of $2,000,000 by a growth rate of 7.5%.  I
want to make the numbers $2,000,000 and 7.5% to look like
hyperlinks, so that when a user clicks them, the text in the text area
changes to explain how those numbers were arrived at.

I thought of making the whole text area respond to a click event, but
in many cases I will have two or three links, which would mean two or
three different text blocks that should appear.  If the whole text
area responds to a click event, I do not know how to tell what link
the user clicked.  I also tried using Anchor tags in htmlText, but
those want to link to a URL or another anchor.  Ideally, I would like
to specify a link in the text that calls a function, so I can tell
what link was clicked and then change the text in the dialog accordingly.

Is there any way to do this, add a link to a function in my code,
rather than a URL?

Thanks,
Pete



Re: [flexcoders] Re: Flex Builder 2.0.1 the update !

2007-01-16 Thread Rick Schmitty
Do you have embeded fonts in your application?

I was experiencing the same slowdown after upgrading to flex 2.0.1.  I
had 2.0 installed, updated to 2.0.1, then ran the clean command prior
to opening flex.  It was still slow.

Saw the blog about closing projects, closed everything but the one I'm
working on, still slow

Deleted all projects and created a blank application, super fast.
Ok... so must be something in my project... started hacking away at
the files until I came down to the fonts.

This took almost 20seconds (on my machine) to compile

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;


mx:Style
@font-face {
src: url(/assets/fonts/ARIAL.TTF);
fontFamily: myArial;
}   
@font-face {
src: url(/assets/fonts/BKANT.TTF);
fontFamily: myBkant;
}   
@font-face {
src: url(/assets/fonts/TAHOMA.TTF);
fontFamily: myTahoma;
}   
@font-face {
src: url(/assets/fonts/TIMES.TTF);
fontFamily: myTimes;
}   
@font-face {
src: url(/assets/fonts/TREBUC.TTF);
fontFamily: myTrebuc;
}
/mx:Style 

/mx:Application


Deleting the style tag for a blank appliaction, it compiled immediately 1-1.5sec


Here is what's going on (or so I think)

FlashType support

FlashType is the text rendering engine introduced in Flash Player 8.
It improves the readability of text, especially at smaller font sizes.
To leverage the FlashType engine in Flex 2, you had to create a SWF
that embedded a particular font using the Flash authoring tool, and
then embed that SWF file in your Flex application. With Flex 2.0.1,
the mxmlc compiler can now embed a font using the FlashType engine
directly, eliminating a step for many developers.


So I'm back to running fast as long as I dont embed fonts via css,
I'll reenable it when I need to publish a working version (or look
into creating the SWF file on my own and not use CSS)


On 1/16/07, Tom Chiverton [EMAIL PROTECTED] wrote:
 On Tuesday 16 January 2007 08:19, pauscato1 wrote:
  I have only one project running in my flex builder, this is realy
  anoing it uses 20% of my day.

 Have you got auto-compilation turned off ?

 --
 Tom Chiverton
 Helping to heterogeneously incubate robust meta-services

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and 
 Wales under registered number OC307980 whose registered office address is at 
 St James's Court Brown Street Manchester M2 2JF.  A list of members is 
 available for inspection at the registered office. Any reference to a partner 
 in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by 
 the Law Society.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and may 
 be confidential or legally privileged.  If you are not the addressee you must 
 not read it and must not use any information contained in nor copy it nor 
 inform any person other than Halliwells LLP or the addressee of its existence 
 or contents.  If you have received this email in error please delete it and 
 notify Halliwells LLP IT Department on 0870 365 8008.

 For more information about Halliwells LLP visit www.halliwells.com.



 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links






[flexcoders] Flex 2.0.1 update install problems

2007-01-16 Thread parkerwhirlow

I just installed Flex Builder Plugin 2.0.1 Updater, and followed
install instructions, running eclipse -clean -vmargs -Xmx512m

Has anyone else seen this error?
I've searched flexcoders, and this problem appears to be unique.
thanks,
PW

When Flex starts up I get this error:

A problem occurred while opening this project. Try quitting and
restarting the application. If the problem persists, you may be using
an unsupported project version, or your project files may be corrupted.


In the Eclipse error log, I have this:

!SUBENTRY 1 com.adobe.flexbuilder.project 4 43 2007-01-16 09:24:58.617
!MESSAGE Error Loading Project
!STACK 0
com.adobe.flexbuilder.project.persist.PersistenceException: Expected a
single compilerSourcePath tag but found 0
at
com.adobe.flexbuilder.project.persist.TagSetting.getSingleElement(Unknown
Source)
at com.adobe.flexbuilder.project.persist.ClassPathSetting.read(Unknown
Source)
at com.adobe.flexbuilder.project.persist.ContainerTag.read(Unknown Source)
...





[flexcoders] CreationComplete help....

2007-01-16 Thread jensen.axel
Hello,

I have a custom Component (it is an edit/create form) that i'm
initializing... when i go and initialize the component, it runs a
function on 

creationComplete=setup()

then i save some data, and change viewStates... 

then i pick a different item from a mx:Tree, and reload the
component, to edit the new data i've selected from my tree... and the
setup() function never runs, because the component has already been
created, so i'm wondering how i can get this function to run every time?

Axel



Re: [flexcoders] How do you capture the browser's onclose event in Flex 2.0?

2007-01-16 Thread Kevin Newman
In general, relying on a browsers onunload (or similar) event is not 
reliable. You could use a presence server or polling on the server side 
to detect when the client is no longer available. I've been doing some 
testing with XIFF and WildFire recently, and it seems to detect pretty 
quickly when the logged in user is no longer available when the user 
closes the Flex app.

Just my 2 cents.

Kevin N.


chrislpigg wrote:
 I need a way to capture the browser's close event so I can log the
 user out with my Flex 2.0 app.. If anyone knows how to do this...
 Please help!

 :)



 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links





   




[flexcoders] Re: ObserveValue, and how to reference within AS3 Class File

2007-01-16 Thread Alex Uhlmann
Hi Mike,

Observe and ObserveValue have been designed to work with MXML binding
only. The curly braces in the source and handler properties are being
treated differently by the MXML compiler than just simple ActionScript
assingments as you do in your example. Therefore, the current
implementation relies on the MXML compiler and cannot be used in
ActionScript. 

However, I'd be intersted in why you want to use data binding in an
ActionScript environment (for your ActionScript model or utility
classes). In my experience, using a pure EventDispatcher is easier to
write and most importantly to read (especially for other developer,
potentially coming from other technologies). Just let your class
dispatch a custom event when something important happens. Or if you
cannot do that easily, listen to the propertyChange event of Bindable
properties.

Best,
Alex


--- In flexcoders@yahoogroups.com, Mike Anderson [EMAIL PROTECTED] wrote:

 Hello All,
 
 I am trying to figure out how to use the ObserveValue Component, when I
 use it inside of a Class File.
 
 In all the examples I've seen, they all utilize the Class File as a MXML
 Component - and when I use it in this manner, it works just fine.
 
 BUT, I really need to use this inside my Class Files - and as far as I
 can tell, I should be able to import the Class File, and create a new
 variable - casting it as an ObserveValue() - but when I use it this way,
 nothing happens.
 
 Per the examples, here is the proper use of the file:
 
 ac:ObserveValue 
   id=valueObserver 
   source={ model.myVarToBeWatched } 
   handler=valueObserverHandler 
   value=true/
 
 Now, I'd like to use it using pure ActionScript - and here's what I got
 so far: (keep in mind, the AS Class File below, is extending the Control
 in which it belongs to - and rest assured, that I am placing all the
 appropriate code within all the proper Event Listeners, like
 onCreationComplete, etc.)  I am just keeping it simple, for this
 particular post.
 
 package
 {
   import com.adobe.ac.*;
   
   class myClass extends Panel
   {
   private var myObserve:ObserveValue = new ObserveValue();
   [Bindable]
   public var model:ApplicationModel =
 ApplicationModel.getInstance();
   
   public function myClass():void
   {
   initObservers();
   }
   
   private function initObservers():void
   {
   myObserve.source = model.myVarToBeWatched;
   myObserve.handler = valueObserverHandler;
   myObserve.value = true;
   }
   
   private function valueObserverHandler( event:Event
 ):void
   {
   trace( it worked );
   }
   }
 }
 
 In my real code, I wait for the Creation Complete Event, before I
 initialize all of my Event Listeners, etc.  So you can assume that my
 real code, is properly setup.
 
 My real question here is, when creating component written purely in AS3,
 can they be used either way - like as an inline Component in MXML, or if
 you choose, referenced within an AS3 Package?  I don't see why not,
 since MXML Controls are all just Class Files anyway...
 
 So I just wanted to know if somebody could shed some light on what I'm
 doing wrong, or if the ObserveValue Class just wasn't designed to be
 used in this manner.
 
 Thanks in advance for all your help,
 
 Mike





RE: [flexcoders] Cairngorm ServiceLocator error

2007-01-16 Thread jason.proulx
I always forget that part too :P

 

Jay Proulx

[EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: January 15, 2007 11:09 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm ServiceLocator error

 

of course!!!

 

Thanks.  It's always something simple.  I had commented that part out
when i was testing some stuff and I forgot to uncomment it.

 

- Kevin

 

 

On Jan 15, 2007, at 10:44 AM, [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:





 

Make sure you have:

 

business:Services id=serviceLocator /

in your main Application file.

 

Jay Proulx

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: January 15, 2007 9:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm ServiceLocator error

 

has any one receieved this error when using the CairngormServiceLocator?

 

ReferenceError: Error #1069: Property myListService not found on
com.adobe.cairngorm.business.ServiceLocator and there is no default
value.

 

Here is my code:

 

(in Delegate file)

this.service =
ServiceLocator.getInstance().getRemoteObject(myListService);

 

(in Services.mxml)

cairngorm:ServiceLocator

xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  

xmlns:cairngorm=com.adobe.cairngorm.business.*

 

mx:RemoteObject id=myListService fault=faultHandler(event)
showBusyCursor=true destination=amfphp

 
source=com.onefoot.dbocl.services.GetMyListService

mx:method name=getMyList
result=resultHandler(event) /

/mx:RemoteObject

 

/cairngorm:ServiceLocator

 

I am not sure where I am going wrong.

 

- Kevin

 

 

 



RE: [flexcoders] Two ChartElement extension classes that catch MouseDowns (Charting)

2007-01-16 Thread Ely Greenfield
 
 
 
You could have both of your extensions add the mouse down listener to
the parent chart.   You'd get a few false positives...mouse down on the
axes and titles, for example...but if you did some simple bounds
checking you could filter those out.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of g_odds
Sent: Monday, January 15, 2007 2:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Two ChartElement extension classes that catch
MouseDowns (Charting)



I have created two classes that extend ChartElement, one for zooming
and one for panning. Both work as wanted if applied separately to a
chart using the annotationElements. However, if I apply both only one
of the two will ever catch a MouseDown rather than both. I worked out
how to implement the classes in the first place by looking at the
InteractiveBubble example on the Quietly Scheming website
(http://www.quietlyscheming.com/blog/charts/interactive-bubble-chart/
http://www.quietlyscheming.com/blog/charts/interactive-bubble-chart/
).

The jist is that I have overridden the updateDisplayList(..) function
with the following to ensure the Pan or Zoom catches the mouse event:

override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth,unscaledHeight);
graphics.clear();
graphics.moveTo(0,0);
graphics.beginFill(0,0);
graphics.drawRect(0,0,unscaledWidth,unscaledHeight);
}

Clearly the problem I am having when I have two classes using this
same technique being used at the same time is because one of the
rectangles is on top of the other.

I realise that combining the pan and zoom into a single class, as is
done in the Quietly Scheming example, would solve the problem but it
is not appropriate for my intensions.

Does anyone have any suggestions for a clean solution?



 


RE: [flexcoders] title window on app first run

2007-01-16 Thread Tracy Spratt
That is the standard behavior of a modal TitleWindow.  What is not
working?  What have you tried?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jonalexander370
Sent: Sunday, January 14, 2007 9:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] title window on app first run

 

Hello,

Am very new to Flex am trying to have the first web page view being a
primary login / registration TitleWindow with the main application as
a fuzzy background.

1. Upon arrival at our web page at http://www.e-revenues.com
http://www.e-revenues.com  the
first view would be a login / register page with an advertising Flash
intro similar to Raymond Camden's Lemonade Stand Game at: 
http://ray.camdenfamily.com/index.cfm/2006/11/21/My-Thanksgiving-Flex-Ho
mework
http://ray.camdenfamily.com/index.cfm/2006/11/21/My-Thanksgiving-Flex-H
omework 
and actual application at:
http://ray.camdenfamily.com/demos/ls/main.html
http://ray.camdenfamily.com/demos/ls/main.html 

2. EXCEPT, I wish to have the main application background fuzzy'ed
out, if you click the START GAME button you shall see the effect with
the Instructions being forefront and the main application being
fuzzy'ed out in the background.

3. To clarify, the main app would be in the background fuzzy'ed out
with the login / registration being a TitleWindow in the foreground.

Any and all suggestions would be greatly appreciated.

Thank you.

Jon Alexander

 



[flexcoders] Using Automation with Horizontal List

2007-01-16 Thread eucliptica
I am using Horizontal list with itemRenderer set to a separate mxml 
component that renders data. It has few labels and few other fields. 
So when I want to add property automationName I would like it to 
follow pattern someName_001 for the some label in the first list 
item rendered by mxml component and so on with name being incremented 
by 1.

Ok, so reading through documentation I think this should be handled by 
flex since it has support for lists and repeaters but I am not sure 
how to implement it. Right now if I set the name in the itemRenderer 
they all get same name. 

I tried looking at the debugger and did not see any values for 
automation that are kind of incremented, so basicaly I am stuck right 
now.

Anyone has any examples?



[flexcoders] Re: Flex 2.0.1 update problems - FIXED Cairngorm 2.0

2007-01-16 Thread parkerwhirlow
Deleting and re-creating each of my projects in turn revealed that it
was the Cairngorm 2.0 project that is imported into the workspace.

I also found the tags they're looking for and added them. Here's the
two that were missing from .actionScriptProperties  (add these tags
inside the compiler tag)

compilerSourcePath/
sourceAttachmentPath/


Hope this helps someone else along the way.
cheers,
PW

--- In flexcoders@yahoogroups.com, parkerwhirlow [EMAIL PROTECTED]
wrote:

 
 I just installed Flex Builder Plugin 2.0.1 Updater, and followed
 install instructions, running eclipse -clean -vmargs -Xmx512m
 
 Has anyone else seen this error?
 I've searched flexcoders, and this problem appears to be unique.
 thanks,
 PW
 
 When Flex starts up I get this error:
 
 A problem occurred while opening this project. Try quitting and
 restarting the application. If the problem persists, you may be using
 an unsupported project version, or your project files may be corrupted.
 
 
 In the Eclipse error log, I have this:
 
 !SUBENTRY 1 com.adobe.flexbuilder.project 4 43 2007-01-16 09:24:58.617
 !MESSAGE Error Loading Project
 !STACK 0
 com.adobe.flexbuilder.project.persist.PersistenceException: Expected a
 single compilerSourcePath tag but found 0
 at

com.adobe.flexbuilder.project.persist.TagSetting.getSingleElement(Unknown
 Source)
 at com.adobe.flexbuilder.project.persist.ClassPathSetting.read(Unknown
 Source)
 at com.adobe.flexbuilder.project.persist.ContainerTag.read(Unknown
Source)
 ...





RE: [flexcoders] Hyperlinks in text that call a function, not a URL

2007-01-16 Thread Tracy Spratt
You can use an a tag in htmlText to emit a textEvent, to call a
function.

This should get yo 90% of the way:

http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectI
D=595

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thegators_2002
Sent: Tuesday, January 16, 2007 12:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Hyperlinks in text that call a function, not a URL

 

I am trying to add dialog boxes to my app that contain help text. The
user clicks something in the UI, and the dialog pops up. In it, there
will be some text that says, for example This value is found by
multiplying a net income of $2,000,000 by a growth rate of 7.5%. I
want to make the numbers $2,000,000 and 7.5% to look like
hyperlinks, so that when a user clicks them, the text in the text area
changes to explain how those numbers were arrived at.

I thought of making the whole text area respond to a click event, but
in many cases I will have two or three links, which would mean two or
three different text blocks that should appear. If the whole text
area responds to a click event, I do not know how to tell what link
the user clicked. I also tried using Anchor tags in htmlText, but
those want to link to a URL or another anchor. Ideally, I would like
to specify a link in the text that calls a function, so I can tell
what link was clicked and then change the text in the dialog
accordingly.

Is there any way to do this, add a link to a function in my code,
rather than a URL?

Thanks,
Pete

 



RE: [flexcoders] Using Automation with Horizontal List

2007-01-16 Thread Tracy Spratt
You can't do that.

 

List controls re-use the item renderers when you scroll, so only the
visible items even exist.

 

You must work with the dataProvider items themselves.

 

What are you trying to do?

 

You can loop over the dataProvider and set the property values that way.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of eucliptica
Sent: Tuesday, January 16, 2007 12:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using Automation with Horizontal List

 

I am using Horizontal list with itemRenderer set to a separate mxml 
component that renders data. It has few labels and few other fields. 
So when I want to add property automationName I would like it to 
follow pattern someName_001 for the some label in the first list 
item rendered by mxml component and so on with name being incremented 
by 1.

Ok, so reading through documentation I think this should be handled by 
flex since it has support for lists and repeaters but I am not sure 
how to implement it. Right now if I set the name in the itemRenderer 
they all get same name. 

I tried looking at the debugger and did not see any values for 
automation that are kind of incremented, so basicaly I am stuck right 
now.

Anyone has any examples?

 



RE: [flexcoders] CreationComplete help....

2007-01-16 Thread Beverly Guillermo
Could you just dispatch another event that calls the setup function?  The
dispatcher could be your component or the component that changes the
data...?
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jensen.axel
Sent: Tuesday, January 16, 2007 12:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] CreationComplete help



Hello,

I have a custom Component (it is an edit/create form) that i'm
initializing... when i go and initialize the component, it runs a
function on 

creationComplete=setup()

then i save some data, and change viewStates... 

then i pick a different item from a mx:Tree, and reload the
component, to edit the new data i've selected from my tree... and the
setup() function never runs, because the component has already been
created, so i'm wondering how i can get this function to run every time?

Axel



 



[flexcoders] Disabling an object disables corresponding tab- expected?

2007-01-16 Thread ben.clinkinbeard
Hello, I have a Canvas object that binds its enabled state to a value
in the model. The Canvas also happens to be set as a child of a
TabNavigator, and when the Canvas is disabled the corresponding tab
gets disabled as well. Is this the expected behavior? Its quite
inconvenient since my purpose is to disable all of the Canvas's child
controls. Any workarounds to this?

Thanks,
Ben



[flexcoders] custom data tip in stacked bar chart

2007-01-16 Thread suri_boston
Hi,
I am trying to access the percentage value of the bar to display it 
in the custom data tip function with no success..
private function customDataTip(hd:HitData):String {

var tmp:BarSeriesItem = new BarSeriesItem();
var stryValue:String = ;
tmp = e.chartItem as BarSeriesItem;
var tmpStr:String = ;
var tbar:BarSeries = BarSeries(e.element);
tmpStr = B + BarSeries(e.element).displayName + /BBR;
if(ca.displayName != null  ca.displayName != )
stryValue = I+ ca.displayName.toString() + : /I;
stryValue += String(e.item[grpByColumn]);
tmpStr += stryValue+BR;

/* how to get the percentage value??? */
var tbarstack:StackedSeries = tbar.stacker;
/* how to get the percentage value ???*/

tmpStr += tmp.xValue + tbar.stacker.toString();
return tmpStr;
}

Any help?
-Siva 



[flexcoders] Code behind- do you use it?

2007-01-16 Thread ben.clinkinbeard
I am undecided as to whether or not I want to use the code behind
method for my MXML files and figured I would see what others are
doing. I am currently just using Script blocks at the top of my files
to do event handling, initialization, etc but some of them are getting
pretty big. 

So what are others doing? No AS in your MXML files, no code behind, a
mixture of the two?

Thanks,
Ben



Re: [flexcoders] Re: Flex/Flash on The iPhone ?

2007-01-16 Thread John Dowdell
Shannon Hicks wrote:
 It seems that Apple has confirmed that Flash  Java will be supported on 
 the iPhone. Now if Adobe or Apple would just tell us what version will 
 be supported.
 http://arstechnica.com/journals/apple.ars/2007/1/15/6632 

For what it's worth, the Macwelt translation of some Apple staffer to 
German, and then the re-translation back to English, is likely not as 
authoritative as what Steve Jobs himself said on the subject last week:
http://pogue.blogs.nytimes.com/2007/01/13/ultimate-iphone-faqs-list-part-2/
http://weblogs.macromedia.com/jd/archives/2007/01/jobs_on_flash.cfm

Summary: Situation still indeterminate.

jd




-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.


RE: [flexcoders] Code behind- do you use it?

2007-01-16 Thread Tracy Spratt
The 32k problem in 1.5 forced me into using helper classes very early
on.  Still, though, I often develop in a script block, then later move
the functionality to its own class.  Typically, functions that need to
updte the ui directly stay in the script block, and pure functions go in
the class.  Its not a hard rule, and I sometimes pass a reference to the
needed scope into a helper class in order to manipulate the ui there.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Tuesday, January 16, 2007 1:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Code behind- do you use it?

 

I am undecided as to whether or not I want to use the code behind
method for my MXML files and figured I would see what others are
doing. I am currently just using Script blocks at the top of my files
to do event handling, initialization, etc but some of them are getting
pretty big. 

So what are others doing? No AS in your MXML files, no code behind, a
mixture of the two?

Thanks,
Ben

 



Re: [flexcoders] Code behind- do you use it?

2007-01-16 Thread Steve Hagenlock
I've been thinking about asking the same question, all of the samples 
out there seem to embed the actionscript in MXML, however the code 
behind scenario seems more like a best practice approach.  Personally, I 
use code behind everywhere except for procedural initialization code in 
my main.mxml. 
-Steve

ben.clinkinbeard wrote:
 I am undecided as to whether or not I want to use the code behind
 method for my MXML files and figured I would see what others are
 doing. I am currently just using Script blocks at the top of my files
 to do event handling, initialization, etc but some of them are getting
 pretty big. 

 So what are others doing? No AS in your MXML files, no code behind, a
 mixture of the two?

 Thanks,
 Ben


[flexcoders] Re: Disabling an object disables corresponding tab- expected?

2007-01-16 Thread ben.clinkinbeard
I just realized that I can set the enabled property each time the tab
is shown/hidden but I am still curious as to whether or not this is
the expected behavior.

Thanks,
Ben



--- In flexcoders@yahoogroups.com, ben.clinkinbeard
[EMAIL PROTECTED] wrote:

 Hello, I have a Canvas object that binds its enabled state to a value
 in the model. The Canvas also happens to be set as a child of a
 TabNavigator, and when the Canvas is disabled the corresponding tab
 gets disabled as well. Is this the expected behavior? Its quite
 inconvenient since my purpose is to disable all of the Canvas's child
 controls. Any workarounds to this?
 
 Thanks,
 Ben





RE: [flexcoders] Code behind- do you use it?

2007-01-16 Thread Robert Chyko
Yesterday I just refactored the project I am working on to use code
behind.  I had not planned on keeping script blocks in the MXML files,
but being fairly new to Flex, when everything began working correctly I
sort of forgot about it until some of the script blocks started
getting larger and larger and then it kind of clicked that I had planned
on moving the script out of the MXML.
 
 
 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard
Sent: Tuesday, January 16, 2007 1:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Code behind- do you use it?



I am undecided as to whether or not I want to use the code
behind
method for my MXML files and figured I would see what others are
doing. I am currently just using Script blocks at the top of my
files
to do event handling, initialization, etc but some of them are
getting
pretty big. 

So what are others doing? No AS in your MXML files, no code
behind, a
mixture of the two?

Thanks,
Ben



 



RE: [flexcoders] custom data tip in stacked bar chart

2007-01-16 Thread Matt Horn
Have you seen the example at the bottom of this page?

http://livedocs.macromedia.com/flex/201/html/charts_formatting_110_34.ht
ml

It does, I think, what you are trying to do, only with a column chart.

hth,
matt horn
flex docs
http://blogs.adobe.com/flexdoc

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of suri_boston
 Sent: Tuesday, January 16, 2007 1:20 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] custom data tip in stacked bar chart
 
 Hi,
 I am trying to access the percentage value of the bar to display it 
 in the custom data tip function with no success..
 private function customDataTip(hd:HitData):String {
 
 var tmp:BarSeriesItem = new BarSeriesItem();
 var stryValue:String = ;
 tmp = e.chartItem as BarSeriesItem;
 var tmpStr:String = ;
 var tbar:BarSeries = BarSeries(e.element);
 tmpStr = B + BarSeries(e.element).displayName + /BBR;
 if(ca.displayName != null  ca.displayName != )
 stryValue = I+ ca.displayName.toString() + : /I;
 stryValue += String(e.item[grpByColumn]);
 tmpStr += stryValue+BR;
 
 /* how to get the percentage value??? */
 var tbarstack:StackedSeries = tbar.stacker;
 /* how to get the percentage value ???*/
 
 tmpStr += tmp.xValue + tbar.stacker.toString();
 return tmpStr;
 }
 
 Any help?
 -Siva 
 
 
 
  
 


[flexcoders] Re: RTE when using itemRenderers in DataGrid.

2007-01-16 Thread Jim Robson
They don't generally respond unless they need some clarification from
you.  

--- In flexcoders@yahoogroups.com, michael_ramirez44
[EMAIL PROTECTED] wrote:

...
 I have submitted this bug via the WishForm on Jan 10 but I have not 
 recieved any response back not even an auto-response. Is there another 
 place I can submit bugs?
 
 Michael Ramirez





[flexcoders] Re: Using Automation with Horizontal List

2007-01-16 Thread eucliptica
Do you mean that when itemRenderer is initialized I need to go and 
find out what is the index of data item in dataProvider 
ArrayCollection and then use that as index for setting up 
automationName.

Thanks for help



Re: [flexcoders] Cairngorm Duplicate Remote Object Return Events

2007-01-16 Thread Mark Doberenz

You're right, I was just calling them duplicate events, but repeated ones
from earlier events is a much better way to say it.

I'm coding up a Fluorine app for the middleware... I'm not all that sure how
to use CF :(

I'm basing my Flex app off of Sam Shrefler's Flex 2, Cairngorm, Fluorine
tutorial:
http://blog.shrefler.net/?p=10

Maybe his code needs to be tweaked for Flex 2.0.1 ??

Mark

On 1/16/07, Battershall, Jeff [EMAIL PROTECTED] wrote:


   Mark,

Interesting discussion - interesting problem.  BTW, I don't think these
return events are really 'duplicates' per se, but repeats of the earlier
return events.  LIke

First invoke

returns event1

Second invoke

returns event1 then event2

etc.

Out of curiosity, what middleware are you using? I'm using CFMX 7.02.

Jeff

 -Original Message-
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Mark Doberenz
*Sent:* Tuesday, January 16, 2007 11:50 AM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Cairngorm Duplicate Remote Object Return
Events

OK, so maybe having a Singleton delegate wouldn't be a good idea.

Here's a bit more I've found on the topic.

I put a breakpoint at the Command result method and found that the address
location for the commands were changing.  So, essentially, the commands are
being persisted which in turn are persisting new instances of the delegate
and the event listeners that are a part of those delegates.  Removing the
event listener in the delegate first won't work because the memory locations
of the responder (the command) are changing.

Essentially, every time you create a new cairngorm event, you will create
new instances of the delegate and then the event listeners, so the same
result will fire the event listeners multiple times when you've created
multiple cairngorm events.

That's at least my take on the issue.

I have an app where I'm trying to perform a LoginEvent and I noticed that
every time I hit the Login button, I was creating a new LoginEvent and so
the more I tried to login, the more results I was getting back.  I tried
making the LoginEvent a private var on the view, and that seemed to work the
first time, but after that it wasn't passing the user data anymore.  Not
sure what that's about.

I don't like this fix because it would mean that there's only one instance
of each of the cairngorm events in the whole app.


On 1/16/07, Battershall, Jeff [EMAIL PROTECTED] wrote:

I'm not sure a singleton delegate would do the trick - and then you
 might have threading issues - right? I'm kind of suspicious of the fact that
 the RO instances are being persisted in the singleton ServiceLocator.  It's
 those RO instances' methods that are getting listeners attached to them.

 I'm going to try a couple of things - one is to explictly remove the
 event listener when the result comes over the wire.  I've determined this -
 the remote object is invoked only once outgoing from Flex.  It is the
 duplicate result events that are happening.

 One way to work around this would be to add a unique token to the rpc
 call as described in the Flex docs (search ACT in the Flex Dev guide) and
 only execute your return code when the token matches the one coming over the
 wire. I'm going to experiment with that as well.  I think this may well be
 some sort of scoping issue caused by the level of abstraction that the
 Cairngorm framework stipulates.

  -Original Message-
 *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED]
 *On Behalf Of *Mark Doberenz
 *Sent:* Monday, January 15, 2007 10:31 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Cairngorm Duplicate Remote Object Return
 Events

   I was seeing this same thing today with some stuff I was working on.
 I hadn't spent any time trying to remove the event listeners before adding
 them again though.  So, I don't know if that would work, but apparently not.

   I wonder if the delegate should actually be set up as a Singleton so
 that multiple instances of the delegate weren't floating around cathing the
 events every time.  This way, you could guarantee that only one instance was
 being used.  Just a thought.

   I don't have the code in front of me, but if you're reinstanciating
 the delegate every time the command is called, then this could explain it.

   Try setting a breakpoint in your delegate and look at the memory
 address for this and see if it's changing each time the delegate's called.


 On 1/15/07, Battershall, Jeff [EMAIL PROTECTED]  wrote:
 
 This is a tough one - and I'm getting a similar behavior with
  fileupload - duplicate completion events in subsequent calls to the same
  Event/Command/Delegate. I'm having to parse out the duplicates on the client
  side and I've yet to determine the culprit.   You'd think that there's a new
  instance of each Event, Command and Delegate classes responding to each
  gesture, but somehow something is getting persisted and producing a ghosting
  

Re: [flexcoders] Code behind- do you use it?

2007-01-16 Thread Mark Doberenz

All,
 Thanks for this discussion!  I hadn't heard of this before, so I googled
it and found this article:
http://www.adobe.com/devnet/flex/quickstart/building_components_using_code_behind/

 I'm going to try this out and see how it works.  Then maybe I'll be a
beneficial poster to this discussion :)

Mark

On 1/16/07, Robert Chyko [EMAIL PROTECTED] wrote:


   Yesterday I just refactored the project I am working on to use code
behind.  I had not planned on keeping script blocks in the MXML files, but
being fairly new to Flex, when everything began working correctly I sort of
forgot about it until some of the script blocks started getting larger
and larger and then it kind of clicked that I had planned on moving the
script out of the MXML.




 -Original Message-
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *ben.clinkinbeard
*Sent:* Tuesday, January 16, 2007 1:27 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Code behind- do you use it?

 I am undecided as to whether or not I want to use the code behind
method for my MXML files and figured I would see what others are
doing. I am currently just using Script blocks at the top of my files
to do event handling, initialization, etc but some of them are getting
pretty big.

So what are others doing? No AS in your MXML files, no code behind, a
mixture of the two?

Thanks,
Ben

 



Re: [flexcoders] Code behind- do you use it?

2007-01-16 Thread Martin Wood-Mitrovski
 So what are others doing? No AS in your MXML files, no code behind, a
 mixture of the two?

I use it practically 100% of the time.

If the mxml file only has a small amount of code and is unlikely to expand then 
its probably overkill but for anything with more than a couple of methods i use 
it.


martin.



RE: [flexcoders] Cairngorm Duplicate Remote Object Return Events

2007-01-16 Thread Battershall, Jeff
Well using mx.utils.UIDUtil.createUID() to give each RO call a unique
marker and then checking for a match on result is a way to go, biut it
certainly feels kludgey. I'd like to see some input from the Adobe
consulting folks - perhaps this has been addressed in Cairngorm 2.1 -
I'm using 2.0.

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Doberenz
Sent: Tuesday, January 16, 2007 1:54 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm Duplicate Remote Object
Return Events


You're right, I was just calling them duplicate events, but
repeated ones from earlier events is a much better way to say it.

I'm coding up a Fluorine app for the middleware... I'm not all
that sure how to use CF :( 

I'm basing my Flex app off of Sam Shrefler's Flex 2, Cairngorm,
Fluorine tutorial:
http://blog.shrefler.net/?p=10

Maybe his code needs to be tweaked for Flex 2.0.1 ??

Mark


On 1/16/07, Battershall, Jeff [EMAIL PROTECTED]
wrote: 



Mark,
 
Interesting discussion - interesting problem.  BTW, I
don't think these return events are really 'duplicates' per se, but
repeats of the earlier return events.  LIke
 
First invoke
 
returns event1
 
Second invoke
 
returns event1 then event2
 
etc.
 
Out of curiosity, what middleware are you using? I'm
using CFMX 7.02.
 
Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:
flexcoders@ mailto:flexcoders@ yahoogroups.com] On Behalf Of Mark
Doberenz

Sent: Tuesday, January 16, 2007 11:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm Duplicate
Remote Object Return Events


OK, so maybe having a Singleton delegate
wouldn't be a good idea.

Here's a bit more I've found on the topic.

I put a breakpoint at the Command result method
and found that the address location for the commands were changing.  So,
essentially, the commands are being persisted which in turn are
persisting new instances of the delegate and the event listeners that
are a part of those delegates.  Removing the event listener in the
delegate first won't work because the memory locations of the responder
(the command) are changing. 

Essentially, every time you create a new
cairngorm event, you will create new instances of the delegate and then
the event listeners, so the same result will fire the event listeners
multiple times when you've created multiple cairngorm events. 

That's at least my take on the issue.

I have an app where I'm trying to perform a
LoginEvent and I noticed that every time I hit the Login button, I was
creating a new LoginEvent and so the more I tried to login, the more
results I was getting back.  I tried making the LoginEvent a private var
on the view, and that seemed to work the first time, but after that it
wasn't passing the user data anymore.  Not sure what that's about. 

I don't like this fix because it would mean that
there's only one instance of each of the cairngorm events in the whole
app.



On 1/16/07, Battershall, Jeff
[EMAIL PROTECTED]  wrote: 



I'm not sure a singleton delegate would
do the trick - and then you might have threading issues - right? I'm
kind of suspicious of the fact that the RO instances are being persisted
in the singleton ServiceLocator.  It's those RO instances' methods that
are getting listeners attached to them.  
 
I'm going to try a couple of things -
one is to explictly remove the event listener when the result comes over
the wire.  I've determined this - the remote object is invoked only once
outgoing from Flex.  It is the duplicate result events that are
happening.  
 
One way to work around this would be to
add a unique token to the rpc call as described in the Flex docs (search
ACT in the Flex Dev guide) and only 

[flexcoders] Re: Flex Builder 2.0.1 the update !

2007-01-16 Thread Cato Paus
Hi All :) I have the Build Automatic set to off, end i have tried to 
delete the embeded fonts in my css, but Flex stil going slow, could 
it have somthing to do with that I'm running on fds2 and compailing 
to a JRun4 server ? 

--- In flexcoders@yahoogroups.com, Rick Schmitty [EMAIL PROTECTED] 
wrote:

 Do you have embeded fonts in your application?
 
 I was experiencing the same slowdown after upgrading to flex 
2.0.1.  I
 had 2.0 installed, updated to 2.0.1, then ran the clean command 
prior
 to opening flex.  It was still slow.
 
 Saw the blog about closing projects, closed everything but the one 
I'm
 working on, still slow
 
 Deleted all projects and created a blank application, super fast.
 Ok... so must be something in my project... started hacking away at
 the files until I came down to the fonts.
 
 This took almost 20seconds (on my machine) to compile
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 
 
 mx:Style
   @font-face {
   src: url(/assets/fonts/ARIAL.TTF);
   fontFamily: myArial;
   }   
   @font-face {
   src: url(/assets/fonts/BKANT.TTF);
   fontFamily: myBkant;
   }   
   @font-face {
   src: url(/assets/fonts/TAHOMA.TTF);
   fontFamily: myTahoma;
   }   
   @font-face {
   src: url(/assets/fonts/TIMES.TTF);
   fontFamily: myTimes;
   }   
   @font-face {
   src: url(/assets/fonts/TREBUC.TTF);
   fontFamily: myTrebuc;
   }
 /mx:Style   
 
 /mx:Application
 
 
 Deleting the style tag for a blank appliaction, it compiled 
immediately 1-1.5sec
 
 
 Here is what's going on (or so I think)
 
 FlashType support
 
 FlashType is the text rendering engine introduced in Flash Player 8.
 It improves the readability of text, especially at smaller font 
sizes.
 To leverage the FlashType engine in Flex 2, you had to create a SWF
 that embedded a particular font using the Flash authoring tool, and
 then embed that SWF file in your Flex application. With Flex 2.0.1,
 the mxmlc compiler can now embed a font using the FlashType engine
 directly, eliminating a step for many developers.
 
 
 So I'm back to running fast as long as I dont embed fonts via css,
 I'll reenable it when I need to publish a working version (or look
 into creating the SWF file on my own and not use CSS)
 
 
 On 1/16/07, Tom Chiverton [EMAIL PROTECTED] wrote:
  On Tuesday 16 January 2007 08:19, pauscato1 wrote:
   I have only one project running in my flex builder, this is 
realy
   anoing it uses 20% of my day.
 
  Have you got auto-compilation turned off ?
 
  --
  Tom Chiverton
  Helping to heterogeneously incubate robust meta-services
 
  
 
  This email is sent for and on behalf of Halliwells LLP.
 
  Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
 
  CONFIDENTIALITY
 
  This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
 
  For more information about Halliwells LLP visit 
www.halliwells.com.
 
 
 
  --
  Flexcoders Mailing List
  FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 





RE: [flexcoders] Re: Flex Builder 2.0.1 the update !

2007-01-16 Thread Allen Riddle
I don't think so; I'm running mine on Tomcat, with no embedded fonts.
And is slower than dirt. The fact that it wasn't slow on 2.0.0 tells us
something changed in the compilation process, and hopefully isn't
environment related.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cato Paus
Sent: Tuesday, January 16, 2007 1:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex Builder 2.0.1 the update !

 

Hi All :) I have the Build Automatic set to off, end i have tried to 
delete the embeded fonts in my css, but Flex stil going slow, could 
it have somthing to do with that I'm running on fds2 and compailing 
to a JRun4 server ? 

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Rick Schmitty [EMAIL PROTECTED] 
wrote:

 Do you have embeded fonts in your application?
 
 I was experiencing the same slowdown after upgrading to flex 
2.0.1. I
 had 2.0 installed, updated to 2.0.1, then ran the clean command 
prior
 to opening flex. It was still slow.
 
 Saw the blog about closing projects, closed everything but the one 
I'm
 working on, still slow
 
 Deleted all projects and created a blank application, super fast.
 Ok... so must be something in my project... started hacking away at
 the files until I came down to the fonts.
 
 This took almost 20seconds (on my machine) to compile
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 
 
 mx:Style
 @font-face {
 src: url(/assets/fonts/ARIAL.TTF);
 fontFamily: myArial;
 } 
 @font-face {
 src: url(/assets/fonts/BKANT.TTF);
 fontFamily: myBkant;
 } 
 @font-face {
 src: url(/assets/fonts/TAHOMA.TTF);
 fontFamily: myTahoma;
 } 
 @font-face {
 src: url(/assets/fonts/TIMES.TTF);
 fontFamily: myTimes;
 } 
 @font-face {
 src: url(/assets/fonts/TREBUC.TTF);
 fontFamily: myTrebuc;
 }
 /mx:Style 
 
 /mx:Application
 
 
 Deleting the style tag for a blank appliaction, it compiled 
immediately 1-1.5sec
 
 
 Here is what's going on (or so I think)
 
 FlashType support
 
 FlashType is the text rendering engine introduced in Flash Player 8.
 It improves the readability of text, especially at smaller font 
sizes.
 To leverage the FlashType engine in Flex 2, you had to create a SWF
 that embedded a particular font using the Flash authoring tool, and
 then embed that SWF file in your Flex application. With Flex 2.0.1,
 the mxmlc compiler can now embed a font using the FlashType engine
 directly, eliminating a step for many developers.
 
 
 So I'm back to running fast as long as I dont embed fonts via css,
 I'll reenable it when I need to publish a working version (or look
 into creating the SWF file on my own and not use CSS)
 
 
 On 1/16/07, Tom Chiverton [EMAIL PROTECTED] wrote:
  On Tuesday 16 January 2007 08:19, pauscato1 wrote:
   I have only one project running in my flex builder, this is 
realy
   anoing it uses 20% of my day.
 
  Have you got auto-compilation turned off ?
 
  --
  Tom Chiverton
  Helping to heterogeneously incubate robust meta-services
 
  
 
  This email is sent for and on behalf of Halliwells LLP.
 
  Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF. A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
 
  CONFIDENTIALITY
 
  This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged. If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents. If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
 
  For more information about Halliwells LLP visit 
www.halliwells.com.
 
 
 
  --
  Flexcoders Mailing List
  FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
  Search Archives: http://www.mail-archive.com/flexcoders%
http://www.mail-archive.com/flexcoders%25 
40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 


 



RE: [flexcoders] Chart Series added programmatically don't display

2007-01-16 Thread Ely Greenfield
 
 
 
That's usually an indiciation that the chart is correctly using the
series, but for some reason the series isn't part of the chart's display
tree.  The most common case for this is if you try and put the same
series in two different charts. They'll both behave like they contain
the series, but flash only allows a DisplayObject to appear in a single
spot in the tree, so it will only show up in one of the two charts.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of graysonpierce
Sent: Monday, January 15, 2007 11:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Chart Series added programmatically don't display



Hello,

I was wondering if anyone knows why series added through AS to a
CartesianChart wouldn't draw. 

The strange thing is that I can see tooltips (next to the vertical
axis) when I mouse-over where the columns normally would be indicating
the values in the dataprovider however the actual bars aren't
displaying.

I've tried calling a variety of invalidators to no avail.

chart.series = arSeries;
chart.invalidateDisplayList();
chart.invalidateProperties();
chart.invalidateSeriesStyles();
chart.invalidateSize();

GP



 


[flexcoders] Re: custom data tip in stacked bar chart

2007-01-16 Thread suri_boston
Hi Matt,
I looked at the link but it is for 100% chart and when i changed it 
to stacked chart, it wont work.. i am looking to create a data tip 
for stacked column/bar chart..

Is there a way, where i can find the total/sum value for the 
stacked series? if i can get it through the api, i can divide with 
the yValue to get the percentage..

Thanks
-siva


--- In flexcoders@yahoogroups.com, Matt Horn [EMAIL PROTECTED] wrote:

 Have you seen the example at the bottom of this page?
 
 
http://livedocs.macromedia.com/flex/201/html/charts_formatting_110_34.
ht
 ml
 
 It does, I think, what you are trying to do, only with a column 
chart.
 
 hth,
 matt horn
 flex docs
 http://blogs.adobe.com/flexdoc
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of suri_boston
  Sent: Tuesday, January 16, 2007 1:20 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] custom data tip in stacked bar chart
  
  Hi,
  I am trying to access the percentage value of the bar to display 
it 
  in the custom data tip function with no success..
  private function customDataTip(hd:HitData):String {
  
  var tmp:BarSeriesItem = new BarSeriesItem();
  var stryValue:String = ;
  tmp = e.chartItem as BarSeriesItem;
  var tmpStr:String = ;
  var tbar:BarSeries = BarSeries(e.element);
  tmpStr = B + BarSeries(e.element).displayName + /BBR;
  if(ca.displayName != null  ca.displayName != )
  stryValue = I+ ca.displayName.toString() + : /I;
  stryValue += String(e.item[grpByColumn]);
  tmpStr += stryValue+BR;
  
  /* how to get the percentage value??? */
  var tbarstack:StackedSeries = tbar.stacker;
  /* how to get the percentage value ???*/
  
  tmpStr += tmp.xValue + tbar.stacker.toString();
  return tmpStr;
  }
  
  Any help?
  -Siva 
  
  
  
   
 





Re: [flexcoders] Newbie asks why Flex?

2007-01-16 Thread greg h

Mark,

I, like Bruce (aka boy_trike) have been in the industry a while (me only 2
decades :-)  And I, like you, have my roots as a database specialist.

I will reply more fully when I have time.

Hopefully others on the list will share their thoughts and answer your
questions in the mean time.

fyi ... I had posted here to FlexCoders last month re: why we are using Flex
2 rather that the other options.  You can find my post here:
http://tech.groups.yahoo.com/group/flexcoders/message/59697

btw ... just curious, what city or area are you in?  Are you open to
relocation?

Best regards,

g

On 1/15/07, mabrams_us [EMAIL PROTECTED]  wrote:


I write to solicit some recommendations as to why one should invest
in learning Flex as a career move opposed to focusing on other
technologies.

I am a Sr. mainframe database applications developer / architect who
returned to school FT as a web programming student. My technical
exposure and academic projects include Flash8, DW8, Visual Studio,
Premier, Vegas, MSSQL, mySQL, MS Access and writing web apps in
VB.NET, XHTML/CSS2, JavaScript, DOM, and some action script...

When school ends I need to work and I want to build data driven RIA
that incorporate streaming media and ecommerce. I know I can do this
in AJAX with more mainstream technologies and the Flex marketplace is
very small compared to its competitors.

1) Why choose Flex as opposed to developing in .NET? (Please save the
evil empire stuff :-) How important is a JAVA background to becoming
a good Flex programmer?  What other technologies should a Flex
programmer know?

2) Since Flex emerged in 2004, what type of experience are Flex
hiring managers looking for (I find what I consider unrealistic
position memos on the job sites, e.g. 10 years of Flex experience
preferred …) and what's the best way to secure a position as a Flex
programmer if your employer didn't decide this for you?

TIA for your attention and recommendations.
Mark



RE: [flexcoders] Custom axis drawing (charts)?

2007-01-16 Thread Ely Greenfield
 
 
Hi Vigen. You can write your own custom axisRenderer if you like. I have
an example that does that up on my blog at quietlyscheming.com (see the
interactive bubble chart).  You could theoretically subclass the default
AxisRenderer and add to it, although that might get pretty hairy.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of vigen2000
Sent: Tuesday, January 16, 2007 4:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom axis drawing (charts)?



Hi,

is there a way to draw/add objects to the axis? im trying to draw
little lines on the vertical axis to represent the average value.

any ideas?

vigen



 


[flexcoders] Re: Flex Builder 2.0.1 the update !

2007-01-16 Thread Cato Paus
Hi, I have the Platinum Support at Adobe so let see if it works ..

I will post A.S.A.P. if Adobe come up with something.

Cato

--- In flexcoders@yahoogroups.com, Allen Riddle [EMAIL PROTECTED] wrote:

 I don't think so; I'm running mine on Tomcat, with no embedded 
fonts.
 And is slower than dirt. The fact that it wasn't slow on 2.0.0 
tells us
 something changed in the compilation process, and hopefully isn't
 environment related.
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Cato Paus
 Sent: Tuesday, January 16, 2007 1:14 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex Builder 2.0.1 the update !
 
  
 
 Hi All :) I have the Build Automatic set to off, end i have tried 
to 
 delete the embeded fonts in my css, but Flex stil going slow, could 
 it have somthing to do with that I'm running on fds2 and compailing 
 to a JRun4 server ? 
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , Rick Schmitty flexcode@ 
 wrote:
 
  Do you have embeded fonts in your application?
  
  I was experiencing the same slowdown after upgrading to flex 
 2.0.1. I
  had 2.0 installed, updated to 2.0.1, then ran the clean command 
 prior
  to opening flex. It was still slow.
  
  Saw the blog about closing projects, closed everything but the 
one 
 I'm
  working on, still slow
  
  Deleted all projects and created a blank application, super fast.
  Ok... so must be something in my project... started hacking away 
at
  the files until I came down to the fonts.
  
  This took almost 20seconds (on my machine) to compile
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
  
  
  mx:Style
  @font-face {
  src: url(/assets/fonts/ARIAL.TTF);
  fontFamily: myArial;
  } 
  @font-face {
  src: url(/assets/fonts/BKANT.TTF);
  fontFamily: myBkant;
  } 
  @font-face {
  src: url(/assets/fonts/TAHOMA.TTF);
  fontFamily: myTahoma;
  } 
  @font-face {
  src: url(/assets/fonts/TIMES.TTF);
  fontFamily: myTimes;
  } 
  @font-face {
  src: url(/assets/fonts/TREBUC.TTF);
  fontFamily: myTrebuc;
  }
  /mx:Style 
  
  /mx:Application
  
  
  Deleting the style tag for a blank appliaction, it compiled 
 immediately 1-1.5sec
  
  
  Here is what's going on (or so I think)
  
  FlashType support
  
  FlashType is the text rendering engine introduced in Flash Player 
8.
  It improves the readability of text, especially at smaller font 
 sizes.
  To leverage the FlashType engine in Flex 2, you had to create a 
SWF
  that embedded a particular font using the Flash authoring tool, 
and
  then embed that SWF file in your Flex application. With Flex 
2.0.1,
  the mxmlc compiler can now embed a font using the FlashType engine
  directly, eliminating a step for many developers.
  
  
  So I'm back to running fast as long as I dont embed fonts via css,
  I'll reenable it when I need to publish a working version (or look
  into creating the SWF file on my own and not use CSS)
  
  
  On 1/16/07, Tom Chiverton tom.chiverton@ wrote:
   On Tuesday 16 January 2007 08:19, pauscato1 wrote:
I have only one project running in my flex builder, this is 
 realy
anoing it uses 20% of my day.
  
   Have you got auto-compilation turned off ?
  
   --
   Tom Chiverton
   Helping to heterogeneously incubate robust meta-services
  
   
  
   This email is sent for and on behalf of Halliwells LLP.
  
   Halliwells LLP is a limited liability partnership registered in 
 England and Wales under registered number OC307980 whose registered 
 office address is at St James's Court Brown Street Manchester M2 
 2JF. A list of members is available for inspection at the 
registered 
 office. Any reference to a partner in relation to Halliwells LLP 
 means a member of Halliwells LLP. Regulated by the Law Society.
  
   CONFIDENTIALITY
  
   This email is intended only for the use of the addressee named 
 above and may be confidential or legally privileged. If you are not 
 the addressee you must not read it and must not use any information 
 contained in nor copy it nor inform any person other than 
Halliwells 
 LLP or the addressee of its existence or contents. If you have 
 received this email in error please delete it and notify Halliwells 
 LLP IT Department on 0870 365 8008.
  
   For more information about Halliwells LLP visit 
 www.halliwells.com.
  
  
  
   --
   Flexcoders Mailing List
   FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
   Search Archives: http://www.mail-archive.com/flexcoders%
 http://www.mail-archive.com/flexcoders%25 
 40yahoogroups.com
   Yahoo! Groups Links
  
  
  
  
 





[flexcoders] .Net webservice and datagrid

2007-01-16 Thread btkracker
I'm trying to receive XML data from a .Net webservice and populate a 
datagrid.  I'm able to receive the XML data ok but I can't see 
anything in the datagrid.

I attempted to manually duplicate the data returned and found that it 
has something to do with the moniker returned.  Here is the XML 
returned from the webservice:

searchCriteriaResult xmlns=http://mysite.com/;
  XrefData
bukey1/bukey
prKey14/prKey
moKey-1/moKey
spKey73/spKey
tdKey47/tdKey
  /XrefData
  XrefData
bukey1/bukey
prKey14/prKey
moKey15/moKey
spKey73/spKey
tdKey47/tdKey
  /XrefData
/searchCriteriaResult

If I manually create an XML object and bind it to my datagrid, I get 
the same result...nothing.  However, if I remove the 'xmlns' 
attribute _or_ add a moniker (such 
as 'xmlns:Test=http://mysite.com;') it works fine.

Anyone have any ideas?  I'm completely stumped!!



Re: [flexcoders] Cairngorm Duplicate Remote Object Return Events

2007-01-16 Thread Thijs Triemstra
I'm using Cairngorm 2.1 here so I don't think it's something that  
changed in the newest version.. :(


Your idea of the UID sounds like it will work but I'd prefer not send  
extra data back and forth and it also won't clean up these redundant  
event notifications.. It seems that cairngorm creates new instances  
of the delegate/event listeners etc every time, maybe there is a way  
to find a unique reference for them that you can use to filter out  
the extra events? but I guess that still creates a memory problem and  
the application will get slow after a while, something that would  
easily happen in a chatroom application for example.. question is:  
how does someone kill these event listeners with cairngorm?


Thijs


Op 16-jan-2007, om 20:08 heeft Battershall, Jeff het volgende  
geschreven:




Well using mx.utils.UIDUtil.createUID() to give each RO call a  
unique marker and then checking for a match on result is a way to  
go, biut it certainly feels kludgey. I'd like to see some input  
from the Adobe consulting folks - perhaps this has been addressed  
in Cairngorm 2.1 - I'm using 2.0.

-Original Message-
From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Doberenz

Sent: Tuesday, January 16, 2007 1:54 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm Duplicate Remote Object Return  
Events


You're right, I was just calling them duplicate events, but  
repeated ones from earlier events is a much better way to say it.


I'm coding up a Fluorine app for the middleware... I'm not all that  
sure how to use CF :(


I'm basing my Flex app off of Sam Shrefler's Flex 2, Cairngorm,  
Fluorine tutorial:

http://blog.shrefler.net/?p=10

Maybe his code needs to be tweaked for Flex 2.0.1 ??

Mark

On 1/16/07, Battershall, Jeff [EMAIL PROTECTED] wrote:

Mark,

Interesting discussion - interesting problem.  BTW, I don't think  
these return events are really 'duplicates' per se, but repeats of  
the earlier return events.  LIke


First invoke

returns event1

Second invoke

returns event1 then event2

etc.

Out of curiosity, what middleware are you using? I'm using CFMX 7.02.

Jeff
-Original Message-
From: flexcoders@yahoogroups.com [mailto:  
[EMAIL PROTECTED] On Behalf Of Mark Doberenz

Sent: Tuesday, January 16, 2007 11:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm Duplicate Remote Object Return  
Events


OK, so maybe having a Singleton delegate wouldn't be a good idea.

Here's a bit more I've found on the topic.

I put a breakpoint at the Command result method and found that the  
address location for the commands were changing.  So, essentially,  
the commands are being persisted which in turn are persisting new  
instances of the delegate and the event listeners that are a part  
of those delegates.  Removing the event listener in the delegate  
first won't work because the memory locations of the responder (the  
command) are changing.


Essentially, every time you create a new cairngorm event, you will  
create new instances of the delegate and then the event listeners,  
so the same result will fire the event listeners multiple times  
when you've created multiple cairngorm events.


That's at least my take on the issue.

I have an app where I'm trying to perform a LoginEvent and I  
noticed that every time I hit the Login button, I was creating a  
new LoginEvent and so the more I tried to login, the more results I  
was getting back.  I tried making the LoginEvent a private var on  
the view, and that seemed to work the first time, but after that it  
wasn't passing the user data anymore.  Not sure what that's about.


I don't like this fix because it would mean that there's only one  
instance of each of the cairngorm events in the whole app.



On 1/16/07, Battershall, Jeff [EMAIL PROTECTED]  wrote:

I'm not sure a singleton delegate would do the trick - and then you  
might have threading issues - right? I'm kind of suspicious of the  
fact that the RO instances are being persisted in the singleton  
ServiceLocator.  It's those RO instances' methods that are getting  
listeners attached to them.


I'm going to try a couple of things - one is to explictly remove  
the event listener when the result comes over the wire.  I've  
determined this - the remote object is invoked only once outgoing  
from Flex.  It is the duplicate result events that are happening.


One way to work around this would be to add a unique token to the  
rpc call as described in the Flex docs (search ACT in the Flex Dev  
guide) and only execute your return code when the token matches the  
one coming over the wire. I'm going to experiment with that as  
well.  I think this may well be some sort of scoping issue caused  
by the level of abstraction that the Cairngorm framework stipulates.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:  
[EMAIL PROTECTED] On Behalf Of Mark Doberenz

Sent: Monday, January 

Re: [flexcoders] Re: Flex Builder 2.0.1 the update !

2007-01-16 Thread Douglas Knudsen

using the FDS plugin and Tomcat hereI get out-of-memory errors and
eclipse crashing often

DK

On 1/16/07, Allen Riddle [EMAIL PROTECTED] wrote:


 I don't think so; I'm running mine on Tomcat, with no embedded fonts. And
is slower than dirt. The fact that it wasn't slow on 2.0.0 tells us
something changed in the compilation process, and hopefully isn't
environment related.


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Cato Paus
*Sent:* Tuesday, January 16, 2007 1:14 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: Flex Builder 2.0.1 the update !



Hi All :) I have the Build Automatic set to off, end i have tried to
delete the embeded fonts in my css, but Flex stil going slow, could
it have somthing to do with that I'm running on fds2 and compailing
to a JRun4 server ?

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Rick
Schmitty [EMAIL PROTECTED]
wrote:

 Do you have embeded fonts in your application?

 I was experiencing the same slowdown after upgrading to flex
2.0.1. I
 had 2.0 installed, updated to 2.0.1, then ran the clean command
prior
 to opening flex. It was still slow.

 Saw the blog about closing projects, closed everything but the one
I'm
 working on, still slow

 Deleted all projects and created a blank application, super fast.
 Ok... so must be something in my project... started hacking away at
 the files until I came down to the fonts.

 This took almost 20seconds (on my machine) to compile

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;


 mx:Style
 @font-face {
 src: url(/assets/fonts/ARIAL.TTF);
 fontFamily: myArial;
 }
 @font-face {
 src: url(/assets/fonts/BKANT.TTF);
 fontFamily: myBkant;
 }
 @font-face {
 src: url(/assets/fonts/TAHOMA.TTF);
 fontFamily: myTahoma;
 }
 @font-face {
 src: url(/assets/fonts/TIMES.TTF);
 fontFamily: myTimes;
 }
 @font-face {
 src: url(/assets/fonts/TREBUC.TTF);
 fontFamily: myTrebuc;
 }
 /mx:Style

 /mx:Application


 Deleting the style tag for a blank appliaction, it compiled
immediately 1-1.5sec


 Here is what's going on (or so I think)

 FlashType support

 FlashType is the text rendering engine introduced in Flash Player 8.
 It improves the readability of text, especially at smaller font
sizes.
 To leverage the FlashType engine in Flex 2, you had to create a SWF
 that embedded a particular font using the Flash authoring tool, and
 then embed that SWF file in your Flex application. With Flex 2.0.1,
 the mxmlc compiler can now embed a font using the FlashType engine
 directly, eliminating a step for many developers.


 So I'm back to running fast as long as I dont embed fonts via css,
 I'll reenable it when I need to publish a working version (or look
 into creating the SWF file on my own and not use CSS)


 On 1/16/07, Tom Chiverton [EMAIL PROTECTED] wrote:
  On Tuesday 16 January 2007 08:19, pauscato1 wrote:
   I have only one project running in my flex builder, this is
realy
   anoing it uses 20% of my day.
 
  Have you got auto-compilation turned off ?
 
  --
  Tom Chiverton
  Helping to heterogeneously incubate robust meta-services
 
  
 
  This email is sent for and on behalf of Halliwells LLP.
 
  Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2
2JF. A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP
means a member of Halliwells LLP. Regulated by the Law Society.
 
  CONFIDENTIALITY
 
  This email is intended only for the use of the addressee named
above and may be confidential or legally privileged. If you are not
the addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents. If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
  For more information about Halliwells LLP visit
www.halliwells.com.
 
 
 
  --
  Flexcoders Mailing List
  FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: 
http://www.mail-archive.com/flexcoders%http://www.mail-archive.com/flexcoders%25
40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 








--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


Re: [flexcoders] Code behind- do you use it?

2007-01-16 Thread Daniel Wabyick
I highly recommend it as well.

As a simple example, I might want to enhance the List component to 
autoscroll to the selected item upon selection. Simply create a class 
'AutoscrollList.as' that you can then use that class in your MXML 
ui:AutoscrollList /.  (code included below)

Like others, I don't use it when I add one or two UI centric functions 
to a UI class.

Cheers,
-D


package ui
{
import mx.controls.List;

public class AutoscrollList extends ExtendedList
{
   
override public function set selectedIndex( value:int ):void
{
super.selectedIndex = value;
scrollToSelected();
}
   
override public function set selectedItem( value:Object ):void
{
super.selectedItem = value;
   
scrollToSelected();
}
   
override public function set dataProvider( value:Object ) : void
{
super.dataProvider = value;
scrollToSelected();
}
   
public function scrollToSelected() : void
{
// TRICKY: Delay the invocation to avoid redraw bugs 
starting in 2.0.1
if ( selectedIndex = 0 )
{
callLater( scrollToIndex, [ selectedIndex ] );   
}
//this.scrollToIndex( selectedIndex );
}
   
   
}
}


ben.clinkinbeard wrote:

 I am undecided as to whether or not I want to use the code behind
 method for my MXML files and figured I would see what others are
 doing. I am currently just using Script blocks at the top of my files
 to do event handling, initialization, etc but some of them are getting
 pretty big.

 So what are others doing? No AS in your MXML files, no code behind, a
 mixture of the two?

 Thanks,
 Ben

  



Re: [flexcoders] Re: Flex Builder no longer compiles

2007-01-16 Thread Webdevotion

I also ran into these types of errors.
Only thing that works for me is create a new main class
and copy paste the code from the previous main class.

Then I set the latest main class to the default application.
This forces Flex Builder to recreate the swf files and it
gets rid of the errors you described.

Very annoying !


RE: [flexcoders] Re: Flex Builder 2.0.1 the update !

2007-01-16 Thread Allen Riddle
I got that all the time, even with 2.0.0. I had to switch to the stand
alone Flex Builder. That plugin is buggy.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas Knudsen
Sent: Tuesday, January 16, 2007 1:58 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex Builder 2.0.1 the update !

 

using the FDS plugin and Tomcat hereI get out-of-memory errors and
eclipse crashing often

DK

On 1/16/07, Allen Riddle  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

I don't think so; I'm running mine on Tomcat, with no embedded fonts.
And is slower than dirt. The fact that it wasn't slow on 2.0.0 tells us
something changed in the compilation process, and hopefully isn't
environment related.

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
] On Behalf Of Cato Paus
Sent: Tuesday, January 16, 2007 1:14 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] Re: Flex Builder 2.0.1 the update !

 

Hi All :) I have the Build Automatic set to off, end i have tried to 
delete the embeded fonts in my css, but Flex stil going slow, could 
it have somthing to do with that I'm running on fds2 and compailing 
to a JRun4 server ? 

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Rick Schmitty [EMAIL PROTECTED] 
wrote:

 Do you have embeded fonts in your application?
 
 I was experiencing the same slowdown after upgrading to flex 
2.0.1. I
 had 2.0 installed, updated to 2.0.1, then ran the clean command 
prior
 to opening flex. It was still slow.
 
 Saw the blog about closing projects, closed everything but the one 
I'm
 working on, still slow
 
 Deleted all projects and created a blank application, super fast.
 Ok... so must be something in my project... started hacking away at
 the files until I came down to the fonts.
 
 This took almost 20seconds (on my machine) to compile
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 
 
 mx:Style
 @font-face {
 src: url(/assets/fonts/ARIAL.TTF);
 fontFamily: myArial;
 } 
 @font-face {
 src: url(/assets/fonts/BKANT.TTF);
 fontFamily: myBkant;
 } 
 @font-face {
 src: url(/assets/fonts/TAHOMA.TTF);
 fontFamily: myTahoma;
 } 
 @font-face {
 src: url(/assets/fonts/TIMES.TTF);
 fontFamily: myTimes;
 } 
 @font-face {
 src: url(/assets/fonts/TREBUC.TTF);
 fontFamily: myTrebuc;
 }
 /mx:Style 
 
 /mx:Application
 
 
 Deleting the style tag for a blank appliaction, it compiled 
immediately 1-1.5sec
 
 
 Here is what's going on (or so I think)
 
 FlashType support
 
 FlashType is the text rendering engine introduced in Flash Player 8.
 It improves the readability of text, especially at smaller font 
sizes.
 To leverage the FlashType engine in Flex 2, you had to create a SWF
 that embedded a particular font using the Flash authoring tool, and
 then embed that SWF file in your Flex application. With Flex 2.0.1,
 the mxmlc compiler can now embed a font using the FlashType engine
 directly, eliminating a step for many developers.
 
 
 So I'm back to running fast as long as I dont embed fonts via css,
 I'll reenable it when I need to publish a working version (or look
 into creating the SWF file on my own and not use CSS)
 
 
 On 1/16/07, Tom Chiverton [EMAIL PROTECTED] wrote:
  On Tuesday 16 January 2007 08:19, pauscato1 wrote:
   I have only one project running in my flex builder, this is 
realy
   anoing it uses 20% of my day.
 
  Have you got auto-compilation turned off ?
 
  --
  Tom Chiverton
  Helping to heterogeneously incubate robust meta-services
 
  
 
  This email is sent for and on behalf of Halliwells LLP.
 
  Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF. A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
 
  CONFIDENTIALITY
 
  This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged. If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents. If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
 
  For more information about Halliwells LLP visit 
www.halliwells.com http://www.halliwells.com .
 
 
 
  --
  Flexcoders Mailing List
  FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Re: [flexcoders] Cairngorm Duplicate Remote Object Return Events

2007-01-16 Thread Mark Doberenz

OK, I was able to finally get somewhere with this...

Here's what I was using in my Delegate in the login method...

var call:AsyncToken = service.login(username, password);
service.addEventListener(ResultEvent.RESULT, responder.result);
service.addEventListener(FaultEvent.FAULT, responder.fault);

The problem was adding the event listeners to the service node... not a good
idea, but like I said earlier, this is how Sam Shrefler was doing it on his
tutorial.

Here's what I changed it to...

var call:AsyncToken = service.login(username, password);
call.addResponder(responder);

Now, I'm only getting one result every time I call the method.
Hope this helps someone else.

Mark

On 1/16/07, Thijs Triemstra [EMAIL PROTECTED] wrote:


  I'm using Cairngorm 2.1 here so I don't think it's something that
changed in the newest version.. :(

Your idea of the UID sounds like it will work but I'd prefer not send
extra data back and forth and it also won't clean up these redundant event
notifications.. It seems that cairngorm creates new instances of the
delegate/event listeners etc every time, maybe there is a way to find a
unique reference for them that you can use to filter out the extra events?
but I guess that still creates a memory problem and the application will get
slow after a while, something that would easily happen in a chatroom
application for example.. question is: how does someone kill these event
listeners with cairngorm?

Thijs


Op 16-jan-2007, om 20:08 heeft Battershall, Jeff het volgende geschreven:


Well using mx.utils.UIDUtil.createUID() to give each RO call a unique
marker and then checking for a match on result is a way to go, biut it
certainly feels kludgey. I'd like to see some input from the Adobe
consulting folks - perhaps this has been addressed in Cairngorm 2.1 - I'm
using 2.0.

-Original Message-
*From:* flexcoders@yahoogroups.com [mailto:flexcoders flexcoders@
yahoogroups.com] *On Behalf Of *Mark Doberenz
*Sent:* Tuesday, January 16, 2007 1:54 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Cairngorm Duplicate Remote Object Return
Events

You're right, I was just calling them duplicate events, but repeated ones
from earlier events is a much better way to say it.

I'm coding up a Fluorine app for the middleware... I'm not all that sure
how to use CF :(

I'm basing my Flex app off of Sam Shrefler's Flex 2, Cairngorm, Fluorine
tutorial:
http://blog. http://blog.shrefler.net/?p=10shrefler.net/?p=10

Maybe his code needs to be tweaked for Flex 2.0.1 ??

Mark

On 1/16/07, Battershall, Jeff [EMAIL PROTECTED] wrote:


 Mark,

 Interesting discussion - interesting problem.  BTW, I don't think these
 return events are really 'duplicates' per se, but repeats of the earlier
 return events.  LIke

 First invoke

 returns event1

 Second invoke

 returns event1 then event2

 etc.

 Out of curiosity, what middleware are you using? I'm using CFMX 7.02.

 Jeff

 -Original Message-
 *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED]
 *On Behalf Of *Mark Doberenz
 *Sent:* Tuesday, January 16, 2007 11:50 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Cairngorm Duplicate Remote Object Return
 Events

 OK, so maybe having a Singleton delegate wouldn't be a good idea.

 Here's a bit more I've found on the topic.

 I put a breakpoint at the Command result method and found that the
 address location for the commands were changing.  So, essentially, the
 commands are being persisted which in turn are persisting new instances of
 the delegate and the event listeners that are a part of those delegates.
 Removing the event listener in the delegate first won't work because the
 memory locations of the responder (the command) are changing.

 Essentially, every time you create a new cairngorm event, you will
 create new instances of the delegate and then the event listeners, so the
 same result will fire the event listeners multiple times when you've created
 multiple cairngorm events.

 That's at least my take on the issue.

 I have an app where I'm trying to perform a LoginEvent and I noticed
 that every time I hit the Login button, I was creating a new LoginEvent and
 so the more I tried to login, the more results I was getting back.  I tried
 making the LoginEvent a private var on the view, and that seemed to work the
 first time, but after that it wasn't passing the user data anymore.  Not
 sure what that's about.

 I don't like this fix because it would mean that there's only one
 instance of each of the cairngorm events in the whole app.


 On 1/16/07, Battershall, Jeff [EMAIL PROTECTED]  wrote:
 
 
  I'm not sure a singleton delegate would do the trick - and then you
  might have threading issues - right? I'm kind of suspicious of the fact that
  the RO instances are being persisted in the singleton ServiceLocator.  It's
  those RO instances' methods that are getting listeners attached to them.
 
  I'm going to try a couple of things - one is to 

RE: [flexcoders] Cairngorm Duplicate Remote Object Return Events

2007-01-16 Thread Battershall, Jeff
Mark, 
 
Thanks! - I haven't tried this yet, but it looks like you nailed it.
 
Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Doberenz
Sent: Tuesday, January 16, 2007 3:27 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm Duplicate Remote Object
Return Events


OK, I was able to finally get somewhere with this...

Here's what I was using in my Delegate in the login method...

var call:AsyncToken = service.login(username, password);
service.addEventListener(ResultEvent.RESULT , responder.result);
service.addEventListener(FaultEvent.FAULT, responder.fault);

The problem was adding the event listeners to the service
node... not a good idea, but like I said earlier, this is how Sam
Shrefler was doing it on his tutorial. 

Here's what I changed it to...

var call:AsyncToken = service.login(username, password);
call.addResponder(responder);

Now, I'm only getting one result every time I call the method.
Hope this helps someone else. 

Mark


On 1/16/07, Thijs Triemstra [EMAIL PROTECTED] wrote: 

I'm using Cairngorm 2.1 here so I don't think it's
something that changed in the newest version.. :(


Your idea of the UID sounds like it will work but I'd
prefer not send extra data back and forth and it also won't clean up
these redundant event notifications.. It seems that cairngorm creates
new instances of the delegate/event listeners etc every time, maybe
there is a way to find a unique reference for them that you can use to
filter out the extra events? but I guess that still creates a memory
problem and the application will get slow after a while, something that
would easily happen in a chatroom application for example.. question is:
how does someone kill these event listeners with cairngorm?  

Thijs


Op 16-jan-2007, om 20:08 heeft Battershall, Jeff het
volgende geschreven:





Well using mx.utils.UIDUtil. createUID() to give
each RO call a unique marker and then checking for a match on result is
a way to go, biut it certainly feels kludgey. I'd like to see some input
from the Adobe consulting folks - perhaps this has been addressed in
Cairngorm 2.1 - I'm using 2.0.

-Original Message-
From: [EMAIL PROTECTED] ups.com
http://ups.com  [mailto:[EMAIL PROTECTED] com] On Behalf Of Mark
Doberenz
Sent: Tuesday, January 16, 2007 1:54 PM
To: [EMAIL PROTECTED] ups.com
http://ups.com 
Subject: Re: [flexcoders] Cairngorm
Duplicate Remote Object Return Events


You're right, I was just calling them
duplicate events, but repeated ones from earlier events is a much better
way to say it.

I'm coding up a Fluorine app for the
middleware... I'm not all that sure how to use CF :( 

I'm basing my Flex app off of Sam
Shrefler's Flex 2, Cairngorm, Fluorine tutorial: 
http://blog.
http://blog.shrefler.net/?p=10 shrefler.net/?p=10

Maybe his code needs to be tweaked for
Flex 2.0.1 ??

Mark


On 1/16/07, Battershall, Jeff 
[EMAIL PROTECTED] com mailto:[EMAIL PROTECTED] 
wrote: 


Mark,
 
Interesting discussion - interesting
problem.  BTW, I don't think these return events are really 'duplicates'
per se, but repeats of the earlier return events.  LIke
 
First invoke
 
returns event1
 
Second invoke
 
returns event1 then event2

etc.
 
Out of curiosity, what middleware are
you using? I'm using CFMX 7.02.
 
Jeff

-Original Message-
From: [EMAIL PROTECTED] 

[flexcoders] Re: Right-click menu while dragging

2007-01-16 Thread michael.ritchie
Solved! I finally found a solution to the context menu appearing on
drag items and menus in Flex.   The information came from Adobe's new
Flex Cookbook:

http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=2201


--- In flexcoders@yahoogroups.com, Michael Ritchie
[EMAIL PROTECTED] wrote:

 I am experiencing some odd behavior with the ContextMenu in Flex 2.
 Even though I hide the built in items on the context menu.  While
 dragging an object, quickly right-click, the entire Flash Player menu
 will appear. Regular right-clicks on the application have the
 truncated ContextMenu.   This also happens when you create Menu and
 right-click. 
 
 Michael Ritchie
 Xdrive.com





[flexcoders] Re: .Net webservice and datagrid

2007-01-16 Thread ben.clinkinbeard
Yep, you have to specifically address the namespace. The easiest way
is the use namespace directive. More detailed explanation here:
http://www.returnundefined.com/2006/07/datagrid-labelfunction-and-namespaces/

HTH,
Ben


--- In flexcoders@yahoogroups.com, btkracker [EMAIL PROTECTED] wrote:

 I'm trying to receive XML data from a .Net webservice and populate a 
 datagrid.  I'm able to receive the XML data ok but I can't see 
 anything in the datagrid.
 
 I attempted to manually duplicate the data returned and found that it 
 has something to do with the moniker returned.  Here is the XML 
 returned from the webservice:
 
 searchCriteriaResult xmlns=http://mysite.com/;
   XrefData
 bukey1/bukey
 prKey14/prKey
 moKey-1/moKey
 spKey73/spKey
 tdKey47/tdKey
   /XrefData
   XrefData
 bukey1/bukey
 prKey14/prKey
 moKey15/moKey
 spKey73/spKey
 tdKey47/tdKey
   /XrefData
 /searchCriteriaResult
 
 If I manually create an XML object and bind it to my datagrid, I get 
 the same result...nothing.  However, if I remove the 'xmlns' 
 attribute _or_ add a moniker (such 
 as 'xmlns:Test=http://mysite.com;') it works fine.
 
 Anyone have any ideas?  I'm completely stumped!!





Re: [flexcoders] Code behind- do you use it?

2007-01-16 Thread Ralf Bokelberg

From an OOP point of view, would you really create a subclass just to divide

the code into smaller pieces?
I guess no. Imho it's better practice to extract real classes/objects from
mxml files, if possible.

Cheers,
Ralf.

On 1/16/07, Daniel Wabyick [EMAIL PROTECTED] wrote:


  I highly recommend it as well.

As a simple example, I might want to enhance the List component to
autoscroll to the selected item upon selection. Simply create a class
'AutoscrollList.as' that you can then use that class in your MXML
ui:AutoscrollList /. (code included below)

Like others, I don't use it when I add one or two UI centric functions
to a UI class.

Cheers,
-D

package ui
{
import mx.controls.List;

public class AutoscrollList extends ExtendedList
{

override public function set selectedIndex( value:int ):void
{
super.selectedIndex = value;
scrollToSelected();
}

override public function set selectedItem( value:Object ):void
{
super.selectedItem = value;

scrollToSelected();
}

override public function set dataProvider( value:Object ) : void
{
super.dataProvider = value;
scrollToSelected();
}

public function scrollToSelected() : void
{
// TRICKY: Delay the invocation to avoid redraw bugs
starting in 2.0.1
if ( selectedIndex = 0 )
{
callLater( scrollToIndex, [ selectedIndex ] );
}
//this.scrollToIndex( selectedIndex );
}


}
}

ben.clinkinbeard wrote:

 I am undecided as to whether or not I want to use the code behind
 method for my MXML files and figured I would see what others are
 doing. I am currently just using Script blocks at the top of my files
 to do event handling, initialization, etc but some of them are getting
 pretty big.

 So what are others doing? No AS in your MXML files, no code behind, a
 mixture of the two?

 Thanks,
 Ben



 





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


[flexcoders] Re: Hyperlinks in text that call a function, not a URL

2007-01-16 Thread thegators_2002
Tracy, that's a great example.  I didn't know you could put an event
emitter in an anchor tag like that.  Thanks a million!



RE: [flexcoders] Re: Using Automation with Horizontal List

2007-01-16 Thread Tracy Spratt
I mean you can't add a property to an itemRenderer.  An item renderer
only renderers items, it is not a persistent, referenceable object.  You
need to add automationName to the dataProvider, and let the renderer
display it..

 

What exactly are you trying to do?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of eucliptica
Sent: Tuesday, January 16, 2007 1:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Using Automation with Horizontal List

 

Do you mean that when itemRenderer is initialized I need to go and 
find out what is the index of data item in dataProvider 
ArrayCollection and then use that as index for setting up 
automationName.

Thanks for help

 



RE: [flexcoders] .Net webservice and datagrid

2007-01-16 Thread Tracy Spratt
Notice the xml elements do not have namespace prefixes. This means that
they are using the default namespace which is declared in the root tag,
without a prefix. So adding this directive:
default xml namespace = http://mysite.com/ http://mysite.com/ ;
should allow you to reference the nodes.

 

I hope.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of btkracker
Sent: Tuesday, January 16, 2007 1:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] .Net webservice and datagrid

 

I'm trying to receive XML data from a .Net webservice and populate a 
datagrid. I'm able to receive the XML data ok but I can't see 
anything in the datagrid.

I attempted to manually duplicate the data returned and found that it 
has something to do with the moniker returned. Here is the XML 
returned from the webservice:

searchCriteriaResult xmlns=http://mysite.com/ http://mysite.com/ 
XrefData
bukey1/bukey
prKey14/prKey
moKey-1/moKey
spKey73/spKey
tdKey47/tdKey
/XrefData
XrefData
bukey1/bukey
prKey14/prKey
moKey15/moKey
spKey73/spKey
tdKey47/tdKey
/XrefData
/searchCriteriaResult

If I manually create an XML object and bind it to my datagrid, I get 
the same result...nothing. However, if I remove the 'xmlns' 
attribute _or_ add a moniker (such 
as 'xmlns:Test=http://mysite.com http://mysite.com ') it works fine.

Anyone have any ideas? I'm completely stumped!!

 



[flexcoders] Removing focus from a dataGrid

2007-01-16 Thread patricklemiuex
Hi There,

I posted this, and searched and still did not find an answer, I have
multiple datagrids on the screen... Can you point me in the right
direction of how to remove focus from the other while one is selected?

Cheers, Hope you can help me.   

Patrick



RE: [flexcoders] custom data tip in stacked bar chart

2007-01-16 Thread Ely Greenfield
 
 
Hi Suri. THe totals for the items are stored as part of the grouping
series (i..e, the ColumnSet, BarSet, etc) in an internal variable called
totalsByPrimaryAxis. This variable is protected, so to access it you'll
need to write a custom extension to the class.  It's a dictionary, where
the keys are values along the primary axis (the x axis for column/area,
y axis for bar), and the values are the total at that point.
 
If you look at ColumnSet.formatDataTip, you can see how the default data
tips are calculated.  So you'll want to extend the series to provide
access to the item totals, and then use similar logic from that function
for your own datatips.
 
Ely.
 
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of suri_boston
Sent: Tuesday, January 16, 2007 10:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] custom data tip in stacked bar chart



Hi,
I am trying to access the percentage value of the bar to display it 
in the custom data tip function with no success..
private function customDataTip(hd:HitData):String {

var tmp:BarSeriesItem = new BarSeriesItem();
var stryValue:String = ;
tmp = e.chartItem as BarSeriesItem;
var tmpStr:String = ;
var tbar:BarSeries = BarSeries(e.element);
tmpStr = B + BarSeries(e.element).displayName + /BBR;
if(ca.displayName != null  ca.displayName != )
stryValue = I+ ca.displayName.toString() + : /I;
stryValue += String(e.item[grpByColumn]);
tmpStr += stryValue+BR;

/* how to get the percentage value??? */
var tbarstack:StackedSeries = tbar.stacker;
/* how to get the percentage value ???*/

tmpStr += tmp.xValue + tbar.stacker.toString();
return tmpStr;
}

Any help?
-Siva 



 


Re: [flexcoders] Chart Series added programmatically don't display

2007-01-16 Thread Brendan Meutzner

Not sure I understand your response Ely, but I've had success adding series
dynamically to the CartesianChart... here's an example... right click for
source:

http://www.stretchmedia.ca/code_examples/offset_calculator/SeriesOffsetCalculator.html

And yes, this is an opportunity to pitch my little offset calculator tool
:-)


Brendan


On 1/16/07, Ely Greenfield [EMAIL PROTECTED] wrote:





That's usually an indiciation that the chart is correctly using the
series, but for some reason the series isn't part of the chart's display
tree.  The most common case for this is if you try and put the same series
in two different charts. They'll both behave like they contain the series,
but flash only allows a DisplayObject to appear in a single spot in the
tree, so it will only show up in one of the two charts.

Ely.


 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *graysonpierce
*Sent:* Monday, January 15, 2007 11:11 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Chart Series added programmatically don't display

 Hello,

I was wondering if anyone knows why series added through AS to a
CartesianChart wouldn't draw.

The strange thing is that I can see tooltips (next to the vertical
axis) when I mouse-over where the columns normally would be indicating
the values in the dataprovider however the actual bars aren't displaying.

I've tried calling a variety of invalidators to no avail.

chart.series = arSeries;
chart.invalidateDisplayList();
chart.invalidateProperties();
chart.invalidateSeriesStyles();
chart.invalidateSize();

GP

 



[flexcoders] Preventing two or more people from filling out a form at the same time

2007-01-16 Thread Jim Pickering
Can someone lead me to some Flex 2 documentation that explains how
prevent two or more people from filling out a form at the same time? I
am building a Flex 2 based Intranet application that uses FDS to push
data changes to all of the clients. If one user is filling out a form, I
want that form to be made read only to everyone else until it is
submitted. I believe there was a demo at MAX that demoed such
functionality built-in to Flex 2.

Thanks,

Jim




[flexcoders] Titlewindow dragging and dropping within canvas

2007-01-16 Thread Shailesh Mangal
I need to put a titleWindow over the canvas (either as a child or as
popup) and should be draggable by it titleBar (and not the body)
confined with the canvas and should not flow over other components on
the screen. 

I did it successfully by implementing custom dragging but that lets
the whole titleWindow draggable.

Tried with Popup manager but drag events dont get bubbled up except
close and mousedownout. I need to capture dragComplete to make confine
the dragged component into a defined boundary. I tried dragComplete on
the dragged component. 

Are there alternative ways to do this?



RE: [flexcoders] Cairngorm support for Flex 2.0.1 modules?

2007-01-16 Thread Dirk Eismann
Another use case would be to replace certain parts of the Cairngorm 
infrastructure (ServiceLocator instance, specific Delegate) depending on e.g. a 
dynamically loaded configuration file. This way e.g. Delegates could easily be 
replaced by just pointing to another Module.

Dirk.


-Ursprüngliche Nachricht-
Von: flexcoders@yahoogroups.com im Auftrag von Alistair McLeod
Gesendet: Di 16.01.2007 11:11
An: flexcoders@yahoogroups.com
Betreff: RE: [flexcoders] Cairngorm support for Flex 2.0.1 modules?
 
Hi Tom,

Before any additions are made to the Cairngorm framework, we always
ensure that they have been used in real-life projects first. I'm doing
some investigation into Cairngorm/Modules and will post results when I
get them, but don't expect any immediate changes to Cairngorm around
this. What will likely happen first is blog posts/DevNet articles
suggesting how we see things working, and then additions to the
framework once those ideas have been proven.

I'd be interested in hearing the thoughts and experiences on others on
this too.

Best,

Alistair

--
Alistair McLeod
Technical Practice Leader (Rich Internet Applications and LiveCycle)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6108
[EMAIL PROTECTED], http://weblogs.macromedia.com/amcleod
 


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Baggett
Sent: 15 January 2007 18:02
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm support for Flex 2.0.1 modules?

Hello all,

I'm evaluating the new module interface in the Flex 2.0.1 update and
have some questions in regards to Cairngorm-architected apps.

Does anyone have recommendations on how you would slice up a
Cairngorm-based Flex app into modules?

For example, the ModelLocator- and FrontController-derived classes would
need to allow values and commands to be dynamically added and removed as
modules are loaded and unloaded.  How should this be implemented so that
data binding to the model works as expected?

Is there any work being done on the framework to facilitate these types
of things?

Thanks for any thoughts,

Tom



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links




winmail.dat

RE: [flexcoders] Re: Cairngorm support for Flex 2.0.1 modules?

2007-01-16 Thread Dirk Eismann
I think the two actions Derrick mentions - to use BindingUtils to remove {} 
bindings and to use weak reference listeners where possible - are the two key 
techniques to limit memory / GC issues. 

This is not only something to watch out for when loading/unloading Modules but 
also when components get dynamically added/removed inside a Flex application. 

Dirk.


-Ursprüngliche Nachricht-
Von: flexcoders@yahoogroups.com im Auftrag von Derrick Grigg
Gesendet: Di 16.01.2007 15:17
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: Cairngorm support for Flex 2.0.1 modules?
 
My team is currently in the process of developing a large modular Flex
application that is based on Cairngorm and uses the mx:Modules.

We put the Cairngorm framework and all 'core' classes (ie Controller,
ModelLocator, ValueObject, centralized Commands) into a Flex Library.
Each module was setup as a separate Flex project along with a shell
project that was responsible for loading the modules and creating the
basic shell application. Each of the modules accessed the 'core'
classes as an RSL during development and then the option was set to
'external' for deployment to reduce file size and duplication. The
shell used the 'include' compiler option to compile the entire 'core'
library into the shell so that all classes where available for the
modules. Each module ran a method upon loading that would register any
module specific Commands with the FrontController and register for any
events, etc.

The one thing that was quite tricky was uncoupling binding from the
ModelLocator during module unloads. Using the {} method in the
property attribute of a control (ie mx:DataGrid
dataProvider={model.shoppingList}/) does not allow you to uncouple
the binding at a later time, which prevents garbage collection.
Instead we had to use the BindingUtils and then call a method just
before unloading a module to remove the bindings, then the module
could be properly unloaded and garbage collected. Also we had to make
sure we used weak reference event listeners in order to ensure garbage
collection would properly occur on the unloaded modules.

Hope that information helps you out.

Derrick
-
Derrick Grigg
[EMAIL PROTECTED]



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links




winmail.dat

Re: [flexcoders] Code behind- do you use it?

2007-01-16 Thread Daniel Wabyick

Good poont. The example I gave is not exactly describing code-behind. I 
would use the ui:AutoscrollList / within another VBox (e.g), not as a 
top element.

Nevertheless, I do use code-behinds (using an Actionscript class as the 
top element of an MXML component) at times, but usually more as an 
abstract class where I expect there to be multiple subclasses, not as a 
code-behind for a single class.

Cheers,
-D


Ralf Bokelberg wrote:

 From an OOP point of view, would you really create a subclass just to 
 divide the code into smaller pieces?
 I guess no. Imho it's better practice to extract real classes/objects 
 from mxml files, if possible.

 Cheers,
 Ralf.

 On 1/16/07, *Daniel Wabyick* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 I highly recommend it as well.

 As a simple example, I might want to enhance the List component to
 autoscroll to the selected item upon selection. Simply create a class
 'AutoscrollList.as' that you can then use that class in your MXML
 ui:AutoscrollList /. (code included below)

 Like others, I don't use it when I add one or two UI centric
 functions
 to a UI class.

 Cheers,
 -D

 package ui
 {
 import mx.controls.List;

 public class AutoscrollList extends ExtendedList
 {

 override public function set selectedIndex( value:int ):void
 {
 super.selectedIndex = value;
 scrollToSelected();
 }

 override public function set selectedItem( value:Object ):void
 {
 super.selectedItem = value;

 scrollToSelected();
 }

 override public function set dataProvider( value:Object ) : void
 {
 super.dataProvider = value;
 scrollToSelected();
 }

 public function scrollToSelected() : void
 {
 // TRICKY: Delay the invocation to avoid redraw bugs
 starting in 2.0.1
 if ( selectedIndex = 0 )
 {
 callLater( scrollToIndex, [ selectedIndex ] );
 }
 //this.scrollToIndex( selectedIndex );
 }


 }
 }

 ben.clinkinbeard wrote:
 
  I am undecided as to whether or not I want to use the code behind
  method for my MXML files and figured I would see what others are
  doing. I am currently just using Script blocks at the top of my files
  to do event handling, initialization, etc but some of them are
 getting
  pretty big.
 
  So what are others doing? No AS in your MXML files, no code behind, a
  mixture of the two?
 
  Thanks,
  Ben
 
 




 -- 
 Ralf Bokelberg [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]
 Flex  Flash Consultant based in Cologne/Germany
 Phone +49 (0) 221 530 15 35
  



RE: [flexcoders] Code behind- do you use it?

2007-01-16 Thread Dimitrios Gianninas
I do everything in script blocks and write helper classes where needed. But I 
also breakdown the app as much as possible, so those script blocks and views 
are as small as possible.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
ben.clinkinbeard
Sent: Tuesday, January 16, 2007 1:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Code behind- do you use it?



I am undecided as to whether or not I want to use the code behind
method for my MXML files and figured I would see what others are
doing. I am currently just using Script blocks at the top of my files
to do event handling, initialization, etc but some of them are getting
pretty big. 

So what are others doing? No AS in your MXML files, no code behind, a
mixture of the two?

Thanks,
Ben



 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



[flexcoders] Pie Chart Bug!? Weird Behavior....

2007-01-16 Thread phipzkillah
Hi,

I have a pie chart (could have fooled be based on the output!) that is
being displayed incorrectly, as you can see below.



The datagrid view is correct:



Here is my mxml:
mx:PieChart id=pieDP showDataTips=true width=100% height=100%
 dataProvider={_dpXMLList}
 itemClick=explodeSlice(event.hitData.item)
doubleClickEnabled=true
 itemDoubleClick=changeView(event.hitData.item)
 dataTipFunction=formatDataTip
resizeEffect={resize}

 mx:series
 mx:Array
 mx:PieSeries id=ps field=@totalDevices
 nameField=@name
 labelPosition=callout
 labelFunction=getSliceLabel
 showDataEffect={interpolate}
 fills={pieColors}
 /mx:PieSeries
 /mx:Array
 /mx:series
 /mx:PieChart

Here is the result of tracing my dataProvider:
devicePool name=BACKUP2 totalDevices=0 totalRegDevices=0
   srstReferenceDisable/srstReference
   registeredPhones0/registeredPhones
   registeredCTIPorts0/registeredCTIPorts
   registeredGateways0/registeredGateways
   registeredMediaDevices0/registeredMediaDevices
   registeredVmailPorts0/registeredVmailPorts
   totalPhones1/totalPhones
   totalCTIPorts0/totalCTIPorts
   totalGateways0/totalGateways
   totalMediaDevices0/totalMediaDevices
   totalVmailPorts0/totalVmailPorts
/devicePool

The piechart's dataProvider is set based on what leaf of a tree is
selected in another panel.  My pie chart displays correctly for other
leafs, but this leaf always produces a 'broken' pie chart.  I have
compared the chart's dataProvider values for other leafs selected and I
can't seem to figure out why this is breaking here.

Is this a bug in Flex Charting?

-phil




[flexcoders] Re: Using Automation with Horizontal List

2007-01-16 Thread eucliptica
Exactly what you explained. 

mx:HorizontalList id=avalActList height=30 width=100%
dataProvider={modelLocator.someArrayCollection}   
itemRenderer=com.someComponentWithLabelFields/

is the list and item renderer is bound to an object in ArrayCollection.

Well main problem here is that data that I bind to is coming through 
FDS and I can not change dataProvider (objects in that 
arraycollection) to add automationName property that I would (not 
display) but assign to labels with automationName property so it can 
be picked up by QTP. 

Just to be clear I don't need to add automationName to renderer as I 
don't care about it but fields in itemrenderer have to have correct 
automation name assigned so it gets picked up by QTP without 
overwriting values.

Regards



[flexcoders] Re: Using Automation with Horizontal List

2007-01-16 Thread eucliptica
Exactly what you explained. 

mx:HorizontalList id=avalActList height=30 width=100%
dataProvider={modelLocator.someArrayCollection}   
itemRenderer=com.someComponentWithLabelFields/

is the list and item renderer is bound to an object in ArrayCollection.

Well main problem here is that data that I bind to is coming through 
FDS and I can not change dataProvider (objects in that 
arraycollection) to add automationName property that I would (not 
display) but assign to labels with automationName property so it can 
be picked up by QTP. 

Just to be clear I don't need to add automationName to renderer as I 
don't care about it but fields in itemrenderer have to have correct 
automation name assigned so it gets picked up by QTP without 
overwriting values.

Regards



RE: [flexcoders] Re: Updating a DataService fill

2007-01-16 Thread Jeff Vroom
As long as you add the refreshFill to the
DataServiceTransaction.getCurrentDataServiceTransaction it will be run
after the transaction commits.  One way to get more information about
what is happening is to turn on debug logging in
WEB-INF/flex/services-config.xml (search for level=.. change that to
Debug and make sure that DataService.* and Message.* are listed in
pattern tags just below).   If the output is kind of large, feel free
to send the output to be directly ([EMAIL PROTECTED]) and hopefully I can
figure out what is going on from that. 

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of spirit_ryder2k
Sent: Tuesday, January 16, 2007 5:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Updating a DataService fill

 

Hi Jeff,

I tried your code but it didn't help. The Javadocs gives a little 
information about transactions in an assembler method except that it 
auto commits after the method ends.
Maybe the fill refreshes before the item created is commited so it 
refreshes with the same data?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Jeff Vroom [EMAIL PROTECTED] wrote:

 Try changing your code to:
 
 
 
 DataServiceTransaction dtx =
 DataServiceTransaction.getCurrentDataServiceTransaction();
 
 dtx.refreshFill(CategoryDS, null);
 
 
 
 You also don't want the dtx.commit() in there. The basic problem is
 that when your createItem call is made, the current transaction is 
still
 open (i.e. not committed). In this case, you want to do the 
refreshFill
 in the new (i.e. the current) transaction. If you create your own 
new
 one, it will refresh the fill but before the current change has been
 committed to the database.
 
 
 
 Jeff
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of spirit_ryder2k
 Sent: Monday, January 15, 2007 5:21 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Updating a DataService fill
 
 
 
 Hi, I'm writing a small forum application which uses multiple 
 DataService destinations.
 
 In my CategoryDS destination I fill a datagrid with a list of forum 
 categories and each category has a property which keeps track of 
the 
 number of threads in it.
 
 In my ThreadDS destination I retrieve a list of threads in a 
 category. This works fine. When I create a new thread I want the 
 CategoryDS to refill itself so the thread count is updated:
 
 // in my thread assembler
 public void createItem(Object newVersion)
 {
 ...
 DataServiceTransaction dtx = DataServiceTransaction.begin(false);
 dtx.refreshFill(CategoryDS, null);
 dtx.commit();
 }
 
 Unfortunately this does not work :(
 When I manually refresh the counter is updated. Am I missing 
 something in my code? I can post mxml source or config source if 
 needed.


 



  1   2   >