Re: [flexcoders] Can I play a video in slow motion? or frame by frame?

2008-10-07 Thread Johannes Nel
yup.

On Tue, Oct 7, 2008 at 1:49 AM, Josh McDonald [EMAIL PROTECTED] wrote:

   Also, IIRC seek only goes to the nearest keyframe as well.

 -Josh


 On Tue, Oct 7, 2008 at 12:58 AM, Johannes Nel [EMAIL PROTECTED]wrote:

  i would advise against that. if you are playing the video in slow motion
 i would recomed making bitmap snapshots and using those to play it any pace
 you desire.


 On Mon, Oct 6, 2008 at 4:53 PM, Tom Chiverton 
 [EMAIL PROTECTED] wrote:

 On Saturday 04 Oct 2008, luvfotography wrote:
  Is there a way for the video player to play in slow motion or step
  frame by frame, or play a video in reverse?

 You can play/pause and seek, so yes, probably.


 --
 Tom Chiverton
 Helping to collaboratively promote high-yield turn-key patterns



 

 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.
  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 Solicitors Regulation Authority.

 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 2500.

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

 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






 --
 j:pn
 \\no comment




 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 http://flex.joshmcdonald.info/

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]

  




-- 
j:pn
\\no comment


[flexcoders] Understanding component measuring

2008-10-07 Thread florian.salihovic
Hi there,

since i realized that i don't fully understand compont measuring in custom 
UICmponent's, I 
wrote some tests. The Problem i face atm is: how to deal with deep hierachies 
of custom 
UIComponents.

My current approach is setting the dimensions (width and height) additionally 
to the 
measureWidth and measureHeight in the component.

My tests can be found here. I would really appreciate some input on my 
implementation and 
my thoughts.

Here are the sources: http://florian.salihovic.info/flexcoders/

Best regards and thanks in advance.



Re: [flexcoders] Deep Linking Problem with First Link

2008-10-07 Thread Tom Chiverton
On Sunday 05 Oct 2008, AUClint wrote:
 I've run into an issue with deep linking in my application. 

3 times ?

-- 
Tom Chiverton
Helping to confidentially seize intuitive essential partnerships





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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 2500.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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] linkbar removeAllChildren error in safari.... ???

2008-10-07 Thread achegedus
I have a strange error... I have a linkbar that is being dynamically populated. 
 I need to be 
able to refresh the link bar.  So I have this code:

http://pastebin.com/m78e78eb0

When I click the clear button which calls removeAllChildren() for the linkbar, 
I get this 
error:

TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/getChildIndex()
at 
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::rawChildren_getChildI
ndex()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Container.as:3879]
at 
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::rawChildren_removeC
hild()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Container.as:3813]
at 
mx.core::ContainerRawChildrenList/removeChild()[E:\dev\3.1.0\frameworks\projects\fra
mework\src\mx\core\ContainerRawChildrenList.as:157]
at 
mx.controls::LinkBar/childRemoveHandler()[E:\dev\3.1.0\frameworks\projects\framework
\src\mx\controls\LinkBar.as:560]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()

etc, etc...

What's really weird is that I only get this error when using safari.  If I look 
at the same 
code using firefox, I get no error. 

Does anyone have any clue what I'm doing wrong?  I really need to be able to do 
this, and I 
can't seem to find a solution.

Thanks!!

Adam



[flexcoders] problems with swc zingaya API

2008-10-07 Thread Shorizo Hampon
i have a problem adding an API to the project
i have tried to clean the project and nothing happens
i get the next error.

An internal build error has ocurred. please check the error log.
unable to load SWC zingayaAPI.swc

THE LOG:
!MESSAGE Uncaught exception in compiler
!STACK 0
unable to load SWC ZingayaAPI.swc
    at flex2.compiler.swc.SwcCache.getSwc(SwcCache.java:230)
    at flex2.compiler.swc.SwcCache.getSwcs(SwcCache.java:151)
    at flex2.compiler.swc.SwcCache.getSwcGroup(SwcCache.java:78)
    at flex2.compiler.swc.SwcCache.getSwcGroup(SwcCache.java:67)
    at flex2.compiler.CompilerSwcContext.load(CompilerSwcContext.java:52)
    at flex2.tools.oem.Application.compile(Application.java:590)
    at 
flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.java:224)
    at 
com.adobe.flexbuilder.project.compiler.internal.ASApplicationBuilder$MyBuilder.mybuild(Unknown
 Source)
    at 
com.adobe.flexbuilder.project.compiler.internal.ASApplicationBuilder.build(Unknown
 Source)
    at com.adobe.flexbuilder.project.compiler.internal.ASBuilder.build(Unknown 
Source)
    at 
com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.buildApplication(Unknown
 Source)
    at 
com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(Unknown
 Source)
    at 
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:593)
    at 
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    at 
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168)
    at 
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
    at 
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
    at 
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    at 
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
    at 
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:253)
    at 
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282)
    at 
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:139)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:200)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

any ideas?

regards.




  

¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:  

http://cl.mail.yahoo.com/

[flexcoders] Type Coercion error in a Popup module

2008-10-07 Thread hr1ny
Hi,
I have a module that runs inside a popup window.  It runs fine the 1st 
time I run it, but after it runs successfully (and I unload the 
module), after I create and use a 2nd popup using the same module, it 
fails with this error:

TypeError: Error #1034: Type Coercion failed: cannot convert 
com.adobe.createmeeting.events::[EMAIL PROTECTED] to 
com.adobe.createmeeting.events.CreateMeetingEvent.

The error occurs while executing a piece of typical Cairngorm-style 
code:

  override public function doExecute(event:CairngormEvent):void {
var myEvent:CreateMeetingEvent = CreateMeetingEvent(event);

If I define the class CreateMeetingEvent and instantiate it in the 
parent application, then this error does not occur, but I do not want 
to define it in the parent application, since it does not belong 
there.

My guess is that this has to do with the issue of ApplicationDomains 
and class loading.  Somehow, when I create the 2nd popup with the same 
module, it is looking for the class definition that belonged to the 
now-defunct class module.

Can anyone suggest what is the best way to fix this?
Thanks,
Henry 



[flexcoders] Re: handling data within a datagrid

2008-10-07 Thread ice9_us
I am not able to follow fully where you are in your function.. 
I don't see in this trail of messages where you make your DataGrid 
call..

Here is what I do..

mx:DataGrid id=hdGrid  dataProvider={myHDData} 
alternatingItemColors=[#CC, #AA] x=10 y=10 
change=switchit(event)

public function switchit(event:Event):void { 
var myLogdata:XMLList = new XMLList();
currentState = 'ticketdisplay';
if ( event.target.selectedItem.ticketname ) {
mName.text = 
event.target.selectedItem.ticketname;
}


I have no problems...








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

 That was a typo instead of copying and pasting..
 mySelectedRow is an ArrayCollection
 I'm assignin the event.target.selectedItem which is a datagrid row 
to it..
 I want to knmow why it's not working the way it should...
 
 To learn I'm creating a budgetbook of sorts.. so here's what I have
 copied and pasted..
 
 public function handleChangeEvent(event:DataGridEvent):void
 {
 MyModel.getInstance().SelectedBudgetAC = event.target.selectedItem 
as
 ArrayCollection;
 Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt
(0).payee);
 var evt:CairngormEvent = new CairngormEvent
(MyControl.EVENT_GET_BUDGET_DETAILS);
 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 
 }
 
 
 public var Budget:BudgetVO;
 public var BudgetAC:ArrayCollection;
 public var budgetID:Number;
 public var SelectedBudgetAC:ArrayCollection;
 
 sorry about that..
 
 
 
 
 
 On Mon, Oct 6, 2008 at 9:02 PM, Tracy Spratt [EMAIL PROTECTED] wrote:
  Then how are you expecting that setting mySelectedRow property 
will do
  anything regarding the SelectedBudgetAC property?
 
  Tracy
 
 
 
  
 
  From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
  Behalf Of Greg Morphis
  Sent: Monday, October 06, 2008 8:02 PM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] handling data within a datagrid
 
 
 
  No, just global variables
 
  On Mon, Oct 6, 2008 at 7:13 PM, Tracy Spratt [EMAIL PROTECTED] wrote:
  Does MyModel handle the relationship between mySelectedRow and
  SelectedBudgetAC? Using setters or getters?
 
  Tracy
 
 
 
  
 
  From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
  Behalf Of Greg Morphis
  Sent: Monday, October 06, 2008 7:48 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] handling data within a datagrid
 
 
 
  I've got my datagrid populating but I need to see that data in 
aother
  location within my app.
  In my MyModel.as
  I have a global variable
  public var mySelectedRow:ArrayCollection;
 
  I've tried setting this variable in the dataGrid change event...
  public function handleChangeEvent(event:Event):void
  {
  MyModel.getInstance().mySelectedRow = event.target.selectedItem 
as
  ArrayCollection;
  Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt
(0).amount);
  var evt:CairngormEvent = new
  CairngormEvent(MyControl.EVENT_GET_DATA_DETAILS);
  CairngormEventDispatcher.getInstance().dispatchEvent(evt);
 
  }
 
  The Alert returns a null error.. but it looks like it should be 
working?
  What I'm trying to do is I have a VO I need to populate.. I was 
going
  to do that within a command (is that best practice? -- to 
seperate
  display from logic)
  So anywho I'm trying to populate that arraycollection and then 
in the
  command do all the fun stuff...
  var myVO:FootVO = MyModel.getInstance().FooVO;
  myVO.amount = MyModel.getInstance().SelectedBudgetAC.getItemAt
(0).amount;
 
  but I'm getting a null error.. is this the proper way to load a 
VO
  from a selected DataGrid row?
 
  Thanks
 
 
 
 





[flexcoders] rsl error after new deployment - help needed!

2008-10-07 Thread flexrails
hi,

after i deploy a new version of my app i get the error

flex error #1001: digest mismatch with rsl .swf. redeploy the
matching rsl or relink your application with the matching library.

when i clear the browser cache in mozilla everything works fine again.

so i it seems that after deploying my new app version, old rsls are
still retrieved from the browser cache and throw that digest mismatch
error.

the same problem when i rollback to the earlier app version then. i
get the error again. when i clear the browser cache the earlier app
version runs smoothly.

for a consumer facing application it is unacceptable to expect the
user to workaround this error.

any ideas how to solve / workaround that problem?

interestingly i could not reproduce the error when i run the app
server on localhost. but i can reproduce the problem every time i run
the app server on the real server.

thanks a lot,
flexrails




[flexcoders] How to Drag and drop outlook email to AIR APP?

2008-10-07 Thread michniu
Hi Coders,

Is it possible to drag and drop the outlook eamil items  in AIR app?
Any ides is welcome

Thanks

Mike



[flexcoders] Flex and BlazeDS in internet environment

2008-10-07 Thread Joshua Partogi
Dear all,

Do we have to change our code regarding the BlazeDS usage when we
deploy it in internet environment?
In my dev environment we use this as the RemoteObject enpoint :
endpoint=http://localhost:8080/messagebroker/amf;

Do we have to change the URL?

Anyone has any experience on this?

Thanks in advance

-- 
Read my blog: http://joshuajava.wordpress.com/
Follow me on twitter: http://twitter.com/jpartogi


[flexcoders] Re: problems with swc zingaya API

2008-10-07 Thread valdhor
You should ask the suppliers of the SWC.


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

 i have a problem adding an API to the project
 i have tried to clean the project and nothing happens
 i get the next error.
 
 An internal build error has ocurred. please check the error log.
 unable to load SWC zingayaAPI.swc
 
 THE LOG:
 !MESSAGE Uncaught exception in compiler
 !STACK 0
 unable to load SWC ZingayaAPI.swc
     at flex2.compiler.swc.SwcCache.getSwc(SwcCache.java:230)
     at flex2.compiler.swc.SwcCache.getSwcs(SwcCache.java:151)
     at flex2.compiler.swc.SwcCache.getSwcGroup(SwcCache.java:78)
     at flex2.compiler.swc.SwcCache.getSwcGroup(SwcCache.java:67)
     at
flex2.compiler.CompilerSwcContext.load(CompilerSwcContext.java:52)
     at flex2.tools.oem.Application.compile(Application.java:590)
     at
flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.java:224)
     at
com.adobe.flexbuilder.project.compiler.internal.ASApplicationBuilder$MyBuilder.mybuild(Unknown
Source)
     at
com.adobe.flexbuilder.project.compiler.internal.ASApplicationBuilder.build(Unknown
Source)
     at
com.adobe.flexbuilder.project.compiler.internal.ASBuilder.build(Unknown Source)
     at
com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.buildApplication(Unknown
Source)
     at
com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(Unknown
Source)
     at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:593)
     at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
     at org.eclipse.core.runtime.Platform.run(Platform.java:783)
     at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168)
     at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
     at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
     at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
     at org.eclipse.core.runtime.Platform.run(Platform.java:783)
     at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
     at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:253)
     at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282)
     at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:139)
     at
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:200)
     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
 
 any ideas?
 
 regards.
 
 
 
 
  

 ¡Capacidad ilimitada de almacenamiento en tu correo!
 No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:
 
 http://cl.mail.yahoo.com/





Re: [flexcoders] Re: Problem handling RemoteObject Errors

2008-10-07 Thread Tom Chiverton
On Monday 06 Oct 2008, reflexactions wrote:
 So for us server fault are just great but client fault are the
 issue...

Did you mention why you can't put your send() method inside a try/catch  ?

-- 
Tom Chiverton
Helping to proactively architect customized web-enabled initiatives





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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 2500.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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] How to default an Accordian to a closed state (Flex 3)

2008-10-07 Thread Tom Chiverton
On Monday 06 Oct 2008, Erich Cervantez wrote:
 Anyone know of a simple (or not so simple) trick to default an
 accordian to a closed state.  Basically, I'd like to have none of
 the child containers open when the component is initially displayed.

If none of the children is open, would you then expect the height to increase 
once one was clicked ?
If not, just add an empty last child...

-- 
Tom Chiverton
Helping to seamlessly establish high-end systems





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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 2500.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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] Type Coercion error in a Popup module

2008-10-07 Thread Tom Chiverton
On Tuesday 07 Oct 2008, Pedro Sena wrote:
 Cairngorm does not work well with modules.

AFAIK it works fine, you just have to follow the patten i.e. 
http://viconflex.blogspot.com/2007/05/can-cairngorm-and-modules-play-nice.html

-- 
Tom Chiverton
Helping to centrally drive professional error-free edge-of-your-seat models





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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 2500.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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] FileReference's DataEvent.UPLOAD_COMPLETE_DATA event being dropped randomly

2008-10-07 Thread Battershall, Jeff
Charlie,
 
I spent a lot of time on this.  In my case it was only when using
FireFox  and when HTTPs was being used.  Basically the long requests
time out - it is upload file size dependent.  What I ended up doing is
listening for the COMPLETE event and then round-tripping to the server
to retreive the data I wanted about the upload.  When I did my upload, I
passed a UUID so I had a common thread I could count on. 
 
Even though your issue may be slightly different, using a UUID in your
URLRequest object may help you workaround the issue. 
 
Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Charlie Hubbard
Sent: Tuesday, October 07, 2008 7:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FileReference's
DataEvent.UPLOAD_COMPLETE_DATA event being dropped randomly




I'm having trouble getting a DataEvent.UPLOAD_COMPLETE_DATA
event when uploading many FileReferences.  It randomly drops events, but
I get all of the progress events, and Event.COMPLETE.  I only get some
of UPLOAD_COMPLETE_DATA.  I'm aware that UPLOAD_COMPLETE_DATA is not
sent if the server doesn't return any data, but I'm sending data for all
of these uploads (because it all traverses through he same code).  So if
I get even one callback I should get all of them in theory. My first
theory was that my server process was taking too long and flash timed
out the response so I offloaded what was taking so long, but that didn't
improve anything.




Any idea what's going on here?  Any other ideas on what I can
try?  I'm using a Ruby on Rails server backend.




Charlie

 



[flexcoders] How to make skinnable MovieClip with timeline for Flex ?

2008-10-07 Thread Adnan Doric

Hello flexoders :)

I created an MyMC MovieClip with timeline inside an .FLA, and
exported it in SWC with class name MyMC.

