RE: [flexcoders] PopupManager causes RangeError: Error #2006: adding a popup window

2007-12-18 Thread Alex Harui
The DataGrid does not like having popups come up during edit sessions.
It is trying to manage focus between editors as the popup tries to take
away the focus.
 
There's also a 'problem' in your code that itemEditEnd can be called
twice, once as you leave the cell, and again as the dg tries to move to
a new cell and you lose focus to the popup and have to kill that editor
too.  I'd add logic as to whether you have a popup up or not, I would
also regenerate the popup every time instead of re-using it and set
focus in the creationComplete handler to the button in the popup.  There
may still be cases that won't work.  I'd try to avoid this kind of UI if
possible, popups are rather jarring.  What are you really trying to
popup?  What's the user task goal?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wpbarto
Sent: Tuesday, December 11, 2007 2:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PopupManager causes RangeError: Error #2006:
adding a popup window



I saw something else similar in flexcoders, but the information 
didn't seem to apply to this case. I can create a popup window from 
a button's click handler, but THE SAME CODE used when editing a 
DataGrid cell FAILS!

Is it a bug or a mis-use of PopupManager?? Thanks for any help!

Top part of Error stack:
RangeError: Error #2006: The supplied index is out of bounds.
at flash.display::DisplayObjectContainer/addChildAt()
at 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal:
http://www.adobe.com/2006/flex/mx/internal: 
:rawChildren_addChildAt()
at mx.managers::SystemManager/addChild()
at mx.managers::PopUpManagerImpl/addPopUp()
at mx.managers::PopUpManager$/addPopUp()
at TestPopup/::onCellEdit()
at TestPopup/__pointGrid_itemEditEnd()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
entFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.controls::DataGrid/::endEdit()
at mx.controls::DataGrid/::deactivateHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
entFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.controls::DataGrid/::endEdit()

This is the smallest example I can create:

[File1: TestPopup.mxml]
==
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=absolute applicationComplete=onAppComplete()
mx:Script
![CDATA[
import mx.managers.PopUpManager;
import mx.collections.ArrayCollection;
import mx.events.DataGridEvent;
import mx.events.DataGridEventReason;

private var popWin:MyPopupWindow = null;

private var curData:ArrayCollection; // items for datagrid

private var items:ArrayCollection; // items for pop up

private function onAppComplete():void {
curData = new ArrayCollection();
curData.addItem( { ident:ORD, cityname:Chicago, IL } );
curData.addItem( { ident:ATL, cityname:Atlanta, GA } );
curData.addItem( { ident:DEN, cityname:Denver, CO } );
curData.addItem( { ident:, cityname: } ); // one blank

pointGrid.rowCount = 5;
pointGrid.dataProvider = curData;

items = new ArrayCollection();
items.addItem( {ident:JFK, cityname:New York, NY} );
items.addItem( {ident:LAX, cityname:Los Angeles, CA} );
items.addItem( {ident:SEA, cityname:Seattle, WA} );
}

private function onClick():void {
if(popWin == null) {
popWin = new MyPopupWindow();
popWin.itemChoices = items;
}
PopUpManager.addPopUp(popWin, this, true);
PopUpManager.centerPopUp(popWin);
}

private function onCellEdit(event:DataGridEvent):void {
if(event.reason == DataGridEventReason.CANCELLED)
return;
if(popWin == null) {
popWin = new MyPopupWindow();
popWin.itemChoices = items;
}
PopUpManager.addPopUp(popWin, this, true);
PopUpManager.centerPopUp(popWin);
}
]]
/mx:Script

mx:VBox
mx:Label text=Clicking the button creates popup OK: /
mx:Button id=theButton label=Click Me click=onClick()/
mx:Label text=However, editing a cell FIRST fails: /
mx:DataGrid id=pointGrid itemEditEnd=onCellEdit(event)
editable=true
mx:columns
mx:DataGridColumn id=identCol width=50 dataField=ident 
headerText=Ident/
mx:DataGridColumn id=citynameCol width=90 
dataField=cityname headerText=City/Name paddingLeft=1 
paddingRight=1/
/mx:columns
/mx:DataGrid
/mx:VBox
/mx:Application

[File2: MyPopupWindow.mxml]
==
?xml version=1.0 encoding=utf-8?
mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  layout=absolute
width=400 height=300 title=The Popup Window

mx:DataGrid id=selItemList dataProvider={itemChoices}
width=100% height=100%
mx:columns
mx:DataGridColumn id=identCol dataField=ident
headerText=Ident/
mx:DataGridColumn id=typeCol dataField=cityname
headerText=City/
/mx:columns
/mx:DataGrid
mx:ControlBar width=100%
mx:Spacer width=100%/

Re: [flexcoders] Beta 2 bug? useCache not available in URLRequest

2007-12-18 Thread Vadim Melnik
All I know is that URLRequest.useCache is native property, and it would be 
very strange if C++ implementation internally added some random string to 
request instead of working with platform specific API or implementing own from 
scratch.

--
Thanks,
Vadim.

  - Original Message - 
  From: Kevin 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, December 17, 2007 3:37 PM
  Subject: Re: [flexcoders] Beta 2 bug? useCache not available in URLRequest


  ah, thanks for the clarification.  somehow I missed that part about AIR.  It 
seem like it would not be too hard (or a security problem) to build that 
functionality into the regular version.  I implement the same functionality by 
just appending a random string onto the URL when I want to force a load from 
the server.  Somewhat of a hack, but it works...  I figured they had done a 
similar thing, but just built it into the URLRequest object.



  Thanks, kevin





  On Dec 15, 2007, at 8:07 AM, Vadim Melnik wrote:




Hi Kevin,

Didn't work with useCache before, but just looked at Flex 3 Beta 3:

useCache,  userAgent and brothers only available in URLRequest coming 
with AIR Beta 3 runtime (airglobal.swc),
But standard Flex Beta 3 runtime (playerglobal.swc) contains old restricted 
version without advanced functionality. Probably this is done due to security 
reasons...

--
Thanks,
Vadim Melnik,
http://www.docsultant.com/



  - Original Message -
  From: Kevin
  To: flexcoders@yahoogroups.com
  Sent: Thursday, December 13, 2007 7:54 PM
  Subject: [flexcoders] Beta 2 bug? useCache not available in URLRequest


  The docs say there is a new public property 'useCache' that I can set 
  to force a reload from the server of the URL. Yeah!

  BUT I can't seem to find it. It doesn't show up in code hinting and 
  putting it in throws a compiler error.

  has anyone had success using(finding) this? (I am using Flex 3 beta 
  2, nightly build 190590) Is this another bug?

  - Kevin







   

[flexcoders] Re: DataGrid ItemRenderes - How to access the {data} from the datagrid

2007-12-18 Thread oneproofdk
Hi Alex

Thanks for your reply.

I propably missed something here... but when I use {data.} in mxml it
works. But when I make a script tag that should adjust properties etc.
it says null value - here's my code:

?xml version=1.0 encoding=utf-8?
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;
paddingLeft=16 horizontalAlign=center
creationComplete=init()   
mx:Script
![CDATA[
public function init() : void
{
trace (data.publ);
}
]]
/mx:Script
mx:Label id=lblStatus name=lblStatus text={data.publ}/
/mx:VBox

TypeError: Error #1009: Cannot access a property or method of a null
object reference. right at the trace statement

Why do I get this error ?

Thanks for your time.

Mark

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

 It should just be the .data property.  What did you try?  However, I'd
 look at the examples on my blog (blogs.adobe.com/aharui).  You probably
 don't need to use VBox which is pretty heavy.
 




[flexcoders] Re: Debugging RemoteClass serialization

2007-12-18 Thread den.orlov
Possible that your AS class wasn't linked by compiler to main
application. To force its linkage you could reference it somewhere in
the main mxml file like this:

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
xmlns=*
xmlns:vo=fullpackagename.*

vo:SoggettoVO/

...

/mx:Application

Den



Re: [flexcoders] Re: Add bin folder to SVN?

2007-12-18 Thread Tom Chiverton
On Monday 17 Dec 2007, David Ham wrote:
 SVN, but as soon as I did another build it deleted that folder and
 created a new one. Then, when I try to add the new folder to SVN, or

We only check 'release versions' into SVN, and use the FB wizard to deploy to 
the web root, which is a different SVN project to the Flex source.
It doesn't wipe out that directory, though there is a bug in Jira for FB not 
letting you commit the bin folder (and getting the icon decoration wrong, may 
or may not be the same thing).

-- 
Tom Chiverton
Helping to dramatically enable interdependent channels
on: http://thefalken.livejournal.com



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
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Re: Debugging RemoteClass serialization

2007-12-18 Thread Cosma
Thank you very much for your response, Jhonny.

I tried to remove the [Managed] annotation without any effect. I also
tried another approach: I decompiled the actual Java class file and
rewrote the ActionScript looking at its getter methods, to make sure I
was perfectly matching the property names, with no luck. All
properties belongs to simple data types, such as String, Long (mapped
to Number vars) and Timestamp (mapped to Date vars). The only
exception is the immagine property, which is a byte[].. it is
correct to map it to a flash.utils.ByteArray property? I also tried to
mark it as [Transient] and to leave it out completely, still no luck.

I feel like configuring my ecplise projects to use a red5 installation
each time I need to see what's going on behind the scenes with
remoting is a little intrusive.. really there isn't a simpler way?
I'll keep it as a last resort, but I'd like to find an alternative
solution.. anyway, thank you!

Cosma



RE: [flexcoders] Re: Scale 9 not being picked up

2007-12-18 Thread Mark Ingram
Is this the case for symbols too? i.e. if I'm just using a symbol will
it automatically scale rather than resize?

 

Mark

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 13 December 2007 16:03
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Scale 9 not being picked up

 

Image will resize the SWF.  The SWF will have to resize the symbol that
has scale9 on it, and not just scale the SWF.  You might need to use a
Flex SWF to wrap the symbol so the Image code does a resize and not a
scale.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: Thursday, December 13, 2007 12:42 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Scale 9 not being picked up

 

Yes, I'm using an Image control. The image loads a SWF and the SWF has
scale-9 built into it.

Will this not work then? Is there any way to make this work? I've tried
using the scale-9 embedding properties but that won't work either!

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 12 December 2007 17:43
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Scale 9 not being picked up

 

Are you sizing the assets directly or are they wrapped by Image or
something like that?  I don't think scale9 is recursive.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: Wednesday, December 12, 2007 1:40 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Scale 9 not being picked up

 

We have one main assets swf which contains multiple symbols. We
reference several of these references and the designer has applied
scale-9 to each of the symbols - but when it comes to viewing them in
Flex, the scale-9 doesn't work (it just stretches normally).

 

Mark

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of scalenine
Sent: 11 December 2007 19:08
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Scale 9 not being picked up

 

Are you using bitmaps as skins in your Flash file? If so, I don't
believe scale-9 will punch through to those bitmaps in either
scenario. You would have to pull those bitmaps out of the Flash file
as separate assets.

Regarding the arrow getting stretched, are you using Flex 2? The
reason I ask is because in Flex 2 the arrow icon has to be part of the
ComboBox, thus it will stretch even with scale-9 applied to it. You
could try to change this by setting both vertical scale grids above o
below the arrow. However, if you are using rounded corner those would
end up getting stretched. Other wise you might have to create
different skins for ComboBoxes with different heights.

I believe the issue is being resolved in Flex 3 with a new property
called arrowIcon making the icon separate from the skin so the skin
scales separately from the arrowIcon.

I'm not sure about the ScrollBars. I've found that sometime adjusting
the scale grids on the ScrollBar arrow skins can fix the issue.

HTH,

Juan

scalenine.com : degrafa.com : ocflex.org : branddoozie.com :
atomiccurve.com

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

 I've also had trouble with this. I can't get scale-9 with flash assets
 to work at all (either by setting scale-9 via CS3 or by setting
scale-9
 in stylesheet). 
 
 
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of polestar11
 Sent: 11 December 2007 08:58
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Scale 9 not being picked up
 
 
 
 Hi There
 
 Does anyone have any idea why flash symbols for skinned controls with
 scale-9 would not be picked up? Specifically arrows for the ComboBoxes
 and Scrollbars. Scaling the resources in Flash also results in the
 arrow symbols being scaled incorrectly with no scale-9.
 
 Cheers
 Tracy


 



[flexcoders] Re: Debugging RemoteClass serialization

2007-12-18 Thread Cosma
--- In flexcoders@yahoogroups.com, den.orlov [EMAIL PROTECTED] wrote:

 Possible that your AS class wasn't linked by compiler to main
 application. To force its linkage you could reference it somewhere in
 the main mxml file like this:
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 xmlns=*
 xmlns:vo=fullpackagename.*
 
 vo:SoggettoVO/
 
 ...
 
 /mx:Application
 
 Den


Thank you Den,
but I'm already referencing it that way in my mxml..

Cosma





[flexcoders] Possible mx:SetEventHandler / bug

2007-12-18 Thread mydarkspoon
Hi,

I encountered an error using the SetEventHandler and made a simple
test case to see what was the problem:
In my app I have a component that contains button and dispatches a
goPrevious event when the component::button is clicked.
Following the goPrevious event, the main app changes its state.  The
new state uses the SetEventHandler to change the goPreviousHandler:

My main app:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute xmlns:local=* creationComplete=init()
mx:Script
![CDATA[
import mx.controls.Alert;

private function init():void
{
trace(document.toString());
}
private function onClick1(evt:Event):void
{
Alert.show(chnaging from state 1 to state 2);
currentState = myState
}

private function onClick2(evt:Event):void
{
Alert.show(state 2);
}
]]
/mx:Script

mx:states
mx:State name=myState
mx:SetProperty target={bt} name=alpha value=0.2 /
!--mx:SetEventHandler target={bt} 
handlerFunction=onClick2
name=goPrevious / --
/mx:State
/mx:states
local:MyButton id=bt goPrevious=onClick1(event) /
!--mx:Button id=bt click=onClick1()  / --
/mx:Application

---
The Component:

?xml version=1.0 encoding=utf-8?
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100
height=100 
click=onClick() creationPolicy=auto 
mx:Metadata
[Event(name=goPrevious, type=events.NavigationEvent)]
/mx:Metadata

mx:Script
![CDATA[
import events.NavigationEvent;

private function onClick():void
{
dispatchEvent(new 
NavigationEvent(NavigationEvent.GO_PREVIOUS));
}
]]
/mx:Script
mx:Button label=previous click=onClick() /
/mx:VBox



And this is the error you get from the SetEventH/handler object:

ReferenceError: Error #1069: Property __bt_goPrevious not found on
MyButton and there is no default value.
at mx.states::SetEventHandler/apply()


It seems that inside the SetEventHandler.apply() function it can't
find the oldHandlerFunction.


I'm struggling this bug for hours now and been goggling it a lot, yet
nothing useful was found...

I'd be grateful if anyone take a look at that.

Thanks in advance, 
Almog Kurtser



Re: [flexcoders] Cairngorm + RemoteObject + Java + BlazeDS.

2007-12-18 Thread Manu Dhanda

Hii Tom,

It's my delegate code snippet:
public function LoginDelegate( responder : IResponder )
{
this.service = ServiceLocator.getInstance().getRemoteObject( 
loginService
);
trace(In LoginDelegate line 12 +this.service.toString() );
this.responder = responder;
}

public function isValidLogin( loginVO : LoginVO ): void
{
trace(In LoginDelegate line 18 +loginVO.coreId );
var call : Object = service.isValidLogin(loginVO);
trace(In LoginDelegate line 20 +call.toString() );
call.addResponder( responder );
}

Any further guidance will help.
Thanks,
Manu.


Tom Chiverton-2 wrote:
 
 On Monday 17 Dec 2007, Manu Dhanda wrote:
 Using Cairngorm, do we anywhere need to define something like that:
 
 You'll have that call in your Delegate class. I didn't see that in the 
 snippits of code you gave.
 
 -- 
 Tom Chiverton
 Helping to enormously harvest second-generation customers
 on: http://thefalken.livejournal.com
 
 
 
 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
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Cairngorm-%2B-RemoteObject-%2B-Java-without-FDS%28LCDS%29.-tp14291250p14393062.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Possible mx:SetEventHandler / bug

2007-12-18 Thread rueter007
Hey,

I ran your code and I could reproduce the error you got. It seems like
a bug in the SetEventHandler code. However, if you add the initial
event listener in actionscript, it all works fine.

private function init():void
{
trace(document.toString());
bt.addEventListener(change, onClick1);
}

- venkat
http://www.venkatj.com


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

 Hi,
 
 I encountered an error using the SetEventHandler and made a simple
 test case to see what was the problem:
 In my app I have a component that contains button and dispatches a
 goPrevious event when the component::button is clicked.
 Following the goPrevious event, the main app changes its state.  The
 new state uses the SetEventHandler to change the goPreviousHandler:
 
 My main app:
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute xmlns:local=* creationComplete=init()
   mx:Script
   ![CDATA[
   import mx.controls.Alert;
   
   private function init():void
   {
   trace(document.toString());
   }
   private function onClick1(evt:Event):void
   {
   Alert.show(chnaging from state 1 to state 2);
   currentState = myState
   }
   
   private function onClick2(evt:Event):void
   {
   Alert.show(state 2);
   }
   ]]
   /mx:Script
   
   mx:states
   mx:State name=myState
   mx:SetProperty target={bt} name=alpha value=0.2 /
   !--mx:SetEventHandler target={bt} 
 handlerFunction=onClick2
 name=goPrevious / --
   /mx:State
   /mx:states
   local:MyButton id=bt goPrevious=onClick1(event) /
   !--mx:Button id=bt click=onClick1()  / --
 /mx:Application
 
 ---
 The Component:
 
 ?xml version=1.0 encoding=utf-8?
 mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100
 height=100 
   click=onClick() creationPolicy=auto 
 mx:Metadata
   [Event(name=goPrevious, type=events.NavigationEvent)]
 /mx:Metadata
 
 mx:Script
   ![CDATA[
   import events.NavigationEvent;
   
   private function onClick():void
   {
   dispatchEvent(new 
 NavigationEvent(NavigationEvent.GO_PREVIOUS));
   }
   ]]
 /mx:Script
   mx:Button label=previous click=onClick() /
 /mx:VBox
 
 
 
 And this is the error you get from the SetEventH/handler object:
 
 ReferenceError: Error #1069: Property __bt_goPrevious not found on
 MyButton and there is no default value.
   at mx.states::SetEventHandler/apply()
 
 
 It seems that inside the SetEventHandler.apply() function it can't
 find the oldHandlerFunction.
 
 
 I'm struggling this bug for hours now and been goggling it a lot, yet
 nothing useful was found...
 
 I'd be grateful if anyone take a look at that.
 
 Thanks in advance, 
 Almog Kurtser





[flexcoders] Re: Possible mx:SetEventHandler / bug

2007-12-18 Thread mydarkspoon
Hi,
first of all, thanks for the reply, I had a piece of my main app code
commented, so if you just copied and paste it, you won't see the bug
immediately, sorry, the fixed code is bellow.

I tried to use actionscript addEventListener, yet, the problem with
this approach is that SetEventHandlet purpose is to replace the
handling function, however, it won't unregister actionscript event
listeners, so the error won't show up but now we'll have 2 listeners
instead of 1.
 
The good code (still with the bug):

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute xmlns:local=* creationComplete=init()
mx:Script
![CDATA[
import mx.controls.Alert;

private function onClick1(evt:Event):void
{
Alert.show(chnaging from state 1 to state 2);
currentState = myState
}

private function onClick2():void
{
Alert.show(state 2);
}
]]
/mx:Script

mx:states
mx:State name=myState
mx:SetEventHandler target={bt} handler=onClick2()
name=goPrevious /
/mx:State
/mx:states
local:MyButton id=bt goPrevious=onClick1(event) /
/mx:Application


Thanks a lot,

Almog Kurtser




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

 Hey,
 
 I ran your code and I could reproduce the error you got. It seems like
 a bug in the SetEventHandler code. However, if you add the initial
 event listener in actionscript, it all works fine.
 
   private function init():void
   {
   trace(document.toString());
   bt.addEventListener(change, onClick1);
   }
 
 - venkat
 http://www.venkatj.com
 
 
 --- In flexcoders@yahoogroups.com, mydarkspoon mydarkspoon@ wrote:
 
  Hi,
  
  I encountered an error using the SetEventHandler and made a simple
  test case to see what was the problem:
  In my app I have a component that contains button and dispatches a
  goPrevious event when the component::button is clicked.
  Following the goPrevious event, the main app changes its state.  The
  new state uses the SetEventHandler to change the goPreviousHandler:
  
  My main app:
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute xmlns:local=* creationComplete=init()
  mx:Script
  ![CDATA[
  import mx.controls.Alert;
  
  private function init():void
  {
  trace(document.toString());
  }
  private function onClick1(evt:Event):void
  {
  Alert.show(chnaging from state 1 to state 2);
  currentState = myState
  }
  
  private function onClick2(evt:Event):void
  {
  Alert.show(state 2);
  }
  ]]
  /mx:Script
  
  mx:states
  mx:State name=myState
  mx:SetProperty target={bt} name=alpha value=0.2 /
  !--mx:SetEventHandler target={bt} 
  handlerFunction=onClick2
  name=goPrevious / --
  /mx:State
  /mx:states
  local:MyButton id=bt goPrevious=onClick1(event) /
  !--mx:Button id=bt click=onClick1()  / --
  /mx:Application
  
  ---
  The Component:
  
  ?xml version=1.0 encoding=utf-8?
  mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100
  height=100 
  click=onClick() creationPolicy=auto 
  mx:Metadata
  [Event(name=goPrevious, type=events.NavigationEvent)]
  /mx:Metadata
  
  mx:Script
  ![CDATA[
  import events.NavigationEvent;
  
  private function onClick():void
  {
  dispatchEvent(new 
  NavigationEvent(NavigationEvent.GO_PREVIOUS));
  }
  ]]
  /mx:Script
  mx:Button label=previous click=onClick() /
  /mx:VBox
  
  
  
  And this is the error you get from the SetEventH/handler object:
  
  ReferenceError: Error #1069: Property __bt_goPrevious not found on
  MyButton and there is no default value.
  at mx.states::SetEventHandler/apply()
  
  
  It seems that inside the SetEventHandler.apply() function it can't
  find the oldHandlerFunction.
  
  
  I'm struggling this bug for hours now and been goggling it a lot, yet
  nothing useful was found...
  
  I'd be grateful if anyone take a look at that.
  
  Thanks in advance, 
  Almog Kurtser
 





[flexcoders] Re: Click event in Flex 3 TileList no longer sets selectedItem when...

2007-12-18 Thread Rich Germuska
OK, stumbled upon a fix by pure chance. Is this a bug?

By importing UIMovieClip and creating an instance (in a completely 
separate component, that isn't even instantiated at runtime at the 
time this issue occurs) this issue resolves!

i.e. a click event on the itemRenderer will now also set the 
selectedIndex on the TileList.

No idea why. Anyone?

Cheers, Rich

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

 Hi all, 
 
 Am in process of migrating app to Flex 3, as bug in 2.01 prevents 
 applying Fade to Flash CS3 MovieClips, which is essential for app 
 (see another flexcoders thread).
 
 Anyway, the first issue I have encountered is that TileLists are 
 behaving differently.
 
 The TileList click event no longer sets selectedItem when it is 
 triggered by a mouse click over the itemRenderer itself.
 
 What's more the itemClick event is just not detected when the 
trigger 
 is a mouse click over the itemRenderer.
 
 In the code below SWFWrapper is a subclass of SWFLoader, and is 
 loaded with a Flash CS3 swf.
 
 Here's some code that worked fine in 2.01
 
 mx:TileList id=browserTL
 borderThickness=0
 rollOverColor=#ff
 selectionColor=#00ff00
 click=tileListClickHandler()
 useHandCursor=true
 right=0
 top=0
 width={main.TILELIST_WIDTH}
 columnWidth=120 
 rowHeight=146
 columnCount=3
 rowCount=3
 dataProvider={browserAC}
 
 mx:itemRenderer
 mx:Component
 mx:Canvas
 treelinerugs:SWFWrapper id=thumbSWF
   horizontalCenter=0
   verticalCenter=0
   source={Rug(data).SWFSource}
   dataProvider={Rug(data).dataProvider}  
   yarnsAC={main.yarnsAC} 
   width=80
   height={data.originalAspectRatio*80} /
   /mx:Canvas
 /mx:Component
 /mx:itemRenderer
 
 /mx:TileList  
 
 Looking forward to all of the goodness ahead once I've migrated.
 
 Many thanks, Rich
 
 PS Is there a newbie guide to migrating from 2.01 to 3 anywhere? 
I'm 
 not expecting anything exhaustive - but just some hints for 
commonly 
 used Classes that will require reworking.





[flexcoders] Re: Possible mx:SetEventHandler / bug

2007-12-18 Thread rueter007
I uncommented that line from your code before and did see the error.
And I agree that there are two event listeners now. If all you want to
do is replace the old event listener with a new one, you can still
listen for a state change event and in the event handler, manually
remove the old listener and add the new event listener.

this.addEventListener(StateChangeEvent.CURRENT_STATE_CHANGE,
handleStateChange);

in the handleStateChange, you can check what the new state is and
add/remove event listeners accordingly.

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

 Hi,
 first of all, thanks for the reply, I had a piece of my main app code
 commented, so if you just copied and paste it, you won't see the bug
 immediately, sorry, the fixed code is bellow.
 
 I tried to use actionscript addEventListener, yet, the problem with
 this approach is that SetEventHandlet purpose is to replace the
 handling function, however, it won't unregister actionscript event
 listeners, so the error won't show up but now we'll have 2 listeners
 instead of 1.
  
 The good code (still with the bug):
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute xmlns:local=* creationComplete=init()
   mx:Script
   ![CDATA[
   import mx.controls.Alert;
   
   private function onClick1(evt:Event):void
   {
   Alert.show(chnaging from state 1 to state 2);
   currentState = myState
   }
   
   private function onClick2():void
   {
   Alert.show(state 2);
   }
   ]]
   /mx:Script
   
   mx:states
   mx:State name=myState
   mx:SetEventHandler target={bt} handler=onClick2()
 name=goPrevious /
   /mx:State
   /mx:states
   local:MyButton id=bt goPrevious=onClick1(event) /
 /mx:Application
 
 
 Thanks a lot,
 
 Almog Kurtser
 
 
 
 
 --- In flexcoders@yahoogroups.com, rueter007 rueter007@ wrote:
 
  Hey,
  
  I ran your code and I could reproduce the error you got. It seems like
  a bug in the SetEventHandler code. However, if you add the initial
  event listener in actionscript, it all works fine.
  
  private function init():void
  {
  trace(document.toString());
  bt.addEventListener(change, onClick1);
  }
  
  - venkat
  http://www.venkatj.com
  
  
  --- In flexcoders@yahoogroups.com, mydarkspoon mydarkspoon@ wrote:
  
   Hi,
   
   I encountered an error using the SetEventHandler and made a simple
   test case to see what was the problem:
   In my app I have a component that contains button and dispatches a
   goPrevious event when the component::button is clicked.
   Following the goPrevious event, the main app changes its
state.  The
   new state uses the SetEventHandler to change the
goPreviousHandler:
   
   My main app:
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   layout=absolute xmlns:local=* creationComplete=init()
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 
 private function init():void
 {
 trace(document.toString());
 }
 private function onClick1(evt:Event):void
 {
 Alert.show(chnaging from state 1 to state 2);
 currentState = myState
 }
 
 private function onClick2(evt:Event):void
 {
 Alert.show(state 2);
 }
 ]]
 /mx:Script
 
 mx:states
 mx:State name=myState
 mx:SetProperty target={bt} name=alpha value=0.2 /
 !--mx:SetEventHandler target={bt} 
   handlerFunction=onClick2
   name=goPrevious / --
 /mx:State
 /mx:states
 local:MyButton id=bt goPrevious=onClick1(event) /
 !--mx:Button id=bt click=onClick1()  / --
   /mx:Application
   
   ---
   The Component:
   
   ?xml version=1.0 encoding=utf-8?
   mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100
   height=100 
 click=onClick() creationPolicy=auto 
   mx:Metadata
 [Event(name=goPrevious, type=events.NavigationEvent)]
   /mx:Metadata
   
   mx:Script
 ![CDATA[
 import events.NavigationEvent;
 
 private function onClick():void
 {
 dispatchEvent(new 
   NavigationEvent(NavigationEvent.GO_PREVIOUS));
 }
 ]]
   /mx:Script
 mx:Button 

Re: [flexcoders] layout / scrolling issues

2007-12-18 Thread Giles Roadnight
If anyone else has this issues I've foudn the solution to the first item.
the problem was that a VBox set to height=100% would stretch it's
container which would force scroll bars to pup up in unexpected places.

The way to get round this is to put the VBox inside a canvas. If you set
both to height=100% the canvas behaves and does not stretch it's parent,
the VBox then fits within the canvas and the canvas scrolls the VBox

Hopefully someone will find that useful.

On Dec 17, 2007 10:47 AM, Giles Roadnight [EMAIL PROTECTED] wrote:

   Hi All

 I have a couple of niggling lay out issues that I can't seem to
 resolve and was hoping that someone could help me with them.

 I have a popup with an HBox in. on the left I have VBOx (lets call it
 the controls Vbox) and on the right a text area. Both have height=100%.

 With in the controls Vbox I have several text boxes, buttons ect and I
 have another VBox (lets call it dynamic text box). This also has heing
 set to 100%.

 This dynamic box gets controls dynamically added to it - no way of
 knowing how many. These controls always make the controls VBox taller
 than the popup and the popup then produces scrollbars so that I can't
 see the buttons at the bottom of the controls VBox or the bottom of
 the text area.
 What I want to happen is for scroll bars to appear on the dynamic text
 box. I can only get this to happen if I set the height to for example
 100 but then it does not stretch to make use of the whole height of
 the controls VBox.

 How do I get round this?

 The other problem is a bit easier to explain. I have a toggle button
 bar across the top of my app with width=100%. With all the buttons
 in there the width is probably about 1500 pixels. On my 1200 * 1600
 screen this works fine - it fills the whole width. If I then restore
 my browser and re-size the window for example 800 pixels the bar
 re-sizes and button labels are cut off with ... at the end and
 tooltips. All this is as expected.
 If a user on a 800*600 screen opens this app though the button bar is
 still around 1500 pixels and stretches the whole app well beyond the
 bounds of the screen. This seems like a bug to me

 Any suggestions?

 Many Thanks

  




-- 
Giles Roadnight
http://giles.roadnight.name


[flexcoders] Re: Possible mx:SetEventHandler / bug

2007-12-18 Thread mydarkspoon
I think I'll use this, it certainly can help hacking this bug, but I
can't believe this bug hasn't been talked before, maybe there is less
hacky way to deal with it ?

Anyway, that really helps me, thank you !