Then I include it in my CSS file :

.myMC
{
skin : ClassReference( MyMC );
}

I compile CSS into SFW using ANT and library-path to include the
.SWC file.

Okay, now I have my flash MovieClip compiled into my runtime CSS file.

The problem is I don't now how to use that asset inside my Flex
project and be able to access its timeline.

I tried many things such as mx:UIComponent styleName=myMC / or
flash:UIMovieClip styleName=myMC / without success.

I know my skin works because if I put in CSS Button{skin :
ClassReference( MyMC );} all buttons are skinned using my custom
MovieClip.

If I provide the library path to the compiler, I can use my MovieClip
like this : local:MyMC / but I need to include it into skin file,
because this component need to be different for each skin.

Am I doing something wrong here ?

Any help is appreciated :)





Re: [flexcoders] handling data within a datagrid

2008-10-07 Thread Greg Morphis
Still null

The DataGrid looks like
mx:DataGrid id=dg width=100%
height=100%  
dataProvider={MyModel.getInstance().BudgetAC}
click=clickHandler(event);
change=handleChangeEvent(event as DataGridEvent);


Data loads fine in the grid.. cool.. The change event fires and

 public function handleChangeEvent(event:Event):void
 {
MyModel.getInstance().SelectedBudgetAC = 
event.target.selectedItem
as ArrayCollection;
Alert.show(event.target.selectedItem.amount.toString());

Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).toString());

var evt:CairngormEvent = new
CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);

CairngormEventDispatcher.getInstance().dispatchEvent(evt);  


 }

I just don't get it.. the first Alert works and I see the amount of
the selectedItem, but the second gives a null error..
TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at com.view::budgetBook/handleChangeEvent()
at com.view::budgetBook/__dg_change()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.controls.listClasses::ListBase/mouseUpHandler()
at mx.controls::DataGrid/mouseUpHandler()




On Tue, Oct 7, 2008 at 7:37 AM, jitendra jain
[EMAIL PROTECTED] wrote:
 Use event.target.selectedItems instead of event.target.selectedItem

 Thanks,

 with Regards,
 Jitendra Jain


 - Original Message 
 From: Greg Morphis [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, 7 October, 2008 7:22:23 AM
 Subject: Re: [flexcoders] handling data within a datagrid

 That was a typo instead of copying and pasting..
 mySelectedRow is an ArrayCollection
 I'm assignin the event.target. selectedItem which is a datagrid row to it..
 I want to knmow why it's not working the way it should...

 To learn I'm creating a budgetbook of sorts.. so here's what I have
 copied and pasted..

 public function handleChangeEvent( event:DataGridEv ent):void
 {
 MyModel.getInstance ().SelectedBudge tAC = event.target. selectedItem as
 ArrayCollection;
 Alert.show(MyModel. getInstance( ).SelectedBudget AC.getItemAt( 0).payee) ;
 var evt:CairngormEvent = new CairngormEvent( MyControl. EVENT_GET_
 BUDGET_DETAILS) ;
 CairngormEventDispa tcher.getInstanc e().dispatchEven t(evt);

 }

 public var Budget:BudgetVO;
 public var BudgetAC:ArrayColle ction;
 public var budgetID:Number;
 public var SelectedBudgetAC: ArrayCollection;

 sorry about that..

 On Mon, Oct 6, 2008 at 9:02 PM, Tracy Spratt [EMAIL PROTECTED] com wrote:
 Then how are you expecting that setting mySelectedRow property will do
 anything regarding the SelectedBudgetAC property?

 Tracy



  _ _ __

 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of Greg Morphis
 Sent: Monday, October 06, 2008 8:02 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: Re: [flexcoders] handling data within a datagrid



 No, just global variables

 On Mon, Oct 6, 2008 at 7:13 PM, Tracy Spratt [EMAIL PROTECTED] com
 wrote:
 Does MyModel handle the relationship between mySelectedRow and
 SelectedBudgetAC? Using setters or getters?

 Tracy



  _ _ __

 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of Greg Morphis
 Sent: Monday, October 06, 2008 7:48 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: [flexcoders] handling data within a datagrid



 I've got my datagrid populating but I need to see that data in aother
 location within my app.
 In my MyModel.as
 I have a global variable
 public var mySelectedRow: ArrayCollection;

 I've tried setting this variable in the dataGrid change event...
 public function handleChangeEvent( event:Event) :void
 {
 MyModel.getInstance ().mySelectedRow = event.target. selectedItem as
 ArrayCollection;
 Alert.show(MyModel. getInstance( ).SelectedBudget AC.getItemAt(
 0).amount) ;
 var evt:CairngormEvent = new
 CairngormEvent( MyControl. EVENT_GET_ DATA_DETAILS) ;
 CairngormEventDispa tcher.getInstanc e().dispatchEven t(evt);

 }

 The Alert returns a null error.. but it looks like it should be working?
 What I'm trying to do is I have a VO I need to populate.. I was going
 to do that within a command (is that best practice? -- to seperate
 display from logic)
 So anywho I'm trying to populate that arraycollection and then in the
 command do all the fun stuff...
 var myVO:FootVO = MyModel.getInstance ().FooVO;
 myVO.amount = MyModel.getInstance ().SelectedBudge tAC.getItemAt(
 0).amount;

 but I'm getting a null error.. is this the proper way to load a VO
 from a selected DataGrid row?

 Thanks

Re: [flexcoders] How to make an RPC call secure

2008-10-07 Thread Tom Chiverton
On Monday 06 Oct 2008, Abdul Razak PM wrote:
  I want to make an RPC java call secure? 

Do you control both ends ?

-- 
Tom Chiverton
Helping to challengingly market relationships





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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 2500.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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: datagrid itemRenderer help

2008-10-07 Thread Amy
--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 
 Ha, well we wouldn't want the inmates running the asylum.  Props to 
Amy
 too.


I'm just wondering why Adobe wouldn't already have these kinds of 
checks in place.  I haven't looked at Label code specifically, but I 
see these kinds of checks in place all the time in the Framework code.  

If you just use a label without extending it (I didn't see anything in 
the logic to suggest why extending it was necessary), do you still get 
the error?  If so, this should probably be filed as a bug.  If not, it 
would be interesting to try to find out what the difference is.

-Amy



[flexcoders] FileReference's DataEvent.UPLOAD_COMPLETE_DATA event being dropped randomly

2008-10-07 Thread Charlie Hubbard
I'm having trouble getting a DataEvent.UPLOAD_COMPLETE_DATA event when
uploading many FileReferences.  It randomly drops events, but I get all of
the progress events, and Event.COMPLETE.  I only get some of
UPLOAD_COMPLETE_DATA.  I'm aware that UPLOAD_COMPLETE_DATA is not sent if
the server doesn't return any data, but I'm sending data for all of these
uploads (because it all traverses through he same code).  So if I get even
one callback I should get all of them in theory. My first theory was that my
server process was taking too long and flash timed out the response so I
offloaded what was taking so long, but that didn't improve anything.


Any idea what's going on here?  Any other ideas on what I can try?  I'm
using a Ruby on Rails server backend.


Charlie


[flexcoders] Re: itemRenderer layout question

2008-10-07 Thread oneworld95
Thanks, Paul. That worked beautifully.

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

 How about:
 
 mx:AdvancedDataGridColumn id=myCol headerText=Test width=95
 wordWrap=true
   mx:itemRenderer
 mx:Component
 mx:VBox
   mx:HBox horizontalGap=2
 mx:TextInput id=txtPhoto editable=false /
 mx:Button id=btnBrowse label=Browse
 click=outerDocument.doBrowse( event, this)/
 mx:Button id=btnUpload label=Upload
 click=outerDocument.doSubmit( event )/
  /mx:HBox
 mx:ProgressBar id=progressBar mode=manual
 fontWeight=bold color=red indeterminate=false
 labelPlacement=right visible=false /
 /mx:VBox
 /mx:Component
   /mx:itemRenderer
 /mx:AdvancedDataGridColumn
 
 Paul
 
 - Original Message - 
 From: oneworld95 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Monday, October 06, 2008 8:52 PM
 Subject: [flexcoders] itemRenderer layout question
 
 
  Hi. I've got an itemRenderer in a DataGrid (please see below) and need
  to have the ProgressBar appear on a new line (below the text input and
  the 2 buttons) instead of stretching the column out. I've tried
  everything to no avail. Any ideas? Thanks.
 
  mx:AdvancedDataGridColumn id=myCol headerText=Test width=95
  wordWrap=true
   mx:itemRenderer
 mx:Component
   mx:HBox horizontalGap=2
 mx:TextInput id=txtPhoto editable=false /
 mx:Button id=btnBrowse label=Browse
  click=outerDocument.doBrowse( event, this)/
 mx:Button id=btnUpload label=Upload
  click=outerDocument.doSubmit( event )/
 mx:ProgressBar id=progressBar mode=manual
  fontWeight=bold color=red indeterminate=false
  labelPlacement=right visible=false /
   /mx:HBox
 /mx:Component
   /mx:itemRenderer
  /mx:AdvancedDataGridColumn
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location: 
 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
  Links
 
 
 
 





Re: [flexcoders] handling data within a datagrid

2008-10-07 Thread Greg Morphis
This is F'ed up...

I changed my code to this...

public function handleChangeEvent(event:Event):void
{
var myVO:BudgetVO = new BudgetVO();
myVO.actiondate = event.target.selectedItem.actiondate;
myVO.amount = event.target.selectedItem.amount;
myVO.id = event.target.selectedItem.id;
...

var evt:BudgetEvent = new BudgetEvent(myVO, MyControl.EVENT_GET_BUDGET_DETAILS);
CairngormEventDispatcher.getInstance().dispatchEvent(evt);  


}

public class GetBudgetDetailsCommand implements ICommand, IResponder
{

private var currentSelectedVO:BudgetVO = null;

public function execute(event:CairngormEvent):void {

MyModel.getInstance().SelectedBudgetAC = (event as BudgetEvent).budget
as ArrayCollection;

/* If I Alert the (event as BudgetEvent).budget.amount.toString() I
get the amount

But if I Alert 
MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
I get a null error.. matter of fact if I Alert
MyModel.getInstance().SelectedBudgetAC.toString()
I get a null error.. so where the hell is my data going? MyModel.as is
being imported into the command.

import com.model.MyModel

Again, inside MyModel.as I have the global vars..

public var SelectedBudgetAC:ArrayCollection;

to check to make sure the MyModel was loading properly I added another
var to it..

public var fooVar:Number = 0;

And if I alert that value in the execute() function, it Alerts 0 as
it should..
I'm lost
*/  
Alert.show(MyModel.getInstance().fooVar.toString());

}




On Tue, Oct 7, 2008 at 8:28 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 Still null

 The DataGrid looks like
mx:DataGrid id=dg width=100%
height=100%  
 dataProvider={MyModel.getInstance().BudgetAC}
click=clickHandler(event);
change=handleChangeEvent(event as DataGridEvent);


 Data loads fine in the grid.. cool.. The change event fires and

 public function handleChangeEvent(event:Event):void
 {
MyModel.getInstance().SelectedBudgetAC = 
 event.target.selectedItem
 as ArrayCollection;

 Alert.show(event.target.selectedItem.amount.toString());

 Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).toString());

var evt:CairngormEvent = new
 CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);

 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 }

 I just don't get it.. the first Alert works and I see the amount of
 the selectedItem, but the second gives a null error..
 TypeError: Error #1009: Cannot access a property or method of a null
 object reference.
at com.view::budgetBook/handleChangeEvent()
at com.view::budgetBook/__dg_change()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.controls.listClasses::ListBase/mouseUpHandler()
at mx.controls::DataGrid/mouseUpHandler()




 On Tue, Oct 7, 2008 at 7:37 AM, jitendra jain
 [EMAIL PROTECTED] wrote:
 Use event.target.selectedItems instead of event.target.selectedItem

 Thanks,

 with Regards,
 Jitendra Jain


 - Original Message 
 From: Greg Morphis [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, 7 October, 2008 7:22:23 AM
 Subject: Re: [flexcoders] handling data within a datagrid

 That was a typo instead of copying and pasting..
 mySelectedRow is an ArrayCollection
 I'm assignin the event.target. selectedItem which is a datagrid row to it..
 I want to knmow why it's not working the way it should...

 To learn I'm creating a budgetbook of sorts.. so here's what I have
 copied and pasted..

 public function handleChangeEvent( event:DataGridEv ent):void
 {
 MyModel.getInstance ().SelectedBudge tAC = event.target. selectedItem as
 ArrayCollection;
 Alert.show(MyModel. getInstance( ).SelectedBudget AC.getItemAt( 0).payee) ;
 var evt:CairngormEvent = new CairngormEvent( MyControl. EVENT_GET_
 BUDGET_DETAILS) ;
 CairngormEventDispa tcher.getInstanc e().dispatchEven t(evt);

 }

 public var Budget:BudgetVO;
 public var BudgetAC:ArrayColle ction;
 public var budgetID:Number;
 public var SelectedBudgetAC: ArrayCollection;

 sorry about that..

 On Mon, Oct 6, 2008 at 9:02 PM, Tracy Spratt [EMAIL PROTECTED] com wrote:
 Then how are you expecting that setting mySelectedRow property will do
 anything regarding the SelectedBudgetAC property?

 Tracy



  _ _ __

 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of Greg Morphis
 Sent: Monday, October 06, 2008 8:02 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: Re: [flexcoders] handling data within a datagrid



 No, just global variables

 On Mon, Oct 6, 2008 at 7:13 PM, Tracy Spratt [EMAIL PROTECTED] com
 wrote:
 Does 

Re: [flexcoders] handling data within a datagrid

2008-10-07 Thread Greg Morphis
I changed it to using a VO and it works..

MyModel.getInstance().SelectedBudgetVO = (event as 
BudgetEvent).budget;


//Alert.show(MyModel.getInstance().Budget.amount.toString());

I have no idea why it wont work with an ArrayCollection, but it works
as a VO.. not sure if this is best practice or not

On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 This is F'ed up...

 I changed my code to this...

 public function handleChangeEvent(event:Event):void
 {
 var myVO:BudgetVO = new BudgetVO();
 myVO.actiondate = event.target.selectedItem.actiondate;
 myVO.amount = event.target.selectedItem.amount;
 myVO.id = event.target.selectedItem.id;
 ...

 var evt:BudgetEvent = new BudgetEvent(myVO, 
 MyControl.EVENT_GET_BUDGET_DETAILS);
 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 }

 public class GetBudgetDetailsCommand implements ICommand, IResponder
 {

 private var currentSelectedVO:BudgetVO = null;

 public function execute(event:CairngormEvent):void {

 MyModel.getInstance().SelectedBudgetAC = (event as BudgetEvent).budget
 as ArrayCollection;

 /* If I Alert the (event as BudgetEvent).budget.amount.toString() I
 get the amount

 But if I Alert 
 MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
 I get a null error.. matter of fact if I Alert
 MyModel.getInstance().SelectedBudgetAC.toString()
 I get a null error.. so where the hell is my data going? MyModel.as is
 being imported into the command.

 import com.model.MyModel

 Again, inside MyModel.as I have the global vars..

public var SelectedBudgetAC:ArrayCollection;

 to check to make sure the MyModel was loading properly I added another
 var to it..

public var fooVar:Number = 0;

 And if I alert that value in the execute() function, it Alerts 0 as
 it should..
 I'm lost
 */
 Alert.show(MyModel.getInstance().fooVar.toString());

 }
 



 On Tue, Oct 7, 2008 at 8:28 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 Still null

 The DataGrid looks like
mx:DataGrid id=dg width=100%
height=100%  
 dataProvider={MyModel.getInstance().BudgetAC}
click=clickHandler(event);
change=handleChangeEvent(event as DataGridEvent);


 Data loads fine in the grid.. cool.. The change event fires and

 public function handleChangeEvent(event:Event):void
 {
MyModel.getInstance().SelectedBudgetAC = 
 event.target.selectedItem
 as ArrayCollection;

 Alert.show(event.target.selectedItem.amount.toString());

 Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).toString());

var evt:CairngormEvent = new
 CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);

 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 }

 I just don't get it.. the first Alert works and I see the amount of
 the selectedItem, but the second gives a null error..
 TypeError: Error #1009: Cannot access a property or method of a null
 object reference.
at com.view::budgetBook/handleChangeEvent()
at com.view::budgetBook/__dg_change()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.controls.listClasses::ListBase/mouseUpHandler()
at mx.controls::DataGrid/mouseUpHandler()




 On Tue, Oct 7, 2008 at 7:37 AM, jitendra jain
 [EMAIL PROTECTED] wrote:
 Use event.target.selectedItems instead of event.target.selectedItem

 Thanks,

 with Regards,
 Jitendra Jain


 - Original Message 
 From: Greg Morphis [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, 7 October, 2008 7:22:23 AM
 Subject: Re: [flexcoders] handling data within a datagrid

 That was a typo instead of copying and pasting..
 mySelectedRow is an ArrayCollection
 I'm assignin the event.target. selectedItem which is a datagrid row to it..
 I want to knmow why it's not working the way it should...

 To learn I'm creating a budgetbook of sorts.. so here's what I have
 copied and pasted..

 public function handleChangeEvent( event:DataGridEv ent):void
 {
 MyModel.getInstance ().SelectedBudge tAC = event.target. selectedItem as
 ArrayCollection;
 Alert.show(MyModel. getInstance( ).SelectedBudget AC.getItemAt( 0).payee) ;
 var evt:CairngormEvent = new CairngormEvent( MyControl. EVENT_GET_
 BUDGET_DETAILS) ;
 CairngormEventDispa tcher.getInstanc e().dispatchEven t(evt);

 }

 public var Budget:BudgetVO;
 public var BudgetAC:ArrayColle ction;
 public var budgetID:Number;
 public var SelectedBudgetAC: ArrayCollection;

 sorry about that..

 On Mon, Oct 6, 2008 at 9:02 PM, Tracy Spratt [EMAIL PROTECTED] com wrote:
 Then how are you expecting that setting mySelectedRow property will do
 anything regarding the 

Re: [flexcoders] Flexbuilder 3 Profiler J2EE server

2008-10-07 Thread Tom Chiverton
On Friday 03 Oct 2008, pointyhatcoder wrote:
 team has been implementing behave.  I've only been able to get the
 profiler to run the .swf in a standalone mode though, so no EJB
 support is provided which makes the app  profiling it useless.

Just set the debug/profile URLs to be the web address you need.

-- 
Tom Chiverton
Helping to enormously harvest dot-com clicks-and-mortar internet innovative 
appliances





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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 2500.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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] Refresh Flex Navigator's Projects in Flex Builder

2008-10-07 Thread Tom Chiverton
On Monday 06 Oct 2008, itdanny2002 wrote:
 How to refresh all projects in flex builder ?

Close and reopen Builder.

-- 
Tom Chiverton
Helping to globally embrace systems





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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 2500.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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] Value Slider in Flex

2008-10-07 Thread Tom Chiverton
On Monday 06 Oct 2008, Vijendra Mishra wrote:
 Hello Everyone ... I need some help ... i am new in this forum and i
 want to design a value slider and the current value of slider should
 be mailed to given mail address ... like HSlider and Vslider in Flex
 and current value has to be mailed...please help me...Thanks

Which bit is being a problem ?

-- 
Tom Chiverton
Helping to heterogeneously consolidate best-of-breed back-end 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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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 2500.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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] Flex and BlazeDS in internet environment

2008-10-07 Thread Tom Chiverton
On Tuesday 07 Oct 2008, Joshua Partogi wrote:
 endpoint=http://localhost:8080/messagebroker/amf;
 Do we have to change the URL?

Do you expect 'localhost' to resolve to the correct thing for your users, on 
their machines ?

-- 
Tom Chiverton
Helping to dynamically restore distributed networks





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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 2500.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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] Remove linked folder

2008-10-07 Thread Tom Chiverton
On Saturday 04 Oct 2008, markgoldin_2000 wrote:
 Somehow I have a linked folder in my project that has Location d:\.
 I am afraid to delete it because it points to my whole d drive. Is it
 safe to remove a linked folder from the project?

In Eclipse ? Almost certainly. You have backups anyway, right ?

-- 
Tom Chiverton
Helping to revolutionarily brand transparent six-generation bricks-and-clicks 
high-yield 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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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 2500.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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] Start development from scratch

2008-10-07 Thread Tom Chiverton
On Saturday 04 Oct 2008, markgoldin_2000 wrote:
 I want to reorganize all my projects so they can share .as classes. 

Raw source files, or common modules ? Builder 3 has good support for the 
later.

-- 
Tom Chiverton
Helping to efficiently utilize killer users





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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 2500.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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: FlexBuilder issue

2008-10-07 Thread jitendra jain
Make sure your library path points to WEB-INF/flex/locale/{locale}
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Greg Morphis [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, 6 October, 2008 11:32:49 PM
Subject: [flexcoders] Re: FlexBuilder issue


to complicate matters.. when I go to import a contol, for example
Alert.. I type import mx.
controls inst an option, collections and core others but no mx.controls. .

reinstall in order?

On Mon, Oct 6, 2008 at 11:53 AM, Greg Morphis [EMAIL PROTECTED] com wrote:
 I recently uninstalled the flex builder 2 plugin and reinstalled it.
 I'm having problems with autocomplete in mxml files and when I go to
 create a new MXML Component there's Canvas in the dropdown but nothing
 else.
 I can type in HBox or whatever but it's fairly annoying.. Any ideas to try?

 


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: [flexcoders] Forcing / setting print orientation

2008-10-07 Thread Tom Chiverton
On Saturday 04 Oct 2008, Josh Millstein wrote:
 I'm having a real hard time being able to force a certain print orientation
 on a user that is printing using FlexPrintJob in Flex 3.  

You can't. See http://bugs.adobe.com/jira/browse/SDK-11211

-- 
Tom Chiverton
Helping to interactively morph attention-grabbing proactive portals





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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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 2500.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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] Eclipse not Building

2008-10-07 Thread jitendra jain
In fact I did all the things.

At last i deleted the bin-debug folder and it helped me. But even i check 
'Build Automatically'  option from Eclipse. It looks it is not building. 
Everytime i have to delete the bin-debug folder to reflect the changes. It was 
not happening before. But i notice this frequently from couple of days. 
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Ryan Gravener [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, 6 October, 2008 5:33:51 PM
Subject: Re: [flexcoders] Eclipse not Building


make sure you stop the debugger, clear your cache, clean the project
and then set the breakpoint.

On 10/6/08, jitendra jain jitendra_jain_ [EMAIL PROTECTED] com wrote:
 Hi Guys,

 I have tried of cleaning and building Flex project using Eclipse. I was
 stunned to see that my debugger points to some commented code. Please help.
 Cleaning and building doesn't helped me.. If any other way to do it??
 Thanks,

 with Regards,
 Jitendra Jain



 Add more friends to your messenger and enjoy! Go to
 http://messenger. yahoo.com/ invite/

-- 
Ryan Gravener
http://twitter. com/ryangravener
 
Messages in this topic (2) Reply (via web post) | Start a new topic 
Messages 
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
Change settings via the Web (Yahoo! ID required) 
Change settings via email: Switch delivery to Daily Digest | Switch format to 
Traditional 
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe 
Recent Activity
*  57
New MembersVisit Your Group 
Yahoo! Finance
It's Now Personal
Guides, news,
advice  more.
Yahoo! Groups
Join a program
to help you find
balance in your life.
Wellness Spot
on Yahoo! Groups
A resource for living
the Curves lifestyle.
. 
__,_.._,___ 


  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

[flexcoders] MouseEvent buttonDown issue

2008-10-07 Thread andrewwestberg
The documentation for buttonDown states that it is only true if the
primary mouse button is pressed.  Why then if I'm capturing a mouse
move event and right-click while moving is buttonDown==true inside the
mouse move event handler?

bug?

-Andrew





[flexcoders] Re: FileReference to ByteArray

2008-10-07 Thread Stanislav Aytuganov
Thanks it was helpful.

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

 The uploadCompleteData event has a data property that contains
 whatever the server returns from the upload call.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of aytuganov
 Sent: Tuesday, September 30, 2008 4:05 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: FileReference to ByteArray
 
  
 
 Thanks Jon.
 I discovered this issue and found the way to solve my task with java
 servlet. But now I have other problem. 
 I can add listeners for COMPLETE, IO_ERROR,HTTP_STATUS,
 DataEvent.UPLOAD_COMPLETE_DATA events. But I can not find the way to
 receive a respond from servlet with the generated filename if my file
 that I have just uploaded.
 Thanks in advance.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Jon Bradley jbradley@ wrote:
 
  
  On Sep 26, 2008, at 4:48 AM, aytuganov wrote:
  
   Does somebody know is it possible to select file using
   FileReference.browse() and than set it to ByteArray instance.
   (There is an object that has an ByteArray property. I have to set
 this
   property and send the object to server using RemoteObject - but it's
   not a matter)
  
  In Flash 10.
  
  You have no access to the content of a FileReference object or item 
  in any version of Flash earlier than v10. That's a resounding answer 
  of no.
  
  There may be ways to hack the HTTPHeader information to include 
  additional content information when the FileReference is uploaded. 
  Otherwise, you'll need to send that data separately to the server.
  
  good luck,
  
  jon
 





[flexcoders] Does Flex support relative FontSize ?

2008-10-07 Thread itdanny2002
Is there a simple way to set the fontsize 
according to one global value, such as I 
can declare fontsize:100% or fontsize:+1
in css ?







RE: [flexcoders] How to Drag and drop outlook email to AIR APP?

2008-10-07 Thread Gregor Kiddie
Were the answers on Apollocoders no help then?

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of michniu
Sent: 06 October 2008 23:20
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to Drag and drop outlook email to AIR APP?

 

Hi Coders,

Is it possible to drag and drop the outlook eamil items in AIR app?
Any ides is welcome

Thanks

Mike

 



[flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Tim Hoff

I have no idea why it wont work with an ArrayCollection

Because your ArrayCollection is a collection of VO's, not a collection
of ArrayCollections; although there may be ArrayCollections as
properties of the VO.  Can you not just do this?

MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as
BudgetVO;

-TH

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

 I changed it to using a VO and it works..

 MyModel.getInstance().SelectedBudgetVO = (event as
BudgetEvent).budget;

 //Alert.show(MyModel.getInstance().Budget.amount.toString());

 I have no idea why it wont work with an ArrayCollection, but it works
 as a VO.. not sure if this is best practice or not

 On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis [EMAIL PROTECTED] wrote:
  This is F'ed up...
 
  I changed my code to this...
 
  public function handleChangeEvent(event:Event):void
  {
  var myVO:BudgetVO = new BudgetVO();
  myVO.actiondate = event.target.selectedItem.actiondate;
  myVO.amount = event.target.selectedItem.amount;
  myVO.id = event.target.selectedItem.id;
  ...
 
  var evt:BudgetEvent = new BudgetEvent(myVO,
MyControl.EVENT_GET_BUDGET_DETAILS);
  CairngormEventDispatcher.getInstance().dispatchEvent(evt);
 
  }
 
  public class GetBudgetDetailsCommand implements ICommand, IResponder
  {
 
  private var currentSelectedVO:BudgetVO = null;
 
  public function execute(event:CairngormEvent):void {
 
  MyModel.getInstance().SelectedBudgetAC = (event as
BudgetEvent).budget
  as ArrayCollection;
 
  /* If I Alert the (event as BudgetEvent).budget.amount.toString() I
  get the amount
 
  But if I Alert
MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
  I get a null error.. matter of fact if I Alert
  MyModel.getInstance().SelectedBudgetAC.toString()
  I get a null error.. so where the hell is my data going? MyModel.as
is
  being imported into the command.
 
  import com.model.MyModel
 
  Again, inside MyModel.as I have the global vars..
 
  public var SelectedBudgetAC:ArrayCollection;
 
  to check to make sure the MyModel was loading properly I added
another
  var to it..
 
  public var fooVar:Number = 0;
 
  And if I alert that value in the execute() function, it Alerts 0
as
  it should..
  I'm lost
  */
  Alert.show(MyModel.getInstance().fooVar.toString());
 
  }
  
 
 
 
  On Tue, Oct 7, 2008 at 8:28 AM, Greg Morphis [EMAIL PROTECTED] wrote:
  Still null
 
  The DataGrid looks like
  mx:DataGrid id=dg width=100%
  height=100% dataProvider={MyModel.getInstance().BudgetAC}
  click=clickHandler(event);
  change=handleChangeEvent(event as DataGridEvent);
 
 
  Data loads fine in the grid.. cool.. The change event fires and
 
  public function handleChangeEvent(event:Event):void
  {
  MyModel.getInstance().SelectedBudgetAC = event.target.selectedItem
  as ArrayCollection;
  Alert.show(event.target.selectedItem.amount.toString());
 
Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).toString(\
));
 
  var evt:CairngormEvent = new
  CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);
  CairngormEventDispatcher.getInstance().dispatchEvent(evt);
 
  }
 
  I just don't get it.. the first Alert works and I see the amount of
  the selectedItem, but the second gives a null error..
  TypeError: Error #1009: Cannot access a property or method of a
null
  object reference.
  at com.view::budgetBook/handleChangeEvent()
  at com.view::budgetBook/__dg_change()
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at mx.controls.listClasses::ListBase/mouseUpHandler()
  at mx.controls::DataGrid/mouseUpHandler()
 
 
 
 
  On Tue, Oct 7, 2008 at 7:37 AM, jitendra jain
  [EMAIL PROTECTED] wrote:
  Use event.target.selectedItems instead of