Cheers,
Almog Kurtser


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

 I uncommented that line from your code before and did see the error.
 And I agree that there are two event listeners now. If all you want to
 do is replace the old event listener with a new one, you can still
 listen for a state change event and in the event handler, manually
 remove the old listener and add the new event listener.
 
 this.addEventListener(StateChangeEvent.CURRENT_STATE_CHANGE,
 handleStateChange);
 
 in the handleStateChange, you can check what the new state is and
 add/remove event listeners accordingly.
 
 --- In flexcoders@yahoogroups.com, mydarkspoon mydarkspoon@ wrote:
 
  Hi,
  first of all, thanks for the reply, I had a piece of my main app code
  commented, so if you just copied and paste it, you won't see the bug
  immediately, sorry, the fixed code is bellow.
  
  I tried to use actionscript addEventListener, yet, the problem with
  this approach is that SetEventHandlet purpose is to replace the
  handling function, however, it won't unregister actionscript event
  listeners, so the error won't show up but now we'll have 2 listeners
  instead of 1.
   
  The good code (still with the bug):
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute xmlns:local=* creationComplete=init()
  mx:Script
  ![CDATA[
  import mx.controls.Alert;
  
  private function onClick1(evt:Event):void
  {
  Alert.show(chnaging from state 1 to state 2);
  currentState = myState
  }
  
  private function onClick2():void
  {
  Alert.show(state 2);
  }
  ]]
  /mx:Script
  
  mx:states
  mx:State name=myState
  mx:SetEventHandler target={bt} handler=onClick2()
  name=goPrevious /
  /mx:State
  /mx:states
  local:MyButton id=bt goPrevious=onClick1(event) /
  /mx:Application
  
  
  Thanks a lot,
  
  Almog Kurtser
  
  
  
  
  --- In flexcoders@yahoogroups.com, rueter007 rueter007@ wrote:
  
   Hey,
   
   I ran your code and I could reproduce the error you got. It
seems like
   a bug in the SetEventHandler code. However, if you add the initial
   event listener in actionscript, it all works fine.
   
 private function init():void
 {
 trace(document.toString());
 bt.addEventListener(change, onClick1);
 }
   
   - venkat
   http://www.venkatj.com
   
   
   --- In flexcoders@yahoogroups.com, mydarkspoon mydarkspoon@
wrote:
   
Hi,

I encountered an error using the SetEventHandler and made a simple
test case to see what was the problem:
In my app I have a component that contains button and dispatches a
goPrevious event when the component::button is clicked.
Following the goPrevious event, the main app changes its
 state.  The
new state uses the SetEventHandler to change the
 goPreviousHandler:

My main app:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute xmlns:local=* creationComplete=init()
mx:Script
![CDATA[
import mx.controls.Alert;

private function init():void
{
trace(document.toString());
}
private function onClick1(evt:Event):void
{
Alert.show(chnaging from state 1 to 
state 2);
currentState = myState
}

private function onClick2(evt:Event):void
{
Alert.show(state 2);
}
]]
/mx:Script

mx:states
mx:State name=myState
mx:SetProperty target={bt} name=alpha 
value=0.2 /
!--mx:SetEventHandler target={bt}
handlerFunction=onClick2
name=goPrevious / --
/mx:State
/mx:states
local:MyButton id=bt goPrevious=onClick1(event) /
!--mx:Button id=bt click=onClick1()  / --
/mx:Application

---
The 

[flexcoders] Re: flex3 b3 color coding missing?

2007-12-18 Thread andrewwestberg
I think you need to uninstall all previous betas before installing
this one.



[flexcoders] TitleWindow activation

2007-12-18 Thread reflexactions
We have an application where we use the PopUpManager to add a number of 
TitleWindows.

I want to know when a window is activated i.e. it is clicked on and the 
window is brought to the front and vice versa when it ceases to be the 
topmost window.

I thought the track focusin/focusout would be the solution but this 
doesnt appear to always work as expected.

It seem clicking on a window doesnt give it focus it just brings it to 
the top, only clicking into a control in that window actually causes 
focus to be set.

FocusIn/FocusOut seems to work only when I click on a TitleWindow once 
I have previously clicked in to a control in that window and also the 
same for window that is being moved backwards.

So  what event can I listen to know when a window is clicked on or 
is brought to the front by the PopUpManager.bringToFront?

Hope thats clear..
tks



[flexcoders] LCDS/Data Management, lazy references to child objects are replaced with ids of that referenced objects

2007-12-18 Thread Den Orlov
I've read LCDS/Data Management docs about managing object associations
several times and still can't understand what should I return from my
assembler in the case of lazy references.

Docs states several times that I should return object where references to
child objects are replaced with ids of that referenced objects. But what are
this ids (UID, id property marked in destination, something other)? Where
they should be populated, what property of what object? Example of fill
method that return not fully populated object would be very helpful.

Den


[flexcoders] LCDS, FDMS, Custom serialization of lazy references

2007-12-18 Thread Den Orlov
I can't find information at LCDS/Data Management Services documentation
about proper way of custom serialization of lazy references. I mean what
should I write at readExternal()/writeExternal() for java/as Managed object
that have lazy reference to other Managed object.

Den


[flexcoders] Flex - JSP Tag Library

2007-12-18 Thread bantisk
Hi,
I am using JSP tag library to embed my flex code in JSP.
I want to know that can i access a array from jsp and if yes then  how?
If have any example that will be great.




[flexcoders] Test

2007-12-18 Thread Fabio Serra

-- 
FABIO SERRA - faser(at)faser.net
PGP available



[flexcoders] Flex JavaFX Sliverlight Flash

2007-12-18 Thread debussy007

Hi,

I need to develop an application which will allow users to interact with my
server via a tactil screen.
I have several question here.
What technology should I use ? What type of application is the most adapted
for tose kind of screens ?
A Macromedia Flash application ?
A Flex application ?
A JavaFX application ?
Standard web pages ?
A heavy client ? (Swing or other) ?

Any advice / comment will be greatly appreciated.
Thank you for any kind help !
-- 
View this message in context: 
http://www.nabble.com/Flex-%3C%3E-JavaFX-%3C%3E-Sliverlight-%3C%3E-Flash-tp14384496p14384496.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Non-debug mode movie cannot be used for profiling?

2007-12-18 Thread aaron smith
Hey All, I hit this small issue with Flex builder and the profiler. I have
9.0.115 of the debug player installed. And the profiler WAS working fine,
but now for some reason I get that error message.. Non-debug mode movie
cannot be used for profiling. I've tried going directly to the profile view
and clicking profile Profile External Application, and pointing to my swf.
But no go. I've also tried uninstalling and re-installing the player.. hm?

Any ideas? I'm on mac intel..

Thanks all
-A


[flexcoders] Re: Issues with AdvancedDataGrid

2007-12-18 Thread Jason Sheedy
The second issue i mentioned has been resolved. There was a problem
with the itemRenderer causing it not to refresh properly when the list
was scrolling. Basically, I was setting adding the renderer child
elements onCreationComplete .. for some reason this didn't refresh
properly when scrolling .. don't know why. The solution was to include
the child elements in mxml.

The issue with Drag n Drop still exists, so if anyone has any tips on
this it would be appreciated. ;)

On 18/12/2007, Jason Sheedy [EMAIL PROTECTED] wrote:
 Hi guys. I haven't posted to flex coders much, so this issue may have
 already been discussed. Please forgive me, but I couldn't find any
 information on it online.

 I've found a couple of strange issues with AdvancedDataGrid in Flex 3 beta 3.

 1. Drag 'n' Drop just doesn't seem to work. I have two ADG's and
 enable d n d on both of them.  The api says it's supported, but it's
 not working for me.

 2. My data grid uses a grouped column and a value column that uses an
 item renderer to display it's content. It works ok it the list is
 short, but after adding more elements to the list and branching it out
 so that the scroll bar appears, all of the items in the value
 (itemRenderer) column seem to go out of order.. In looking at the
 underlying arrayCollection the data itself is still grouped/ordered
 properly, but in the display the items are out of sync .. it seems as
 though the view isn't refreshing properly.

 Any ideas?

 --
 Jason Sheedy
 www.bytespring.com
 www.jmpj.net
 -
 -



-- 
Jason Sheedy
www.bytespring.com
www.jmpj.net
-
-


[flexcoders] Flex - JSP Tag Library

2007-12-18 Thread Dinesh Kulkarni

Hi, 

Can i access the array or Object  available in JSP in flex. If yes then how? 
If any one have example or a link that will help too.

Thanks in advance.

Dinesh





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 



[flexcoders] Re: DataGrid LinkButton - How to get columnIndex and rowIndex when linkButton is

2007-12-18 Thread valdhor
Here is my itemRenderer...

package customcomponents
{
import flash.events.*;
import mx.controls.*;
import mx.controls.dataGridClasses.DataGridListData;
import mx.core.*;

public class CellField extends LinkButton
{
public var fieldValue:String;

public function CellField()
{
super();
addEventListener(MouseEvent.CLICK, 
Application.application.cellClick);
}

override public function set data(value:Object):void
{
if(value != null)
{
super.data = value;

fieldValue = 
value[DataGridListData(listData).dataField];

if (Number(fieldValue) == 0)
{
label = 0;
enabled = false;
useHandCursor = false;
}
else
{
label = fieldValue;
enabled = true;
useHandCursor = true;
setStyle(color, #FF);
setStyle(textDecoration, underline);
setStyle(textRollOverColor:, 
#CC);
}
}
}
}
}

And here is how I am using it...

mx:DataGridColumn id=ConfigChangesColumn
headerText={newline}Config{newline}Changes dataField=configchanges
width=60 sortable=false itemRenderer=customcomponents.CellField/

and here is the cellclick function...

public function cellClick(event:Event):void
{
Alert.show(String(event.currentTarget));
}

So, now I need to know which cell was clicked.

Any help would be most appreciated.


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

 Where are you adding the event listener?  Can you use itemClick event?
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of valdhor
 Sent: Monday, December 17, 2007 12:59 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] DataGrid LinkButton - How to get columnIndex and
 rowIndex when linkButton is cli
 
 
 
 Hi
 
 I am a newbie with a problem - I have a datagrid with an itemRenderer.
 The itemRenderer is an AS class that extends LinkButton and just
 checks if the data is 0 or not. If it is 0 then disable the button.
 Then it adds an event listener:
 
 addEventListener(MouseEvent.CLICK, Application.application.cellClick);
 
 This function gets called correctly but now I need to get the
 columnIndex and rowIndex of the cell that the linkbutton was in. The
 target and currentTarget are the same (The custom ItemRenderer class).
 If I then try parentDocument, it returns the panel that holds the
 datagrid. None of the panels or datagrids have ID's as they are
 created on the fly based on a HTTPService lookup.
 
 Can anyone tell me how to go about getting the columnIndex and
 rowIndex of the clicked linkbutton?
 
 Best Regards
 
 Steve





[flexcoders] Remove Object ref

2007-12-18 Thread Matt
In ActionScript if I create:

var obj:Object = new Object();
obj.first = 'One';
obj.second = 'Two';
obj.third = 'Three';

and then I want to remove 'second' from the Object how would I do so?
I've tried setting it to null:

obj.second = null;

However, that leaves it still existing if I iterate over it. Is there
any way to completely remove it?



[flexcoders] Re: shared object problem

2007-12-18 Thread Rick Root
ping

On 12/17/07, Rick Root [EMAIL PROTECTED] wrote:
 Hi,

 I'm having a problem with a shared object.. it contains basically a
 coldfusion structure that holds a bunch of query reuslts and other
 structure elements.

 For some reason, I've started having trouble loading the shared object.

 I'm using Flex Builder 3 beta 2, compiling with the 2.0.1 hot fix 3 SDK.

 The specific error  is:
 RangeError: Error #2006: The supplied index is out of bounds.
at ObjectInput/readObject()
at 
 mx.collections::ArrayList/readExternal()[C:\dev\flex_201_gmc\sdk\frameworks\mx\collections\ArrayList.as:451]
at 
 mx.collections::ArrayCollection/readExternal()[C:\dev\flex_201_gmc\sdk\frameworks\mx\collections\ArrayCollection.as:130]
at ObjectInput/readObject()
at 
 mx.utils::ObjectProxy/readExternal()[E:\dev\flex_201_borneo\sdk\frameworks\mx\utils\ObjectProxy.as:510]
at flash.net::SharedObject$/getLocal()
at 
 views.criteria::queryTool/initQueryTool()[E:\Inetpub\flexProjects\Enquire\views\criteria\queryTool.mxml:43]
at Enquire/initPostAuth()

 The line in question is simply this:

soListData = SharedObject.getLocal('erListData3','/');

 I haven't changed my code that deals with this shared object at all in
 quite some time I've only made a minor change to the coldfusion
 code that generates the structure of data but when I undo those
 changes, the problem is still occuring.

 I'm at a loss to figure out what's going on.. does anyone have any 
 suggestions?

 Rick

 --
 Rick Root
 Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at
 www.opensourcecf.com



-- 
Rick Root
Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at
www.opensourcecf.com


[flexcoders] datagrid dataprovider versus backing arrayCollection

2007-12-18 Thread j_lentzz
Hi,

I have an app with a dataGrid that has an arrayCollection as the
provider.  The dataProvider is set via binding (dataProvider =
{dgAC})  However, I've noticed that I get a different collection
depending on whether I ask for dg.dataProvider or use dgAC.  Could
someone please explain the difference between these two?  I thought
they would reference the same data, but if I use (dg.dataProvider as
ArrayCollection).list.toArray() and dgAC.list.toArray(), I don't get
the same set of data.  In my program, I'm adding a property to an
object in dgAC, that doesn't have a column in the datagrid, but I
thought that dg.dataProvider would return the complete arrayCollection
anyway.

Any enlightenment would be greatly appreciated.

Thank you,

John



[flexcoders] Multiple Series On One CategoryAxis

2007-12-18 Thread closec12002
I'm having an issue with getting multiple series to plot correctly on
a chart with the same CategoryAxis.

I have several ArrayCollections...for weight, height and BMI. Each
ArrayCollection has a date and value. I need to use actionscript to
create each one as a series and add that to the chart. I created an
ArrayCollection that just has all the dates for the points to plot. I
thought I could use this for the CategoryAxis dataProvider but when I
do it this way it seems that it plots the points at the wrong
dates.

Here is a sample of how I am adding one of the series and the
CategoryAxis:

var hAxis:CategoryAxis = new CategoryAxis();
hAxis.categoryField = 'startDate';
hAxis.dataProvider = allTrendingDates;
hAxis.labelFunction = lineChartDateFormat;
linechart.horizontalAxis = hAxis;

var bmiSeries:LineSeries = new LineSeries();
bmiSeries.dataProvider = bmiTrendEntries;
bmiSeries.displayName = 'BMI';
bmiSeries.yField = 'bmi';
linechart.series.push(bmiSeries);

Here is my chart:

mx:PlotChart id=linechart height=252 width=783 paddingLeft=5
paddingRight=5 showDataTips=true y=130

mx:verticalAxis
mx:LinearAxis baseAtZero={baseZeroCheckBox.selected}/
/mx:verticalAxis

mx:horizontalAxis
mx:CategoryAxis categoryField=startDate
labelFunction=lineChartDateFormat/
/mx:horizontalAxis

/mx:PlotChart

Any help is greatly appreciated.





[flexcoders] Problem with RSL and SWFLoaders

2007-12-18 Thread Nick Durnell
Hi all,

I have built a large Flex application which consists of a main 
application window and a number of 'widgets' that are displayed in 
various areas of the screen.  Each widget is itself a Flex 
application in its own right.  When the main application starts up it 
checks which widgets should be loaded and creates SWFLoaders for each 
one.

As the widgets share a lot of code I have recently created an RSL, 
core.swc, which holds all the common stuff.  Unfortunately a lot of 
the widget applications now fail to load/start correctly.

Here is the typical debug output when running the RSL-based 
application (with 11 widgets):

[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\Main.swf - 254,721 bytes after 
decompression
# Loading WorldClocks1 (WorldClocks.swf)
# Loading ComboGrid1 (GroupTreeMarketGridCombo.swf)
# Loading PositionGrid1 (PositionGrid.swf)
# Loading PositionGrid2 (PositionGrid.swf)
# Loading TradeHistoryGrid1 (TradeHistoryGrid.swf)
# Loading OrderBook1 (OrderBook.swf)
# Loading AccountTransactions1 (AccountTransactions.swf)
# Loading CommsControl1 (CommsControlContainer.swf)
# Loading TradeTicketContainer1 (TradeTicketContainer.swf)
# Loading AccountSummary1 (AccountSummary.swf)
# Loading SignalQualityDisplay1 (SignalQualityDisplay.swf)
[SWF] C:\Dev\Flex\childapps\bin\WorldClocks.swf - 274,452 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\GroupTreeMarketGridCombo.swf - 
330,684 bytes after decompression
[SWF] C:\Dev\Flex\childapps\bin\PositionGrid.swf - 314,513 bytes 
after decompression
[SWF] C:\Dev\Flex\childapps\bin\PositionGrid.swf - 314,513 bytes 
after decompression
[SWF] C:\Dev\Flex\childapps\bin\TradeHistoryGrid.swf - 281,184 bytes 
after decompression
[SWF] C:\Dev\Flex\childapps\bin\OrderBook.swf - 313,875 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\AccountTransactions.swf - 287,520 
bytes after decompression
[SWF] C:\Dev\Flex\childapps\bin\CommsControlContainer.swf - 279,246 
bytes after decompression
[SWF] C:\Dev\Flex\childapps\bin\TradeTicketContainer.swf - 312,721 
bytes after decompression
[SWF] C:\Dev\Flex\childapps\bin\AccountSummary.swf - 276,915 bytes 
after decompression
[SWF] C:\Dev\Flex\childapps\bin\SignalQualityDisplay.swf - 275,342 
bytes after decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
# applicationComplete in PositionGrid1
# applicationComplete in AccountSummary1

11 out of 11 widget applications are loaded and decompressed but 
applicationComplete only fires in 2 of them!  There is no sign of 
life from the other 9 widgets.

I am guessing that there is an issue somewhere when using multiple 
SWFLoaders at the same time with an RSL.  To clarify, everything 
works fine if I do not use the RSL or if I change the main 
application to load one widget, wait for applicationComplete, load 
the next, wait again etc etc - although doing this is *very* slow.

Also, what is going on with the loading, decompressing and unloading 
of the RSL (core.swf) for each widget?  I am wondering if this is 
anything to do with the problem.

Thoughts, anyone?

Regards,

Nick.




Re: [flexcoders] Creating a game in Flex

2007-12-18 Thread Stephen Downs
I'd agree with Igor here. Flex will offer very little, and probably  
add time to developing this.


Flex isn't the be all and end all of everything.



Tink



On 13 Dec 2007, at 05:46, Gordon Smith wrote:



Why do you say that, Igor?

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Costa

Sent: Wednesday, December 12, 2007 2:47 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Creating a game in Flex

I believe that if you use flash you will have more sucess.


Regards
Igor Costa
www.igorcosta.org
www.igorcosta.com


On Dec 8, 2007 5:28 PM, pirzadaz_ali [EMAIL PROTECTED] wrote:
Hi,

I have Chess board and pieces images in png format separately. Now I
want to use those images and create a chess game. Is it possible in
Flex that I can make chess game from above images?

like this game http://www.newsandentertainment.com/zfchess.html

thanks





--

Igor Costa
www.igorcosta.com
www.igorcosta.org







[flexcoders] Flash Player r115 Does not allow Authorization HTTP Headers

2007-12-18 Thread Tim
Hello Everyone!

The new version of the Flash player (r115) will not allow you to
manipulate Authorization HTTP headers, despite documentation to the
contrary. 
I have searched the Adobe site to find an announcement about changes
to the player, but nothing comes up beyond the documented disallowed
headers. Authorization is not on this list.

In the previous version of flash Player 9, my application works fine.
 It bombs in r115.

Example:
var request : URLRequest = new URLRequest(serviceURL + loginService);
request.method = URLRequestMethod.POST;
urlvars.signature= 123456789;
request.data = urlvars;
var header : URLRequestHeader = new URLRequestHeader();
header.name = Authorization;
header.value = foo=bar;
request.requestHeaders = new Array(header);
loader.load(request);

Player 115 throws this error:
Error #2096: The HTTP request header Authorization cannot be set via
ActionScript.

Players 28  47 work. 

Anyone have this issue?

Thanks,
Tim




RE: [flexcoders] Remove Object ref

2007-12-18 Thread Peter Farland

delete obj.second; 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt
Sent: Tuesday, December 18, 2007 9:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Remove Object ref

In ActionScript if I create:

var obj:Object = new Object();
obj.first = 'One';
obj.second = 'Two';
obj.third = 'Three';

and then I want to remove 'second' from the Object how would I do so?
I've tried setting it to null:

obj.second = null;

However, that leaves it still existing if I iterate over it. Is there
any way to completely remove it?



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





[flexcoders] Set focus on a child control?

2007-12-18 Thread reflexactions
Simple question - How to set focus on the first visible, enabled and 
focusable child control of a container?

tks



RE: [flexcoders] Flex JavaFX Sliverlight Flash PB

2007-12-18 Thread John Dowdell
 I need to develop an application which will allow users to interact with my
 server via a tactil screen.
 I have several question here.
 What technology should I use ? What type of application is the most adapted
 for tose kind of screens ?

Start by investigating the API that the touchscreen offers. 

If you're delivering an application hosted within a browser, then communicating 
with a local API can be tricky. But it may be possible, depending on how the 
touchscreen can communicate.

(JavaFX and Silverlight are mainly press releases at this point -- if 
delivering to the browser, then you're probably looking at either JavaScript or 
SWF.)

jd/adobe



Re: [flexcoders] Flash Player r115 Does not allow Authorization HTTP Headers

2007-12-18 Thread João Fernandes
Tim,

In the documentation 
http://livedocs.adobe.com/labs/flex3/langref/flash/net/URLRequestHeader.html, 
all listed headers are not allowed to be used in Flash Player or AIR 
content outside the application security sandbox. Authorization being 
one of them which is in my opinion too bad.


-- 

João Fernandes

http://www.onflexwithcf.org
http://www.riapt.org



[flexcoders] linechart creating segments

2007-12-18 Thread windsail05
I am having difficulty figuring out how to create a line chart where a
line is broken up into segments so that it is noncontinuous.  Any ideas?  



Re: [flexcoders] Printing a TextArea

2007-12-18 Thread dorkie dork from dorktown
Did you ever get this answered? You can increase the size of the Textarea
until the scrollbar height is removed. Check the maxVerticalScrollPosition
after UpdateComplete:

public var text1:TextArea
private function callResize(event:Event):void {
trace(text1.maxVerticalScrollPosition)
text1.height = text1.height + text1.maxVerticalScrollPosition;
}

public function creationCompleteHandler():void {
text1 = new TextArea()
text1.width = 100
text1.height = 50
addChild(text1)
text1.htmlText = resize resize resize resize resize resize resize
resize resize resize resize resize resize resize resize resize resize resize
resize resize resize resize resize resize resize resize resize resize resize
resize resize 
text1.addEventListener(FlexEvent.UPDATE_COMPLETE, callResize);
}

On Feb 20, 2007 6:56 AM, Rich Tretola [EMAIL PROTECTED]  wrote:

 Sorry,  I have been away from this thread for a while.  Setting to
 100% width and height doesn't because 100% would be limited to the
 size of the application and not the actual content of the Textarea.

 Rich

 On 2/12/07, Tom Chiverton [EMAIL PROTECTED] wrote:
  On Thursday 08 Feb 2007, Rich Tretola wrote:
   Has anyone done any work with printing the htmlText from a TextArea
   component that has a scrollbar?
 
  Have you tried settig height/width on the component(s) you are printing
 to
  100% and just letting the printer sort it out ?
 
  --
  Tom Chiverton
  Helping to continually network eigth-generation 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 St James's Court Brown Street Manchester M2 2JF.  A list of members is
 available for inspection at the registered office. Any reference to a
 partner in relation to Halliwells LLP means a member of Halliwells LLP.
 Regulated by the Law Society.
 
  CONFIDENTIALITY
 
  This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 8008.
 
  For more information about Halliwells LLP visit www.halliwells.com.
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 


 --
 Rich Tretola
 mx:EverythingFlex/
 http://www.EverythingFlex.com


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






[flexcoders] Re: Remove Object ref

2007-12-18 Thread Matt
Well, that was so easy I'm embarrassed. :o

Thanks for your help...had no idea you could delete like that.

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

 
 delete obj.second; 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Matt
 Sent: Tuesday, December 18, 2007 9:04 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Remove Object ref
 
 In ActionScript if I create:
 
 var obj:Object = new Object();
 obj.first = 'One';
 obj.second = 'Two';
 obj.third = 'Three';
 
 and then I want to remove 'second' from the Object how would I do so?
 I've tried setting it to null:
 
 obj.second = null;
 
 However, that leaves it still existing if I iterate over it. Is there
 any way to completely remove it?
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links





Re: [flexcoders] Flash Player r115 Does not allow Authorization HTTP Headers

2007-12-18 Thread Tim Beynart
Thanks for pointing that out. I figured a change like this would be in
the release notes.

*sigh*

Tim

On Dec 18, 2007 11:09 AM, João Fernandes
[EMAIL PROTECTED] wrote:






 Tim,

  In the documentation

 http://livedocs.adobe.com/labs/flex3/langref/flash/net/URLRequestHeader.html,
  all listed headers are not allowed to be used in Flash Player or AIR
  content outside the application security sandbox. Authorization being
  one of them which is in my opinion too bad.

  --

  João Fernandes

  http://www.onflexwithcf.org
  http://www.riapt.org

  



-- 
+ Tim Beynart
+ [EMAIL PROTECTED]
+ 706.372.6994


RE: [flexcoders] Printing a TextArea

2007-12-18 Thread Alex Harui
Yes, but the trick there is that maxVSP is not always correct in the
same frame due to some player layout issues.
 
I would probably turn off via verticalScrollPolicy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dorkie dork from dorktown
Sent: Tuesday, December 18, 2007 8:12 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Printing a TextArea



Did you ever get this answered? You can increase the size of the
Textarea until the scrollbar height is removed. Check the
maxVerticalScrollPosition after UpdateComplete:

public var text1:TextArea
private function callResize(event:Event):void { 
trace(text1.maxVerticalScrollPosition)
text1.height = text1.height + text1.maxVerticalScrollPosition;
}

public function creationCompleteHandler():void {
text1 = new TextArea() 
text1.width = 100
text1.height = 50
addChild(text1)
text1.htmlText = resize resize resize resize resize resize
resize resize resize resize resize resize resize resize resize resize
resize resize resize resize resize resize resize resize resize resize
resize resize resize resize resize   
text1.addEventListener(FlexEvent.UPDATE_COMPLETE, callResize);
}


On Feb 20, 2007 6:56 AM, Rich Tretola [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:


Sorry,  I have been away from this thread for a while.  Setting
to
100% width and height doesn't because 100% would be limited to
the 
size of the application and not the actual content of the
Textarea.

Rich


On 2/12/07, Tom Chiverton [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]   wrote: 
 On Thursday 08 Feb 2007, Rich Tretola wrote:
  Has anyone done any work with printing the htmlText from a
TextArea
  component that has a scrollbar?

 Have you tried settig height/width on the component(s) you are
printing to 
 100% and just letting the printer sort it out ?

 --
 Tom Chiverton
 Helping to continually network eigth-generation 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 St James's Court Brown Street Manchester M2 2JF.  A
list of members is available for inspection at the registered office.
Any reference to a partner in relation to Halliwells LLP means a member
of Halliwells LLP. Regulated by the Law Society. 

 CONFIDENTIALITY

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

 For more information about Halliwells LLP visit
www.halliwells.com http://www.halliwells.com .



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







--
Rich Tretola
mx:EverythingFlex/
http://www.EverythingFlex.com http://www.EverythingFlex.com 



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


   (Yahoo! ID required)

   mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 






 


Re: [flexcoders] Flex JavaFX Sliverlight Flash

2007-12-18 Thread Tom Chiverton
On Tuesday 18 Dec 2007, debussy007 wrote:
 I need to develop an application which will allow users to interact with my
 server via a tactil screen.

90% of the time, this will look just like a mouse to your application.

-- 
Tom Chiverton
Helping to greatly improve guinine content
on: http://thefalken.livejournal.com


Halliwells wishes all of its clients and suppliers the Very Best for Christmas 
 the New Year


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
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


RE: [flexcoders] Set focus on a child control?

2007-12-18 Thread Alex Harui
focusManager.getNextFocusManagerComponent().setFocus()?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of reflexactions
Sent: Tuesday, December 18, 2007 7:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Set focus on a child control?



Simple question - How to set focus on the first visible, enabled and 
focusable child control of a container?

tks



 


[flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

2007-12-18 Thread Cosma
I've found the problem.

Enabling the 'debug' logging level, I saw that my services are
returning subclasses of SoggettoVO.. my local VOs are correctly
extending themself, so it is fine to consider all those objects as
instances of SoggettoVO class, but those other subclasses are never
referenced in my code.. then, yes, it was the linker optimization issue :)

It would be really a great improvement if the flex compiler was so
smart to keep the classes marked with the [RemoteClass] metadata in
the SWF, even if not referenced in the code.. any hope to see this in
the final build of FlexBuilder 3? (maybe it's already like this - I'm
still using the SDK version 2.0.1 to use LCDS 2.5)

Again, I want to thank Johnny and Den for their help.

Cosma






[flexcoders] Re: E4X and DataGrid

2007-12-18 Thread alexander.marktl
Oh. I made a mistake in the post. This is how the grid looks like and
it still doesn't work.

mx:DataGrid dataProvider={photoFeed.entry}
  mx:columns
mx:DataGridColumn headerText=Title
  dataField=title/
  /mx:columns
/mx:DataGrid




RE: [flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

2007-12-18 Thread Peter Farland

Unfortunately that would involve the compiler scanning all of the
classes (source or swcs) in the project to find [RemoteClass] metadata,
so this will make it in Flex Builder 3.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cosma
Sent: Tuesday, December 18, 2007 11:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

I've found the problem.

Enabling the 'debug' logging level, I saw that my services are returning
subclasses of SoggettoVO.. my local VOs are correctly extending
themself, so it is fine to consider all those objects as instances of
SoggettoVO class, but those other subclasses are never referenced in my
code.. then, yes, it was the linker optimization issue :)

It would be really a great improvement if the flex compiler was so smart
to keep the classes marked with the [RemoteClass] metadata in the SWF,
even if not referenced in the code.. any hope to see this in the final
build of FlexBuilder 3? (maybe it's already like this - I'm still using
the SDK version 2.0.1 to use LCDS 2.5)

Again, I want to thank Johnny and Den for their help.

Cosma






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





[flexcoders] Re: DataGrid LinkButton - How to get columnIndex and rowIndex when linkButton is

2007-12-18 Thread valdhor
Well, I have figured it out for myself.

One thing that you have access to in a DataGrid Item Renderer is the
actual data itself. You can coerce this data to a DataGridListData
object which then has access to the rowIndex and columnIndex
properties you have clicked.


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

 Here is my itemRenderer...
 
 package customcomponents
 {
   import flash.events.*;
   import mx.controls.*;
   import mx.controls.dataGridClasses.DataGridListData;
   import mx.core.*;
 
   public class CellField extends LinkButton
   {
   public var fieldValue:String;
   
   public function CellField()
   {
   super();
   addEventListener(MouseEvent.CLICK,
Application.application.cellClick);
   }
   
   override public function set data(value:Object):void
   {
   if(value != null)
   {
   super.data = value;
   
   fieldValue = 
 value[DataGridListData(listData).dataField];
   
   if (Number(fieldValue) == 0)
   {
   label = 0;
   enabled = false;
   useHandCursor = false;
   }
   else
   {
   label = fieldValue;
   enabled = true;
   useHandCursor = true;
   setStyle(color, #FF);
   setStyle(textDecoration, underline);
   setStyle(textRollOverColor:, 
 #CC);
   }
   }
   }
   }
 }
 
 And here is how I am using it...
 
 mx:DataGridColumn id=ConfigChangesColumn
 headerText={newline}Config{newline}Changes dataField=configchanges
 width=60 sortable=false itemRenderer=customcomponents.CellField/
 
 and here is the cellclick function...
 
 public function cellClick(event:Event):void
 {
   Alert.show(String(event.currentTarget));
 }
 
 So, now I need to know which cell was clicked.
 
 Any help would be most appreciated.
 
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  Where are you adding the event listener?  Can you use itemClick event?
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of valdhor
  Sent: Monday, December 17, 2007 12:59 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] DataGrid LinkButton - How to get columnIndex and
  rowIndex when linkButton is cli
  
  
  
  Hi
  
  I am a newbie with a problem - I have a datagrid with an itemRenderer.
  The itemRenderer is an AS class that extends LinkButton and just
  checks if the data is 0 or not. If it is 0 then disable the button.
  Then it adds an event listener:
  
  addEventListener(MouseEvent.CLICK, Application.application.cellClick);
  
  This function gets called correctly but now I need to get the
  columnIndex and rowIndex of the cell that the linkbutton was in. The
  target and currentTarget are the same (The custom ItemRenderer class).
  If I then try parentDocument, it returns the panel that holds the
  datagrid. None of the panels or datagrids have ID's as they are
  created on the fly based on a HTTPService lookup.
  
  Can anyone tell me how to go about getting the columnIndex and
  rowIndex of the clicked linkbutton?
  
  Best Regards
  
  Steve
 





RE: [flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

2007-12-18 Thread Peter Farland
Sorry, that is, this will NOT make it into Flex Builder 3 :) 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Farland
Sent: Tuesday, December 18, 2007 11:26 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Debugging RemoteClass serialization
[SOLVED]


Unfortunately that would involve the compiler scanning all of the
classes (source or swcs) in the project to find [RemoteClass] metadata,
so this will make it in Flex Builder 3.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cosma
Sent: Tuesday, December 18, 2007 11:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

I've found the problem.

Enabling the 'debug' logging level, I saw that my services are returning
subclasses of SoggettoVO.. my local VOs are correctly extending
themself, so it is fine to consider all those objects as instances of
SoggettoVO class, but those other subclasses are never referenced in my
code.. then, yes, it was the linker optimization issue :)

It would be really a great improvement if the flex compiler was so smart
to keep the classes marked with the [RemoteClass] metadata in the SWF,
even if not referenced in the code.. any hope to see this in the final
build of FlexBuilder 3? (maybe it's already like this - I'm still using
the SDK version 2.0.1 to use LCDS 2.5)

Again, I want to thank Johnny and Den for their help.

Cosma






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





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





RE: [flexcoders] Flex JavaFX Sliverlight Flash

2007-12-18 Thread Samuel R. Neff

The one really important thing to remember when developing for a touch
screen is to keep the hit area for your buttons large.

Sam 


---
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
 
On Tuesday 18 Dec 2007, debussy007 wrote:
 I need to develop an application which will allow users to interact with
my
 server via a tactil screen.



RE: [flexcoders] Problem with RSL and SWFLoaders

2007-12-18 Thread Alex Harui
I would try to find out what happened to the other 9?  Are they showing
progress bars?  Is the app stuck?  Is CPU usage running high?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nick Durnell
Sent: Tuesday, December 18, 2007 6:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with RSL and SWFLoaders



Hi all,

I have built a large Flex application which consists of a main 
application window and a number of 'widgets' that are displayed in 
various areas of the screen. Each widget is itself a Flex 
application in its own right. When the main application starts up it 
checks which widgets should be loaded and creates SWFLoaders for each 
one.

As the widgets share a lot of code I have recently created an RSL, 
core.swc, which holds all the common stuff. Unfortunately a lot of 
the widget applications now fail to load/start correctly.

Here is the typical debug output when running the RSL-based 
application (with 11 widgets):

[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\Main.swf - 254,721 bytes after 
decompression
# Loading WorldClocks1 (WorldClocks.swf)
# Loading ComboGrid1 (GroupTreeMarketGridCombo.swf)
# Loading PositionGrid1 (PositionGrid.swf)
# Loading PositionGrid2 (PositionGrid.swf)
# Loading TradeHistoryGrid1 (TradeHistoryGrid.swf)
# Loading OrderBook1 (OrderBook.swf)
# Loading AccountTransactions1 (AccountTransactions.swf)
# Loading CommsControl1 (CommsControlContainer.swf)
# Loading TradeTicketContainer1 (TradeTicketContainer.swf)
# Loading AccountSummary1 (AccountSummary.swf)
# Loading SignalQualityDisplay1 (SignalQualityDisplay.swf)
[SWF] C:\Dev\Flex\childapps\bin\WorldClocks.swf - 274,452 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\GroupTreeMarketGridCombo.swf - 
330,684 bytes after decompression
[SWF] C:\Dev\Flex\childapps\bin\PositionGrid.swf - 314,513 bytes 
after decompression
[SWF] C:\Dev\Flex\childapps\bin\PositionGrid.swf - 314,513 bytes 
after decompression
[SWF] C:\Dev\Flex\childapps\bin\TradeHistoryGrid.swf - 281,184 bytes 
after decompression
[SWF] C:\Dev\Flex\childapps\bin\OrderBook.swf - 313,875 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\AccountTransactions.swf - 287,520 
bytes after decompression
[SWF] C:\Dev\Flex\childapps\bin\CommsControlContainer.swf - 279,246 
bytes after decompression
[SWF] C:\Dev\Flex\childapps\bin\TradeTicketContainer.swf - 312,721 
bytes after decompression
[SWF] C:\Dev\Flex\childapps\bin\AccountSummary.swf - 276,915 bytes 
after decompression
[SWF] C:\Dev\Flex\childapps\bin\SignalQualityDisplay.swf - 275,342 
bytes after decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[SWF] C:\Dev\Flex\childapps\bin\core.swf - 3,096,674 bytes after 
decompression
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
[Unload SWF] C:\Dev\Flex\childapps\bin\core.swf
# applicationComplete in PositionGrid1
# applicationComplete in AccountSummary1

11 out of 11 widget applications are loaded and decompressed but 
applicationComplete only fires in 2 of them! There is no sign of 
life from the other 9 widgets.

I am guessing that there is an issue somewhere when using multiple 
SWFLoaders at the same time with an RSL. To clarify, everything 
works fine if I do not use the RSL or if I change the main 
application to load one widget, wait for applicationComplete, load 
the next, wait again etc etc - although doing this is *very* slow.

Also, what is going on with the loading, decompressing and unloading 
of the RSL (core.swf) for each widget? I am wondering if this is 
anything to do with the problem.

Thoughts, anyone?

Regards,

Nick.



 


[flexcoders] Re: linechart creating segments

2007-12-18 Thread windsail05
figured it out.  include missing data by setting the y value to null
in the next data point.


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

 I am having difficulty figuring out how to create a line chart where a
 line is broken up into segments so that it is noncontinuous.  Any ideas?





RE: [flexcoders] Flex JavaFX Sliverlight Flash

2007-12-18 Thread Mike Krotscheck
Avoid Silverlight- It doesn't come with a large library of pre-built UI
and layout components that simplify and speed up development. All you
have to work with is a Box, an Ellipse, and a Text Box. Knowing
Microsoft they'll be releasing these necessary support classes sooner or
later, but for the time being the overhead cost of trying to rearchitect
even the most basic interactive components is astronomical.

 

Michael Krotscheck

Senior Developer

 
RESOURCE INTERACTIVE

http://www.resource.com/ www.resource.com http://www.resource.com 

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 



This email and any of its attachments may contain Resource Interactive
proprietary information, which is privileged, confidential and may be
subject to copyright or other intellectual property rights belonging to
Resource Interactive. This email is intended solely for the use of the
individual or entity to which it is addressed. If you are not the
intended recipient of this email, you are hereby notified that any
dissemination, distribution, copying or action taken in relation to the
contents of and attachments to this email is strictly prohibited and may
be unlawful. If you have received this email in error, please notify the
sender immediately and permanently delete the original and any copy of
this email and any printout.




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of debussy007
Sent: Tuesday, December 18, 2007 1:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex  JavaFX  Sliverlight  Flash

 


Hi,

I need to develop an application which will allow users to interact with
my
server via a tactil screen.
I have several question here.
What technology should I use ? What type of application is the most
adapted
for tose kind of screens ?
A Macromedia Flash application ?
A Flex application ?
A JavaFX application ?
Standard web pages ?
A heavy client ? (Swing or other) ?

Any advice / comment will be greatly appreciated.
Thank you for any kind help !
-- 
View this message in context:
http://www.nabble.com/Flex-%3C%3E-JavaFX-%3C%3E-Sliverlight-%3C%3E-Flash
-tp14384496p14384496.html
http://www.nabble.com/Flex-%3C%3E-JavaFX-%3C%3E-Sliverlight-%3C%3E-Flas
h-tp14384496p14384496.html 
Sent from the FlexCoders mailing list archive at Nabble.com.

 



[flexcoders] Re: Force DataGrid item to update style

2007-12-18 Thread m.frigge
Me again :-). 

So I could almost fix it myself.. took me a long time though. There's
only one little thing and hopefully some more experienced coder can
help me out this time please. The example posted below works fine
until you sort the dataGrid by one of its columns. 

[L=Here]http://16-bits.com/ItemRenderer/ItemRenderer.html[/L] is the
example with ViewSource again. 

Anyway. How come that it is such a big deal to achieve something like
this?! I guess I would have been quicker, if I had done the whole
dataGrid thing in Flash by myself. What strategies do you guys out
there use to solve issues like that?!? I mean how do get a picture of
how a component works in its details?! 

Cheers, Max


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

 Hi Johan,
 I tried that as well .. I also tried .styleChanged() and it doesn't do
 anything. The changed text properties are only visible when the item
 gets deselected!? 
 
 Cheers, Max
 
 --- In flexcoders@yahoogroups.com, johantrax johan.temmerman@
 wrote:
 
  --- In flexcoders@yahoogroups.com, m.frigge m.frigge@ wrote:
  
   Hey there,
   
   i found some nice examples for an itemRenderer here
  
 

http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.h\
   tml  .
   I tried to use one of them for an app i am developing.
   In my case i need the colum's style to change when i select it,
 but you
   can only see the changes, after selecting another item. How can i
 force
   the item to update its style immediately?
   
   Here http://16-bits.com/itemrenderer/ComputedStyles.html   is an
   example with ViewSource enabled.
   
   Cheers, Max
  
  
  Call invalidateDisplayList of the component?
  docs:
 

http://livedocs.adobe.com/flex/2/langref/mx/core/UIComponent.html#invalidateDisplayList()
  
  --Johan
 





[flexcoders] Inspectable metadata tag

2007-12-18 Thread Brian Holmes
Is there a way to specify arrays as part of the Inspectable metadata
tag. I'd like to specify that the developer can either use and a 1,0
array or a Y,N array.

 

 What I'm trying to do is something akin to:

 

 

[Inspectable(enumeration=[1,0],[Y,N])]

public var values : Array = [1,0];

 

Ok course, this blows up. If this isn't possible, what are some other
options?

Brian.



***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***


[flexcoders] RichTextEditor's Minimum Size

2007-12-18 Thread triggersoftware
Is there any way around RichTextEditor's minimum size?  It has a
minimum size of 220 pixels wide by 200 pixels high, which is just too
big for my application.  

If I set the size to smaller than this scroll bars appear *within* the
control.

Cheers,

David.



[flexcoders] Re: Vertical scrolling without horizontal scrolling? How do I make 100% == 100%

2007-12-18 Thread dave_defusion
I too have been having problems with 100% widths and unwanted
horizontal scrollbar.

I've tried adding minWidth=0 to everything that has a width of 100%
but that hasn't fixed the problem that I get an unwanted horizontal
scrollbar.

I've also tried using the reflex util
(http://code.google.com/p/reflexutil/) to change these properties at
run time to try and figure out what is causing the problem.

What I (basically) have is the following:

- (1) Tab navigator - 100% width
-- (2) VBox (Tab contents) - 100% width
--- (3a) Text 
--- (3b) HBox - 100% width
--- (3c) Tab navigator - 100% width

I get the vertical and horizontal scrollbars on the outer tab
navigator (1) whenever the content gets taller than the app, in this
case I obviously want vertical scrollbars and no horizontal scrollbars.

With the reflex util I can change the width of the tab contents
children (3a,3b,3c) and I still have horizontal scrollbar. However I
cannot change the width of the VBox that wraps the tab contents (2) -
it simply keeps resetting to the current value every time I try. I can
see that it is the VBox (2) which is overlapping the vertical
scrollbar (and thus causing the horizontal scrollbar) using reflex util.

So I'm really stumped, I either need a solution to this, or a way to
move the scrollbars from the tab navigator (1) to the VBox (2).

Any advice would be greatly appreciated.

-D





[flexcoders] Re: RichTextEditor's Minimum Size

2007-12-18 Thread triggersoftware
Got it!  Set the textArea subcomponent's size:

  form.txtField.textArea.height = form.txtField.height;

What a faff!  Can anyone explain why I have to do this?

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

 Is there any way around RichTextEditor's minimum size?  It has a
 minimum size of 220 pixels wide by 200 pixels high, which is just too
 big for my application.  
 
 If I set the size to smaller than this scroll bars appear *within* the
 control.
 
 Cheers,
 
 David.





RE: [flexcoders] datagrid dataprovider versus backing arrayCollection

2007-12-18 Thread Alex Harui
Should be the same.  Can we see a test case or some more code like the
definitions and assignments?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of j_lentzz
Sent: Tuesday, December 18, 2007 6:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] datagrid dataprovider versus backing
arrayCollection



Hi,

I have an app with a dataGrid that has an arrayCollection as the
provider. The dataProvider is set via binding (dataProvider =
{dgAC}) However, I've noticed that I get a different collection
depending on whether I ask for dg.dataProvider or use dgAC. Could
someone please explain the difference between these two? I thought
they would reference the same data, but if I use (dg.dataProvider as
ArrayCollection).list.toArray() and dgAC.list.toArray(), I don't get
the same set of data. In my program, I'm adding a property to an
object in dgAC, that doesn't have a column in the datagrid, but I
thought that dg.dataProvider would return the complete arrayCollection
anyway.

Any enlightenment would be greatly appreciated.

Thank you,

John



 


RE: [flexcoders] Re: DataGrid LinkButton - How to get columnIndex and rowIndex when linkButton is

2007-12-18 Thread Alex Harui
I would use ITEM_CLICK instead of CLICK.  Did that not work for you?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of valdhor
Sent: Tuesday, December 18, 2007 5:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DataGrid LinkButton - How to get columnIndex
and rowIndex when linkButton is



Here is my itemRenderer...

package customcomponents
{
import flash.events.*;
import mx.controls.*;
import mx.controls.dataGridClasses.DataGridListData;
import mx.core.*;

public class CellField extends LinkButton
{
public var fieldValue:String;

public function CellField()
{
super();
addEventListener(MouseEvent.CLICK, Application.application.cellClick);
}

override public function set data(value:Object):void
{
if(value != null)
{
super.data = value;

fieldValue = value[DataGridListData(listData).dataField];

if (Number(fieldValue) == 0)
{
label = 0;
enabled = false;
useHandCursor = false;
}
else
{
label = fieldValue;
enabled = true;
useHandCursor = true;
setStyle(color, #FF);
setStyle(textDecoration, underline);
setStyle(textRollOverColor:, #CC);
}
}
}
}
}

And here is how I am using it...

mx:DataGridColumn id=ConfigChangesColumn
headerText={newline}Config{newline}Changes dataField=configchanges
width=60 sortable=false itemRenderer=customcomponents.CellField/

and here is the cellclick function...

public function cellClick(event:Event):void
{
Alert.show(String(event.currentTarget));
}

So, now I need to know which cell was clicked.

Any help would be most appreciated.

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

 Where are you adding the event listener? Can you use itemClick event?
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of valdhor
 Sent: Monday, December 17, 2007 12:59 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] DataGrid LinkButton - How to get columnIndex and
 rowIndex when linkButton is cli
 
 
 
 Hi
 
 I am a newbie with a problem - I have a datagrid with an itemRenderer.
 The itemRenderer is an AS class that extends LinkButton and just
 checks if the data is 0 or not. If it is 0 then disable the button.
 Then it adds an event listener:
 
 addEventListener(MouseEvent.CLICK, Application.application.cellClick);
 
 This function gets called correctly but now I need to get the
 columnIndex and rowIndex of the cell that the linkbutton was in. The
 target and currentTarget are the same (The custom ItemRenderer class).
 If I then try parentDocument, it returns the panel that holds the
 datagrid. None of the panels or datagrids have ID's as they are
 created on the fly based on a HTTPService lookup.
 
 Can anyone tell me how to go about getting the columnIndex and
 rowIndex of the clicked linkbutton?
 
 Best Regards
 
 Steve




 


RE: [flexcoders] TitleWindow activation

2007-12-18 Thread Alex Harui
There is no event that exactly matches what you want.  A good design
would set focus somewhere in each popup on creation.  Flex doesn't do
that for you.  Then the system would restore focus as each popup came
back to top.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of reflexactions
Sent: Tuesday, December 18, 2007 5:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TitleWindow activation



We have an application where we use the PopUpManager to add a number of 
TitleWindows.

I want to know when a window is activated i.e. it is clicked on and the 
window is brought to the front and vice versa when it ceases to be the 
topmost window.

I thought the track focusin/focusout would be the solution but this 
doesnt appear to always work as expected.

It seem clicking on a window doesnt give it focus it just brings it to 
the top, only clicking into a control in that window actually causes 
focus to be set.

FocusIn/FocusOut seems to work only when I click on a TitleWindow once 
I have previously clicked in to a control in that window and also the 
same for window that is being moved backwards.

So  what event can I listen to know when a window is clicked on or 
is brought to the front by the PopUpManager.bringToFront?

Hope thats clear..
tks



 


RE: [flexcoders] layout / scrolling issues

2007-12-18 Thread Alex Harui
setting minHeight=0 may also work.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: Tuesday, December 18, 2007 4:31 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] layout / scrolling issues



If anyone else has this issues I've foudn the solution to the first
item. the problem was that a VBox set to height=100% would stretch
it's container which would force scroll bars to pup up in unexpected
places. 

The way to get round this is to put the VBox inside a canvas. If you set
both to height=100% the canvas behaves and does not stretch it's
parent, the VBox then fits within the canvas and the canvas scrolls the
VBox 

Hopefully someone will find that useful.


On Dec 17, 2007 10:47 AM, Giles Roadnight [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:


Hi All

I have a couple of niggling lay out issues that I can't seem to
resolve and was hoping that someone could help me with them.

I have a popup with an HBox in. on the left I have VBOx (lets
call it
the controls Vbox) and on the right a text area. Both have
height=100%.

With in the controls Vbox I have several text boxes, buttons ect
and I
have another VBox (lets call it dynamic text box). This also has
heing
set to 100%.

This dynamic box gets controls dynamically added to it - no way
of
knowing how many. These controls always make the controls VBox
taller
than the popup and the popup then produces scrollbars so that I
can't
see the buttons at the bottom of the controls VBox or the bottom
of
the text area.
What I want to happen is for scroll bars to appear on the
dynamic text
box. I can only get this to happen if I set the height to for
example
100 but then it does not stretch to make use of the whole height
of
the controls VBox.

How do I get round this?

The other problem is a bit easier to explain. I have a toggle
button
bar across the top of my app with width=100%. With all the
buttons
in there the width is probably about 1500 pixels. On my 1200 *
1600
screen this works fine - it fills the whole width. If I then
restore
my browser and re-size the window for example 800 pixels the bar
re-sizes and button labels are cut off with ... at the end and
tooltips. All this is as expected.
If a user on a 800*600 screen opens this app though the button
bar is
still around 1500 pixels and stretches the whole app well beyond
the
bounds of the screen. This seems like a bug to me

Any suggestions?

Many Thanks








-- 
Giles Roadnight
http://giles.roadnight.name http://giles.roadnight.name  

 


[flexcoders] Re: Cairngorm AMFPHP

2007-12-18 Thread JWOpitz
an update to this:

I ended up dropping the casting to the UserVO.php.  So the function
signature looks like:

 function getUser ($user){}

rather than 

 function getUser (UserVO $user){}

then inside the new function I set the type to an object using:

 settype(user, object);

this allows the php function to be able to retrieve the object
propeties such as $user-name or $user-password since it sees it as
an object rather than the array flex likes to send.

Though this works, it doesn't sit well with me because I thought the
whole idea of remoting was to be able to pass classes around without
having to do these kind of work arounds.

If anyone has any ideas on this, please give me a shout.

Thanks,
J



RE: [flexcoders] Re: Scale 9 not being picked up

2007-12-18 Thread Alex Harui
How are you using the symbol?  Does the symbol have layers?  Are the
internal layers the ones with scale-9?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: Tuesday, December 18, 2007 1:50 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Scale 9 not being picked up



Is this the case for symbols too? i.e. if I'm just using a symbol will
it automatically scale rather than resize?

Mark



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 13 December 2007 16:03
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Scale 9 not being picked up

Image will resize the SWF.  The SWF will have to resize the symbol that
has scale9 on it, and not just scale the SWF.  You might need to use a
Flex SWF to wrap the symbol so the Image code does a resize and not a
scale.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: Thursday, December 13, 2007 12:42 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Scale 9 not being picked up

Yes, I'm using an Image control. The image loads a SWF and the SWF has
scale-9 built into it.

Will this not work then? Is there any way to make this work? I've tried
using the scale-9 embedding properties but that won't work either!



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 12 December 2007 17:43
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Scale 9 not being picked up

Are you sizing the assets directly or are they wrapped by Image or
something like that?  I don't think scale9 is recursive.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: Wednesday, December 12, 2007 1:40 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Scale 9 not being picked up

We have one main assets swf which contains multiple symbols. We
reference several of these references and the designer has applied
scale-9 to each of the symbols - but when it comes to viewing them in
Flex, the scale-9 doesn't work (it just stretches normally).

Mark



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of scalenine
Sent: 11 December 2007 19:08
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Scale 9 not being picked up

Are you using bitmaps as skins in your Flash file? If so, I don't
believe scale-9 will punch through to those bitmaps in either
scenario. You would have to pull those bitmaps out of the Flash file
as separate assets.

Regarding the arrow getting stretched, are you using Flex 2? The
reason I ask is because in Flex 2 the arrow icon has to be part of the
ComboBox, thus it will stretch even with scale-9 applied to it. You
could try to change this by setting both vertical scale grids above o
below the arrow. However, if you are using rounded corner those would
end up getting stretched. Other wise you might have to create
different skins for ComboBoxes with different heights.

I believe the issue is being resolved in Flex 3 with a new property
called arrowIcon making the icon separate from the skin so the skin
scales separately from the arrowIcon.

I'm not sure about the ScrollBars. I've found that sometime adjusting
the scale grids on the ScrollBar arrow skins can fix the issue.

HTH,

Juan

scalenine.com : degrafa.com : ocflex.org : branddoozie.com :
atomiccurve.com

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

 I've also had trouble with this. I can't get scale-9 with flash assets
 to work at all (either by setting scale-9 via CS3 or by setting
scale-9
 in stylesheet). 
 
 
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of polestar11
 Sent: 11 December 2007 08:58
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Scale 9 not being picked up
 
 
 
 Hi There
 
 Does anyone have any idea why flash symbols for skinned controls with
 scale-9 would not be picked up? Specifically arrows for the ComboBoxes
 and Scrollbars. Scaling the resources in Flash also results in the
 arrow symbols being scaled incorrectly with no scale-9.
 
 Cheers
 Tracy


 


[flexcoders] FB3 Beta 3 AIR app problem

2007-12-18 Thread windsail05
Since the installation of FB3 Beta 3 I have not been able to run my
AIR applications, and the AIR executables.  When I try to run from
Flex Builder nothing happens, and When I try to run executable errors
come up.



RE: [flexcoders] Flex JavaFX Sliverlight Flash PB

2007-12-18 Thread debussy007

Thank you all for your replies !

I didn't understand your comment John.
I am new to this and I don't know the difference about delivering to
browser or not.
Isn't it the same except that an RIA without browser just doesn't have this
address bar and browser menu's ? Or are they really different applications ?

Also isn't a touchscreen just like a mouse basically ? You talk about an
API, an API between which components ? I will look this up.

Thank you for your kind help.


John Dowdell-2 wrote:
 
 I need to develop an application which will allow users to interact with
 my
 server via a tactil screen.
 I have several question here.
 What technology should I use ? What type of application is the most
 adapted
 for tose kind of screens ?
 
 Start by investigating the API that the touchscreen offers. 
 
 If you're delivering an application hosted within a browser, then
 communicating with a local API can be tricky. But it may be possible,
 depending on how the touchscreen can communicate.
 
 (JavaFX and Silverlight are mainly press releases at this point -- if
 delivering to the browser, then you're probably looking at either
 JavaScript or SWF.)
 
 jd/adobe
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Flex-%3C%3E-JavaFX-%3C%3E-Sliverlight-%3C%3E-Flash-tp14384496p14402231.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] vertical axis to display string

2007-12-18 Thread windsail05
How do I set the vertical axis labels as specified strings instead of
numeric values?



[flexcoders] Re: TitleWindow activation

2007-12-18 Thread reflexactions
Thanks, thats exactly what we have done now.

The slight downside/peformance is that having to capture focus 
in/focus out you it fires for every tab change within the window(ie a 
lot) and you have to check to see whether focus is just moving 
somewhere within the window.

Would be nice if there was someday an activate/deactivate event on 
the window itslef.




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

 There is no event that exactly matches what you want.  A good design
 would set focus somewhere in each popup on creation.  Flex doesn't 
do
 that for you.  Then the system would restore focus as each popup 
came
 back to top.
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of reflexactions
 Sent: Tuesday, December 18, 2007 5:44 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] TitleWindow activation
 
 
 
 We have an application where we use the PopUpManager to add a 
number of 
 TitleWindows.
 
 I want to know when a window is activated i.e. it is clicked on and 
the 
 window is brought to the front and vice versa when it ceases to be 
the 
 topmost window.
 
 I thought the track focusin/focusout would be the solution but this 
 doesnt appear to always work as expected.
 
 It seem clicking on a window doesnt give it focus it just brings it 
to 
 the top, only clicking into a control in that window actually 
causes 
 focus to be set.
 
 FocusIn/FocusOut seems to work only when I click on a TitleWindow 
once 
 I have previously clicked in to a control in that window and also 
the 
 same for window that is being moved backwards.
 
 So  what event can I listen to know when a window is clicked on 
or 
 is brought to the front by the PopUpManager.bringToFront?
 
 Hope thats clear..
 tks





[flexcoders] Re: vertical axis to display string

2007-12-18 Thread rueter007
you can use the labelFunction property on the LinearAxis or any axis
that you are using as you are vertical axis, and format the value into
any desired string. 

function function_name(labelValue:Object, previousValue:Object,
axis:IAxis):String { ... }

- venkat
http://www.venkatj.com

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

 How do I set the vertical axis labels as specified strings instead of
 numeric values?





[flexcoders] Re: Can we Display XML file As Is in Flex ????

2007-12-18 Thread tarun chandra
Thank You All  
I will try it out.


Tarun


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

 Yes, but remember that IE uses xslt to product that pretty formatted
 display.
 
  
 
 toXMLString() will print exactly what is in the xml text.  If there are
 no newlines, it will be hard to read.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Alex Harui
 Sent: Monday, December 17, 2007 12:51 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Can we Display XML file As Is in Flex 
 
  
 
 toXMLString()
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Joseph Balderson
 Sent: Monday, December 17, 2007 9:46 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Can we Display XML file As Is in Flex 
 
  
 
 Try using the toString() method of the XML class, and then dump it into 
 a text field.
 __
 
 Joseph Balderson, Flash Platform Developer | http://joeflash.ca
 http://joeflash.ca 
 Abobe Certified Developer  Trainer | 705-466-6345
 Writing partner, Community MX | http://www.communitymx.com
 http://www.communitymx.com 
 
 tarun chandra wrote:
  Hi,
  
  I want to display an XML file as is (like in IE) in an mxml page. Is
  it possible to do it in flex?? And if it is, can anyone please tell me
  how to do it.
  
  Thank You,
  Tarun
  
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
  Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 http://www.mail-archive.com/flexcoders%40yahoogroups.com  
  Yahoo! Groups Links
  
  
  
 





[flexcoders] Replace PopUpManager

2007-12-18 Thread reflexactions
How easy would it be to replace PopUpManagerImpl with our own custom 
version.

Do I just need to register it as a singleton in the application 
initialization or is it much more than that.

tks



[flexcoders] implementing IFocusManager

2007-12-18 Thread Corey Smaller
i imported mx.managers.IFocusManagerComponent  and implemented it
like so:


public class ColoredScheduleEntry extends SimpleScheduleEntry implements 
 IFocusManagerComponent
{

public var backgroundColor : int = 0xcc;


override public function toString() : String
{
return [object SimpleScheduleEntry id:  +id +
  
startDate: +startDate +  endDate: + endDate + ];
}

}



Now, even though i implemented the component like the example tells
you (and that should be it to make it focusable)
I get 7 errors all related to the interface methods Getters and
Setters in the IFocusManagerComponent (one example below)

1044: Interface method drawFocus in namespace
mx.managers:IFocusManagerComponent not implemented by class
flexlib.scheduling.scheduleClasses:ColoredScheduleEntry.


anyone know why this is??





[flexcoders] Re: TitleWindow activation

2007-12-18 Thread ben.clinkinbeard
FlexMDI dispatches focus events like the ones you're describing.

http://code.google.com/p/flexmdi/

HTH,
Ben


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

 Thanks, thats exactly what we have done now.
 
 The slight downside/peformance is that having to capture focus 
 in/focus out you it fires for every tab change within the window(ie a 
 lot) and you have to check to see whether focus is just moving 
 somewhere within the window.
 
 Would be nice if there was someday an activate/deactivate event on 
 the window itslef.
 
 
 
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  There is no event that exactly matches what you want.  A good design
  would set focus somewhere in each popup on creation.  Flex doesn't 
 do
  that for you.  Then the system would restore focus as each popup 
 came
  back to top.
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of reflexactions
  Sent: Tuesday, December 18, 2007 5:44 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] TitleWindow activation
  
  
  
  We have an application where we use the PopUpManager to add a 
 number of 
  TitleWindows.
  
  I want to know when a window is activated i.e. it is clicked on and 
 the 
  window is brought to the front and vice versa when it ceases to be 
 the 
  topmost window.
  
  I thought the track focusin/focusout would be the solution but this 
  doesnt appear to always work as expected.
  
  It seem clicking on a window doesnt give it focus it just brings it 
 to 
  the top, only clicking into a control in that window actually 
 causes 
  focus to be set.
  
  FocusIn/FocusOut seems to work only when I click on a TitleWindow 
 once 
  I have previously clicked in to a control in that window and also 
 the 
  same for window that is being moved backwards.
  
  So  what event can I listen to know when a window is clicked on 
 or 
  is brought to the front by the PopUpManager.bringToFront?
  
  Hope thats clear..
  tks
 





RE: [flexcoders] Flex JavaFX Sliverlight Flash PB

2007-12-18 Thread John Dowdell
Yes, that's true, delivering to the browser is only one way of distributing an 
application. Sometimes you can deliver and install standalone executables (like 
a Flash Projector or such), and sometimes you can deliver to the desktop 
without requiring a system-level installation (Adobe AIR).

Most Flash and Flex is viewed inside an HTML browser, rendered by Adobe Flash 
Player 9. In this environment we don't have direct access to device drivers, 
and so everything would depend on how that tactile screen can send 
information.

(If its API is similar to that of a computer mouse, then things are pretty 
easy. But if it's more of a haptic controller then it may not be able to 
communicate to something inside a browser.)

jd/adobe



-Original Message-
From: flexcoders@yahoogroups.com on behalf of debussy007
Sent: Tue 12/18/2007 10:03 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex  JavaFX  Sliverlight  Flash  PB
 

Thank you all for your replies !

I didn't understand your comment John.
I am new to this and I don't know the difference about delivering to
browser or not.
Isn't it the same except that an RIA without browser just doesn't have this
address bar and browser menu's ? Or are they really different applications ?

Also isn't a touchscreen just like a mouse basically ? You talk about an
API, an API between which components ? I will look this up.

Thank you for your kind help.


John Dowdell-2 wrote:
 
 I need to develop an application which will allow users to interact with
 my
 server via a tactil screen.
 I have several question here.
 What technology should I use ? What type of application is the most
 adapted
 for tose kind of screens ?
 
 Start by investigating the API that the touchscreen offers. 
 
 If you're delivering an application hosted within a browser, then
 communicating with a local API can be tricky. But it may be possible,
 depending on how the touchscreen can communicate.
 
 (JavaFX and Silverlight are mainly press releases at this point -- if
 delivering to the browser, then you're probably looking at either
 JavaScript or SWF.)
 
 jd/adobe
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Flex-%3C%3E-JavaFX-%3C%3E-Sliverlight-%3C%3E-Flash-tp14384496p14402231.html
Sent from the FlexCoders mailing list archive at Nabble.com.



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






[flexcoders] Re: implementing IFocusManager

2007-12-18 Thread rueter007
I do not know what SimpleScheduleEntry extends but it is most likely
that it does not extend UIComponent. The example says that 'implements
 IFocusManagerComponent' should be added to a UIComponent-derived
component to set focus. Otherwise, you will have to implement
drawFocus() and setFocus() yourself.

- venkat
http://www.venkatj.com

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

 i imported mx.managers.IFocusManagerComponent  and implemented it
 like so:
 
 
 public class ColoredScheduleEntry extends SimpleScheduleEntry
implements 
  IFocusManagerComponent
 {
 
 public var backgroundColor : int = 0xcc;
   
   
   override public function toString() : String
   {
   return [object SimpleScheduleEntry id:  +id +
   
 startDate: +startDate +  endDate: + endDate + ];
   }
   
 }
 
 
 
 Now, even though i implemented the component like the example tells
 you (and that should be it to make it focusable)
 I get 7 errors all related to the interface methods Getters and
 Setters in the IFocusManagerComponent (one example below)
 
 1044: Interface method drawFocus in namespace
 mx.managers:IFocusManagerComponent not implemented by class
 flexlib.scheduling.scheduleClasses:ColoredScheduleEntry.  
 
 
 anyone know why this is??





[flexcoders] Why are the Layout classes excluded/hidden?

2007-12-18 Thread ben.clinkinbeard
I would like to create a container class that provides layout
flexibility like the Panel does, allowing the user to choose between
BoxLayout and CanvasLayout behavior. In investigating I see that those
two classes as well as the marker class of Layout are marked with
[ExcludeClass] and for internal use only. I am curious why this is
the case as it seems like even if their implementation were to change
in the future that their functionality and public interface would
(have to) remain consistent.

Should I really avoid using these super useful classes?

Thanks,
Ben



[flexcoders] Re: implementing IFocusManager

2007-12-18 Thread Corey Smaller
ah so what you are saying is because its not a UI component I have to
declare the get and set methods myself? Do I have to override the
IFocusManagerComponent class altogether??
thanks for the help




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

 I do not know what SimpleScheduleEntry extends but it is most likely
 that it does not extend UIComponent. The example says that 'implements
  IFocusManagerComponent' should be added to a UIComponent-derived
 component to set focus. Otherwise, you will have to implement
 drawFocus() and setFocus() yourself.
 
 - venkat
 http://www.venkatj.com
 
 --- In flexcoders@yahoogroups.com, Corey Smaller corey_smaller@
 wrote:
 
  i imported mx.managers.IFocusManagerComponent  and implemented it
  like so:
  
  
  public class ColoredScheduleEntry extends SimpleScheduleEntry
 implements 
   IFocusManagerComponent
  {
  
  public var backgroundColor : int = 0xcc;
  
  
  override public function toString() : String
  {
  return [object SimpleScheduleEntry id:  +id +   
  
  startDate: +startDate +  endDate: + endDate + ];
  }
  
  }
  
  
  
  Now, even though i implemented the component like the example tells
  you (and that should be it to make it focusable)
  I get 7 errors all related to the interface methods Getters and
  Setters in the IFocusManagerComponent (one example below)
  
  1044: Interface method drawFocus in namespace
  mx.managers:IFocusManagerComponent not implemented by class
  flexlib.scheduling.scheduleClasses:ColoredScheduleEntry.
  
  
  anyone know why this is??
 





[flexcoders] Re: Flex JavaFX Sliverlight Flash

2007-12-18 Thread johantrax
It depends, languages and technologies are tools: use the right one
for the right job.

So starting at the beginning: Do you want to develop a web-app or a
desktop application? Given your own suggestions I assume you are
familiar with creating a Java-backend.

First I'll start by ruling out Flash: Yes, you 'can' make an
application with Flash, but it doesn't seems easy to me. I believe
Flash is more about animation/look-n-feel. What you easily CAN do, is
create assets in Flash, and use them for Flex-components.

I can't help you with Silverlight, it's a big black box to me. Which
at it's release seemed wanting to conquer the Flash(?Flex)-world, but
just lacks the years of experience for it.

Next Up is 'Standard Webpages'. It's hard to know what you define as
'standard webpages', but if that includes to be not entirely static
pages, serverside controlled (maybe even some AJAX thrown in), and
you're familiar with that, then why not? However, it's just another
WebInterface, sure you can do amazing stuff with this, but try getting
it working on each browser(version)...

The Java-GUI-side: you mention JavaFX or Swing-based(fat) clients.
First of all, if you're going for a webapp: drop it. Only 4 letters
apply there: s-l-o-w. (Before the Java-community shoots me: yes, the
speed of Java Web Start has increased astonishing, but please, compare
it to flexApps...)
However if you're going for a desktop-Application, then yeah, go for
JavaFX. Being a Swing/Awt-wrapper, it allows you to fit in plain
Swing-code when you need it.
Do note that at this point JavaFX is only fully released as an
interpreted language. The compiled version is stable at milestone1,
but not yet good enough for a productionenvironment according to me.

Then there is Flex. When it's a webapp you want, and it has to look
and feel like you want, use it. It's not hard at all to grasp the
concept of how to develop a FlexApplication. The structure of the
language allows you to create anything you need.
Besides, with the recent release of BlazeDS, easy communication with
Java-backends just got free of charge.
And I must say, the community here is great ;)
Flex might require some new logical approach when you're used to
writing Java, since it's completely event-based, but untill now I have
found it worth the effort.