event.target.selectedItem
 
  Thanks,
 
  with Regards,
  Jitendra Jain
 
 
  - Original Message 
  From: Greg Morphis [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Tuesday, 7 October, 2008 7:22:23 AM
  Subject: Re: [flexcoders] handling data within a datagrid
 
  That was a typo instead of copying and pasting..
  mySelectedRow is an ArrayCollection
  I'm assignin the event.target. selectedItem which is a datagrid
row to it..
  I want to knmow why it's not working the way it should...
 
  To learn I'm creating a budgetbook of sorts.. so here's what I
have
  copied and pasted..
 
  public function handleChangeEvent( event:DataGridEv ent):void
  {
  MyModel.getInstance ().SelectedBudge tAC = event.target.
selectedItem as
  ArrayCollection;
  Alert.show(MyModel. getInstance( ).SelectedBudget AC.getItemAt(
0).payee) ;
  var evt:CairngormEvent = new CairngormEvent( MyControl. EVENT_GET_
  BUDGET_DETAILS) ;
  CairngormEventDispa tcher.getInstanc e().dispatchEven t(evt);
 
  }
 
  public var Budget:BudgetVO;
  public var BudgetAC:ArrayColle ction;
  public var budgetID:Number;
  public var SelectedBudgetAC: ArrayCollection;
 
  sorry about that..
 
  On Mon, Oct 6, 2008 at 9:02 PM, 

RE: [flexcoders] Type Coercion error in a Popup module

2008-10-07 Thread Gregor Kiddie
Alex impression

Sounds like a shared code module problem, check my blog for more
details.

http://blogs.adobe.com/aharui/

/Alex impression

 

Personally, yeah your analysis sounds about right. How are you loading
the module in? Into a child app domain?

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hr1ny
Sent: 06 October 2008 22:29
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Type Coercion error in a Popup module

 

Hi,
I have a module that runs inside a popup window. It runs fine the 1st 
time I run it, but after it runs successfully (and I unload the 
module), after I create and use a 2nd popup using the same module, it 
fails with this error:

TypeError: Error #1034: Type Coercion failed: cannot convert 
com.adobe.createmeeting.events::[EMAIL PROTECTED] to 
com.adobe.createmeeting.events.CreateMeetingEvent.

The error occurs while executing a piece of typical Cairngorm-style 
code:

override public function doExecute(event:CairngormEvent):void {
var myEvent:CreateMeetingEvent = CreateMeetingEvent(event);

If I define the class CreateMeetingEvent and instantiate it in the 
parent application, then this error does not occur, but I do not want 
to define it in the parent application, since it does not belong 
there.

My guess is that this has to do with the issue of ApplicationDomains 
and class loading. Somehow, when I create the 2nd popup with the same 
module, it is looking for the class definition that belonged to the 
now-defunct class module.

Can anyone suggest what is the best way to fix this?
Thanks,
Henry 

 



Re: [flexcoders] Type Coercion error in a Popup module

2008-10-07 Thread Pedro Sena
Hi,

Cairngorm does not work well with modules.

You should take a look at modular (
http://lab.arc90.com/2007/10/modular_1.php).

It solve most of the cairngorm problems with modules.

I made something similar, but in my case, every module was a TitleWindow. I
achieve this with this metatag:

[Frame(factoryClass=mx.core.FlexModuleFactory)]

Example:

[Frame(factoryClass=mx.core.FlexModuleFactory)]
public class ReservaWebBaseModule extends TitleWindow implements
NetSarChildModule

In my specific case, I would like to work with my modules as common
TitleWindows, without loosing its module capabilities (load, unload, etc)

Hope this helps,

Regards,

PS

On Mon, Oct 6, 2008 at 6:28 PM, hr1ny [EMAIL PROTECTED] wrote:

   Hi,
 I have a module that runs inside a popup window. It runs fine the 1st
 time I run it, but after it runs successfully (and I unload the
 module), after I create and use a 2nd popup using the same module, it
 fails with this error:

 TypeError: Error #1034: Type Coercion failed: cannot convert
 com.adobe.createmeeting.events::[EMAIL PROTECTED] to
 com.adobe.createmeeting.events.CreateMeetingEvent.

 The error occurs while executing a piece of typical Cairngorm-style
 code:

 override public function doExecute(event:CairngormEvent):void {
 var myEvent:CreateMeetingEvent = CreateMeetingEvent(event);

 If I define the class CreateMeetingEvent and instantiate it in the
 parent application, then this error does not occur, but I do not want
 to define it in the parent application, since it does not belong
 there.

 My guess is that this has to do with the issue of ApplicationDomains
 and class loading. Somehow, when I create the 2nd popup with the same
 module, it is looking for the class definition that belonged to the
 now-defunct class module.

 Can anyone suggest what is the best way to fix this?
 Thanks,
 Henry

  




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*
* Net Sar
* www.netsar.com.br
*/


[flexcoders] Re: How to Drag and drop outlook email to AIR APP?

2008-10-07 Thread michniu
I did try to  add  the file in my app.xml file :
fileTypes
fileType
nameemail/name
extensionmsg/extension
contentTypeapplication/vnd.ms-
outlook/contentType


/fileType
/fileTypes


And I try to debug  in to  the event handler. I find the  format  
becomes air:text. and the datasource only contain the  email subjec 
from,to, and size information. There is no content  include in it.


Thanks  for help



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

 Were the answers on Apollocoders no help then?
 
  
 
 Gk.
 
 Gregor Kiddie
 Senior Developer
 INPS
 
 Tel:   01382 564343
 
 Registered address: The Bread Factory, 1a Broughton Street, London 
SW8
 3QJ
 
 Registered Number: 1788577
 
 Registered in the UK
 
 Visit our Internet Web site at www.inps.co.uk
 blocked::http://www.inps.co.uk/ 
 
 The information in this internet email is confidential and is 
intended
 solely for the addressee. Access, copying or re-use of information 
in it
 by anyone else is not authorised. Any views or opinions presented 
are
 solely those of the author and do not necessarily represent those of
 INPS or any of its affiliates. If you are not the intended recipient
 please contact [EMAIL PROTECTED]
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of michniu
 Sent: 06 October 2008 23:20
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to Drag and drop outlook email to AIR APP?
 
  
 
 Hi Coders,
 
 Is it possible to drag and drop the outlook eamil items in AIR app?
 Any ides is welcome
 
 Thanks
 
 Mike





Re: [flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Greg Morphis
I don't think something is firing..
I had it working with the other code.. creating the empty VO and
assigning the values one by one and then passing the VO to the command
to populate the MyModel SelectedVO..
When I chose a row a form I had started populating using this:
{MyModel.getInstance().SelectedBudgetVO.amount.toString()}

but when I changed the changeHandler to just
MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as BudgetVO;

They stopped populating


On Tue, Oct 7, 2008 at 10:17 AM, Tim Hoff [EMAIL PROTECTED] wrote:
 I have no idea why it wont work with an ArrayCollection

 Because your ArrayCollection is a collection of VO's, not a collection of
 ArrayCollections; although there may be ArrayCollections as properties of
 the VO.  Can you not just do this?

 MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as
 BudgetVO;

 -TH

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

 I changed it to using a VO and it works..

 MyModel.getInstance().SelectedBudgetVO = (event as BudgetEvent).budget;

 //Alert.show(MyModel.getInstance().Budget.amount.toString());

 I have no idea why it wont work with an ArrayCollection, but it works
 as a VO.. not sure if this is best practice or not

 On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis [EMAIL PROTECTED] wrote:
  This is F'ed up...
 
  I changed my code to this...
 
  public function handleChangeEvent(event:Event):void
  {
  var myVO:BudgetVO = new BudgetVO();
  myVO.actiondate = event.target.selectedItem.actiondate;
  myVO.amount = event.target.selectedItem.amount;
  myVO.id = event.target.selectedItem.id;
  ...
 
  var evt:BudgetEvent = new BudgetEvent(myVO,
  MyControl.EVENT_GET_BUDGET_DETAILS);
  CairngormEventDispatcher.getInstance().dispatchEvent(evt);
 
  }
 
  public class GetBudgetDetailsCommand implements ICommand, IResponder
  {
 
  private var currentSelectedVO:BudgetVO = null;
 
  public function execute(event:CairngormEvent):void {
 
  MyModel.getInstance().SelectedBudgetAC = (event as BudgetEvent).budget
  as ArrayCollection;
 
  /* If I Alert the (event as BudgetEvent).budget.amount.toString() I
  get the amount
 
  But if I Alert
  MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
  I get a null error.. matter of fact if I Alert
  MyModel.getInstance().SelectedBudgetAC.toString()
  I get a null error.. so where the hell is my data going? MyModel.as is
  being imported into the command.
 
  import com.model.MyModel
 
  Again, inside MyModel.as I have the global vars..
 
  public var SelectedBudgetAC:ArrayCollection;
 
  to check to make sure the MyModel was loading properly I added another
  var to it..
 
  public var fooVar:Number = 0;
 
  And if I alert that value in the execute() function, it Alerts 0 as
  it should..
  I'm lost
  */
  Alert.show(MyModel.getInstance().fooVar.toString());
 
  }
  
 
 
 
  On Tue, Oct 7, 2008 at 8:28 AM, Greg Morphis [EMAIL PROTECTED] wrote:
  Still null
 
  The DataGrid looks like
  mx:DataGrid id=dg width=100%
  height=100% dataProvider={MyModel.getInstance().BudgetAC}
  click=clickHandler(event);
  change=handleChangeEvent(event as DataGridEvent);
 
 
  Data loads fine in the grid.. cool.. The change event fires and
 
  public function handleChangeEvent(event:Event):void
  {
  MyModel.getInstance().SelectedBudgetAC = event.target.selectedItem
  as ArrayCollection;
  Alert.show(event.target.selectedItem.amount.toString());
 
  Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).toString());
 
  var evt:CairngormEvent = new
  CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);
  CairngormEventDispatcher.getInstance().dispatchEvent(evt);
 
  }
 
  I just don't get it.. the first Alert works and I see the amount of
  the selectedItem, but the second gives a null error..
  TypeError: Error #1009: Cannot access a property or method of a null
  object reference.
  at com.view::budgetBook/handleChangeEvent()
  at com.view::budgetBook/__dg_change()
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at mx.controls.listClasses::ListBase/mouseUpHandler()
  at mx.controls::DataGrid/mouseUpHandler()
 
 
 
 
  On Tue, Oct 7, 2008 at 7:37 AM, jitendra jain
  [EMAIL PROTECTED] wrote:
  Use event.target.selectedItems instead of event.target.selectedItem
 
  Thanks,
 
  with Regards,
  Jitendra Jain
 
 
  - Original Message 
  From: Greg Morphis [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Tuesday, 7 October, 2008 7:22:23 AM
  Subject: Re: [flexcoders] handling data within a datagrid
 
  That was a typo instead of copying and pasting..
  mySelectedRow is an ArrayCollection
  I'm assignin the event.target. selectedItem which is a datagrid row to
  it..
  I want to knmow why it's not working the way it should...
 
  To learn I'm creating a budgetbook of sorts.. so here's what I have
  copied and pasted..
 
  public function handleChangeEvent( 

Re: [flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Greg Morphis
Also this returns null

Alert.show(MyModel.getInstance().SelectedBudgetVO.amount.toString());

(trying it right after assigned the event.target.selectedItem to the
SelectedBudgetVO)

On Tue, Oct 7, 2008 at 10:30 AM, Greg Morphis [EMAIL PROTECTED] wrote:
 I don't think something is firing..
 I had it working with the other code.. creating the empty VO and
 assigning the values one by one and then passing the VO to the command
 to populate the MyModel SelectedVO..
 When I chose a row a form I had started populating using this:
 {MyModel.getInstance().SelectedBudgetVO.amount.toString()}

 but when I changed the changeHandler to just
 MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as 
 BudgetVO;

 They stopped populating


 On Tue, Oct 7, 2008 at 10:17 AM, Tim Hoff [EMAIL PROTECTED] wrote:
 I have no idea why it wont work with an ArrayCollection

 Because your ArrayCollection is a collection of VO's, not a collection of
 ArrayCollections; although there may be ArrayCollections as properties of
 the VO.  Can you not just do this?

 MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as
 BudgetVO;

 -TH

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

 I changed it to using a VO and it works..

 MyModel.getInstance().SelectedBudgetVO = (event as BudgetEvent).budget;

 //Alert.show(MyModel.getInstance().Budget.amount.toString());

 I have no idea why it wont work with an ArrayCollection, but it works
 as a VO.. not sure if this is best practice or not

 On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis [EMAIL PROTECTED] wrote:
  This is F'ed up...
 
  I changed my code to this...
 
  public function handleChangeEvent(event:Event):void
  {
  var myVO:BudgetVO = new BudgetVO();
  myVO.actiondate = event.target.selectedItem.actiondate;
  myVO.amount = event.target.selectedItem.amount;
  myVO.id = event.target.selectedItem.id;
  ...
 
  var evt:BudgetEvent = new BudgetEvent(myVO,
  MyControl.EVENT_GET_BUDGET_DETAILS);
  CairngormEventDispatcher.getInstance().dispatchEvent(evt);
 
  }
 
  public class GetBudgetDetailsCommand implements ICommand, IResponder
  {
 
  private var currentSelectedVO:BudgetVO = null;
 
  public function execute(event:CairngormEvent):void {
 
  MyModel.getInstance().SelectedBudgetAC = (event as BudgetEvent).budget
  as ArrayCollection;
 
  /* If I Alert the (event as BudgetEvent).budget.amount.toString() I
  get the amount
 
  But if I Alert
  MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
  I get a null error.. matter of fact if I Alert
  MyModel.getInstance().SelectedBudgetAC.toString()
  I get a null error.. so where the hell is my data going? MyModel.as is
  being imported into the command.
 
  import com.model.MyModel
 
  Again, inside MyModel.as I have the global vars..
 
  public var SelectedBudgetAC:ArrayCollection;
 
  to check to make sure the MyModel was loading properly I added another
  var to it..
 
  public var fooVar:Number = 0;
 
  And if I alert that value in the execute() function, it Alerts 0 as
  it should..
  I'm lost
  */
  Alert.show(MyModel.getInstance().fooVar.toString());
 
  }
  
 
 
 
  On Tue, Oct 7, 2008 at 8:28 AM, Greg Morphis [EMAIL PROTECTED] wrote:
  Still null
 
  The DataGrid looks like
  mx:DataGrid id=dg width=100%
  height=100% dataProvider={MyModel.getInstance().BudgetAC}
  click=clickHandler(event);
  change=handleChangeEvent(event as DataGridEvent);
 
 
  Data loads fine in the grid.. cool.. The change event fires and
 
  public function handleChangeEvent(event:Event):void
  {
  MyModel.getInstance().SelectedBudgetAC = event.target.selectedItem
  as ArrayCollection;
  Alert.show(event.target.selectedItem.amount.toString());
 
  Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).toString());
 
  var evt:CairngormEvent = new
  CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);
  CairngormEventDispatcher.getInstance().dispatchEvent(evt);
 
  }
 
  I just don't get it.. the first Alert works and I see the amount of
  the selectedItem, but the second gives a null error..
  TypeError: Error #1009: Cannot access a property or method of a null
  object reference.
  at com.view::budgetBook/handleChangeEvent()
  at com.view::budgetBook/__dg_change()
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at mx.controls.listClasses::ListBase/mouseUpHandler()
  at mx.controls::DataGrid/mouseUpHandler()
 
 
 
 
  On Tue, Oct 7, 2008 at 7:37 AM, jitendra jain
  [EMAIL PROTECTED] wrote:
  Use event.target.selectedItems instead of event.target.selectedItem
 
  Thanks,
 
  with Regards,
  Jitendra Jain
 
 
  - Original Message 
  From: Greg Morphis [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Tuesday, 7 October, 2008 7:22:23 AM
  Subject: Re: [flexcoders] handling data within a datagrid
 
  That was a typo instead of copying and pasting..
  mySelectedRow is an ArrayCollection
  I'm 

[flexcoders] localize drag

2008-10-07 Thread flexaustin
Is it possible to localize drag? I have a component a Panel that is
draggable. Inside that component I have an accordian and inside the
accordian I have 3 canvas's each of which has a datagrid on it. 

The issue is that when I move down to drag a column in one of the
datagrids it drags my panel and ignores my column drag. Or actually it
tries doing both at the same time causing the column to blink do weird
things. Anyway, is there a way to localize the drag? Or how can I
determine if the person is doing a column drag versus trying to drag
the entire panel around?

Do I need to do something contrived get mouse position make a point
(new point()) then determine if the point is over any of the Panels
children (so some sort of find childbyid stuff) if so then don't drag
entire panel? Or is there a setting?\

TIA



[flexcoders] Multiple Children in Advanced Data Grid --- Urgent

2008-10-07 Thread msrinu99
Hi,

I have a collection of nested lists coming back from the Server. I 
want to display this nested list in the advanced data grid.

for a node I have three children, How can I mention all those three as 
children on GroupingCollection object.

The hirarchy of data I have from the server are... 
---GamesList of GameDTOs
' '|-GameTurnsList of GameTurnDTOs
' '|---GameOrdersList of 
GameOrderDTOs
' '|---GameBidsList of 
GameBidDTOs
' '|---GamePrizesList of 
GamePrizeDTOs

At the moment I can able to display until this.
---GamesList of GameDTOs
|-GameTurnsList of GameTurnDTOs
|---GameOrdersList of 
GameOrderDTOs

To achieve this
gamesCollection.childrenField = gameTurns
gameTurnsCollection.children = gameOrders

Is there any way of defining or specifying multiple children on the 
GroupCollection.




Can any one worked like this before. Please point me to some tips or 
solutions. I spent lotof time on this. Finally coming to you.

Thanks



Re: [flexcoders] handling data within a datagrid

2008-10-07 Thread jitendra jain
Use event.target.selectedItems instead of event.target.selectedItem
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Greg Morphis [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 7 October, 2008 7:22:23 AM
Subject: Re: [flexcoders] handling data within a datagrid


That was a typo instead of copying and pasting..
mySelectedRow is an ArrayCollection
I'm assignin the event.target. selectedItem which is a datagrid row to it..
I want to knmow why it's not working the way it should...

To learn I'm creating a budgetbook of sorts.. so here's what I have
copied and pasted..

public function handleChangeEvent( event:DataGridEv ent):void
{
MyModel..getInstance ().SelectedBudge tAC = event.target. selectedItem as
ArrayCollection;
Alert.show(MyModel. getInstance( ).SelectedBudget AC.getItemAt( 0).payee) ;
var evt:CairngormEvent = new CairngormEvent( MyControl. EVENT_GET_ 
BUDGET_DETAILS) ;
CairngormEventDispa tcher.getInstanc e().dispatchEven t(evt); 

}

public var Budget:BudgetVO;
public var BudgetAC:ArrayColle ction;
public var budgetID:Number;
public var SelectedBudgetAC: ArrayCollection;

sorry about that..

On Mon, Oct 6, 2008 at 9:02 PM, Tracy Spratt [EMAIL PROTECTED] com wrote:
 Then how are you expecting that setting mySelectedRow property will do
 anything regarding the SelectedBudgetAC property?

 Tracy



  _ _ __

 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of Greg Morphis
 Sent: Monday, October 06, 2008 8:02 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: Re: [flexcoders] handling data within a datagrid



 No, just global variables

 On Mon, Oct 6, 2008 at 7:13 PM, Tracy Spratt [EMAIL PROTECTED] com wrote:
 Does MyModel handle the relationship between mySelectedRow and
 SelectedBudgetAC? Using setters or getters?

 Tracy



  _ _ __

 From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
 Behalf Of Greg Morphis
 Sent: Monday, October 06, 2008 7:48 PM
 To: [EMAIL PROTECTED] ups.com
 Subject: [flexcoders] handling data within a datagrid



 I've got my datagrid populating but I need to see that data in aother
 location within my app.
 In my MyModel.as
 I have a global variable
 public var mySelectedRow: ArrayCollection;

 I've tried setting this variable in the dataGrid change event...
 public function handleChangeEvent( event:Event) :void
 {
 MyModel.getInstance ().mySelectedRow = event.target. selectedItem as
 ArrayCollection;
 Alert.show(MyModel. getInstance( ).SelectedBudget AC.getItemAt( 0).amount) ;
 var evt:CairngormEvent = new
 CairngormEvent( MyControl. EVENT_GET_ DATA_DETAILS) ;
 CairngormEventDispa tcher.getInstanc e().dispatchEven t(evt);

 }

 The Alert returns a null error.. but it looks like it should be working?
 What I'm trying to do is I have a VO I need to populate.. I was going
 to do that within a command (is that best practice? -- to seperate
 display from logic)
 So anywho I'm trying to populate that arraycollection and then in the
 command do all the fun stuff...
 var myVO:FootVO = MyModel.getInstance ().FooVO;
 myVO.amount = MyModel.getInstance ().SelectedBudge tAC.getItemAt( 0).amount;

 but I'm getting a null error.. is this the proper way to load a VO
 from a selected DataGrid row?

 Thanks



 
 


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: [flexcoders] Flex and BlazeDS in internet environment

2008-10-07 Thread Ryan Gravener
So long as your using flex and not air you can do this:

endpoint 
url=http://{server.name}:{server.port}/{context.root}/messagebroker/streamingamf;
class=flex.messaging.endpoints.StreamingAMFEndpoint/

Ryan Gravener
http://twitter.com/ryangravener


On Tue, Oct 7, 2008 at 10:53 AM, Tom Chiverton [EMAIL PROTECTED]
 wrote:

 On Tuesday 07 Oct 2008, Joshua Partogi wrote:
  endpoint=http://localhost:8080/messagebroker/amf;
  Do we have to change the URL?

 Do you expect 'localhost' to resolve to the correct thing for your users,
 on
 their machines ?

 --
 Tom Chiverton
 Helping to dynamically restore distributed networks



 

 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
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

 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 2500.

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

 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






[flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Tim Hoff

Well, it's better practice to update the model with an event/command
anyway.  No idea why the selectedItem isn't working through the event. 
Another approach would be:

MyModel.getInstance().SelectedBudgetVO = myDataGrid.selectedItem as
BudgetVO;

-TH

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

 Also this returns null

 Alert.show(MyModel.getInstance().SelectedBudgetVO.amount.toString());

 (trying it right after assigned the event.target.selectedItem to the
 SelectedBudgetVO)

 On Tue, Oct 7, 2008 at 10:30 AM, Greg Morphis [EMAIL PROTECTED] wrote:
  I don't think something is firing..
  I had it working with the other code.. creating the empty VO and
  assigning the values one by one and then passing the VO to the
command
  to populate the MyModel SelectedVO..
  When I chose a row a form I had started populating using this:
  {MyModel.getInstance().SelectedBudgetVO.amount.toString()}
 
  but when I changed the changeHandler to just
  MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem
as BudgetVO;
 
  They stopped populating
 
 
  On Tue, Oct 7, 2008 at 10:17 AM, Tim Hoff [EMAIL PROTECTED] wrote:
  I have no idea why it wont work with an ArrayCollection
 
  Because your ArrayCollection is a collection of VO's, not a
collection of
  ArrayCollections; although there may be ArrayCollections as
properties of
  the VO. Can you not just do this?
 
  MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem
as
  BudgetVO;
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
 
  I changed it to using a VO and it works..
 
  MyModel.getInstance().SelectedBudgetVO = (event as
BudgetEvent).budget;
 
  //Alert.show(MyModel.getInstance().Budget.amount.toString());
 
  I have no idea why it wont work with an ArrayCollection, but it
works
  as a VO.. not sure if this is best practice or not
 
  On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis gmorphis@ wrote:
   This is F'ed up...
  
   I changed my code to this...
  
   public function handleChangeEvent(event:Event):void
   {
   var myVO:BudgetVO = new BudgetVO();
   myVO.actiondate = event.target.selectedItem.actiondate;
   myVO.amount = event.target.selectedItem.amount;
   myVO.id = event.target.selectedItem.id;
   ...
  
   var evt:BudgetEvent = new BudgetEvent(myVO,
   MyControl.EVENT_GET_BUDGET_DETAILS);
   CairngormEventDispatcher.getInstance().dispatchEvent(evt);
  
   }
  
   public class GetBudgetDetailsCommand implements ICommand,
IResponder
   {
  
   private var currentSelectedVO:BudgetVO = null;
  
   public function execute(event:CairngormEvent):void {
  
   MyModel.getInstance().SelectedBudgetAC = (event as
BudgetEvent).budget
   as ArrayCollection;
  
   /* If I Alert the (event as
BudgetEvent).budget.amount.toString() I
   get the amount
  
   But if I Alert
  
MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
   I get a null error.. matter of fact if I Alert
   MyModel.getInstance().SelectedBudgetAC.toString()
   I get a null error.. so where the hell is my data going?
MyModel.as is
   being imported into the command.
  
   import com.model.MyModel
  
   Again, inside MyModel.as I have the global vars..
  
   public var SelectedBudgetAC:ArrayCollection;
  
   to check to make sure the MyModel was loading properly I added
another
   var to it..
  
   public var fooVar:Number = 0;
  
   And if I alert that value in the execute() function, it Alerts
0 as
   it should..
   I'm lost
   */
   Alert.show(MyModel.getInstance().fooVar.toString());
  
   }
   
  
  
  
   On Tue, Oct 7, 2008 at 8:28 AM, Greg Morphis gmorphis@ wrote:
   Still null
  
   The DataGrid looks like
   mx:DataGrid id=dg width=100%
   height=100% dataProvider={MyModel.getInstance().BudgetAC}
   click=clickHandler(event);
   change=handleChangeEvent(event as DataGridEvent);
  
  
   Data loads fine in the grid.. cool.. The change event fires and
  
   public function handleChangeEvent(event:Event):void
   {
   MyModel.getInstance().SelectedBudgetAC =
event.target.selectedItem
   as ArrayCollection;
   Alert.show(event.target.selectedItem.amount.toString());
  
  
Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).toString(\
));
  
   var evt:CairngormEvent = new
   CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);
   CairngormEventDispatcher.getInstance().dispatchEvent(evt);
  
   }
  
   I just don't get it.. the first Alert works and I see the
amount of
   the selectedItem, but the second gives a null error..
   TypeError: Error #1009: Cannot access a property or method of a
null
   object reference.
   at com.view::budgetBook/handleChangeEvent()
   at com.view::budgetBook/__dg_change()
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at mx.controls.listClasses::ListBase/mouseUpHandler()
   at mx.controls::DataGrid/mouseUpHandler()
  
  
  
  
   On Tue, Oct 7, 2008 at 7:37 AM, jitendra jain
   

Re: [flexcoders] Refresh Flex Navigator's Projects in Flex Builder

2008-10-07 Thread Michael Schmalle
You can also hit F5 when the project is selected and it will re-sync the
disk drive directories and content.
Mike

On Tue, Oct 7, 2008 at 10:51 AM, Tom Chiverton [EMAIL PROTECTED]
 wrote:

 On Monday 06 Oct 2008, itdanny2002 wrote:
  How to refresh all projects in flex builder ?

 Close and reopen Builder.

 --
 Tom Chiverton
 Helping to globally embrace systems



 

 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
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

 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 2500.

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

 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






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

Teoti Graphix Blog
http://www.blog.teotigraphix.com

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


[flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Anthony DeBonis
I tend to use the Flex Debugger at this point and break in the result 
handler.  Then right click the var in the code  event and watch it 
it will be in the Expressions Tab and you can drill in to see exactly 
what is in the event object.  You must be close so dont give give up.



[flexcoders] Re: Dynamic Embedded Images

2008-10-07 Thread Anthony DeBonis
You will increase the swf size if you just embed so you may want to 
look at using modules  or check this cool idea out by Dirk Eismann.

This will allow the application to load fast but then stream in the 
other graphics you need.

http://www.richinternet.de/blog/index.cfm?entry=FF295F89-DAD8-CCDC-
960413842BC0D478

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

 Hi flexcoders! I have an app with a couple large sets of images that
 are setup to be loaded dynamically through the source property string
 based on user inputs. I'd like to change these to embedded images to
 improve performance, but A.) I don't want to have to go through the
 tedium of manually embedding each image in the script block and B.) I
 don't know how to dynamically reference the embedded images. Any
 ideas? Seems like this would be a fairly common task but can't seem to
 turn up anything via livedocs or google. Thanks!
 
 -Dane





Re: [flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Greg Morphis
Thanks Tim, I appreciate the help. I want to learn but yeah I want to
learn the right way to do things.
Again, I appreciate your time and patience with me..

Thanks!

On Tue, Oct 7, 2008 at 10:43 AM, Tim Hoff [EMAIL PROTECTED] wrote:
 Well, it's better practice to update the model with an event/command
 anyway.  No idea why the selectedItem isn't working through the event.
 Another approach would be:

 MyModel.getInstance().SelectedBudgetVO = myDataGrid.selectedItem as
 BudgetVO;

 -TH

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

 Also this returns null

 Alert.show(MyModel.getInstance().SelectedBudgetVO.amount.toString());

 (trying it right after assigned the event.target.selectedItem to the
 SelectedBudgetVO)

 On Tue, Oct 7, 2008 at 10:30 AM, Greg Morphis [EMAIL PROTECTED] wrote:
  I don't think something is firing..
  I had it working with the other code.. creating the empty VO and
  assigning the values one by one and then passing the VO to the command
  to populate the MyModel SelectedVO..
  When I chose a row a form I had started populating using this:
  {MyModel.getInstance().SelectedBudgetVO.amount.toString()}
 
  but when I changed the changeHandler to just
  MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as
  BudgetVO;
 
  They stopped populating
 
 
  On Tue, Oct 7, 2008 at 10:17 AM, Tim Hoff [EMAIL PROTECTED] wrote:
  I have no idea why it wont work with an ArrayCollection
 
  Because your ArrayCollection is a collection of VO's, not a collection
  of
  ArrayCollections; although there may be ArrayCollections as properties
  of
  the VO. Can you not just do this?
 
  MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as
  BudgetVO;
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
 
  I changed it to using a VO and it works..
 
  MyModel.getInstance().SelectedBudgetVO = (event as
  BudgetEvent).budget;
 
  //Alert.show(MyModel.getInstance().Budget.amount.toString());
 
  I have no idea why it wont work with an ArrayCollection, but it works
  as a VO.. not sure if this is best practice or not
 
  On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis gmorphis@ wrote:
   This is F'ed up...
  
   I changed my code to this...
  
   public function handleChangeEvent(event:Event):void
   {
   var myVO:BudgetVO = new BudgetVO();
   myVO.actiondate = event.target.selectedItem.actiondate;
   myVO.amount = event.target.selectedItem.amount;
   myVO.id = event.target.selectedItem.id;
   ...
  
   var evt:BudgetEvent = new BudgetEvent(myVO,
   MyControl.EVENT_GET_BUDGET_DETAILS);
   CairngormEventDispatcher.getInstance().dispatchEvent(evt);
  
   }
  
   public class GetBudgetDetailsCommand implements ICommand, IResponder
   {
  
   private var currentSelectedVO:BudgetVO = null;
  
   public function execute(event:CairngormEvent):void {
  
   MyModel.getInstance().SelectedBudgetAC = (event as
   BudgetEvent).budget
   as ArrayCollection;
  
   /* If I Alert the (event as BudgetEvent).budget.amount.toString() I
   get the amount
  
   But if I Alert
  
   MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
   I get a null error.. matter of fact if I Alert
   MyModel.getInstance().SelectedBudgetAC.toString()
   I get a null error.. so where the hell is my data going? MyModel.as
   is
   being imported into the command.
  
   import com.model.MyModel
  
   Again, inside MyModel.as I have the global vars..
  
   public var SelectedBudgetAC:ArrayCollection;
  
   to check to make sure the MyModel was loading properly I added
   another
   var to it..
  
   public var fooVar:Number = 0;
  
   And if I alert that value in the execute() function, it Alerts 0
   as
   it should..
   I'm lost
   */
   Alert.show(MyModel.getInstance().fooVar.toString());
  
   }
   
  
  
  
   On Tue, Oct 7, 2008 at 8:28 AM, Greg Morphis gmorphis@ wrote:
   Still null
  
   The DataGrid looks like
   mx:DataGrid id=dg width=100%
   height=100% dataProvider={MyModel.getInstance().BudgetAC}
   click=clickHandler(event);
   change=handleChangeEvent(event as DataGridEvent);
  
  
   Data loads fine in the grid.. cool.. The change event fires and
  
   public function handleChangeEvent(event:Event):void
   {
   MyModel.getInstance().SelectedBudgetAC = event.target.selectedItem
   as ArrayCollection;
   Alert.show(event.target.selectedItem.amount.toString());
  
  
   Alert.show(MyModel.getInstance().SelectedBudgetAC.getItemAt(0).toString());
  
   var evt:CairngormEvent = new
   CairngormEvent(MyControl.EVENT_GET_BUDGET_DETAILS);
   CairngormEventDispatcher.getInstance().dispatchEvent(evt);
  
   }
  
   I just don't get it.. the first Alert works and I see the amount of
   the selectedItem, but the second gives a null error..
   TypeError: Error #1009: Cannot access a property or method of a
   null
   object reference.
   at com.view::budgetBook/handleChangeEvent()
   at com.view::budgetBook/__dg_change()
   at 

[flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Tim Hoff

Hey, no worries Greg.  Just passing it on.   Once the VO is setup, you
really shouldn't have to cast the individual properties.  To reduce some
of the code, does this work?

var evt:BudgetEvent = new BudgetEvent(myDataGrid.selectedItem as
BudgetVO,MyControl.EVENT_GET_BUDGET_DETAILS);
CairngormEventDispatcher.getInstance().dispatchEvent(evt);

-TH

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

 Thanks Tim, I appreciate the help. I want to learn but yeah I want to
 learn the right way to do things.
 Again, I appreciate your time and patience with me..

 Thanks!

 On Tue, Oct 7, 2008 at 10:43 AM, Tim Hoff [EMAIL PROTECTED] wrote:
  Well, it's better practice to update the model with an event/command
  anyway. No idea why the selectedItem isn't working through the
event.
  Another approach would be:
 
  MyModel.getInstance().SelectedBudgetVO = myDataGrid.selectedItem as
  BudgetVO;
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
 
  Also this returns null
 
 
Alert.show(MyModel.getInstance().SelectedBudgetVO.amount.toString());
 
  (trying it right after assigned the event.target.selectedItem to
the
  SelectedBudgetVO)
 
  On Tue, Oct 7, 2008 at 10:30 AM, Greg Morphis gmorphis@ wrote:
   I don't think something is firing..
   I had it working with the other code.. creating the empty VO and
   assigning the values one by one and then passing the VO to the
command
   to populate the MyModel SelectedVO..
   When I chose a row a form I had started populating using this:
   {MyModel.getInstance().SelectedBudgetVO.amount.toString()}
  
   but when I changed the changeHandler to just
   MyModel.getInstance().SelectedBudgetVO =
event.target.selectedItem as
   BudgetVO;
  
   They stopped populating
  
  
   On Tue, Oct 7, 2008 at 10:17 AM, Tim Hoff TimHoff@ wrote:
   I have no idea why it wont work with an ArrayCollection
  
   Because your ArrayCollection is a collection of VO's, not a
collection
   of
   ArrayCollections; although there may be ArrayCollections as
properties
   of
   the VO. Can you not just do this?
  
   MyModel.getInstance().SelectedBudgetVO =
event.target.selectedItem as
   BudgetVO;
  
   -TH
  
   --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@
wrote:
  
   I changed it to using a VO and it works..
  
   MyModel.getInstance().SelectedBudgetVO = (event as
   BudgetEvent).budget;
  
   //Alert.show(MyModel.getInstance().Budget.amount.toString());
  
   I have no idea why it wont work with an ArrayCollection, but it
works
   as a VO.. not sure if this is best practice or not
  
   On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis gmorphis@ wrote:
This is F'ed up...
   
I changed my code to this...
   
public function handleChangeEvent(event:Event):void
{
var myVO:BudgetVO = new BudgetVO();
myVO.actiondate = event.target.selectedItem.actiondate;
myVO.amount = event.target.selectedItem.amount;
myVO.id = event.target.selectedItem.id;
...
   
var evt:BudgetEvent = new BudgetEvent(myVO,
MyControl.EVENT_GET_BUDGET_DETAILS);
CairngormEventDispatcher.getInstance().dispatchEvent(evt);
   
}
   
public class GetBudgetDetailsCommand implements ICommand,
IResponder
{
   
private var currentSelectedVO:BudgetVO = null;
   
public function execute(event:CairngormEvent):void {
   
MyModel.getInstance().SelectedBudgetAC = (event as
BudgetEvent).budget
as ArrayCollection;
   
/* If I Alert the (event as
BudgetEvent).budget.amount.toString() I
get the amount
   
But if I Alert
   
   
MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
I get a null error.. matter of fact if I Alert
MyModel.getInstance().SelectedBudgetAC.toString()
I get a null error.. so where the hell is my data going?
MyModel.as
is
being imported into the command.
   
import com.model.MyModel
   
Again, inside MyModel.as I have the global vars..
   
public var SelectedBudgetAC:ArrayCollection;
   
to check to make sure the MyModel was loading properly I
added
another
var to it..
   
public var fooVar:Number = 0;
   
And if I alert that value in the execute() function, it
Alerts 0
as
it should..
I'm lost
*/
Alert.show(MyModel.getInstance().fooVar.toString());
   
}

   
   
   
On Tue, Oct 7, 2008 at 8:28 AM, Greg Morphis gmorphis@ wrote:
Still null
   
The DataGrid looks like
mx:DataGrid id=dg width=100%
height=100%
dataProvider={MyModel.getInstance().BudgetAC}
click=clickHandler(event);
change=handleChangeEvent(event as DataGridEvent);
   
   
Data loads fine in the grid.. cool.. The change event fires
and
   
public function handleChangeEvent(event:Event):void
{
MyModel.getInstance().SelectedBudgetAC =
event.target.selectedItem
as ArrayCollection;
Alert.show(event.target.selectedItem.amount.toString());
   
   
   

[flexcoders] LiveCycleDS - Problem Accessing RemoteObject over Secure AMF

2008-10-07 Thread cwicky99
I'm trying to access a destination over SSL with the my-secure-amf
channel.

I have a destination defined in remoting-config.xml that looks like:

destination id=foo
channels
  channel ref=my-secure-amf /
/channels
/destination

However when my code tries to use this destination I get:

NetConnection.Call.Failed: HTTP: Failed: url:
'https://localhost:8443/myapp/messagebroker/amfsecure'


The channel in services-config.xml is defined as:
channel-definition id=my-secure-amf
class=mx.messaging.channels.SecureAMFChannel
endpoint
url=https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure;
class=flex.messaging.endpoints.SecureAMFEndpoint/
properties
!--HTTPS requests on some browsers do not work when
pragma no-cache are set--
add-no-cache-headersfalse/add-no-cache-headers
/properties
/channel-definition

Any thoughts?



Re: [flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Greg Morphis
Nah I tried this too..

var evt:BudgetEvent = new 
BudgetEvent(BudgetVO(dg.selectedItem) as
BudgetVO,MyControl.EVENT_GET_BUDGET_DETAILS);

CairngormEventDispatcher.getInstance().dispatchEvent(evt);  

(added the wrapper BudgetVO around the dg) and got this error message
TypeError: Error #1034: Type Coercion failed: cannot convert
[EMAIL PROTECTED] to com.vo.BudgetVO



On Tue, Oct 7, 2008 at 11:47 AM, Tim Hoff [EMAIL PROTECTED] wrote:
 Hey, no worries Greg.  Just passing it on.   Once the VO is setup, you
 really shouldn't have to cast the individual properties.  To reduce some of
 the code, does this work?

 var evt:BudgetEvent = new BudgetEvent(myDataGrid.selectedItem as
 BudgetVO,MyControl.EVENT_GET_BUDGET_DETAILS);
 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 -TH

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

 Thanks Tim, I appreciate the help. I want to learn but yeah I want to
 learn the right way to do things.
 Again, I appreciate your time and patience with me..

 Thanks!

 On Tue, Oct 7, 2008 at 10:43 AM, Tim Hoff [EMAIL PROTECTED] wrote:
  Well, it's better practice to update the model with an event/command
  anyway. No idea why the selectedItem isn't working through the event.
  Another approach would be:
 
  MyModel.getInstance().SelectedBudgetVO = myDataGrid.selectedItem as
  BudgetVO;
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
 
  Also this returns null
 
  Alert.show(MyModel.getInstance().SelectedBudgetVO.amount.toString());
 
  (trying it right after assigned the event.target.selectedItem to the
  SelectedBudgetVO)
 
  On Tue, Oct 7, 2008 at 10:30 AM, Greg Morphis gmorphis@ wrote:
   I don't think something is firing..
   I had it working with the other code.. creating the empty VO and
   assigning the values one by one and then passing the VO to the
   command
   to populate the MyModel SelectedVO..
   When I chose a row a form I had started populating using this:
   {MyModel.getInstance().SelectedBudgetVO.amount.toString()}
  
   but when I changed the changeHandler to just
   MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as
   BudgetVO;
  
   They stopped populating
  
  
   On Tue, Oct 7, 2008 at 10:17 AM, Tim Hoff TimHoff@ wrote:
   I have no idea why it wont work with an ArrayCollection
  
   Because your ArrayCollection is a collection of VO's, not a
   collection
   of
   ArrayCollections; although there may be ArrayCollections as
   properties
   of
   the VO. Can you not just do this?
  
   MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem
   as
   BudgetVO;
  
   -TH
  
   --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
  
   I changed it to using a VO and it works..
  
   MyModel.getInstance().SelectedBudgetVO = (event as
   BudgetEvent).budget;
  
   //Alert.show(MyModel.getInstance().Budget.amount.toString());
  
   I have no idea why it wont work with an ArrayCollection, but it
   works
   as a VO.. not sure if this is best practice or not
  
   On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis gmorphis@ wrote:
This is F'ed up...
   
I changed my code to this...
   
public function handleChangeEvent(event:Event):void
{
var myVO:BudgetVO = new BudgetVO();
myVO.actiondate = event.target.selectedItem.actiondate;
myVO.amount = event.target.selectedItem.amount;
myVO.id = event.target.selectedItem.id;
...
   
var evt:BudgetEvent = new BudgetEvent(myVO,
MyControl.EVENT_GET_BUDGET_DETAILS);
CairngormEventDispatcher.getInstance().dispatchEvent(evt);
   
}
   
public class GetBudgetDetailsCommand implements ICommand,
IResponder
{
   
private var currentSelectedVO:BudgetVO = null;
   
public function execute(event:CairngormEvent):void {
   
MyModel.getInstance().SelectedBudgetAC = (event as
BudgetEvent).budget
as ArrayCollection;
   
/* If I Alert the (event as BudgetEvent).budget.amount.toString()
I
get the amount
   
But if I Alert
   
   
MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
I get a null error.. matter of fact if I Alert
MyModel.getInstance().SelectedBudgetAC.toString()
I get a null error.. so where the hell is my data going?
MyModel.as
is
being imported into the command.
   
import com.model.MyModel
   
Again, inside MyModel.as I have the global vars..
   
public var SelectedBudgetAC:ArrayCollection;
   
to check to make sure the MyModel was loading properly I added
another
var to it..
   
public var fooVar:Number = 0;
   
And if I alert that value in the execute() function, it Alerts
0
as
it should..
I'm lost
*/
Alert.show(MyModel.getInstance().fooVar.toString());
   
}

   
   
   
On Tue, Oct 7, 2008 at 8:28 AM, Greg Morphis gmorphis@ wrote:
Still null
   

RE: [flexcoders] LiveCycleDS - Problem Accessing RemoteObject over Secure AMF

2008-10-07 Thread Battershall, Jeff
Do you have an SSL cert installed on your local development environment?

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of cwicky99
Sent: Tuesday, October 07, 2008 1:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LiveCycleDS - Problem Accessing RemoteObject over
Secure AMF


I'm trying to access a destination over SSL with the my-secure-amf
channel.

I have a destination defined in remoting-config.xml that looks like:

destination id=foo
channels
  channel ref=my-secure-amf /
/channels
/destination

However when my code tries to use this destination I get:

NetConnection.Call.Failed: HTTP: Failed: url:
'https://localhost:8443/myapp/messagebroker/amfsecure'


The channel in services-config.xml is defined as:
channel-definition id=my-secure-amf
class=mx.messaging.channels.SecureAMFChannel
endpoint
url=https://{server.name}:{server.port}/{context.root}/messagebroker/am
fsecure
class=flex.messaging.endpoints.SecureAMFEndpoint/
properties
!--HTTPS requests on some browsers do not work when
pragma no-cache are set--
add-no-cache-headersfalse/add-no-cache-headers
/properties
/channel-definition

Any thoughts?




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





[flexcoders] Re: LiveCycleDS - Problem Accessing RemoteObject over Secure AMF

2008-10-07 Thread cwicky99
One thing I noticed is that if I just try to browse to the channel URL:

https://localhost:8443/myapp/messagebroker/amfsecure

I get:
HTTP Status 404 - Servlet MessageBrokerServlet is not available





[flexcoders] Re: LiveCycleDS - Problem Accessing RemoteObject over Secure AMF

2008-10-07 Thread cwicky99
One thing I noticed is that if I just try to browse to the channel URL:

https://localhost:8443/myapp/messagebroker/amfsecure

I get:
HTTP Status 404 - Servlet MessageBrokerServlet is not available





[flexcoders] Feeding complex XMLdata to charts: Flex3

2008-10-07 Thread john fisher
Good morning in PDT, and thanks for being here.
Me: new to AS  Flex, building a Linux-based dashboard, using
Flexbuilder alpha for Linux in Eclipse
( this does not have all features compared to Windows and OSX I believe,
and may be buggy)

*Problem:* I've been given an XML schema for incoming data thats
complex, and well, may not be optimum. :)
When I follow the tutorials using simple data,
data
item
etheth0/eth
packets1234/packets
bps3005/bps
/item
item
etheth1/eth
packets517/packets
   bps4335/bps
/item
 ...
/data

I am able to get a dynamic bar chart that responds to changes in number
of members of the data array of elements. But my real data is complex
( see below) and it appears to me that the dataFunc to chart series
dataprovider connection, which understands simple arrays, gets confused
with complex arrays.

*What I get thats wrong:*
Trace shows me getting results like
peas data1 /peas
peas data2 /peas
or using a different notation,
data1data2
when I expect an array of  data1,data2
and the chart won't work at all.

*What I want to know:* I want some guidance to help me avoid dead ends-
Is my XML just flat not suitable?
Am I wrong about the problem?
Do I need to do some complicated restructuring of the data before I
return it from the dataFunc, so I send a simple array like shown above?

Thanks!
John

*Simplified Data:*
save_instance
namePC/name  
  instance
id1/id
beetles_count1/beetles_count
beetles   
array
seed_nameeth3/seed_name
instance0/instance
apple_id4094/apple_id
/array
/beetles
service_count1/service_count
services
 array
waiter_count4/waiter_count
namehtml/name
servers
array
lpeach0/lpeach
namese1/name
upeach0/upeach
instance0/instance
carrots_list   
array
carrots_list1/carrots_list
/array
/carrots_list 
apple_id1/apple_id
statistics
statistics
*peas/peas data1*
   * refresh0/refresh X label*
*bugs/bugs data2*
/statistics
activeconns/activeconns
inactiveconns/inactiveconns
persistconns/persistconns
/statistics
pits10.0.1.42/pits
pc_pits10.0.1.101/pc_pits
status2/status
weight1/weight
/array
/servers
instance0/instance
status2/status
statistics
peas/peas
refresh2000/refresh
bugs/bugs
/statistics
protocol0001/protocol
scheduling0001/scheduling
forwarding_method0001/forwarding_method
/array
...
/services
control_seednameeth0/control_seedname
fastpath
num_stack0/num_stack
num_key0/num_key
num_hash0/num_hash
/fastpath
statistics
peas000c/peas
refresh2000/refresh
bugs/bugs
/statistics
  /instance
...
/save_instance
//

*dataFunc:*
private function dataFunc(series:Series, item:Object,
fieldName:String):Object {   
if(fieldName == yValue  series.id==peas){
  
   
return(item.services.array.servers.array.statistics.statistics.peas ) ;}
else if(fieldName == yValue  series.id==bugs){
  
   
return(item.services.array.servers.array.statistics.statistics.bugs) ;}
else if(fieldName == xValue){
 
return(item.services.array.servers.array.name) ;}
else{
 display ( dataFunc returns NULL);
return null;
}
  }
/
*chart:*
mx:ColumnChart id=chart
dataProvider={xmlData}
showDataTips=true
width=50%
height=50%

mx:horizontalAxis
mx:CategoryAxis id=h1 dataFunction=catFunc/
/mx:horizontalAxis
mx:series
mx:ColumnSeries id=peas
displayName=Peas
dataFunction=dataFunc

[flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Tim Hoff

What the heck?   Using dg.selectedItem as BudgetVO should work.  You can
also go to the dataProvider:

var budgetVO:BudgetVO = new BudgetVO();
budgetVO = MyModel.getInstance().BudgetAC.getItemAt(dg.selectedIndex) as
BudgetVO;

var evt:BudgetEvent = new
BudgetEvent(budgetVO,MyControl.EVENT_GET_BUDGET_DETAILS);
CairngormEventDispatcher.getInstance().dispatchEvent(evt);

However, this is no different than the other way.  Is BudgetAC an
ArrayCollection of BudgetVOs?  Also, it's also conventional to use camel
case (lower case first letter) for all of your variables.  That way it's
easy to distinguish them from classes.

-TH

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

 Nah I tried this too..

 var evt:BudgetEvent = new BudgetEvent(BudgetVO(dg.selectedItem) as
 BudgetVO,MyControl.EVENT_GET_BUDGET_DETAILS);
 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 (added the wrapper BudgetVO around the dg) and got this error message
 TypeError: Error #1034: Type Coercion failed: cannot convert
 [EMAIL PROTECTED] to com.vo.BudgetVO



 On Tue, Oct 7, 2008 at 11:47 AM, Tim Hoff [EMAIL PROTECTED] wrote:
  Hey, no worries Greg. Just passing it on. Once the VO is setup, you
  really shouldn't have to cast the individual properties. To reduce
some of
  the code, does this work?
 
  var evt:BudgetEvent = new BudgetEvent(myDataGrid.selectedItem as
  BudgetVO,MyControl.EVENT_GET_BUDGET_DETAILS);
  CairngormEventDispatcher.getInstance().dispatchEvent(evt);
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
 
  Thanks Tim, I appreciate the help. I want to learn but yeah I want
to
  learn the right way to do things.
  Again, I appreciate your time and patience with me..
 
  Thanks!
 
  On Tue, Oct 7, 2008 at 10:43 AM, Tim Hoff TimHoff@ wrote:
   Well, it's better practice to update the model with an
event/command
   anyway. No idea why the selectedItem isn't working through the
event.
   Another approach would be:
  
   MyModel.getInstance().SelectedBudgetVO = myDataGrid.selectedItem
as
   BudgetVO;
  
   -TH
  
   --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@
wrote:
  
   Also this returns null
  
  
Alert.show(MyModel.getInstance().SelectedBudgetVO.amount.toString());
  
   (trying it right after assigned the event.target.selectedItem to
the
   SelectedBudgetVO)
  
   On Tue, Oct 7, 2008 at 10:30 AM, Greg Morphis gmorphis@ wrote:
I don't think something is firing..
I had it working with the other code.. creating the empty VO
and
assigning the values one by one and then passing the VO to the
command
to populate the MyModel SelectedVO..
When I chose a row a form I had started populating using this:
{MyModel.getInstance().SelectedBudgetVO.amount.toString()}
   
but when I changed the changeHandler to just
MyModel.getInstance().SelectedBudgetVO =
event.target.selectedItem as
BudgetVO;
   
They stopped populating
   
   
On Tue, Oct 7, 2008 at 10:17 AM, Tim Hoff TimHoff@ wrote:
I have no idea why it wont work with an ArrayCollection
   
Because your ArrayCollection is a collection of VO's, not a
collection
of
ArrayCollections; although there may be ArrayCollections as
properties
of
the VO. Can you not just do this?
   
MyModel.getInstance().SelectedBudgetVO =
event.target.selectedItem
as
BudgetVO;
   
-TH
   
--- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@
wrote:
   
I changed it to using a VO and it works..
   
MyModel.getInstance().SelectedBudgetVO = (event as
BudgetEvent).budget;
   
   
//Alert.show(MyModel.getInstance().Budget.amount.toString());
   
I have no idea why it wont work with an ArrayCollection, but
it
works
as a VO.. not sure if this is best practice or not
   
On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis gmorphis@
wrote:
 This is F'ed up...

 I changed my code to this...

 public function handleChangeEvent(event:Event):void
 {
 var myVO:BudgetVO = new BudgetVO();
 myVO.actiondate = event.target.selectedItem.actiondate;
 myVO.amount = event.target.selectedItem.amount;
 myVO.id = event.target.selectedItem.id;
 ...

 var evt:BudgetEvent = new BudgetEvent(myVO,
 MyControl.EVENT_GET_BUDGET_DETAILS);
 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 }

 public class GetBudgetDetailsCommand implements ICommand,
 IResponder
 {

 private var currentSelectedVO:BudgetVO = null;

 public function execute(event:CairngormEvent):void {

 MyModel.getInstance().SelectedBudgetAC = (event as
 BudgetEvent).budget
 as ArrayCollection;

 /* If I Alert the (event as
BudgetEvent).budget.amount.toString()
 I
 get the amount

 But if I Alert



MyModel.getInstance().SelectedBudgetAC.getItemAt(0).amount.toString()
 I get a null error.. matter of fact if I Alert
   

Re: [flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Greg Morphis
BudgetAC is an array of beans coming from a CFC..
However in the result() method of that command I convert it to an
ArrayCollection..

public function result(event:Object):void {
MyModel.getInstance().BudgetAC = new 
ArrayCollection(event.result
as Array);
}



On Tue, Oct 7, 2008 at 1:10 PM, Tim Hoff [EMAIL PROTECTED] wrote:
 What the heck?   Using dg.selectedItem as BudgetVO should work.  You can
 also go to the dataProvider:

 var budgetVO:BudgetVO = new BudgetVO();
 budgetVO = MyModel.getInstance().BudgetAC.getItemAt(dg.selectedIndex) as
 BudgetVO;

 var evt:BudgetEvent = new
 BudgetEvent(budgetVO,MyControl.EVENT_GET_BUDGET_DETAILS);
 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 However, this is no different than the other way.  Is BudgetAC an
 ArrayCollection of BudgetVOs?  Also, it's also conventional to use camel
 case (lower case first letter) for all of your variables.  That way it's
 easy to distinguish them from classes.

 -TH

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

 Nah I tried this too..

 var evt:BudgetEvent = new BudgetEvent(BudgetVO(dg.selectedItem) as
 BudgetVO,MyControl.EVENT_GET_BUDGET_DETAILS);
 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 (added the wrapper BudgetVO around the dg) and got this error message
 TypeError: Error #1034: Type Coercion failed: cannot convert
 [EMAIL PROTECTED] to com.vo.BudgetVO



 On Tue, Oct 7, 2008 at 11:47 AM, Tim Hoff [EMAIL PROTECTED] wrote:
  Hey, no worries Greg. Just passing it on. Once the VO is setup, you
  really shouldn't have to cast the individual properties. To reduce some
  of
  the code, does this work?
 
  var evt:BudgetEvent = new BudgetEvent(myDataGrid.selectedItem as
  BudgetVO,MyControl.EVENT_GET_BUDGET_DETAILS);
  CairngormEventDispatcher.getInstance().dispatchEvent(evt);
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
 
  Thanks Tim, I appreciate the help. I want to learn but yeah I want to
  learn the right way to do things.
  Again, I appreciate your time and patience with me..
 
  Thanks!
 
  On Tue, Oct 7, 2008 at 10:43 AM, Tim Hoff TimHoff@ wrote:
   Well, it's better practice to update the model with an event/command
   anyway. No idea why the selectedItem isn't working through the event.
   Another approach would be:
  
   MyModel.getInstance().SelectedBudgetVO = myDataGrid.selectedItem as
   BudgetVO;
  
   -TH
  
   --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote:
  
   Also this returns null
  
  
   Alert.show(MyModel.getInstance().SelectedBudgetVO.amount.toString());
  
   (trying it right after assigned the event.target.selectedItem to the
   SelectedBudgetVO)
  
   On Tue, Oct 7, 2008 at 10:30 AM, Greg Morphis gmorphis@ wrote:
I don't think something is firing..
I had it working with the other code.. creating the empty VO and
assigning the values one by one and then passing the VO to the
command
to populate the MyModel SelectedVO..
When I chose a row a form I had started populating using this:
{MyModel.getInstance().SelectedBudgetVO.amount.toString()}
   
but when I changed the changeHandler to just
MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem
as
BudgetVO;
   
They stopped populating
   
   
On Tue, Oct 7, 2008 at 10:17 AM, Tim Hoff TimHoff@ wrote:
I have no idea why it wont work with an ArrayCollection
   
Because your ArrayCollection is a collection of VO's, not a
collection
of
ArrayCollections; although there may be ArrayCollections as
properties
of
the VO. Can you not just do this?
   
MyModel.getInstance().SelectedBudgetVO =
event.target.selectedItem
as
BudgetVO;
   
-TH
   
--- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@
wrote:
   
I changed it to using a VO and it works..
   
MyModel.getInstance().SelectedBudgetVO = (event as
BudgetEvent).budget;
   
//Alert.show(MyModel.getInstance().Budget.amount.toString());
   
I have no idea why it wont work with an ArrayCollection, but it
works
as a VO.. not sure if this is best practice or not
   
On Tue, Oct 7, 2008 at 9:41 AM, Greg Morphis gmorphis@ wrote:
 This is F'ed up...

 I changed my code to this...

 public function handleChangeEvent(event:Event):void
 {
 var myVO:BudgetVO = new BudgetVO();
 myVO.actiondate = event.target.selectedItem.actiondate;
 myVO.amount = event.target.selectedItem.amount;
 myVO.id = event.target.selectedItem.id;
 ...

 var evt:BudgetEvent = new BudgetEvent(myVO,
 MyControl.EVENT_GET_BUDGET_DETAILS);
 CairngormEventDispatcher.getInstance().dispatchEvent(evt);

 }

 public class GetBudgetDetailsCommand implements ICommand,
 IResponder
 {

 private var currentSelectedVO:BudgetVO = null;

 public function 

[flexcoders] TextInput with Prompt

2008-10-07 Thread Geoffrey
If you don't have a lot of space for a label next to a TextInput, then
you may want to try using my TextInputPrompted class.

You use this class just like you would any other TextInput, but
there's an extra prompt property. Whatever you set prompt to is
displayed in the TextInput in light grey. Once you start typing
something in the TextInput, the prompt will go away, and the text
turns dark.

Here's a blog about it
http://gtb104.blogspot.com/2008/10/new-flex-class.html .


[flexcoders] flex library project compile errors ---bugs--- degrafa library project

2008-10-07 Thread djhatrick
Hard working peoples,

keep getting these errors like these

Could not resolve degrafa:Circle to a component implementation. 
Meanwhile, other components in the name space work.

Does upgrading to 3.1 sdk fix compiler bugs like these?  


Thanks,
Patrick



Re: [flexcoders] FileReference's DataEvent.UPLOAD_COMPLETE_DATA event being dropped randomly

2008-10-07 Thread Charlie Hubbard
Thanks Jeff.  That just might work for what I'm doing.  What a pain in the
ass, but your suggestion is pragmatic.  I'm sure others have encountered
this problem.  Any explanation about why Flex/Flash is not upholding it's
end of the bargain?  Is it just a simple issue of Flash's URLRequest timing
out waiting on the serverr?  My server is responding in about 500ms on the
low end at around 200ms on the upper end.  But, it still just drops some of
the requests.
Charlie

On Tue, Oct 7, 2008 at 9:59 AM, Battershall, Jeff 
[EMAIL PROTECTED] wrote:

Charlie,

 I spent a lot of time on this.  In my case it was only when using FireFox
 and when HTTPs was being used.  Basically the long requests time out - it is
 upload file size dependent.  What I ended up doing is listening for the
 COMPLETE event and then round-tripping to the server to retreive the data I
 wanted about the upload.  When I did my upload, I passed a UUID so I had a
 common thread I could count on.

 Even though your issue may be slightly different, using a UUID in your
 URLRequest object may help you workaround the issue.

 Jeff

  -Original Message-
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Charlie Hubbard
 *Sent:* Tuesday, October 07, 2008 7:34 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] FileReference's DataEvent.UPLOAD_COMPLETE_DATA
 event being dropped randomly


  I'm having trouble getting a DataEvent.UPLOAD_COMPLETE_DATA event when
 uploading many FileReferences.  It randomly drops events, but I get all of
 the progress events, and Event.COMPLETE.  I only get some of
 UPLOAD_COMPLETE_DATA.  I'm aware that UPLOAD_COMPLETE_DATA is not sent if
 the server doesn't return any data, but I'm sending data for all of these
 uploads (because it all traverses through he same code).  So if I get even
 one callback I should get all of them in theory. My first theory was that my
 server process was taking too long and flash timed out the response so I
 offloaded what was taking so long, but that didn't improve anything.


 Any idea what's going on here?  Any other ideas on what I can try?  I'm
 using a Ruby on Rails server backend.


 Charlie

  



[flexcoders] tabindex set but components not tabbing in order

2008-10-07 Thread blc187
I have a vbox that consists of 5 formItems, 1 checkbox, and 2 buttons, 
in that order.

I have the tabIndex of the page set up so that the formItems have a 
tabindex of 1-5, the checkbox is 6, and the buttons are 7-8.

However, when I tab through them I get all 5 formItems, then 1 button, 
then the checkbox, then the other button.

The only thing I can think is that maybe its because the one button 
that gets out of place is not enabled at the time I set the tabIndex, 
would it still be in order?
In other words, when I set the button to enabled after the tabIndexes 
are set, is there any way it could be getting stuck into the middle of 
the tab order instead of staying in spot #8 like it was originally 
assigned?



RE: [flexcoders] FileReference's DataEvent.UPLOAD_COMPLETE_DATA event being dropped randomly

2008-10-07 Thread Battershall, Jeff
Charlie,
 
Yes, PITA, for sure. 
 
I think there are a couple of related issues with FileReference uploads
and FF - particularly when SSL is involved - like sessions not being
shared and such. FF evidently clones a browser instance to do the
uploads. You can add a jsessionid on your request but that doesn't
address this timeout thing. Hopefully these issues are on the radar for
Flash Player 10. 
 
Jeff
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Charlie Hubbard
Sent: Tuesday, October 07, 2008 3:27 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FileReference's DataEvent.UPLOAD_COMPLETE_DATA
event being dropped randomly



Thanks Jeff.  That just might work for what I'm doing.  What a
pain in the ass, but your suggestion is pragmatic.  I'm sure others have
encountered this problem.  Any explanation about why Flex/Flash is not
upholding it's end of the bargain?  Is it just a simple issue of Flash's
URLRequest timing out waiting on the serverr?  My server is responding
in about 500ms on the low end at around 200ms on the upper end.  But, it
still just drops some of the requests. 

Charlie


On Tue, Oct 7, 2008 at 9:59 AM, Battershall, Jeff
[EMAIL PROTECTED] wrote:




Charlie,
 
I spent a lot of time on this.  In my case it was only
when using FireFox  and when HTTPs was being used.  Basically the long
requests time out - it is upload file size dependent.  What I ended up
doing is listening for the COMPLETE event and then round-tripping to the
server to retreive the data I wanted about the upload.  When I did my
upload, I passed a UUID so I had a common thread I could count on. 
 
Even though your issue may be slightly different, using
a UUID in your URLRequest object may help you workaround the issue. 
 
Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Charlie Hubbard
Sent: Tuesday, October 07, 2008 7:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FileReference's
DataEvent.UPLOAD_COMPLETE_DATA event being dropped randomly




I'm having trouble getting a
DataEvent.UPLOAD_COMPLETE_DATA event when uploading many FileReferences.
It randomly drops events, but I get all of the progress events, and
Event.COMPLETE.  I only get some of UPLOAD_COMPLETE_DATA.  I'm aware
that UPLOAD_COMPLETE_DATA is not sent if the server doesn't return any
data, but I'm sending data for all of these uploads (because it all
traverses through he same code).  So if I get even one callback I should
get all of them in theory. My first theory was that my server process
was taking too long and flash timed out the response so I offloaded what
was taking so long, but that didn't improve anything.




Any idea what's going on here?  Any other ideas
on what I can try?  I'm using a Ruby on Rails server backend.




Charlie








 



Re: [flexcoders] Log4J like library

2008-10-07 Thread Matt Chotin
And you know that there's a small logging framework in Flex itself right?  
Mx.logging...


On 10/6/08 9:27 PM, Anatole Tartakovsky [EMAIL PROTECTED] wrote:




have you looked at myflex.org http://myflex.org ?
Thank you
Anatole


On Mon, Oct 6, 2008 at 5:14 AM, Shahid Faiz [EMAIL PROTECTED] wrote:



Hi,

Does anyone know log4j like library for AIR applications? It is really hard to 
trace a problem when application is in testing or production without such 
utility.

Thanks,
Shahid








[flexcoders] External Item Renderer Question

2008-10-07 Thread jmfillman
I have an external item renderer (TitleWindow). When the user clicks on 
the close button of the title window, I need to remove the item render 
from the tileList dataProvider. I can do this with an internal item 
renderer, but need to use an external item renderer, but can't figure 
out how. Thanks, JF.



Re: [flexcoders] Log4J like library

2008-10-07 Thread Josh McDonald
Also useful: Use begin and end to indent the log, helps you follow logs in
recursive processes (within one class):

package pathways.logging
{
import flash.events.Event;
import flash.events.EventDispatcher;

import mx.logging.ILogger;

public class AdvancedLogger extends EventDispatcher implements ILogger
{
private var inner : ILogger;
private var operationDepth : Number = 0;

public function AdvancedLogger(wrappedLogger : ILogger)
{
inner = wrappedLogger;
}

public function get category():String
{
return inner.category;
}

public function beginOperation() : void
{
operationDepth++;
}

public function endOperation() : void
{
operationDepth = operationDepth  0 ? operationDepth - 1 : 0;
}

private function pad(message : String) : String
{
var padding : String = ;

for (var i : Number = 0; i  operationDepth; i++)
{
padding +=   ;
}

return padding + message;
}

public function log(level : int, message : String, ...parameters) :
void
{
parameters.unshift(pad(message));
parameters.unshift(level);
(inner.log).apply(inner, parameters);
}

public function debug(message:String, ...parameters):void
{
parameters.unshift(pad(message));
(inner.debug).apply(inner, parameters);
}


public function error(message:String, ...parameters):void
{
parameters.unshift(pad(message));
(inner.error).apply(inner, parameters);
}

public function fatal(message:String, ...parameters):void
{
parameters.unshift(pad(message));
(inner.fatal).apply(inner, parameters);
}

public function info(message:String, ...parameters):void
{
parameters.unshift(pad(message));
(inner.info).apply(inner, parameters);
}

public function warn(message:String, ...parameters):void
{
parameters.unshift(pad(message));
(inner.warn).apply(inner, parameters);
}
}
}



On Wed, Oct 8, 2008 at 6:58 AM, Matt Chotin [EMAIL PROTECTED] wrote:

 And you know that there's a small logging framework in Flex itself right?
  Mx.logging...


 On 10/6/08 9:27 PM, Anatole Tartakovsky [EMAIL PROTECTED]
 wrote:




 have you looked at myflex.org http://myflex.org ?
 Thank you
 Anatole


 On Mon, Oct 6, 2008 at 5:14 AM, Shahid Faiz [EMAIL PROTECTED] wrote:



 Hi,

 Does anyone know log4j like library for AIR applications? It is really hard
 to trace a problem when application is in testing or production without such
 utility.

 Thanks,
 Shahid







 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] localize drag

2008-10-07 Thread Josh McDonald
Have you tried cancelling the event from the listener for the inner
component?

-Josh

On Wed, Oct 8, 2008 at 1:33 AM, flexaustin [EMAIL PROTECTED] wrote:

 Is it possible to localize drag? I have a component a Panel that is
 draggable. Inside that component I have an accordian and inside the
 accordian I have 3 canvas's each of which has a datagrid on it.

 The issue is that when I move down to drag a column in one of the
 datagrids it drags my panel and ignores my column drag. Or actually it
 tries doing both at the same time causing the column to blink do weird
 things. Anyway, is there a way to localize the drag? Or how can I
 determine if the person is doing a column drag versus trying to drag
 the entire panel around?

 Do I need to do something contrived get mouse position make a point
 (new point()) then determine if the point is over any of the Panels
 children (so some sort of find childbyid stuff) if so then don't drag
 entire panel? Or is there a setting?\

 TIA


 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] flex and amfphp

2008-10-07 Thread karthikeyan.sivanantham
Hi guys,
  I'm a flex newbie and I'm trying to use amfphp with flex. Can 
someone suggest a good tutorial on flex and amfphp. I've gone through a 
few links but they just demonstrate a simple app, like a helloworld 
example where data is sent from the server(one way). one of the links 
I've referred is this

http://blogs.adobe.com/mikepotter/Flex%20and%20PHP%20060221.pdf

but even here, data is sent from the server and not to it. I wanna know 
how to send data to the server from the flex frontend using amfphp. 

One more question is that, when data is sent using amfphp, should the 
php code be always object oriented? 

Cheers,
Karthik





[flexcoders] Re: External Item Renderer Question

2008-10-07 Thread jmfillman
Below is the sample code for the inline renderer that I need to make 
an external item renderer. Specifically, I need help with this line:

outerDocument.buyList.removeItemAt(outerDocument.cart.selectedIndex);

Whole item renderer
*

mx:itemRenderer
 mx:Component
mx:Canvas width=100% height=42 
verticalScrollPolicy=off horizontalScrollPolicy=off

mx:Script

![CDATA[

[Embed(source=images/trash.PNG)]


public var trash:Class;



public function removeItem():void {

var newCartTotal:Number = 
outerDocument.cartTotal;

var removePrice:Number = 
[EMAIL PROTECTED];

var newTotal:Number = 
newCartTotal - removePrice;


outerDocument.buyList.removeItemAt
(outerDocument.cart.selectedIndex);

outerDocument.total.text = 
outerDocument.cartFormatter.format(newTotal);

outerDocument.cartTotal = 
newTotal;

}



]]

/mx:Script

mx:Image source=[EMAIL PROTECTED] height=38 
width=51 left=0 top=2/

mx:Label text=[EMAIL PROTECTED] left=70 top=0.75 
width=67 textAlign=center/

mx:Label text=[EMAIL PROTECTED] left=42 top=20 
width=100 textAlign=center/

mx:Button x=145 top=3 bottom=3 icon={trash} 
click=removeItem();/ 


/mx:Canvas

/mx:Component
/mx:itemRenderer



[flexcoders] Degrafa documentation?

2008-10-07 Thread Josh McDonald
Hey Guys,

Is there any more documentation for Degrafa besides the examples.degrafa and
the API reference? I'm specifically trying to find documentation on what you
can and can't do with the styles, and at the moment I'm stuck poring over
the source.

Cheers,

-Josh

-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] flex and amfphp

2008-10-07 Thread Sajid Hussain
hi ,
these will help u 
http://www.sephiroth.it/tutorials/flashPHP/flex_remoteobject/
http://www.sephiroth.it/amfphp.php (see links at left bottom)





- Original Message 
From: karthikeyan.sivanantham [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, October 8, 2008 4:46:09 AM
Subject: [flexcoders] flex and amfphp


Hi guys,
I'm a flex newbie and I'm trying to use amfphp with flex. Can 
someone suggest a good tutorial on flex and amfphp. I've gone through a 
few links but they just demonstrate a simple app, like a helloworld 
example where data is sent from the server(one way). one of the links 
I've referred is this

http://blogs. adobe.com/ mikepotter/ Flex%20and% 20PHP%20060221. pdf

but even here, data is sent from the server and not to it. I wanna know 
how to send data to the server from the flex frontend using amfphp. 

One more question is that, when data is sent using amfphp, should the 
php code be always object oriented? 

Cheers,
Karthik




  

[flexcoders] Re: External Item Renderer Question

2008-10-07 Thread Tim Hoff

Hey JF,

By external, do you mean custom itemRenderer; like in the DataGridColumn
tag itemRenderer=myItemRenderer?  If so, the same logic should work. 
Just make sure that buyList is a public variable.  However, it's
probably better to dispatch an event, from the itemRenderer, that
trigers the removal of the item from the dataProvider in the outer
class; or the model preferably.  If it's a popup, the same holds true.

-TH

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

 Below is the sample code for the inline renderer that I need to make
 an external item renderer. Specifically, I need help with this line:

 outerDocument.buyList.removeItemAt(outerDocument.cart.selectedIndex);

 Whole item renderer
 *

 mx:itemRenderer
 mx:Component
 mx:Canvas width=100% height=42
 verticalScrollPolicy=off horizontalScrollPolicy=off

 mx:Script

 ![CDATA[

 [Embed(source=images/trash.PNG)]


 public var trash:Class;



 public function removeItem():void {

 var newCartTotal:Number =
 outerDocument.cartTotal;

 var removePrice:Number =
 [EMAIL PROTECTED];

 var newTotal:Number =
 newCartTotal - removePrice;


 outerDocument.buyList.removeItemAt
 (outerDocument.cart.selectedIndex);

 outerDocument.total.text =
 outerDocument.cartFormatter.format(newTotal);

 outerDocument.cartTotal =
 newTotal;

 }



 ]]

 /mx:Script

 mx:Image source=[EMAIL PROTECTED] height=38
 width=51 left=0 top=2/

 mx:Label text=[EMAIL PROTECTED] left=70 top=0.75
 width=67 textAlign=center/

 mx:Label text=[EMAIL PROTECTED] left=42 top=20
 width=100 textAlign=center/

 mx:Button x=145 top=3 bottom=3 icon={trash}
 click=removeItem();/


 /mx:Canvas

 /mx:Component
 /mx:itemRenderer






[flexcoders] Child Panel can be dragged out of its parent Canvas

2008-10-07 Thread Mic
When adding child Panels to a Canvas with actionscript, the Panel
cannot be dragged out of the Canvas at top or left, but can be
dragged (made to disappear) at right and bottom of Canvas. Not sure
why the child is not constrained within its parent? Not sure whether
this is relevant but there is a Module as a parent:

mx:Module
   var sPanel:SuperPanel;
   target = this.canvas1;
   this.target.addChild(sPanel);

   mx:Canvas canvas1

TIA Mic.



[flexcoders] Re: Feeding complex XMLdata to charts: Flex3

2008-10-07 Thread Amy
--- In flexcoders@yahoogroups.com, john fisher [EMAIL PROTECTED] wrote:

 Good morning in PDT, and thanks for being here.
 Me: new to AS  Flex, building a Linux-based dashboard, using
 Flexbuilder alpha for Linux in Eclipse
 ( this does not have all features compared to Windows and OSX I 
believe,
 and may be buggy)
 
 *Problem:* I've been given an XML schema for incoming data thats
 complex, and well, may not be optimum. :)
 When I follow the tutorials using simple data,
 data
 item
 etheth0/eth
 packets1234/packets
 bps3005/bps
 /item
 item
 etheth1/eth
 packets517/packets
bps4335/bps
 /item
  ...
 /data
 
 I am able to get a dynamic bar chart that responds to changes in 
number
 of members of the data array of elements. But my real data is 
complex
 ( see below) and it appears to me that the dataFunc to chart series
 dataprovider connection, which understands simple arrays, gets 
confused
 with complex arrays.
 
 *What I get thats wrong:*

You might find this useful 
http://flexdiary.blogspot.com/2008/08/charting-example.html

HTH;

Amy



[flexcoders] Re: External Item Renderer Question

2008-10-07 Thread Amy
--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 
 Hey JF,
 
 By external, do you mean custom itemRenderer; like in the 
DataGridColumn
 tag itemRenderer=myItemRenderer?  If so, the same logic should 
work. 
 Just make sure that buyList is a public variable.  However, it's
 probably better to dispatch an event, from the itemRenderer, that
 trigers the removal of the item from the dataProvider in the outer
 class; or the model preferably.  If it's a popup, the same holds true.

For more info, see Question 3
http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf



[flexcoders] Re: How to make an RPC call secure

2008-10-07 Thread Abdul Razak PM
 Do you control both ends ?
  Yes Both flex and Java are my codes. Flex using Cairngorm framework
for Java uses spring and tomcat
Razak

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

 On Monday 06 Oct 2008, Abdul Razak PM wrote:
   I want to make an RPC java call secure? 
 
 Do you control both ends ?
 
 -- 
 Tom Chiverton
 Helping to challengingly market relationships
 
 
 
 
 
 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 Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  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
Solicitors Regulation Authority.
 
 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 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] Re: External Item Renderer Question

2008-10-07 Thread jmfillman
--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 
 Hey JF,
 
 By external, do you mean custom itemRenderer; like in the 
DataGridColumn
 tag itemRenderer=myItemRenderer?  If so, the same logic should 
work. 
 Just make sure that buyList is a public variable.  However, it's
 probably better to dispatch an event, from the itemRenderer, that
 trigers the removal of the item from the dataProvider in the outer
 class; or the model preferably.  If it's a popup, the same holds 
true.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote:
 
  Below is the sample code for the inline renderer that I need to 
make
  an external item renderer. Specifically, I need help with this 
line:
 
  outerDocument.buyList.removeItemAt
(outerDocument.cart.selectedIndex);
 
  Whole item renderer
  *
 
  mx:itemRenderer
  mx:Component
  mx:Canvas width=100% height=42
  verticalScrollPolicy=off horizontalScrollPolicy=off
 
  mx:Script
 
  ![CDATA[
 
  [Embed(source=images/trash.PNG)]
 
 
  public var trash:Class;
 
 
 
  public function removeItem():void {
 
  var newCartTotal:Number =
  outerDocument.cartTotal;
 
  var removePrice:Number =
  [EMAIL PROTECTED];
 
  var newTotal:Number =
  newCartTotal - removePrice;
 
 
  outerDocument.buyList.removeItemAt
  (outerDocument.cart.selectedIndex);
 
  outerDocument.total.text =
  outerDocument.cartFormatter.format(newTotal);
 
  outerDocument.cartTotal =
  newTotal;
 
  }
 
 
 
  ]]
 
  /mx:Script
 
  mx:Image source=[EMAIL PROTECTED] height=38
  width=51 left=0 top=2/
 
  mx:Label text=[EMAIL PROTECTED] left=70 top=0.75
  width=67 textAlign=center/
 
  mx:Label text=[EMAIL PROTECTED] left=42 top=20
  width=100 textAlign=center/
 
  mx:Button x=145 top=3 bottom=3 icon={trash}
  click=removeItem();/
 
 
  /mx:Canvas
 
  /mx:Component
  /mx:itemRenderer
 





[flexcoders] Re: External Item Renderer Question

2008-10-07 Thread jmfillman
Tim, Thank you for the reply!

What I mean by external is that it is not an inline itemRenderer, but 
in a separate MXML file.

My buyList array is bindable and public, but the error that I get 
is Access of undefined property outerDocument.

JF
--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 
 Hey JF,
 
 By external, do you mean custom itemRenderer; like in the 
DataGridColumn
 tag itemRenderer=myItemRenderer?  If so, the same logic should 
work. 
 Just make sure that buyList is a public variable.  However, it's
 probably better to dispatch an event, from the itemRenderer, that
 trigers the removal of the item from the dataProvider in the outer
 class; or the model preferably.  If it's a popup, the same holds 
true.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote:
 
  Below is the sample code for the inline renderer that I need to 
make
  an external item renderer. Specifically, I need help with this 
line:
 
  outerDocument.buyList.removeItemAt
(outerDocument.cart.selectedIndex);
 
  Whole item renderer
  *
 
  mx:itemRenderer
  mx:Component
  mx:Canvas width=100% height=42
  verticalScrollPolicy=off horizontalScrollPolicy=off
 
  mx:Script
 
  ![CDATA[
 
  [Embed(source=images/trash.PNG)]
 
 
  public var trash:Class;
 
 
 
  public function removeItem():void {
 
  var newCartTotal:Number =
  outerDocument.cartTotal;
 
  var removePrice:Number =
  [EMAIL PROTECTED];
 
  var newTotal:Number =
  newCartTotal - removePrice;
 
 
  outerDocument.buyList.removeItemAt
  (outerDocument.cart.selectedIndex);
 
  outerDocument.total.text =
  outerDocument.cartFormatter.format(newTotal);
 
  outerDocument.cartTotal =
  newTotal;
 
  }
 
 
 
  ]]
 
  /mx:Script
 
  mx:Image source=[EMAIL PROTECTED] height=38
  width=51 left=0 top=2/
 
  mx:Label text=[EMAIL PROTECTED] left=70 top=0.75
  width=67 textAlign=center/
 
  mx:Label text=[EMAIL PROTECTED] left=42 top=20
  width=100 textAlign=center/
 
  mx:Button x=145 top=3 bottom=3 icon={trash}
  click=removeItem();/
 
 
  /mx:Canvas
 
  /mx:Component
  /mx:itemRenderer
 





Re: [flexcoders] Log4J like library

2008-10-07 Thread Shahid Faiz
Anatole,

Thanks for the link. I have looked at myflex.org,
cimlogbookhttp://code.google.com/p/cimlogbook/,
renaun.com http://renaun.com/blog/flex-components/, and
log4fhttp://sourceforge.net/projects/log4f/but they don't provide
functionalities that are required for an AIR app. For
example I am searching for Rolling File Target, externally file based
configuration etc.

Thanks,
Shahid

On Tue, Oct 7, 2008 at 9:27 AM, Anatole Tartakovsky 
[EMAIL PROTECTED] wrote:

   have you looked at myflex.org?Thank you
 Anatole


 On Mon, Oct 6, 2008 at 5:14 AM, Shahid Faiz [EMAIL PROTECTED] wrote:

   Hi,

 Does anyone know log4j like library for AIR applications? It is really
 hard to trace a problem when application is in testing or production without
 such utility.

 Thanks,
 Shahid