Also note that above is written out of personal experience (which is
not to be esteemed to high). Once again, use the tool which fits the
job best, and if you're tight on time use one you know or is easy to
learn (*subtile hint into Flex, after all this is the FlexCoders list*)

--Johan



[flexcoders] Re: implementing IFocusManager

2007-12-18 Thread rueter007
I looked at the source code. SimpleScheduleEntry is not a ui component
and hence cannot have focus. It is just an object that holds some data
about a schedule entry. any ui classes that are using this object will
have focus implementation already implemented in the base class as
they extend UIComponent.

- venkat
http://www.venkatj.com

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

 ah so what you are saying is because its not a UI component I have to
 declare the get and set methods myself? Do I have to override the
 IFocusManagerComponent class altogether??
 thanks for the help
 
 
 
 
 --- In flexcoders@yahoogroups.com, rueter007 rueter007@ wrote:
 
  I do not know what SimpleScheduleEntry extends but it is most likely
  that it does not extend UIComponent. The example says that 'implements
   IFocusManagerComponent' should be added to a UIComponent-derived
  component to set focus. Otherwise, you will have to implement
  drawFocus() and setFocus() yourself.
  
  - venkat
  http://www.venkatj.com
  
  --- In flexcoders@yahoogroups.com, Corey Smaller corey_smaller@
  wrote:
  
   i imported mx.managers.IFocusManagerComponent  and implemented it
   like so:
   
   
   public class ColoredScheduleEntry extends SimpleScheduleEntry
  implements 
IFocusManagerComponent
   {
   
   public var backgroundColor : int = 0xcc;
 
 
 override public function toString() : String
 {
 return [object SimpleScheduleEntry id:  +id +   
   
   startDate: +startDate +  endDate: + endDate +
];
 }
 
   }
   
   
   
   Now, even though i implemented the component like the example tells
   you (and that should be it to make it focusable)
   I get 7 errors all related to the interface methods Getters and
   Setters in the IFocusManagerComponent (one example below)
   
   1044: Interface method drawFocus in namespace
   mx.managers:IFocusManagerComponent not implemented by class
   flexlib.scheduling.scheduleClasses:ColoredScheduleEntry.  
   
   
   anyone know why this is??
  
 





RE: [flexcoders] Re: E4X and DataGrid

2007-12-18 Thread Tracy Spratt
In the result handler, examine the data:

trace (photoFeed.toXMLString());

trace(photoFeed.entry.length());

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of alexander.marktl
Sent: Tuesday, December 18, 2007 11:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: E4X and DataGrid

 

Oh. I made a mistake in the post. This is how the grid looks like and
it still doesn't work.

mx:DataGrid dataProvider={photoFeed.entry}
mx:columns
mx:DataGridColumn headerText=Title
dataField=title/
/mx:columns
/mx:DataGrid

 



[flexcoders] Re: implementing IFocusManager

2007-12-18 Thread Corey Smaller
i just hit the proverbial brick wall then.

I did notice that the Schedule itself can be tab enabled and i figured
 tabChildren=true would do the trick in the component call, which it
did not of course because, as you say, all these objects are not UI
components.  I guess the next step would be either to decide whether
to scrap it and start over (OH NO!) or figure out a way to convert
each object to a UI component.  

Venkat thanks for your help, I really appreciate it


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

 I looked at the source code. SimpleScheduleEntry is not a ui component
 and hence cannot have focus. It is just an object that holds some data
 about a schedule entry. any ui classes that are using this object will
 have focus implementation already implemented in the base class as
 they extend UIComponent.
 
 - venkat
 http://www.venkatj.com
 
 --- In flexcoders@yahoogroups.com, Corey Smaller corey_smaller@
 wrote:
 
  ah so what you are saying is because its not a UI component I have to
  declare the get and set methods myself? Do I have to override the
  IFocusManagerComponent class altogether??
  thanks for the help
  
  
  
  
  --- In flexcoders@yahoogroups.com, rueter007 rueter007@ wrote:
  
   I do not know what SimpleScheduleEntry extends but it is most likely
   that it does not extend UIComponent. The example says that
'implements
IFocusManagerComponent' should be added to a UIComponent-derived
   component to set focus. Otherwise, you will have to implement
   drawFocus() and setFocus() yourself.
   
   - venkat
   http://www.venkatj.com
   
   --- In flexcoders@yahoogroups.com, Corey Smaller corey_smaller@
   wrote:
   
i imported mx.managers.IFocusManagerComponent  and implemented it
like so:


public class ColoredScheduleEntry extends SimpleScheduleEntry
   implements 
 IFocusManagerComponent
{

public var backgroundColor : int = 0xcc;


override public function toString() : String
{
return [object SimpleScheduleEntry id:  +id +
   

startDate: +startDate +  endDate: + endDate +
 ];
}

}



Now, even though i implemented the component like the example
tells
you (and that should be it to make it focusable)
I get 7 errors all related to the interface methods Getters and
Setters in the IFocusManagerComponent (one example below)

1044: Interface method drawFocus in namespace
mx.managers:IFocusManagerComponent not implemented by class
flexlib.scheduling.scheduleClasses:ColoredScheduleEntry.


anyone know why this is??
   
  
 





[flexcoders] Question wrt mapping in games with lots of movie clips

2007-12-18 Thread Rick Schmitty
So I'll be stepping out of my league a bit on this project and if
anyone from the Flash games world has some advice I'd appreciate it :)

If you were making a large world with lots of people/objects on your
tile area I'm assuming a few things
1) you dont want to create n objects for everything in the world and
only want those that are visible to the player created
2) you need to write some custom 'engine' that can detect if an object
should be created so its visible to the player
2b) I'm pretty certain there isnt an event/something built in to say
'hey im visible you should create me on the stage' in Flex
3) you'll want to create objects just a bit outside of the players POV
so they are ready when the scrolled area comes to them
4) should I keep those objects created after the player has passed
that area (he can go back of course) or should I define either some
max objects or max range before they are destroyed and do my own
garbage collection


If theres any websites, blogs, books you'd recommend I would appreciate it

Thanks in advance


[flexcoders] Looking for component to generate PDF files

2007-12-18 Thread sprezzatura1
Does anyone know of a component to create graphics PDF files? We need
low-level control to create lines, curves, colors, gradients, etc.

This would seem to rule out AlivePDF, LiveCycle, which are text-oriented.

The PDF component must run on the client, which eliminates
server-based solutions like Apache FOP.

It must represent the graphics as vector elements. An image of the
graphics is not acceptable as it will be coarse and pixellated when
the user zooms in.

Thank you.



[flexcoders] disable edit in DataGrid row depending on cell value

2007-12-18 Thread Mr Greg Murnock
What is the best way to disable the edit property, or any other property, in a 
DataGrid cell row based on the value of an item in a row?  For Instance - say I 
don't want a value to be edited because that order has already been 
processed.   
Greg


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


RE: [flexcoders] Re: implementing IFocusManager

2007-12-18 Thread Alex Harui
In theory, if you properly implement IFocusManagerComponent it should
work.  The errors indicate you have not implemented the required
methods.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Corey Smaller
Sent: Tuesday, December 18, 2007 12:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: implementing IFocusManager

 

i just hit the proverbial brick wall then.

I did notice that the Schedule itself can be tab enabled and i figured
tabChildren=true would do the trick in the component call, which it
did not of course because, as you say, all these objects are not UI
components. I guess the next step would be either to decide whether
to scrap it and start over (OH NO!) or figure out a way to convert
each object to a UI component. 

Venkat thanks for your help, I really appreciate it

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

 I looked at the source code. SimpleScheduleEntry is not a ui component
 and hence cannot have focus. It is just an object that holds some data
 about a schedule entry. any ui classes that are using this object will
 have focus implementation already implemented in the base class as
 they extend UIComponent.
 
 - venkat
 http://www.venkatj.com http://www.venkatj.com 
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Corey Smaller corey_smaller@
 wrote:
 
  ah so what you are saying is because its not a UI component I have
to
  declare the get and set methods myself? Do I have to override the
  IFocusManagerComponent class altogether??
  thanks for the help
  
  
  
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , rueter007 rueter007@ wrote:
  
   I do not know what SimpleScheduleEntry extends but it is most
likely
   that it does not extend UIComponent. The example says that
'implements
   IFocusManagerComponent' should be added to a UIComponent-derived
   component to set focus. Otherwise, you will have to implement
   drawFocus() and setFocus() yourself.
   
   - venkat
   http://www.venkatj.com http://www.venkatj.com 
   
   --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Corey Smaller corey_smaller@
   wrote:
   
i imported mx.managers.IFocusManagerComponent and implemented it
like so:


public class ColoredScheduleEntry extends SimpleScheduleEntry
   implements 
IFocusManagerComponent
{

public var backgroundColor : int = 0xcc;


override public function toString() : String
{
return [object SimpleScheduleEntry id:  +id +  
  
startDate: +startDate +  endDate: + endDate +
 ];
}

}



Now, even though i implemented the component like the example
tells
you (and that should be it to make it focusable)
I get 7 errors all related to the interface methods Getters and
Setters in the IFocusManagerComponent (one example below)

1044: Interface method drawFocus in namespace
mx.managers:IFocusManagerComponent not implemented by class
flexlib.scheduling.scheduleClasses:ColoredScheduleEntry. 


anyone know why this is??
   
  
 


 



[flexcoders] Question about flash.event ... someone can help?

2007-12-18 Thread danielvlopes
Hello,

I had public function inside component and this function receive as
argument event, like this:

public function onUploadCanceled(event:Event):void {

And now i want call this function outside of component, but i don't
know how i will pass an event as argument for this function, i try
this but doesn't work:

public function cleanForm():void{
  uploadFotos.onUploadCanceled(event);  
  parentDocument.goToStack(0);  
}

Thanks...



[flexcoders] Re: Why are the Layout classes excluded/hidden?

2007-12-18 Thread ben.clinkinbeard
Seems extending LayoutContainer is the intended way to accomplish what
I want. Still curious as to why the other classes are hidden though.

Ben


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

 I would like to create a container class that provides layout
 flexibility like the Panel does, allowing the user to choose between
 BoxLayout and CanvasLayout behavior. In investigating I see that those
 two classes as well as the marker class of Layout are marked with
 [ExcludeClass] and for internal use only. I am curious why this is
 the case as it seems like even if their implementation were to change
 in the future that their functionality and public interface would
 (have to) remain consistent.
 
 Should I really avoid using these super useful classes?
 
 Thanks,
 Ben





RE: [flexcoders] Replace PopUpManager

2007-12-18 Thread Alex Harui
You have to subclass SystemManager and figure out how to register it
earlier than app startup.  You could use a shell app that loads your
regular app.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of reflexactions
Sent: Tuesday, December 18, 2007 10:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Replace PopUpManager

 

How easy would it be to replace PopUpManagerImpl with our own custom 
version.

Do I just need to register it as a singleton in the application 
initialization or is it much more than that.

tks

 



RE: [flexcoders] FB3 Beta 3 AIR app problem

2007-12-18 Thread Jim Hayes
There are some changes in the application descriptor file that you need to make,
(for me flex builder raised errors before I did that so nothing happening would 
seem a bit strange. I'm impatient! :) )


Kevin Hoyt has quite a good little summary here :
http://blog.kevinhoyt.org/2007/12/13/air-beta-3-migration-tips/

Apart from that, if you posted the actual error messages then it would probably 
help people help you more!

Jim.




-Original Message-
From: flexcoders@yahoogroups.com on behalf of windsail05
Sent: Tue 18/12/2007 18:10
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FB3 Beta 3 AIR app problem
 
Since the installation of FB3 Beta 3 I have not been able to run my
AIR applications, and the AIR executables.  When I try to run from
Flex Builder nothing happens, and When I try to run executable errors
come up.



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Re: Vertical scrolling without horizontal scrolling? How do I make 100% == 100%

2007-12-18 Thread Alex Harui
Setting minWidth allows horizontalscrollbars on a container.  Sounds
like you want to set minHeight instead?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dave_defusion
Sent: Tuesday, December 18, 2007 9:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Vertical scrolling without horizontal
scrolling? How do I make 100% == 100%

 

I too have been having problems with 100% widths and unwanted
horizontal scrollbar.

I've tried adding minWidth=0 to everything that has a width of 100%
but that hasn't fixed the problem that I get an unwanted horizontal
scrollbar.

I've also tried using the reflex util
(http://code.google.com/p/reflexutil/
http://code.google.com/p/reflexutil/ ) to change these properties at
run time to try and figure out what is causing the problem.

What I (basically) have is the following:

- (1) Tab navigator - 100% width
-- (2) VBox (Tab contents) - 100% width
--- (3a) Text 
--- (3b) HBox - 100% width
--- (3c) Tab navigator - 100% width

I get the vertical and horizontal scrollbars on the outer tab
navigator (1) whenever the content gets taller than the app, in this
case I obviously want vertical scrollbars and no horizontal scrollbars.

With the reflex util I can change the width of the tab contents
children (3a,3b,3c) and I still have horizontal scrollbar. However I
cannot change the width of the VBox that wraps the tab contents (2) -
it simply keeps resetting to the current value every time I try. I can
see that it is the VBox (2) which is overlapping the vertical
scrollbar (and thus causing the horizontal scrollbar) using reflex util.

So I'm really stumped, I either need a solution to this, or a way to
move the scrollbars from the tab navigator (1) to the VBox (2).

Any advice would be greatly appreciated.

-D

 



[flexcoders] Re: implementing IFocusManager

2007-12-18 Thread Corey Smaller
yeah that is what I thought too but to properly implement the
IfocusManagerComponent dont i just add it to the class declaration? 

like so:

import mx.managers.IFocusManagerComponent;  

public class ColoredScheduleEntry extends SimpleScheduleEntry
 implements IScheduleEntry,IFocusManagerComponent




everywhere I have looked that is what the example tells you to do and
it should work but it doesnt at all because its an object and not a UI
component?  
So, i believe i have to convert each object to an item using
ItemRenderer and then it should be focus-able?
this is all just logic in my head though, i am sure there are other
ways (or if I just implemented it wrong which would save me more
headaches)





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

 In theory, if you properly implement IFocusManagerComponent it should
 work.  The errors indicate you have not implemented the required
 methods.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Corey Smaller
 Sent: Tuesday, December 18, 2007 12:02 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: implementing IFocusManager
 
  
 
 i just hit the proverbial brick wall then.
 
 I did notice that the Schedule itself can be tab enabled and i figured
 tabChildren=true would do the trick in the component call, which it
 did not of course because, as you say, all these objects are not UI
 components. I guess the next step would be either to decide whether
 to scrap it and start over (OH NO!) or figure out a way to convert
 each object to a UI component. 
 
 Venkat thanks for your help, I really appreciate it
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , rueter007 rueter007@ wrote:
 
  I looked at the source code. SimpleScheduleEntry is not a ui component
  and hence cannot have focus. It is just an object that holds some data
  about a schedule entry. any ui classes that are using this object will
  have focus implementation already implemented in the base class as
  they extend UIComponent.
  
  - venkat
  http://www.venkatj.com http://www.venkatj.com 
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , Corey Smaller corey_smaller@
  wrote:
  
   ah so what you are saying is because its not a UI component I have
 to
   declare the get and set methods myself? Do I have to override the
   IFocusManagerComponent class altogether??
   thanks for the help
   
   
   
   
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , rueter007 rueter007@ wrote:
   
I do not know what SimpleScheduleEntry extends but it is most
 likely
that it does not extend UIComponent. The example says that
 'implements
IFocusManagerComponent' should be added to a UIComponent-derived
component to set focus. Otherwise, you will have to implement
drawFocus() and setFocus() yourself.

- venkat
http://www.venkatj.com http://www.venkatj.com 

--- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , Corey Smaller corey_smaller@
wrote:

 i imported mx.managers.IFocusManagerComponent and implemented it
 like so:
 
 
 public class ColoredScheduleEntry extends SimpleScheduleEntry
implements 
 IFocusManagerComponent
 {
 
 public var backgroundColor : int = 0xcc;
 
 
 override public function toString() : String
 {
 return [object SimpleScheduleEntry id:  +id +  
   
 startDate: +startDate +  endDate: + endDate +
  ];
 }
 
 }
 
 
 
 Now, even though i implemented the component like the example
 tells
 you (and that should be it to make it focusable)
 I get 7 errors all related to the interface methods Getters and
 Setters in the IFocusManagerComponent (one example below)
 
 1044: Interface method drawFocus in namespace
 mx.managers:IFocusManagerComponent not implemented by class
 flexlib.scheduling.scheduleClasses:ColoredScheduleEntry. 
 
 
 anyone know why this is??

   
  
 





Re: [flexcoders] Question about flash.event ... someone can help?

2007-12-18 Thread Samuel Jones
You're going to need to dispatch the event, instead of calling the handler
directly.

In your component:
this.addEventListener(onUploadCanceled);

...

In the caller:
public function cleanForm():void{
dispatchEvent(event);
parentDocument.goToStack(0); }

I may have the exact syntax wrong (check the docs) but the gist is there.
-Sam

On Dec 18, 2007 2:22 PM, danielvlopes [EMAIL PROTECTED] wrote:

   Hello,

 I had public function inside component and this function receive as
 argument event, like this:

 public function onUploadCanceled(event:Event):void {

 And now i want call this function outside of component, but i don't
 know how i will pass an event as argument for this function, i try
 this but doesn't work:

 public function cleanForm():void{
 uploadFotos.onUploadCanceled(event);
 parentDocument.goToStack(0); }

 Thanks...

  



[flexcoders] Re: datagrid dataprovider versus backing arrayCollection

2007-12-18 Thread j_lentzz
I took a look at it and I had a bug in my code (surprise).  I wasn't
referring to the same arrayCollection as I thought.

Sorry,

John
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Should be the same.  Can we see a test case or some more code like the
 definitions and assignments?
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of j_lentzz
 Sent: Tuesday, December 18, 2007 6:08 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] datagrid dataprovider versus backing
 arrayCollection
 
 
 
 Hi,
 
 I have an app with a dataGrid that has an arrayCollection as the
 provider. The dataProvider is set via binding (dataProvider =
 {dgAC}) However, I've noticed that I get a different collection
 depending on whether I ask for dg.dataProvider or use dgAC. Could
 someone please explain the difference between these two? I thought
 they would reference the same data, but if I use (dg.dataProvider as
 ArrayCollection).list.toArray() and dgAC.list.toArray(), I don't get
 the same set of data. In my program, I'm adding a property to an
 object in dgAC, that doesn't have a column in the datagrid, but I
 thought that dg.dataProvider would return the complete arrayCollection
 anyway.
 
 Any enlightenment would be greatly appreciated.
 
 Thank you,
 
 John





[flexcoders] Re: FB3 Beta 3 AIR app problem

2007-12-18 Thread andrewwestberg
Make sure you have the Beta 3 AIR package installed.  I had to
manually install this separately from the new flexbuilder b3 to get my
apps to work.

-Andrew

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

 Since the installation of FB3 Beta 3 I have not been able to run my
 AIR applications, and the AIR executables.  When I try to run from
 Flex Builder nothing happens, and When I try to run executable errors
 come up.





[flexcoders] Binding DataGridColumn to an XML attribute rather than the text of an element

2007-12-18 Thread rmonson_us
I'm accessing an XML document using HTTPService. I've bound the last
result to a DataGrid and the DataGridColumn to the text value of an
a attribute with no problem. Now I want to bind to an attribute in
the same elemenet (i.e. href), but I can't figure out the syntax to be
used in the dataField property. Here is the XML i'm accessing

htmlbody
spana class=Customer
href=http://localhost:8080/nfjs/customer?id=103; Atelier
graphique/a br//span
spana class=Customer
href=http://localhost:8080/nfjs/customer?id=112; Signal Gift
Stores/a br//span
...

I can get the value of the a attribute into the first column but I
want to put the href attribute value into the second column. How
should I set the dataField property. I've tried dataField=a.href,
dataField=a/href, dataField=[EMAIL PROTECTED], dataField=a/@href,
dataField=[EMAIL PROTECTED] with no success. Is it possible to specify an XML
attribute from the dataField property?

Thanks,

Richard 



RE: [flexcoders] Question about flash.event ... someone can help?

2007-12-18 Thread Jim Hayes

Can you use a default parameter value?

e.g.

change this :

public function onUploadCanceled(event:Event):void {

to this :

public function onUploadCanceled(event:Event=null):void {

That's if you're not actually using any info in the event, of course ?
I'm guessing there, but it seems reasonably likely for an uploadCancelled 
function.

Otherwise I tend to use a a wrapper function that takes the event, parses the 
event info and then passes that to a function that does the real work (which 
you can of course call separately).



-Original Message-
From: flexcoders@yahoogroups.com on behalf of danielvlopes
Sent: Tue 18/12/2007 20:22
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question about flash.event ... someone can help?
 
Hello,

I had public function inside component and this function receive as
argument event, like this:

public function onUploadCanceled(event:Event):void {

And now i want call this function outside of component, but i don't
know how i will pass an event as argument for this function, i try
this but doesn't work:

public function cleanForm():void{
  uploadFotos.onUploadCanceled(event);  
  parentDocument.goToStack(0);  
}

Thanks...



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

Re: [flexcoders] disable edit in DataGrid row depending on cell value

2007-12-18 Thread Mr Greg Murnock
actually I found exactly what I was looking for at:
http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html
Thanks for the write up Alex.
Greg



- Original Message 
From: Mr Greg Murnock [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, December 18, 2007 3:12:47 PM
Subject: [flexcoders] disable edit in DataGrid row depending on cell value

What is the best way to disable the edit property, or any other property, in a 
DataGrid cell row based on the value of an item in a row?  For Instance - say I 
don't want a value to be edited because that order has already been 
processed.   
Greg 



Looking for last minute shopping deals? Find them fast with Yahoo! Search. 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Flex JavaFX Sliverlight Flash

2007-12-18 Thread debussy007

Thank you johan.

The back ends are based on Java webservices.
It has no reason to be a web-app so we will rather go for a desktop
application. (Or make it a web-app and lock the browser to benefit from all
the web technologies (e.g. RSS feeds, thin client) Does that makes sense ?)
But there is something I don't get:

What is the difference between an RIA desktop application (e.g. in Flex) and
a standard desktop application (e.g. Swing based) ?

Thank you.


johantrax wrote:
 
 It depends, languages and technologies are tools: use the right one
 for the right job.
 
 So starting at the beginning: Do you want to develop a web-app or a
 desktop application? Given your own suggestions I assume you are
 familiar with creating a Java-backend.
 
 First I'll start by ruling out Flash: Yes, you 'can' make an
 application with Flash, but it doesn't seems easy to me. I believe
 Flash is more about animation/look-n-feel. What you easily CAN do, is
 create assets in Flash, and use them for Flex-components.
 
 I can't help you with Silverlight, it's a big black box to me. Which
 at it's release seemed wanting to conquer the Flash(?Flex)-world, but
 just lacks the years of experience for it.
 
 Next Up is 'Standard Webpages'. It's hard to know what you define as
 'standard webpages', but if that includes to be not entirely static
 pages, serverside controlled (maybe even some AJAX thrown in), and
 you're familiar with that, then why not? However, it's just another
 WebInterface, sure you can do amazing stuff with this, but try getting
 it working on each browser(version)...
 
 The Java-GUI-side: you mention JavaFX or Swing-based(fat) clients.
 First of all, if you're going for a webapp: drop it. Only 4 letters
 apply there: s-l-o-w. (Before the Java-community shoots me: yes, the
 speed of Java Web Start has increased astonishing, but please, compare
 it to flexApps...)
 However if you're going for a desktop-Application, then yeah, go for
 JavaFX. Being a Swing/Awt-wrapper, it allows you to fit in plain
 Swing-code when you need it.
 Do note that at this point JavaFX is only fully released as an
 interpreted language. The compiled version is stable at milestone1,
 but not yet good enough for a productionenvironment according to me.
 
 Then there is Flex. When it's a webapp you want, and it has to look
 and feel like you want, use it. It's not hard at all to grasp the
 concept of how to develop a FlexApplication. The structure of the
 language allows you to create anything you need.
 Besides, with the recent release of BlazeDS, easy communication with
 Java-backends just got free of charge.
 And I must say, the community here is great ;)
 Flex might require some new logical approach when you're used to
 writing Java, since it's completely event-based, but untill now I have
 found it worth the effort.
 
 
 Also note that above is written out of personal experience (which is
 not to be esteemed to high). Once again, use the tool which fits the
 job best, and if you're tight on time use one you know or is easy to
 learn (*subtile hint into Flex, after all this is the FlexCoders list*)
 
 --Johan
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Flex-%3C%3E-JavaFX-%3C%3E-Sliverlight-%3C%3E-Flash-tp14384496p14405852.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Calling Local Web Services

2007-12-18 Thread chompion

All,

Do the Web Services called in a Flex application need to be publically
available (i.e., WAN address)? Because I don't necessarily want to expose
these to the outside world, just to the Flex app by some sort of proxy.

Can somebody give me instructions on how to set this up?

TIA.
-- 
View this message in context: 
http://www.nabble.com/Calling-Local-Web-Services-tp14404140p14404140.html
Sent from the FlexCoders mailing list archive at Nabble.com.



  1   2   >