RE: [flexcoders] How can I avoid jumping / flickering when changing the dataprovider in a list box?

2007-11-27 Thread Alex Harui
are you using custom renderers?  If so, do you see flickering with
default renderers?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Anzer
Sent: Monday, November 26, 2007 10:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How can I avoid jumping / flickering when changing
the dataprovider in a list box?



Hi,

I am programmatically changing the values in an array collection which
is the data provider of a list box. 

When I change the values the list box is flickering, how can I avoid it?

My intention is to show an interface like windows explorer. I want to do
in place re naming and deleting in the list. 

Its working correctly but I want to remove the jumping of the list box
items after the edit.

Thanks
Anz

http://www.flickrmailer.com http://www.flickrmailer.com/  

 


[flexcoders] Re: Datagrid tab order?

2007-11-27 Thread Stephen Roy J. Tang
We had trouble before with having both an item renderer and an item
editor for a column (which we need to have that checkbox column), so
instead what I tried was simply having only itemrenderers for the
controls (and updating the data on change of the itemrenderer
controls) This seems to fix the default tab order, but there are still
some issues with the tab order, namely:

1. Tabbing through the grid only traverses visible rows - how can a
user navigate to scrolled-out rows using the keyboard?
2. Sorting the grid doesn't seem to sort the taborder - the rows are
still traversed in the original order. (Strangely, reassigning a
headerRenderer after the sorting sets the correct tab order - I found
this by accident)
3. Tabbing into the grid from an outside control - looks like it
remembers where the grid was last traversed and starts over from
there. Is it possible to change it to always enter the grid from the
first row?
4. I'm not sure of the behavior exactly, as I couldn't replicate it
all the time, but tabbing into the grid after it has been
mouse-scrolled seems to cause it to enter at different rows.



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

 Sounds like editable!=true, so the DG's tab handling code isn't running.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Stephen Roy J. Tang
 Sent: Friday, November 16, 2007 9:15 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Datagrid tab order?
 
  
 
 Hi,
 
 I'm a bit confused about the tab order in a datagrid. The problem is I
 have a datagrid with 3 columns: 
 column 1 - renderer is a checkbox control. I use onchange of the
 checkbox to update the underlying data
 column 2 - normal text column, editor is a editbox
 column 3 - checkbox, similar to column 1
 
 Using tab to traverse the datagrid has weird behavior, i.e. first it
 seems to traverse all the column 2 editboxes (top rows first then
 bottom rows); then it traverses the checkboxes in each row (starting
 from top row again); after it has traversed everything, the tab order
 seems random now - it jumps around from editbox to checkbox or whatever.
 
 Is it because of the way the actual renderer/editor instances are
 created? Is there something I should be specifying to guarantee a
 nice, left-to-right top-to-bottom tab order?
 
 Thanks,
 
 Roy





[flexcoders] Flex transition won't affect a component with children .

2007-11-27 Thread mydarkspoon
Hello all, I had a problem with transitions which I isolated into a
very simple case:
I have a VBox with a text label and a button.
When user clicks the button, the current state changes into a new
state in which new component is added to my VBox which I expect to
grow smoothly.
This new component is just a canvas with a label.

The child canvas is added but it appears without a transition.
This is when the component is defined in a separate mxml file, BUT, if
I define the exact same component, inline in the state definition, it
works just as I expected. I then went to the component mxml and
deleted the label leaving it to be a simple canvas and it works. it
seems that whatever is added to the component when it's defined in a
separate file will disable the transition.

This is the main mxml:

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

mx:states
mx:State name=myState
mx:AddChild relativeTo={container}
!--
mx:Canvas backgroundColor=0x678080
mx:Label text=I'm the new component, 
did I came in smoothly ? /
/mx:Canvas 
--
local:MyComp /
/mx:AddChild
/mx:State
/mx:states

mx:transitions
mx:Transition fromState=* toState=*
mx:Sequence target={container}
mx:Resize /
/mx:Sequence
/mx:Transition
/mx:transitions

mx:VBox id=container backgroundColor=0xFF
mx:Label text=Some text goes here /
mx:Button label=click me to add new component 
click=currentState
= 'myState' /
/mx:VBox

/mx:Application


And this is the very-simple component:

?xml version=1.0 encoding=utf-8?
mx:Canvas backgroundColor=0x678080
xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Label text=I'm the new component, did I came in smoothly ? /
/mx:Canvas


Notice that if you comment the component definition in the state and
uncomment the same exact inline-component definition , it works great.



Thanks a lot !


Almog Kurtser




[flexcoders] PopupManager - any way to make it blur the app but not the mask?

2007-11-27 Thread bjorn -
I've got a two canvases which I use with the PopupManager this way:

PopUpManager.addPopUp(canvas1,canvas2, true);

The PopupManager will blur the entire application including it's mask - but
I'd like to keep the mask as it is (not blurred, and with the popup masked
by it as well).

Is this possible?
-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


Re: [flexcoders] Re: Event result not making sense

2007-11-27 Thread Andriy Panas
Hi all,

Today I was stumbled upon the same situation, it is true that event handler
for focusOut event is triggered twice for mx:TextInput component.

Checked event.target property and it is equal to the internal textfield of
mx:TextInput component of UITextField type both times, so this property
cannot help us here to differentiate between 2 calls.

What I found helpful is event.relatedObject property.

During first call to FocusOut event handler it is equal to UITextField
internal textfield, during second call is equal to NULL.

Great, now we can differentiate between 2 calls

-- 
--
Med venlig hilsen / Best regards
Andriy Panas
[EMAIL PROTECTED]

On 17/11/2007, Alex Harui [EMAIL PROTECTED] wrote:

Maybe the internal textfield is sending one.  See if the event.target
 is different and what it is.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *donvoltz
 *Sent:* Friday, November 16, 2007 1:27 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Event result not making sense



 Thank Alex,

 I did not realize this and have since changed the two alerts to trace
 statements. When I run the app in debug mode, I still see that the
 event is being sent twice. Any other ideas??

 Thanks

 Don

  



Re: [flexcoders] Re: Managing States and Cairngorm

2007-11-27 Thread Tom Chiverton
On Thursday 22 Nov 2007, Sebastian Zarzycki wrote:
 Can you explain why use viewstacks for application and flex states for
 components? 

States are confusing when lots of items change betwen states i.e. login form 
to full application.

-- 
Tom Chiverton
Helping to enthusiastically incubate cross-platform schemas
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 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 
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] Extending RichTextEditor

2007-11-27 Thread Tom Chiverton
On Thursday 22 Nov 2007, Giles Roadnight wrote:
 It seems ridiculous that Adobe provide such a poor implentation of
 this very useful tool. It's also odd that no one has provided a good
 alternative yet.

I think their waiting for BuzzWord to do a 1.0 release :-)

-- 
Tom Chiverton
Helping to dramatically orchestrate plug-and-play methodologies
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 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 
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] Re: Switching easing function at runtime

2007-11-27 Thread Tom Chiverton
On Monday 26 Nov 2007, Amy wrote:
 As I said in my first post, I tried that and it didn't work, so clearly
 there is some aspect I am missing.  Is it possible to give a more
 complete code snippet that might help fill in the gap?

Just have a big switch statement that maps selectedIndex to a pre-created 
Easing instance, and return that.

-- 
Tom Chiverton
Helping to greatly enhance one-to-one meta-services
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 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 
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] non-Flex updates not working with Flex (SVN PHPEclipse etc)

2007-11-27 Thread Tom Chiverton
On Monday 26 Nov 2007, djhatrick wrote:
  Eclipse Modeling Framework (EMF) - org.eclipse.emf.converter
 (2.3.0.v200706262000) requires plug-in org.eclipse.jdt.core.

Install that plugin then.
If you are using Flex Builder 3 betas, you'll have to select it by hand.
There are more detailed instructions in the archives, but by far the easiest 
solution is to install Eclipse 3.3, then Builder as a plugin.

-- 
Tom Chiverton
Helping to continuously envisioneer killer action-items
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 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 
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] Flex Builder 3 Gotcha

2007-11-27 Thread Tim Ashworth
Hi all,
 
I'm sure that people are aware of this, but it's done my head in for the
last few days.  Basically I've been working on two machines, my office
machine and my laptop developing the same app.  What has been happening is
that as I copy files back and forth Flex Builder loses code hints and
colouring within Script tags.  After some messing around I've discovered
that EVEN IF FLEX BUILDER IS CLOSED if you overwrite a file that was open in
the workspace this bug occurs.  I guess it's something to do with the way
the workspace configuration is saved.  The workaround I've found is to close
all the files in Flex Builder.  Close Flex Builder, overwrite the files
again.  Once you've done this, re-open Flex Builder, open the affected file
and - yay - code hints and colouring are back.
 
Probably not such a biggie for all you flex gurus, but working this out has
helped me a lot.
 
Tim


[flexcoders] (unknown)

2007-11-27 Thread Almog K
Transition won't affect a component with children...:|

Hello all, I had a problem with transitions which I isolated into a very simple 
case:
I have a VBox with a text label and a button.
When user clicks the button, the current state changes into a new state in 
which new component is added to my VBox which I expect to grow smoothly.
This new component is just a canvas with a label.

The child canvas is added but it appears without a transition.
This is when the component is defined in a separate mxml file, BUT, if I define 
the exact same component, inline in the state definition, it works just as I 
expeted. I then went to the component mxml and deleted the label leaving it to 
be a simple canvas and it works. it seems that whatever is added to the 
component when it's defined in a separate file will disable the transition.

This is the main mxml:

?xml version=1.0 encoding=utf-8?


mx:states
mx:State name=myState
mx:AddChild relativeTo={container}
!--
mx:Canvas backgroundColor=0x678080
mx:Label text=I'm the new component, did I came in 
smoothly ? /
/mx:Canvas 
--
local:MyComp /
/mx:AddChild
/mx:State
/mx:states

mx:transitions
mx:Transition fromState=* toState=*
mx:Sequence target={container}
mx:Resize /
/mx:Sequence
/mx:Transition
/mx:transitions

mx:VBox id=container backgroundColor=0xFF
mx:Label text=Some text goes here /
mx:Button label=click me to add new component click=currentState = 
'myState' /
/mx:VBox

/mx:Application


And this is the very-simple component:

?xml version=1.0 encoding=utf-8?

mx:Label text=I'm the new component, did I came in smoothly ? /
/mx:Canvas


I attached the 2 files.
Notice that if you comment the component definition in the state and uncomment 
the same exact inline-component definition , it works great.



Thanks a lot !

Almog Kurtser





  

Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 

TransitionBug.mxml
Description: Binary data


MyComp.mxml
Description: Binary data


[flexcoders] Transition when reverting to the base state

2007-11-27 Thread triggersoftware
I know how to get a component removal transition to work when I'm
actively calling mx:RemoveChild, but I'm not sure how to get a removal
transition to work when components are removed by Flex to undo the
calls to mx:AddChild which moved us into the current state in the
first place.

Okay, that probably doesn't make much sense, so here's a simple
example.  How do I get the mx:Fade transition to be applied to the
label so that when the user clicks on the Base State button the
label fades out?


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical
mx:HBox
mx:Button label=State A click=currentState = 'A'/
mx:Button label=Base State click=currentState = ''/   

/mx:HBox
mx:HBox id=placeholder/

mx:states
mx:State name=A
mx:AddChild relativeTo={placeholder}
mx:Label id=lblMessage text=I am now in 
state A!/
/mx:AddChild
/mx:State
/mx:states

mx:transitions
mx:Transition fromState= toState=A
mx:Glow target={lblMessage} alphaFrom=1 alphaTo=0
duration=2000/ 
/mx:Transition
mx:Transition fromState=A toState=
mx:Fade target={lblMessage} alphaFrom=1.0 
alphaTo=0.0
duration=2000/
/mx:Transition
/mx:transitions

/mx:Application



[flexcoders] string to date, no support for european dates ?

2007-11-27 Thread johantrax
Hi,

I'm writing a custom DateValidator (subclassing it in AS) which adds 2
properties to the existing one: minDate:Date and maxDate:Date

What I'd like to do is compare the dates to see if the inputted date
is within the correct range. However, I can't tell which inputFormat
f.e. a DateField will have, since it is configurable through it's
formatString-property.
I have some problems with parsing this value (of the DateField) back
to a date, since Date.parse() doesn't support the format DD/MM/

I'd like to know if there is a parse-method in which we can provide
the format of the string as a parameter, sth like
Date.parse(value:String, format:String = null)
would be wonderful

This validator is to be used in form where a user can input a start-
and enddate, and to check if startdate=enddate. If there is any other
method to do this, please share..

Thanks,
--Johan



[flexcoders] Re: Transition when reverting to the base state

2007-11-27 Thread triggersoftware
After a bit more playing, I can see that both effects are definitely
getting run, it's just that I can't see the A - Base transition
because Flex has already removed the components.

Still stuck though!

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

 I know how to get a component removal transition to work when I'm
 actively calling mx:RemoveChild, but I'm not sure how to get a removal
 transition to work when components are removed by Flex to undo the
 calls to mx:AddChild which moved us into the current state in the
 first place.
 
 Okay, that probably doesn't make much sense, so here's a simple
 example.  How do I get the mx:Fade transition to be applied to the
 label so that when the user clicks on the Base State button the
 label fades out?
 
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=vertical
   mx:HBox
   mx:Button label=State A click=currentState = 'A'/
   mx:Button label=Base State click=currentState = ''/   
 
   /mx:HBox
   mx:HBox id=placeholder/
   
   mx:states
   mx:State name=A
   mx:AddChild relativeTo={placeholder}
   mx:Label id=lblMessage text=I am now in 
 state A!/
   /mx:AddChild
   /mx:State
   /mx:states
   
   mx:transitions
   mx:Transition fromState= toState=A
   mx:Glow target={lblMessage} alphaFrom=1 alphaTo=0
 duration=2000/ 
   /mx:Transition
   mx:Transition fromState=A toState=
   mx:Fade target={lblMessage} alphaFrom=1.0 
 alphaTo=0.0
 duration=2000/  
   /mx:Transition
   /mx:transitions
   
 /mx:Application





[flexcoders] Re: Transition when reverting to the base state

2007-11-27 Thread triggersoftware
I've worked it out.  You can specify when the component removal
happens by using a mx:RemoveChildAction tag:



mx:Style
@font-face {
src: local(Arial);
fontFamily: myArial;
}

global {
fontFamily: myArial;
fontSize: 15
}
/mx:Style

mx:transitions
mx:Transition fromState= toState=A
mx:Sequence target={lblMessage} duration=2000 

mx:Glow alphaFrom=1 alphaTo=0 /   

/mx:Sequence

/mx:Transition
mx:Transition fromState=A toState=
mx:Sequence target={lblMessage} duration=2000 

mx:Fade alphaFrom=1 alphaTo=0/
mx:RemoveChildAction/ 
/mx:Sequence
/mx:Transition
/mx:transitions


(Note: I've also embedded a font to allow the Fade effect to work
properly)



[flexcoders] *****************************************************Group Box in Flex*********************************************************************

2007-11-27 Thread yourName
can any one tell me how to create vb style group box in flex application
thanks in advance

Re: [flexcoders] Flex Builder 3 Gotcha

2007-11-27 Thread Tom Chiverton
On Tuesday 27 Nov 2007, Tim Ashworth wrote:
 that EVEN IF FLEX BUILDER IS CLOSED if you overwrite a file that was open

Does doing a refresh of the project not work, or even turning on the 'refresh 
automatically' preference ?

-- 
Tom Chiverton
Helping to synergistically integrate B2C solutions
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 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 
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] string to date, no support for european dates ?

2007-11-27 Thread Tom Chiverton
On Tuesday 27 Nov 2007, johantrax wrote:
 is within the correct range. However, I can't tell which inputFormat
 f.e. a DateField will have, since it is configurable through it's
 formatString-property.

Why are you manipulating the String of a DateField, and not the Date ?

-- 
Tom Chiverton
Helping to conveniently improve enterprise deliverables
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 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 
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: string to date, no support for european dates ?

2007-11-27 Thread Angela
Hi,

I use DateField.selectedDate.valueOf() to get the epoch time and use
that for all my date comparisons.

Hope that helps,
cheers, Angela
 
--- In flexcoders@yahoogroups.com, johantrax [EMAIL PROTECTED]
wrote:

 I'm writing a custom DateValidator (subclassing it in AS) which adds 2
 properties to the existing one: minDate:Date and maxDate:Date
 
 What I'd like to do is compare the dates to see if the inputted date
 is within the correct range. However, I can't tell which inputFormat
 f.e. a DateField will have, since it is configurable through it's
 formatString-property.
 I have some problems with parsing this value (of the DateField) back
 to a date, since Date.parse() doesn't support the format DD/MM/
 
 I'd like to know if there is a parse-method in which we can provide
 the format of the string as a parameter, sth like
 Date.parse(value:String, format:String = null)
 would be wonderful
 
 This validator is to be used in form where a user can input a start-
 and enddate, and to check if startdate=enddate. If there is any other
 method to do this, please share..
 
 Thanks,
 --Johan





[flexcoders] interesting error:one event listerner can receive different event?

2007-11-27 Thread qzhung
I built an app used SpringGraph, Yahoo! answer API and Cairngorm,
display questions and answers (data from Yahoo! answer) like a tree,
Cairngorm made the code clearly and easily to debug.

Demo and source: http://www.moorwind.com/read.php?67

During developing this app I found an interesting Cairngorm error,
when I creat
some events super the same type:

//event 1
 public class SearchAnswerOnQuestionEvent extends CairngormEvent
  {
public function SearchAnswerOnQuestionEvent()
{
  super(AnswerController.SEARCH_ANSWER_ON_QUESTION);
}
  }

//event 2
  public class RoamerSOQEvent extends CairngormEvent
  {
public function RoamerSOQEvent()
{
  super(RoamerController.SEARCH_ANSWER_ON_QUESTION);
}

  }

If AnswerController.SEARCH_ANSWER_ON_QUESTION and
RoamerController.SEARCH_ANSWER_ON_QUESTION define the same string such
as searchAnswerOnQuestion, than when i dispatched these two events,
the listerner
will sonsider them  the same event. The following caringorm controls
will both receive the two events.

//Cairngorm control 1
  public class AnswerController extends FrontController
  {
public static const SEARCH_ANSWER_ON_QUESTION:String  =
searchAnswerOnQuestion;
public function AnswerController()
{
  this.addCommand(AnswerController.SEARCH_ANSWER_ON_QUESTION,
SearchAnswerOnQuestionCommand);
}
  }
//Cairngorm control2
  public class RoamerController extends FrontController
  {
public static const SEARCH_ANSWER_ON_QUESTION:String =
searchAnswerOnQuestion;
public function RoamerController()
{
  this.addCommand(RoamerController.SEARCH_ANSWER_ON_QUESTION,
RoamerSOQCommand);
}
}



[flexcoders] Reference to the content area of a Panel component

2007-11-27 Thread Mark Lapasa
Hello all,

I am trying to get access the content area of a panel as I would like to 
skin it relative to the panel's content area. I am referring to that box 
of white space underneath the title bar.

 From the docs it says:

A Panel ../langref/mx/containers/Panel.html layout container includes 
a title bar, a title, a status message area (in the title bar), a 
border, and a content area for its children

But I can't find a reference in the API how to get the x,y, width and 
height of the actual content area container where the panel's children 
reside. Any guidance would be appreciated.


Thx,

-mL


Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



[flexcoders] nested repeater from XML data

2007-11-27 Thread ronny_koesnadi
Hi
I am new to flex 2 and need help with a bit of nested repeater problem.
I have an external xml data named data.xml as follow:
?xml version=1.0 encoding=UTF-8?
products
  product
productnop1/productno
article
   articlenoa1/articleno
/article
article
   articlenoa2/articleno
/article
  /product
  product
productnop2/productno
article
   articlenoa3/articleno
/article
  /product
/products

And the .mxml code is as follow:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
mx:XML id=data source=data.xml /
mx:VBox
mx:Repeater id=Repeater1 dataProvider={data.product}
mx:Label text={Repeater1.currentItem.productno} /
mx:Repeater id=Repeater2 dataProvider={data.product.article}
mx:Label text={Repeater2.currentItem.articleno} /
/mx:Repeater
/mx:Repeater
/mx:VBox
/mx:Application

The problem with the output is the child article for each parent product is 
being repeated:
p1
a1
a2
a3
p2
a1
a2
a3

But what I want is:
p1
a1
a2
p2
a3

Can anyone pls help as to what I did wrong?

Thanks!!



[flexcoders] QAguild - Portal for QA and Testing professionals and corporate

2007-11-27 Thread p_shedikare
Hi,

I am happy to introduce a portal called www.qaguild.com.

QAguild.com is a platform to bring the global QA and Testing 
knowledge Together in a central place.

QAguild provides an un-paralleled multi-dimensional platform for
Customers, Service providers, tool and Solution providers, Testing 
and Quality assurance professionals all over the world to exchange
knowledge and values.

QAguild.com has product listing, service listing, forum for 
discussion, resources for download, jobs etc.. 

Register in www.qaguild.com and become the member of knowledge pool.

If you have any quires, please come back to me.

Regards,
Prashanth






[flexcoders] Error? Implement web APIs using Cairngorm

2007-11-27 Thread qzhung
I built an app used SpringGraph, Yahoo! answer API and Cairngorm,
display questions and answers (data from Yahoo! answer) like a tree,
Cairngorm made the code clearly and easily to debug. 

Demo and source: http://www.moorwind.com/read.php?67

During developing this app I found an interesting error, when i creat
some events in different packages, but super the same type:

//event 1
package com.kono.caringorm.events
{
  import com.adobe.cairngorm.control.CairngormEvent;
  import com.kono.caringorm.control.AnswerController;
  import com.adobe.flex.extras.controls.springgraph.Item;

  public class SearchAnswerOnQuestionEvent extends CairngormEvent
  {
public var onItem:Item;

public function SearchAnswerOnQuestionEvent(onItem:Item)
{
  this.onItem = onItem;
  super(AnswerController.SEARCH_ANSWER_ON_QUESTION);
}

  }
}
//event 2
package com.kono.caringorm.events
{
  import com.adobe.cairngorm.control.CairngormEvent;
  import com.kono.caringorm.control.RoamerController;
  import com.kono.caringorm.vo.QuestionItem;

  public class RoamerSOQEvent extends CairngormEvent
  {
public var onItem:QuestionItem;

public function RoamerSOQEvent(onItem:QuestionItem)
{
  this.onItem = onItem;
  super(RoamerController.SEARCH_ANSWER_ON_QUESTION);
}

  }
}

If AnswerController.SEARCH_ANSWER_ON_QUESTION and
RoamerController.SEARCH_ANSWER_ON_QUESTION define the same string such
as search, than when i dispatched these two events, the listerner
will sonsider them  the same event. The following caringorm controls
will both receive the two events.

//Cairngorm control 1
package com.kono.caringorm.control
{
  import com.adobe.cairngorm.control.FrontController;
  import com.kono.caringorm.commands.QuestionGetCommand;
  import com.kono.caringorm.commands.SearchAnswerOnQuestionCommand;
  
  public class AnswerController extends FrontController
  {
public static const SEARCH_ANSWER_ON_QUESTION:String  =
searchAnswerOnQuestion;

public function AnswerController()
{
  this.initialize();
}

private function initialize():void
{
  this.addCommand(AnswerController.SEARCH_ANSWER_ON_QUESTION,
SearchAnswerOnQuestionCommand);
}

  }
}

//Cairngorm control2
package com.kono.caringorm.control
{
  import com.adobe.cairngorm.control.FrontController;
  import com.kono.caringorm.commands.RoamerInitializeCommand;
  import com.kono.caringorm.commands.RoamerSOQCommand;
  
  public class RoamerController extends FrontController
  {
public static const SEARCH_ANSWER_ON_QUESTION:String =
searchAnswerOnQuestion;

public function RoamerController()
{
  this.initialize();
}

private function initialize():void
{
  this.addCommand(RoamerController.SEARCH_ANSWER_ON_QUESTION,
RoamerSOQCommand);
}

  }
}



Re: [flexcoders] Re: Flex Remoting Options - Any Opinions?

2007-11-27 Thread Tom Chiverton
On Monday 26 Nov 2007, Douglas McCarroll wrote:
 This is obviously an important question. Going beyond one CPU takes us
 from free to lots of money. What will free handle? I've been

My guess is that it works out cheaper to buy a faster single CPU than to 
upgrade the LCDS license.

-- 
Tom Chiverton
Helping to administratively industrialize prospective networks
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 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 
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: interesting error:one event listerner can receive different event?

2007-11-27 Thread ben.clinkinbeard
Please do not double post, if someone can help you they will answer.

The reason you're seeing that behavior is because event listeners are
solely based on the string that your event type evaluates to. So the
following 3 lines are equivalent:

addEventListener(AnswerController.SEARCH_ANSWER_ON_QUESTION, funcOne);
addEventListener(RoamerController.SEARCH_ANSWER_ON_QUESTION, funcTwo);
addEventListener(searchAnswerOnQuestion, funcThree);

As a result, any of the following would trigger all 3 functions:

dispatchEvent(new EventOne(AnswerController.SEARCH_ANSWER_ON_QUESTION));

or 

dispatchEvent(new EventTwo(RoamerController.SEARCH_ANSWER_ON_QUESTION));

or

dispatchEvent(new Event(searchAnswerOnQuestion));


In general I would recommend against having your event types
duplicated but if its unavoidable or you don't want to change it you
can just put an if(event is EventTypeWanted) at the top of the
listener (or Command in this case).

HTH,
Ben


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

 I built an app used SpringGraph, Yahoo! answer API and Cairngorm,
 display questions and answers (data from Yahoo! answer) like a tree,
 Cairngorm made the code clearly and easily to debug.
 
 Demo and source: http://www.moorwind.com/read.php?67
 
 During developing this app I found an interesting Cairngorm error,
 when I creat
 some events super the same type:
 
 //event 1
  public class SearchAnswerOnQuestionEvent extends CairngormEvent
   {
 public function SearchAnswerOnQuestionEvent()
 {
   super(AnswerController.SEARCH_ANSWER_ON_QUESTION);
 }
   }
 
 //event 2
   public class RoamerSOQEvent extends CairngormEvent
   {
 public function RoamerSOQEvent()
 {
   super(RoamerController.SEARCH_ANSWER_ON_QUESTION);
 }
 
   }
 
 If AnswerController.SEARCH_ANSWER_ON_QUESTION and
 RoamerController.SEARCH_ANSWER_ON_QUESTION define the same string such
 as searchAnswerOnQuestion, than when i dispatched these two events,
 the listerner
 will sonsider them  the same event. The following caringorm controls
 will both receive the two events.
 
 //Cairngorm control 1
   public class AnswerController extends FrontController
   {
 public static const SEARCH_ANSWER_ON_QUESTION:String  =
 searchAnswerOnQuestion;
 public function AnswerController()
 {
   this.addCommand(AnswerController.SEARCH_ANSWER_ON_QUESTION,
 SearchAnswerOnQuestionCommand);
 }
   }
 //Cairngorm control2
   public class RoamerController extends FrontController
   {
 public static const SEARCH_ANSWER_ON_QUESTION:String =
 searchAnswerOnQuestion;
 public function RoamerController()
 {
   this.addCommand(RoamerController.SEARCH_ANSWER_ON_QUESTION,
 RoamerSOQCommand);
 }
 }





[flexcoders] Re: Flex Builder 3 Gotcha

2007-11-27 Thread dave_defusion
Thanks for the tip! I had this happen to me (about the fourth file it
has happened on) once again this morning, but I long ago resolved
myself the the fact that I had to live with it (at a lower
productivity rate when working with that file) as I had tried most
things I could think of (even deleting the file in Flex Builder and
creating a new file with the same name didn't fix the issue).

Your workaround worked perfectly first time, thanks again.




Re: [flexcoders] Flex Builder 3 Gotcha

2007-11-27 Thread Muzak
Use SVN to keep projects in synch.

- Original Message - 
From: Tim Ashworth [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, November 27, 2007 11:38 AM
Subject: [flexcoders] Flex Builder 3 Gotcha


 Hi all,
 
 I'm sure that people are aware of this, but it's done my head in for the
 last few days.  Basically I've been working on two machines, my office
 machine and my laptop developing the same app.  What has been happening is
 that as I copy files back and forth Flex Builder loses code hints and
 colouring within Script tags.  After some messing around I've discovered
 that EVEN IF FLEX BUILDER IS CLOSED if you overwrite a file that was open in
 the workspace this bug occurs.  I guess it's something to do with the way
 the workspace configuration is saved.  The workaround I've found is to close
 all the files in Flex Builder.  Close Flex Builder, overwrite the files
 again.  Once you've done this, re-open Flex Builder, open the affected file
 and - yay - code hints and colouring are back.
 
 Probably not such a biggie for all you flex gurus, but working this out has
 helped me a lot.
 
 Tim



--
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] How can I avoid jumping / flickering when changing the dataprovider in a list box?

2007-11-27 Thread DreamCode
I have the same issue, only in my case there are no default renderers,
just me putting X item renderers on a canvas. Ideas? suggestions?

--Allan

On Nov 27, 2007 12:55 AM, Alex Harui [EMAIL PROTECTED] wrote:




 are you using custom renderers?  If so, do you see flickering with default
 renderers?
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Anzer
 Sent: Monday, November 26, 2007 10:06 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How can I avoid jumping / flickering when changing the
 dataprovider in a list box?






 Hi,

 I am programmatically changing the values in an array collection which is
 the data provider of a list box.

 When I change the values the list box is flickering, how can I avoid it?



 My intention is to show an interface like windows explorer. I want to do in
 place re naming and deleting in the list.

 Its working correctly but I want to remove the jumping of the list box items
 after the edit.



 Thanks
 Anz

 http://www.flickrmailer.com







 


[flexcoders] Re: error 1006: value not a function; on effect.play()

2007-11-27 Thread Brian
Thanks for the help Jason, adding the curly braces got it working.

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

 Brian,
 
  
 
 Usually it is more helpful if you can post a stack trace with line
 numbers. 
 
  
 
 mx:Glow id=qtyGlow target=qtyDisplay color=0x99FF66/
 
  
 
 Should be:
 
  
 
 mx:Glow id=qtyGlow target={qtyDisplay} color=0x99FF66/
 
  
 
 You need to assign an effect target to an instance, not to the string
 qtyDisplay. 
 
  
 
 Jason
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Brian
 Sent: Monday, November 26, 2007 1:00 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] error 1006: value not a function; on effect.play()
 
  
 
 I'm getting this error while trying to call play() on a glow effect
 I've created. I'm trying to call play() from within a function that is
 called as a result of a bindable value being changed. Basically I have
 a data model with bindable data and a Label which displays the data.
 When the data changes, I'm trying to play the glow effect on the label
 to highlight the change. What am I doing wrong?
 
 All these objects are defined in the same .mxml file. Relevant
 snippets are : 
 
 myNS:Order id=order
 ...
 (inside script tag)
 public function getQtyDisplay(currentQty:int, maxQty:int):String {
 var result:String = currentQty+(+maxQty+);
 qtyGlow.play();
 }
 ...
 mx:Glow id=qtyGlow target=qtyDisplay color=0x99FF66/
 ...
 mx:Label id=qtyDisplay text={getQtyDisplay(order.currentQty,
 order.maxQty)}/
 
 The getQtyDisplay() function works fine w/out the play() call. After I
 added it I started getting this error, so I wrapped the play() call in
 a try/catch block.





RE: [flexcoders] Flex Builder 3 Gotcha

2007-11-27 Thread Jim Hayes
Even then I've still found the loss of autocomplete/colouring to occur
sometimes. I've not yet managed to work out the circumstances that cause
it (for me, at least), mainly since it only happens once in a while and
I can life with it.
Funnily enough, for me it can happen with a file that opened up fine,
for some reason that eludes me.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Muzak
Sent: 27 November 2007 14:34
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Builder 3 Gotcha

Use SVN to keep projects in synch.

- Original Message - 
From: Tim Ashworth [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, November 27, 2007 11:38 AM
Subject: [flexcoders] Flex Builder 3 Gotcha


 Hi all,
 
 I'm sure that people are aware of this, but it's done my head in for
the
 last few days.  Basically I've been working on two machines, my office
 machine and my laptop developing the same app.  What has been
happening is
 that as I copy files back and forth Flex Builder loses code hints and
 colouring within Script tags.  After some messing around I've
discovered
 that EVEN IF FLEX BUILDER IS CLOSED if you overwrite a file that was
open in
 the workspace this bug occurs.  I guess it's something to do with the
way
 the workspace configuration is saved.  The workaround I've found is to
close
 all the files in Flex Builder.  Close Flex Builder, overwrite the
files
 again.  Once you've done this, re-open Flex Builder, open the affected
file
 and - yay - code hints and colouring are back.
 
 Probably not such a biggie for all you flex gurus, but working this
out has
 helped me a lot.
 
 Tim



--

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




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


[flexcoders] Problems with a Tree and dynamic data provider

2007-11-27 Thread César P .
Hi,

I'm new to Flex and to the group. I came here because I am having
problems with a Tree control and a dynamic data provider.

The problem is that everytime  I try to expand a branch with no children
the application crashes with a #1009 error. Is it the expected
behaviour?  I don't know how to fix it or if there is something wrong
with my code that produce this bug.

Also which one is the best strategy to remove nodes from this Tree.

I'm a Java Developer but we are going to do a project with Flex so I am
learning.

Here is my code, I'm learning so everything is in my mxml application :P
.

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

 mx:Script
 ![CDATA[

 import mx.collections.XMLListCollection;
 import mx.controls.Alert;
 import mx.collections.Sort;
 import mx.collections.SortField;

 [Bindable]
 private var project:XML =
 list
 phase title=Project isBranch=true
 /phase
 /list;

 [Bindable]
 private var companyData:XMLListCollection = new
XMLListCollection(project.phase);

 private function treeLabel(item:Object):String
 {
 var node:XML = XML(item);

 if( node.localName() == phase )
 {
 return [EMAIL PROTECTED];
 }
 else
 {
 return [EMAIL PROTECTED];
 }
 }

private function isPhase(node:XML):Boolean
{
 if(node.attributes()[1].toString() == true)
 {
return true;
}

return false;
}

 private function addPhase():void {

 var listNode:XMLList;

 var currentNode:XML = XML(myTree.selectedItem);

 var newNode:XML = phase/phase;

 [EMAIL PROTECTED] = inputPhase.text;

 [EMAIL PROTECTED] = true;

 if(currentNode != null  isPhase(currentNode) 
inputPhase.text != )
 {
 listNode = XMLList(currentNode);

 listNode[0].appendChild(newNode);
 }
 }

 private function addTask():void {
 var listNode:XMLList;

 var currentNode:XML = XML(myTree.selectedItem);

 var newNode:XML = task/task;

 [EMAIL PROTECTED] = inputTask.text;

 [EMAIL PROTECTED] = false;

 if(currentNode != null  isPhase(currentNode) 
inputTask.text != )
 {
 listNode = XMLList(currentNode);

 listNode[0].appendChild(newNode);
 }
 }
 ]]
 /mx:Script

 mx:Panel id=panel title=Tree Control Example height=85%
width=75%
 paddingTop=10 paddingLeft=10 paddingRight=10
paddingBottom=10

 mx:Label width=100% color=blue
 text=Select a node in the Tree control./

 mx:HDividedBox width=100% height=100%
 mx:Tree id=myTree width=50% height=100%
labelField=@label labelFunction=treeLabel
 showRoot=false dataProvider={companyData} /
 /mx:HDividedBox
 mx:HBox
 mx:Button id=phaseButton label=Add Phase
click=addPhase(); width=74/
 mx:TextInput id=inputPhase/
 /mx:HBox
 mx:HBox
 mx:Button id=taskButton label=Add Task
click=addTask(); width=74/
 mx:TextInput id=inputTask/
 /mx:HBox
 /mx:Panel
/mx:Application

---

Thanks

Cesar Perez




[flexcoders] Styles for the Title Bar of a TitleWindow or Panel

2007-11-27 Thread Charlie Skinner
I've been having great fun recently writing some programmatic skin
classes to skin my Components. And I've moved onto the TitleWindow. I've
written classes for the titleBackgroundSkin and also for the
closeButtonSkin. Now I've been fine tuning the look and feel by
adjusting the styles. Realising that it extends Panel I've been looking
there when I cant find styles that have the required effect. 

 

But there's one thing I just can't figure out. How can I adjust the
margin/padding or whatever for the text on the TitleBar and also for the
Close Button. The default position places them both about 12 pixels from
the left and right edges of the TitleWindow. Ideally I'd like them to be
inline with the content of the window.

 

If anyone has quick answer to this problem I'd really appreciate it.
Otherwise I'm left with continuing with trial and lots of error.

 

 



Re: [flexcoders] nested repeater from XML data

2007-11-27 Thread Paul Andrews
I haven't time to redo your example - check out nested repeaters in the 
docs.

Th ebasic problem is that your repeaters aren't tied to one another.

repeater 2 should be using repeater 1 as it's source, something like:

 mx:Repeater id=Repeater2 dataProvider={repeater1.currentItem.article}

Paul

- Original Message - 
From: ronny_koesnadi [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, November 26, 2007 11:07 PM
Subject: [flexcoders] nested repeater from XML data


 Hi
 I am new to flex 2 and need help with a bit of nested repeater problem.
 I have an external xml data named data.xml as follow:
 ?xml version=1.0 encoding=UTF-8?
 products
  product
productnop1/productno
article
   articlenoa1/articleno
/article
article
   articlenoa2/articleno
/article
  /product
  product
productnop2/productno
article
   articlenoa3/articleno
/article
  /product
 /products

 And the .mxml code is as follow:
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 layout=absolute
 mx:XML id=data source=data.xml /
 mx:VBox
 mx:Repeater id=Repeater1 dataProvider={data.product}
 mx:Label text={Repeater1.currentItem.productno} /
 mx:Repeater id=Repeater2 dataProvider={data.product.article}
 mx:Label text={Repeater2.currentItem.articleno} /
 /mx:Repeater
 /mx:Repeater
 /mx:VBox
 /mx:Application

 The problem with the output is the child article for each parent product 
 is being repeated:
 p1
 a1
 a2
 a3
 p2
 a1
 a2
 a3

 But what I want is:
 p1
 a1
 a2
 p2
 a3

 Can anyone pls help as to what I did wrong?

 Thanks!!



 --
 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] Weborb and FB3

2007-11-27 Thread Scott Melby
I am trying to get weborb for PHP working with Flex builder 3 by 
following the directions on this page 
http://www.themidnightcoders.com/weborb/php/gettingstarted.htm.  
Unfortunately some of the pages in the FB New Flex Project wizard have 
changed.  When I select CodeFusion as the server technology, then choose 
deployed to J2EE server and enter my paths I get an error message from 
FB that says The selected installation has no LiveCycle Data Services 
installed.  But, I was under the impression that Weborb was used 
instead of LCDS.  Do I actually have to have LCDS installed anyway?


Thanks
Scott

--
Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



[flexcoders] Can we Pass image object instead of image file reference???

2007-11-27 Thread tarun chandra
Hi

I want to pass an Image file object and use it as part of the flex
Sample Photo Viewer. Is it possible in flex to pass an image file
object directly instead of passing a reference to the file like
(/images/test.gif)?


Thank You,
Tarun



Re: [flexcoders] Re: Reflection -- Accessing private fields

2007-11-27 Thread Aaron Miller
Well no, I don't think you can. But why would you need to? Classes (for the
most part) are meant to be static. What is the end all result you're trying
to achieve? Will the interface be dynamic as well? Perhaps you could achieve
the same goal with dynamic objects and the memento pattern. This is
generally the preferred method if you are just trying to save state.

Regards,
...aaron

On 11/26/07, marty.pitt [EMAIL PROTECTED] wrote:

   I like where that's headedbut can you specify generate a class at
 runtime, and specify it's superclass?

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Aaron
 Miller [EMAIL PROTECTED] wrote:
 
  What about making the properties protected and extending the class
 down into
  a reflector class which is used to spy on it's parents? To get a
 true copy
  of the original, couldn't you also access the protected properties
 though an
  instance of the parent class? I know you can access the private
 properties
  in an instance of the same class, so wouldn't this also be true for the
  protected properties of a parent? Just an idea, haven't really tried
 this
  myself.
 
  Regards,
  ...aaron
 
  On 11/26/07, Mike Morearty [EMAIL PROTECTED] wrote:
  
   Gordon's right -- the debugger's techniques can't be used outside of
   the debugger. Its techniques are completely inaccessible from
   ActionScript.
  
   - Mike Morearty, Adobe Flex Builder team
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com,
 Gordon
   Smith gosmith@ wrote:
   
cc'ing Mike to get the lowdown on this. But I'm pretty sure that
whatever the debugger is doing can't be done from ActionScript.
   
- Gordon
   

   
From: flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 [mailto:
   flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com] On
Behalf Of marty.pitt
Sent: Wednesday, November 21, 2007 1:14 PM
To: flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
Subject: [flexcoders] Re: Reflection -- Accessing private fields
   
   
   
Spoil sports. :)
   
How does the debugger expose the properties and their values?
 Nothing
I can leverage there?
   
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 flexcoders%40yahoogroups.commailto:
   flexcoders%40yahoogroups.com
, Gordon Smith gosmith@ wrote:

 I don't believe you can get reflection info about protected or
internal
 APIs either.

 Gordon Smith
 Adobe Flex SDK Team

 

 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 flexcoders%40yahoogroups.commailto:
   flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 flexcoders%40yahoogroups.commailto:
   flexcoders%40yahoogroups.com
] On
 Behalf Of Alex Harui
 Sent: Wednesday, November 21, 2007 11:39 AM
 To: flexcoders@yahoogroups.com 
 flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 mailto:
   flexcoders%40yahoogroups.com
 Subject: RE: [flexcoders] Reflection -- Accessing private fields



 Private is private.

 

 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 flexcoders%40yahoogroups.commailto:
   flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 flexcoders%40yahoogroups.commailto:
   flexcoders%40yahoogroups.com
] On
 Behalf Of marty.pitt
 Sent: Tuesday, November 20, 2007 9:25 PM
 To: flexcoders@yahoogroups.com 
 flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 mailto:
   flexcoders%40yahoogroups.com
 Subject: [flexcoders] Reflection -- Accessing private fields

 Hello all.

 Is there any way to get the names of private / protected /
 internal
 variables within a class at runtime? (ie., actual reflection!)

 It seems it's not possible using getClassInfo().

 What about some sort of custom serialization? (Remembering
 that the
 names of the variables is not known).

 Any thoughts?

 Cheers

 Marty

   
  
  
  
 
 
 
  --
  Aaron Miller
  Chief Technology Officer
  Splash Labs, LLC.
  [EMAIL PROTECTED] | 206-328-5485
  http://www.splashlabs.com
 

  




-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


[flexcoders] Re: player update followed by redirect loses URL variables

2007-11-27 Thread dr_stone_1024
--- In flexcoders@yahoogroups.com, bloodylag [EMAIL PROTECTED] wrote:

 Hey Seth,
 
 I know this isn't a solution your looking for but is it possible for
 you to store those values into a session variable to use again later
 if the i and j aren't set in the url.
 
 Again I have nothing further to suggest with the main argument you
 described sorry.


Yes, this is a good solution and I think it will be our workaround - 
just wondering if anyone else encountered this.  Seems like it would be 
a common problem.




Re: [flexcoders] Re: Flex Remoting Options - Any Opinions?

2007-11-27 Thread Aaron Miller
I have a question related to this topic as well. What has peoples experience
been with open source solutions like AMFPHP for remoting, or Python for
persistent socket connections? These have always been my methods of choice,
and have done me no harm as of yet, but I am working on a project that will
have to sustain a failry large load. Should I look into a proprietary
solution, or just beef up the servers? Will either of those even been
necessary?

Thanks!
...aaron

On 11/27/07, Tom Chiverton [EMAIL PROTECTED] wrote:

 On Monday 26 Nov 2007, Douglas McCarroll wrote:
  This is obviously an important question. Going beyond one CPU takes us
  from free to lots of money. What will free handle? I've been

 My guess is that it works out cheaper to buy a faster single CPU than to
 upgrade the LCDS license.

 --
 Tom Chiverton
 Helping to administratively industrialize prospective networks
 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 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 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






-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


Re: [flexcoders] Re: player update followed by redirect loses URL variables

2007-11-27 Thread Tom Chiverton
On Tuesday 27 Nov 2007, dr_stone_1024 wrote:
 Yes, this is a good solution and I think it will be our workaround -
 just wondering if anyone else encountered this.  Seems like it would be
 a common problem.

We don't use URL variables because people have a habit of changing them :-)

-- 
Tom Chiverton
Helping to advantageously transition compelling communities
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 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 
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] Can we Pass image object instead of image file reference???

2007-11-27 Thread Tom Chiverton
On Tuesday 27 Nov 2007, tarun chandra wrote:
 I want to pass an Image file object and use it as part of the flex
 Sample Photo Viewer. Is it possible in flex to pass an image file
 object directly instead of passing a reference to the file like
 (/images/test.gif)?

You mean like
private function myFunc(pic:Image):void{
?

-- 
Tom Chiverton
Helping to continuously mesh out-of-the-box technologies
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 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 
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] Re: Application container failed to capture KeyboardEvent

2007-11-27 Thread Brent Dearth
I know this is a long-standing issue, but are there any developments in the
works to prevent this sort of behaviour? I know there are work-arounds to
Flash being able to obtain focus programmatically, such as using
ExternalInterface calls from Javascript to pass keyboard events. However,
stuff like that has always struck me as hacky.

In an ideal world, the Flash plugin would have the authority to demand focus
and receive programmatic focus across all browsers.



On Nov 26, 2007 3:37 PM, Alex Harui [EMAIL PROTECTED] wrote:

Nope, the browsers always steal focus.

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *zhongtie
 *Sent:* Monday, November 26, 2007 9:02 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Application container failed to capture
 KeyboardEvent

  Thanks Alex. That works!

 When I switch to another application and then switch back, my all
 flash application loses the focus and no event fires at all unless I
 click somewhere in it. Is there any way around it?

 Tie

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex
 Harui [EMAIL PROTECTED] wrote:
 
  No children of the Application have focus, so there are no events to
  capture. If you listen to the stage, you'll see everything. The app is
  not the top-level displayobject so your handlers will not pick up events
  from popups either.
 
 
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
  Behalf Of zhongtie
  Sent: Saturday, November 24, 2007 6:22 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] Application container failed to capture
  KeyboardEvent
 
 
 
  My simple flex app somehow doesn't respond to key event, but mouse
  events work fine. Any ideas?
 
  Thanks,
  Tie
 
  --- src code ---
 
  ?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
  keyDown=onEvent(event)
  mouseDown=onEvent(event)
  mx:Script
  ![CDATA[
  protected function onEvent(e:Event):void {
  trace(e.type);
  }
  ]]
  /mx:Script
  /mx:Application
 

  



[flexcoders] Re:Styles for the Title Bar of a TitleWindow or Panel

2007-11-27 Thread David Spurr
I customised the TitleWindow recently, the Panel moves the title bar 
around (I think in the layoutChrome() method, but I'm not looking at 
code) so that it overlaps the border, so it doesn't matter what you set 
your border metrics (if that's what you're trying) to the title bar will 
always be overlapping the border.


I had to override the layoutChrome() method and move things around in my 
component to get them in the right place.


Hope that helps,

-D


Re: [flexcoders] RegExp multiple backreferences?

2007-11-27 Thread Adnan Doric
I think you should use g (global) flag in your regexp.

Adnan

joshuajnoble wrote:

 Can any RegEx genius :) tell me whether ActionScript 3 properly
 supports multiple backreferences? The code I'm trying to use is this:

 private var headerBackreference:RegExp = /H([123]).*?\/H\1/;
 private function init():void {
 var s:String = BODYH2Valid Chocolate/H2 H2Valid
 Vanilla/H2 H2Invalid HTML/H3/BODY;
 var a:Array = headerBackreference.exec(s) as Array;
 if(a != null) {
 for(var i:int = 0; ia.length; i++) {
 trace(a[i]);
 }
 }
 a = s.match(headerBackreference);
 if(a != null) {
 for(var i:int = 0; ia.length; i++) {
 trace(a[i]);
 }
 }
 }

 I'm just trying to determine whether in fact this should return both
 the chocolate and the vanilla, or whether the behavior I see,
 returning just chocolate, is accurate. Thanks,

 Josh

  



RE: [flexcoders] Re: HttpService not called the first time

2007-11-27 Thread Tracy Spratt
Note that you really need only a single instance of HTTPService.  You
can set the url, method, etc and build the request object using AS, and
can handle the result conditionally using AsyncToken.

 

Post if you need examples.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gers32
Sent: Monday, November 26, 2007 6:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: HttpService not called the first time

 

Being a Flex newbie, I can only think of one way to solve this dilemma
(assuming I ever encounter performance problems at startup):

I thought it was a good idea to implement each HttpService in the
Component that displays the retrieved data, which is saved to an
application-wide Model, accessible to all Components. One solution
would be to centralize all HttpServices in the main application file;
they would populate the Model in the same way, but not require the
existence of their corresponding Components.

I'm sure there are better solutions out there... Thanks,

Chris.

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

 Defeat deferred instantiation judiciously, if at all. It is an easy
 fix, but has consequences. Better practice is to use binding or your
 own event system to reference data at the right time.
 
 
 
 Tracy

 



RE: [flexcoders] Flex Builder 3 Gotcha

2007-11-27 Thread Tim Ashworth
Does doing a refresh of the project not work, or even turning on the
'refresh automatically' preference ? 

Didn't for me unfortunately...

Use SVN to keep projects in synch.

You're absolutely right!  (Haven't set it up yet...) *own stupid fault*




[flexcoders] Flex 3 Beta 2 Expires in 4 days

2007-11-27 Thread byte.sensei
I was recently forced to upgrade from Flex 2 to Flex 3 because of a 
bug in Flex 2 that was fixed in Flex 3 that was affecting a couple of 
projects I'm working on.  

Flex 3 Beta 2 has been great, however it looks like it's set to expire 
in 4 days (not sure if that's just my machine or a fixed date for all 
beta 2).

The problem is, I can't buy Flex 3 (yet), and I don't see a new 
beta/version of Flex 3 with a later expiration date.  What can I do to 
keep developing in Flex 3?  I purchased Flex 2 last year and I have 
that serial, but I'm not sure if Flex 3 will accept it.  Will there be 
another beta update before the current one expires?





[flexcoders] Re: *****************************************************Group Box in Flex******

2007-11-27 Thread Abyss Knight
Use this library: http://code.google.com/p/jwopitz-lib/

The component is called FieldSet. There's an example link on that page
if you just want to check it out first.

Hope that helps,
-- William

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

 can any one tell me how to create vb style group box in flex application
 thanks in advance





[flexcoders] Can't debug FB 3 pieces

2007-11-27 Thread Amy
When I try to debug my Flex Builder 3 pieces, I get a message that it 
can't find the debug player.  I have been all over the adobe site 
looking for the current debug player, and everything I find tells me it 
is not the most recent version of the player and sends me to the most 
recent _regular_ player.  I.e. I can't even get the debug player 
installers to even _run_, not even the one that is in my FB 3 beta 
folder.  Where can I get a debug player installer that will run?

TIA;

Amy



[flexcoders] StrikeIron Address Verification Flex

2007-11-27 Thread Kevin
Is anyone out there using Flex with StrikeIron OR using a web service  
that uses ENUMS?  I am having a specific problem that I can't seem to  
resolve.  I would love some insight from anyone who may have  
experience with Webservices.  Thanks!


Here is the problem  code:

I am trying to load the webservice which verifies an address against  
the USPS database.  My other StrikeIron webservices work fine, BUT  
thus don't contain enums in the webservice.


WSDL: http://ws.strikeiron.com/USAddressVerification4_0?WSDL

var params: Object = new Object();
params.addressLine1 = 215 W 91st St;
params.addressLine2 = Apt 82;
params.city_state_zip = New York, NY 10024;
params.firm = '';
params.urbanization = '';
params.casing = 'Proper';

var service:WebService;
this.service = ServiceLocator.getInstance().getWebService 
(verifyUSPSAddress); //this is defined in another Services.mxml file
var strikeIronLicense:Object = {LicenseInfo:{RegisteredUser: 
{UserID:[EMAIL PROTECTED],Password:gobears1}}};

var qName: QName = new QName(http://ws.strikeiron.com,LicenseInfo;);
var soapHeader:SOAPHeader = new SOAPHeader(qName,strikeIronLicense);
service.addHeader(soapHeader);

var call : Object = 
service.VerifyAddressUSA.send 
(params.addressLine1,params.addressLine2,params.city_state_zip,params.fi 
rm,params.urbanization,params.casing);

call.addResponder( responder ); //handle the result


Here is the error message that I am getting in Flex:

[RPC Fault faultString=Cannot find definition for type 'http:// 
www.strikeiron.com::casingEnum' faultCode=EncodingError  
faultDetail=null]
	at mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/ 
internal::invokePendingCall()[E:\dev\flex_201_borneo\sdk\frameworks\mx 
\rpc\soap\Operation.as:544]
	at mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/ 
internal::invokeAllPending()[E:\dev\flex_201_borneo\sdk\frameworks\mx 
\rpc\soap\Operation.as:504]
	at mx.rpc.soap::AbstractWebService/ 
mx.rpc.soap:AbstractWebService::unEnqueueCalls()[E:\dev 
\flex_201_borneo\sdk\frameworks\mx\rpc\soap\AbstractWebService.as:453]
	at mx.rpc.soap::WebService/http://www.adobe.com/2006/flex/mx/ 
internal::wsdlHandler()[E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc 
\soap\WebService.as:258]



Here is the response from StrikeIron:

We do not have a ‘consulting’ group on site, but I’ll continue to  
look into it.  The error would seem to indicate that the enumeration  
for the casing[Proper, Upper, Lower] is not being handled correctly.   
In most other languages where the WSDL is parsed dynamically at run- 
time, using a string for this enum is perfectly fine.  I’m not sure  
if flex allows this.  Is there perhaps a way to force an enumeration  
from a string?


The WSDL also shows the casing enum as having a default value of  
“Upper”.  You should be able to leave this out completely as in other  
languages.


Sorry I couldn’t exactly fix your problem.  You might want to ask  
around on some flex forums on how to handle enumerations.  Let me  
know if you get it to work.

[flexcoders] Re: player update followed by redirect loses URL variables

2007-11-27 Thread dr_stone_1024
That's a good point too, but we're trying to provide a link inside an 
email.

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

 On Tuesday 27 Nov 2007, dr_stone_1024 wrote:
  Yes, this is a good solution and I think it will be our 
workaround -
  just wondering if anyone else encountered this.  Seems like it 
would be
  a common problem.
 
 We don't use URL variables because people have a habit of changing 
them :-)
 
 -- 
 Tom Chiverton
 Helping to advantageously transition compelling communities
 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 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 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.





RE: [flexcoders] *****************************************************Group Box in Flex*********************************************************************

2007-11-27 Thread Tracy Spratt
If you created that subject line like that do not do it any more.

 

Also, It has been 8 years since I last used VB for a UI.  What do you
want, functionally?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yourName
Sent: Tuesday, November 27, 2007 7:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
*Group Box in
Flex
*

 

can any one tell me how to create vb style group box in flex application

thanks in advance

 



[flexcoders] This has to be a bug right? If not, please explain...

2007-11-27 Thread Justin Winter
added to a creationComplete handler function:

code
var vBox:VBox = new VBox();

for(var i:int = 0; i  10; i++)
{
var tmpBtn:Button = new Button();
tmpBtn.label = BUTTON:  + i;
vBox.addChild(tmpBtn);  
}

this.addChild(vBox);

trace('VBOX HEIGHT: ' + vBox.height);
/code

OUTPUT:
--
VBOX HEIGHT: 0 - ALWAYS ZERO

No matter if I call vBox.invalidateProperties(); or any of the other
invalidate functions. The buttons are added to the container fine and
are displayed fine. 

I've also tried this with several other containers and the height is
not updated after the children are added. What am I missing here? 



RE: [flexcoders] Re: Simple question about remoteObject?

2007-11-27 Thread Tracy Spratt
RemoteObject is one of the three RPC protocols that a Flex client app
can use to communicate with a server.  RemoteObject uses AMF, a
proprietary messaging protocol, to communicate with a Java back-end.
Your other RPC options are HTTPService(my personal favorite) which uses
XML over HTTP, and WebService, which uses SOAP.

 

All three require some server-side platform to receive the request and
return the response.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Phill B
Sent: Monday, November 26, 2007 12:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Simple question about remoteObject?

 

I guess I'm way off with what I'm trying to do and need step back a
little bit. Apparently I'm not even using the remoteObject correctly.

On Nov 26, 2007 10:30 AM, Phill B wrote:
 I have a remoteObject component in a RO dir. I want to call to it in
 another component. How do I go about this? I've searched the web but
 didn't find anything that helped.

 I tried using this:
 mx:Form xmlns:RO=RO.* xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 in the component that is needs access to the RO but still didn't work.

 Thanks


 



RE: [flexcoders] This has to be a bug right? If not, please explain...

2007-11-27 Thread Alex Harui
Flex uses an invalidation mechanism.  As properties change, flags are
set requesting validation of those properties at a later time.  You can
force validation by calling validateNow(), but it can be expensive.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Justin Winter
Sent: Tuesday, November 27, 2007 9:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] This has to be a bug right? If not, please
explain...



added to a creationComplete handler function:

code
var vBox:VBox = new VBox();

for(var i:int = 0; i  10; i++)
{
var tmpBtn:Button = new Button();
tmpBtn.label = BUTTON:  + i;
vBox.addChild(tmpBtn); 
}

this.addChild(vBox);

trace('VBOX HEIGHT: ' + vBox.height);
/code

OUTPUT:
--
VBOX HEIGHT: 0 - ALWAYS ZERO

No matter if I call vBox.invalidateProperties(); or any of the other
invalidate functions. The buttons are added to the container fine and
are displayed fine. 

I've also tried this with several other containers and the height is
not updated after the children are added. What am I missing here? 



 


Re: [flexcoders] Flex 3 Beta 2 Expires in 4 days

2007-11-27 Thread Paul Andrews
- Original Message - 
From: byte.sensei [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, November 27, 2007 4:58 PM
Subject: [flexcoders] Flex 3 Beta 2 Expires in 4 days


I was recently forced to upgrade from Flex 2 to Flex 3 because of a
 bug in Flex 2 that was fixed in Flex 3 that was affecting a couple of
 projects I'm working on.

 Flex 3 Beta 2 has been great, however it looks like it's set to expire
 in 4 days (not sure if that's just my machine or a fixed date for all
 beta 2).

 The problem is, I can't buy Flex 3 (yet), and I don't see a new
 beta/version of Flex 3 with a later expiration date.  What can I do to
 keep developing in Flex 3?  I purchased Flex 2 last year and I have
 that serial, but I'm not sure if Flex 3 will accept it.

There's only one way to find out. Far quicker than typing out a post asking 
if it'll work..

Will there be
 another beta update before the current one expires?

Is the Beta expiring, or the trial period? 



RE: [flexcoders] Re: Application container failed to capture KeyboardEvent

2007-11-27 Thread Alex Harui
plugins are at the mercy of the browser.  Maybe enough of you can
pressure Mozilla and MS and others to provide better functionality for
plugins.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brent Dearth
Sent: Tuesday, November 27, 2007 8:23 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Application container failed to capture
KeyboardEvent



I know this is a long-standing issue, but are there any developments in
the works to prevent this sort of behaviour? I know there are
work-arounds to Flash being able to obtain focus programmatically, such
as using ExternalInterface calls from Javascript to pass keyboard
events. However, stuff like that has always struck me as hacky. 

In an ideal world, the Flash plugin would have the authority to demand
focus and receive programmatic focus across all browsers.




On Nov 26, 2007 3:37 PM, Alex Harui  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:




Nope, the browsers always steal focus.



From: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com ] On Behalf Of zhongtie
Sent: Monday, November 26, 2007 9:02 AM
To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] Re: Application container failed to
capture KeyboardEvent



Thanks Alex. That works!

When I switch to another application and then switch back, my
all
flash application loses the focus and no event fires at all
unless I
click somewhere in it. Is there any way around it?

Tie

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

 No children of the Application have focus, so there are no
events to
 capture. If you listen to the stage, you'll see everything.
The app is
 not the top-level displayobject so your handlers will not pick
up events
 from popups either.
 
 
 
 
 
 From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of zhongtie
 Sent: Saturday, November 24, 2007 6:22 PM
 To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Application container failed to capture
 KeyboardEvent
 
 
 
 My simple flex app somehow doesn't respond to key event, but
mouse
 events work fine. Any ideas?
 
 Thanks,
 Tie
 
 --- src code ---
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  
 layout=absolute
 keyDown=onEvent(event)
 mouseDown=onEvent(event)
 mx:Script
 ![CDATA[
 protected function onEvent(e:Event):void {
 trace(e.type);
 }
 ]]
 /mx:Script
 /mx:Application







 


RE: [flexcoders] This has to be a bug right? If not, please explain...

2007-11-27 Thread Tracy Spratt
For creating multiples of the same component, consider using
mx:Repeater.  It handles many ugly details for you.  If, for example,
you wanted to remove the children you created using addChild, it would
take some thought and some code, further complicated if there are static
components in the container as well.  With Repeater, just do:
myRepeater.dataProvider.removeAll();

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Tuesday, November 27, 2007 12:14 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] This has to be a bug right? If not, please
explain...

 

Flex uses an invalidation mechanism.  As properties change, flags are
set requesting validation of those properties at a later time.  You can
force validation by calling validateNow(), but it can be expensive.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Justin Winter
Sent: Tuesday, November 27, 2007 9:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] This has to be a bug right? If not, please
explain...

added to a creationComplete handler function:

code
var vBox:VBox = new VBox();

for(var i:int = 0; i  10; i++)
{
var tmpBtn:Button = new Button();
tmpBtn.label = BUTTON:  + i;
vBox.addChild(tmpBtn); 
}

this.addChild(vBox);

trace('VBOX HEIGHT: ' + vBox.height);
/code

OUTPUT:
--
VBOX HEIGHT: 0 - ALWAYS ZERO

No matter if I call vBox.invalidateProperties(); or any of the other
invalidate functions. The buttons are added to the container fine and
are displayed fine. 

I've also tried this with several other containers and the height is
not updated after the children are added. What am I missing here? 

 



[flexcoders] Newbie compile issue rattling my brain

2007-11-27 Thread mcaplan_labnet
Hi there,

I'm learning the ropes of Flex.  I have a pretty much textbook example
of how to set up a datagrid that is resulting in compile time syntax
errors.  I can't for the life of me see the error.

Any ideas?


Thanks!

mike


Severity and DescriptionPathResourceLocation
Creation Time   Id
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   851
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   854
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   857
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   860
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   863
1084: Syntax error: expecting identifier before case.
labnet/src/modules  cases_list.mxml line 7  1196183214531   850
1084: Syntax error: expecting identifier before case.
labnet/src/modules  cases_list.mxml line 7  1196183214547   853
1084: Syntax error: expecting identifier before case.
labnet/src/modules  cases_list.mxml line 7  1196183214547   856
1084: Syntax error: expecting identifier before case.
labnet/src/modules  cases_list.mxml line 7  1196183214547   859
1084: Syntax error: expecting identifier before case.
labnet/src/modules  cases_list.mxml line 7  1196183214547   862
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   852
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   855
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   858
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   861
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   864


?xml version=1.0 encoding=utf-8?
mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
width=100% height=100%
mx:TitleWindow width=100% height=100% layout=absolute
title=Cases
mx:DataGrid left=10 top=10 right=10 bottom=10
mx:dataProvider
mx:ArrayCollection
mx:source
mx:Object case=1002 patient=Chris Pordan
arrival=2007/12/02 delivery=2007/12/16 /
mx:Object case=1003 patient=Dave Shompson
arrival=2007/12/03 delivery=2007/12/17 /
mx:Object case=1004 patient=Pat
Boodfellow arrival=2007/12/04 delivery=2007/12/18 /
mx:Object case=1005 patient=Mike Meath
arrival=2007/12/05 delivery=2007/12/19 /
mx:Object case=1006 patient=Sandy
Macdaddy arrival=2007/12/05 delivery=2007/12/20 /
/mx:source
/mx:ArrayCollection
/mx:dataProvider
mx:columns
mx:DataGridColumn headerText=Case dataField=case/
mx:DataGridColumn headerText=Patient
dataField=patient/
mx:DataGridColumn headerText=Arrival
dataField=arrival/
mx:DataGridColumn headerText=Delivery
dataField=delivery /
/mx:columns
/mx:DataGrid
/mx:TitleWindow
/mx:Module



RE: [flexcoders] Problems with a Tree and dynamic data provider

2007-11-27 Thread Alex Harui
The branch expanded just fine for me in Flex 3.  In the future it will help if 
you can simplify the test case even further and provide explicit steps to 
reproduce the problem  Showing the entire stack trace is also helpful.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of César P.
Sent: Tuesday, November 27, 2007 6:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problems with a Tree and dynamic data provider



Hi,

I'm new to Flex and to the group. I came here because I am having
problems with a Tree control and a dynamic data provider.

The problem is that everytime I try to expand a branch with no children
the application crashes with a #1009 error. Is it the expected
behaviour? I don't know how to fix it or if there is something wrong
with my code that produce this bug.

Also which one is the best strategy to remove nodes from this Tree.

I'm a Java Developer but we are going to do a project with Flex so I am
learning.

Here is my code, I'm learning so everything is in my mxml application :P
.

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

mx:Script
![CDATA[

import mx.collections.XMLListCollection;
import mx.controls.Alert;
import mx.collections.Sort;
import mx.collections.SortField;

[Bindable]
private var project:XML =
list
phase title=Project isBranch=true
/phase
/list;

[Bindable]
private var companyData:XMLListCollection = new
XMLListCollection(project.phase);

private function treeLabel(item:Object):String
{
var node:XML = XML(item);

if( node.localName() == phase )
{
return [EMAIL PROTECTED];
}
else
{
return [EMAIL PROTECTED];
}
}

private function isPhase(node:XML):Boolean
{
if(node.attributes()[1].toString() == true)
{
return true;
}

return false;
}

private function addPhase():void {

var listNode:XMLList;

var currentNode:XML = XML(myTree.selectedItem);

var newNode:XML = phase/phase;

[EMAIL PROTECTED] = inputPhase.text;

[EMAIL PROTECTED] = true;

if(currentNode != null  isPhase(currentNode) 
inputPhase.text != )
{
listNode = XMLList(currentNode);

listNode[0].appendChild(newNode);
}
}

private function addTask():void {
var listNode:XMLList;

var currentNode:XML = XML(myTree.selectedItem);

var newNode:XML = task/task;

[EMAIL PROTECTED] = inputTask.text;

[EMAIL PROTECTED] = false;

if(currentNode != null  isPhase(currentNode) 
inputTask.text != )
{
listNode = XMLList(currentNode);

listNode[0].appendChild(newNode);
}
}
]]
/mx:Script

mx:Panel id=panel title=Tree Control Example height=85%
width=75%
paddingTop=10 paddingLeft=10 paddingRight=10
paddingBottom=10

mx:Label width=100% color=blue
text=Select a node in the Tree control./

mx:HDividedBox width=100% height=100%
mx:Tree id=myTree width=50% height=100%
labelField=@label labelFunction=treeLabel
showRoot=false dataProvider={companyData} /
/mx:HDividedBox
mx:HBox
mx:Button id=phaseButton label=Add Phase
click=addPhase(); width=74/
mx:TextInput id=inputPhase/
/mx:HBox
mx:HBox
mx:Button id=taskButton label=Add Task
click=addTask(); width=74/
mx:TextInput id=inputTask/
/mx:HBox
/mx:Panel
/mx:Application

---

Thanks

Cesar Perez



 


RE: [flexcoders] How can I avoid jumping / flickering when changing the dataprovider in a list box?

2007-11-27 Thread Alex Harui
We would need to see a test case.  Flickering has many meanings.
itemRenderers go in lists, not on canvases so I'm not sure what your
scenario is.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of DreamCode
Sent: Tuesday, November 27, 2007 6:35 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How can I avoid jumping / flickering when
changing the dataprovider in a list box?



I have the same issue, only in my case there are no default renderers,
just me putting X item renderers on a canvas. Ideas? suggestions?

--Allan

On Nov 27, 2007 12:55 AM, Alex Harui [EMAIL PROTECTED]
mailto:aharui%40adobe.com  wrote:




 are you using custom renderers? If so, do you see flickering with
default
 renderers?
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Anzer
 Sent: Monday, November 26, 2007 10:06 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] How can I avoid jumping / flickering when
changing the
 dataprovider in a list box?






 Hi,

 I am programmatically changing the values in an array collection which
is
 the data provider of a list box.

 When I change the values the list box is flickering, how can I avoid
it?



 My intention is to show an interface like windows explorer. I want to
do in
 place re naming and deleting in the list.

 Its working correctly but I want to remove the jumping of the list box
items
 after the edit.



 Thanks
 Anz

 http://www.flickrmailer.com http://www.flickrmailer.com 







 


 


[flexcoders] Re: This has to be a bug right? If not, please explain...

2007-11-27 Thread Justin Winter
Is there a better, more appropriate way to validate certain
properties, like height, after adding children to a UIComponent or
subclass of UIComponent? 

Coming from AS2 I find it confusing that there isn't an easy way to
access the height of a container after adding children. 

If later during runtime I need to access the height of dynamically
created child container, what is the appropriate approach?





RE: [flexcoders] Reference to the content area of a Panel component

2007-11-27 Thread Alex Harui
It is not guaranteed to be a separate object.  It is drawn by the
panel's borderskin and located within the coordinates of the panel minus
its viewMetrics.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Lapasa
Sent: Monday, November 26, 2007 3:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Reference to the content area of a Panel component



Hello all,

I am trying to get access the content area of a panel as I would like to

skin it relative to the panel's content area. I am referring to that box

of white space underneath the title bar.

From the docs it says:

A Panel ../langref/mx/containers/Panel.html layout container includes

a title bar, a title, a status message area (in the title bar), a 
border, and a content area for its children

But I can't find a reference in the API how to get the x,y, width and 
height of the actual content area container where the panel's children 
reside. Any guidance would be appreciated.

Thx,

-mL

Notice of confidentiality:
The information contained in this e-mail is intended only for the use of
the individual or entity named above and may be confidential. Should the
reader of this message not be the intended recipient, you are hereby
notified that any unauthorized dissemination, distribution or
reproduction of this message is strictly prohibited. If you have
received this message in error, please advise the sender immediately and
destroy the e-mail.



 


RE: [flexcoders] PopupManager - any way to make it blur the app but not the mask?

2007-11-27 Thread Alex Harui
i'm not sure what you maen by mask



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bjorn -
Sent: Tuesday, November 27, 2007 1:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PopupManager - any way to make it blur the app but
not the mask?



I've got a two canvases which I use with the PopupManager this way:
 
PopUpManager.addPopUp(canvas1,canvas2, true);
 
The PopupManager will blur the entire application including it's mask -
but I'd like to keep the mask as it is (not blurred, and with the popup
masked by it as well).
 
Is this possible?
-- 


http://www.juicability.com http://www.juicability.com  - flex blog
http://www.43min.com http://www.43min.com  - funny movies 

 


[flexcoders] Determine measuredHeight on explicitly defined height?

2007-11-27 Thread Matt
If I create a Box and set the height 100 pixels and then check the
measuredHeight it is always 0. I'm trying to figure out how to
determine the desired height on an explicitly defined container. 
Particularly, I'd like to know when the necessary height is larger
than the available height (thus creating scrollbars).

Can someone point out how to accomplish this?

Thanks



RE: [flexcoders] Re: This has to be a bug right? If not, please explain...

2007-11-27 Thread Alex Harui
validateclient can validate subtrees, but can still be expensive.  in
general, the height is determined by the parent (suppose you requested a
% height).  There are calls like getExplicitOrMeasuredHeight that are
commonly used to calculate layout.  It might be worth reviewing the
related chapters in the doc.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Justin Winter
Sent: Tuesday, November 27, 2007 9:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: This has to be a bug right? If not, please
explain...



Is there a better, more appropriate way to validate certain
properties, like height, after adding children to a UIComponent or
subclass of UIComponent? 

Coming from AS2 I find it confusing that there isn't an easy way to
access the height of a container after adding children. 

If later during runtime I need to access the height of dynamically
created child container, what is the appropriate approach?



 


RE: [flexcoders] Determine measuredHeight on explicitly defined height?

2007-11-27 Thread Alex Harui
Don't set height, call setActualSize instead.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt
Sent: Tuesday, November 27, 2007 9:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Determine measuredHeight on explicitly defined
height?



If I create a Box and set the height 100 pixels and then check the
measuredHeight it is always 0. I'm trying to figure out how to
determine the desired height on an explicitly defined container. 
Particularly, I'd like to know when the necessary height is larger
than the available height (thus creating scrollbars).

Can someone point out how to accomplish this?

Thanks



 


RE: [flexcoders] Re: Datagrid tab order?

2007-11-27 Thread Alex Harui
the default editing code handles offscreen rows.
 
you can probably override focusinhandler and set editeditemposition
 
the dg remembers the last position of the editor and restores editing
there



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephen Roy J. Tang
Sent: Tuesday, November 27, 2007 1:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Datagrid tab order?



We had trouble before with having both an item renderer and an item
editor for a column (which we need to have that checkbox column), so
instead what I tried was simply having only itemrenderers for the
controls (and updating the data on change of the itemrenderer
controls) This seems to fix the default tab order, but there are still
some issues with the tab order, namely:

1. Tabbing through the grid only traverses visible rows - how can a
user navigate to scrolled-out rows using the keyboard?
2. Sorting the grid doesn't seem to sort the taborder - the rows are
still traversed in the original order. (Strangely, reassigning a
headerRenderer after the sorting sets the correct tab order - I found
this by accident)
3. Tabbing into the grid from an outside control - looks like it
remembers where the grid was last traversed and starts over from
there. Is it possible to change it to always enter the grid from the
first row?
4. I'm not sure of the behavior exactly, as I couldn't replicate it
all the time, but tabbing into the grid after it has been
mouse-scrolled seems to cause it to enter at different rows.

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

 Sounds like editable!=true, so the DG's tab handling code isn't
running.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Stephen Roy J. Tang
 Sent: Friday, November 16, 2007 9:15 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Datagrid tab order?
 
 
 
 Hi,
 
 I'm a bit confused about the tab order in a datagrid. The problem is I
 have a datagrid with 3 columns: 
 column 1 - renderer is a checkbox control. I use onchange of the
 checkbox to update the underlying data
 column 2 - normal text column, editor is a editbox
 column 3 - checkbox, similar to column 1
 
 Using tab to traverse the datagrid has weird behavior, i.e. first it
 seems to traverse all the column 2 editboxes (top rows first then
 bottom rows); then it traverses the checkboxes in each row (starting
 from top row again); after it has traversed everything, the tab order
 seems random now - it jumps around from editbox to checkbox or
whatever.
 
 Is it because of the way the actual renderer/editor instances are
 created? Is there something I should be specifying to guarantee a
 nice, left-to-right top-to-bottom tab order?
 
 Thanks,
 
 Roy




 


[flexcoders] Re: Problems with a Tree and dynamic data provider

2007-11-27 Thread César P .
I am using Flex 2.

Steps:
1. Add a Phase (P1) 
2. Add another Phase P2 (P1's child)
3. Expand the Phase (P2)
4. The application crashes

The tree should look like:
-Project
--P1
---P2

Thanks

Stack

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at mx.controls::Tree/::buildUpCollectionEvents()
at
mx.controls::Tree/http://www.adobe.com/2006/flex/mx/internal::onTweenEnd()
at mx.effects::Tween/endTween()
at mx.controls::Tree/mx.controls:Tree::updateDisplayList()
at mx.core::UIComponent/validateDisplayList()
at mx.managers::LayoutManager/::validateDisplayList()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()


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

 The branch expanded just fine for me in Flex 3.  In the future it
will help if you can simplify the test case even further and provide
explicit steps to reproduce the problem  Showing the entire stack
trace is also helpful.
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of César P.
 Sent: Tuesday, November 27, 2007 6:53 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Problems with a Tree and dynamic data provider
 
 
 
 Hi,
 
 I'm new to Flex and to the group. I came here because I am having
 problems with a Tree control and a dynamic data provider.
 
 The problem is that everytime I try to expand a branch with no children
 the application crashes with a #1009 error. Is it the expected
 behaviour? I don't know how to fix it or if there is something wrong
 with my code that produce this bug.
 
 Also which one is the best strategy to remove nodes from this Tree.
 
 I'm a Java Developer but we are going to do a project with Flex so I am
 learning.
 
 Here is my code, I'm learning so everything is in my mxml application :P
 .
 
 ?xml version=1.0 encoding=utf-8?
 !-- Tree control example. --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 
 mx:Script
 ![CDATA[
 
 import mx.collections.XMLListCollection;
 import mx.controls.Alert;
 import mx.collections.Sort;
 import mx.collections.SortField;
 
 [Bindable]
 private var project:XML =
 list
 phase title=Project isBranch=true
 /phase
 /list;
 
 [Bindable]
 private var companyData:XMLListCollection = new
 XMLListCollection(project.phase);
 
 private function treeLabel(item:Object):String
 {
 var node:XML = XML(item);
 
 if( node.localName() == phase )
 {
 return [EMAIL PROTECTED];
 }
 else
 {
 return [EMAIL PROTECTED];
 }
 }
 
 private function isPhase(node:XML):Boolean
 {
 if(node.attributes()[1].toString() == true)
 {
 return true;
 }
 
 return false;
 }
 
 private function addPhase():void {
 
 var listNode:XMLList;
 
 var currentNode:XML = XML(myTree.selectedItem);
 
 var newNode:XML = phase/phase;
 
 [EMAIL PROTECTED] = inputPhase.text;
 
 [EMAIL PROTECTED] = true;
 
 if(currentNode != null  isPhase(currentNode) 
 inputPhase.text != )
 {
 listNode = XMLList(currentNode);
 
 listNode[0].appendChild(newNode);
 }
 }
 
 private function addTask():void {
 var listNode:XMLList;
 
 var currentNode:XML = XML(myTree.selectedItem);
 
 var newNode:XML = task/task;
 
 [EMAIL PROTECTED] = inputTask.text;
 
 [EMAIL PROTECTED] = false;
 
 if(currentNode != null  isPhase(currentNode) 
 inputTask.text != )
 {
 listNode = XMLList(currentNode);
 
 listNode[0].appendChild(newNode);
 }
 }
 ]]
 /mx:Script
 
 mx:Panel id=panel title=Tree Control Example height=85%
 width=75%
 paddingTop=10 paddingLeft=10 paddingRight=10
 paddingBottom=10
 
 mx:Label width=100% color=blue
 text=Select a node in the Tree control./
 
 mx:HDividedBox width=100% height=100%
 mx:Tree id=myTree width=50% height=100%
 labelField=@label labelFunction=treeLabel
 showRoot=false dataProvider={companyData} /
 /mx:HDividedBox
 mx:HBox
 mx:Button id=phaseButton label=Add Phase
 click=addPhase(); width=74/
 mx:TextInput id=inputPhase/
 /mx:HBox
 mx:HBox
 mx:Button id=taskButton label=Add Task
 click=addTask(); width=74/
 mx:TextInput id=inputTask/
 /mx:HBox
 /mx:Panel
 /mx:Application
 
 ---
 
 Thanks
 
 Cesar Perez





[flexcoders] Re: This has to be a bug right? If not, please explain...

2007-11-27 Thread Justin Winter
Tracy, thanks for the feedback. The above was just an example of an
issue I ran into while trying to build a larger menu component.
I don't have much experience with the mx:Repeater control so
I will look into it more. 

I originally tried to build the component using MXML and nested
containers, but one of the main issues I ran into was that all box
containers, and I think the repeater falls into this category too,
position their child elements based on the childIndex value. This is
undesirable in my case. For instance, if I have three buttons stacked
on top of each other vertically (think List control), I need button 1
to have a dropshadow on top of button 2. 

I've been contemplating subclassing VBox to see if I can override the
positioning logic but I ran into the above issue and need to figure
out the best solution to get the height of a container after
dynamically adding children so I can reposition other UIComponents at
runtime based on the UIComponent's height. 

Seems like I'm missing something simple here...

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

 For creating multiples of the same component, consider using
 mx:Repeater.  It handles many ugly details for you.  If, for example,
 you wanted to remove the children you created using addChild, it would
 take some thought and some code, further complicated if there are static
 components in the container as well.  With Repeater, just do:
 myRepeater.dataProvider.removeAll();
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Alex Harui
 Sent: Tuesday, November 27, 2007 12:14 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] This has to be a bug right? If not, please
 explain...
 
  
 
 Flex uses an invalidation mechanism.  As properties change, flags are
 set requesting validation of those properties at a later time.  You can
 force validation by calling validateNow(), but it can be expensive.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Justin Winter
 Sent: Tuesday, November 27, 2007 9:10 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] This has to be a bug right? If not, please
 explain...
 
 added to a creationComplete handler function:
 
 code
 var vBox:VBox = new VBox();
 
 for(var i:int = 0; i  10; i++)
 {
 var tmpBtn:Button = new Button();
 tmpBtn.label = BUTTON:  + i;
 vBox.addChild(tmpBtn); 
 }
 
 this.addChild(vBox);
 
 trace('VBOX HEIGHT: ' + vBox.height);
 /code
 
 OUTPUT:
 --
 VBOX HEIGHT: 0 - ALWAYS ZERO
 
 No matter if I call vBox.invalidateProperties(); or any of the other
 invalidate functions. The buttons are added to the container fine and
 are displayed fine. 
 
 I've also tried this with several other containers and the height is
 not updated after the children are added. What am I missing here?





Re: [flexcoders] Reference to the content area of a Panel component

2007-11-27 Thread Mark Lapasa
I managed to get to the panel's boarderskin via the panel's rawchildren. 
I guess it's now just a matter of figuring out the math. Thx Alex.

Alex Harui wrote:

 It is not guaranteed to be a separate object.  It is drawn by the 
 panel's borderskin and located within the coordinates of the panel 
 minus its viewMetrics.

 
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Mark Lapasa
 *Sent:* Monday, November 26, 2007 3:18 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Reference to the content area of a Panel component

 Hello all,

 I am trying to get access the content area of a panel as I would like to
 skin it relative to the panel's content area. I am referring to that box
 of white space underneath the title bar.

 From the docs it says:

 A Panel ../langref/mx/containers/Panel.html layout container includes
 a title bar, a title, a status message area (in the title bar), a
 border, and a content area for its children

 But I can't find a reference in the API how to get the x,y, width and
 height of the actual content area container where the panel's children
 reside. Any guidance would be appreciated.

 Thx,

 -mL

 Notice of confidentiality:
 The information contained in this e-mail is intended only for the use 
 of the individual or entity named above and may be confidential. 
 Should the reader of this message not be the intended recipient, you 
 are hereby notified that any unauthorized dissemination, distribution 
 or reproduction of this message is strictly prohibited. If you have 
 received this message in error, please advise the sender immediately 
 and destroy the e-mail.

  



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



RE: [flexcoders] Flex 3 Beta 2 Expires in 4 days

2007-11-27 Thread Tianzhen Lin
If you go to Help - Manage Flex Licenses, you may enter a valid Flex 2
serial number, it should extend your trial period.  At least mine has more
than a few days to go.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Andrews
Sent: Tuesday, November 27, 2007 12:13 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 3 Beta 2 Expires in 4 days

 

- Original Message - 
From: byte.sensei [EMAIL PROTECTED] mailto:byte.sensei%40yahoo.com

To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Sent: Tuesday, November 27, 2007 4:58 PM
Subject: [flexcoders] Flex 3 Beta 2 Expires in 4 days

I was recently forced to upgrade from Flex 2 to Flex 3 because of a
 bug in Flex 2 that was fixed in Flex 3 that was affecting a couple of
 projects I'm working on.

 Flex 3 Beta 2 has been great, however it looks like it's set to expire
 in 4 days (not sure if that's just my machine or a fixed date for all
 beta 2).

 The problem is, I can't buy Flex 3 (yet), and I don't see a new
 beta/version of Flex 3 with a later expiration date. What can I do to
 keep developing in Flex 3? I purchased Flex 2 last year and I have
 that serial, but I'm not sure if Flex 3 will accept it.

There's only one way to find out. Far quicker than typing out a post asking 
if it'll work..

Will there be
 another beta update before the current one expires?

Is the Beta expiring, or the trial period? 

 



Re: [flexcoders] Newbie compile issue rattling my brain

2007-11-27 Thread Aaron Miller
I think you need define your list in an mx:Array (inside the source block)
since this is the type of the ArrayCollection.source property. I could be
wrong though, I usually don't define data in MXML.

Regards,
...aaron

On 11/27/07, mcaplan_labnet [EMAIL PROTECTED] wrote:

   Hi there,

 I'm learning the ropes of Flex. I have a pretty much textbook example
 of how to set up a datagrid that is resulting in compile time syntax
 errors. I can't for the life of me see the error.

 Any ideas?

 Thanks!

 mike

 Severity and Description Path Resource Location Creation Time Id
 1084: Syntax error: expecting colon before rightbrace.
 labnet/src/modules cases_list.mxml line 7 1196183214547 851
 1084: Syntax error: expecting colon before rightbrace.
 labnet/src/modules cases_list.mxml line 7 1196183214547 854
 1084: Syntax error: expecting colon before rightbrace.
 labnet/src/modules cases_list.mxml line 7 1196183214547 857
 1084: Syntax error: expecting colon before rightbrace.
 labnet/src/modules cases_list.mxml line 7 1196183214547 860
 1084: Syntax error: expecting colon before rightbrace.
 labnet/src/modules cases_list.mxml line 7 1196183214547 863
 1084: Syntax error: expecting identifier before case.
 labnet/src/modules cases_list.mxml line 7 1196183214531 850
 1084: Syntax error: expecting identifier before case.
 labnet/src/modules cases_list.mxml line 7 1196183214547 853
 1084: Syntax error: expecting identifier before case.
 labnet/src/modules cases_list.mxml line 7 1196183214547 856
 1084: Syntax error: expecting identifier before case.
 labnet/src/modules cases_list.mxml line 7 1196183214547 859
 1084: Syntax error: expecting identifier before case.
 labnet/src/modules cases_list.mxml line 7 1196183214547 862
 1084: Syntax error: expecting identifier before rightbrace.
 labnet/src/modules cases_list.mxml line 7 1196183214547 852
 1084: Syntax error: expecting identifier before rightbrace.
 labnet/src/modules cases_list.mxml line 7 1196183214547 855
 1084: Syntax error: expecting identifier before rightbrace.
 labnet/src/modules cases_list.mxml line 7 1196183214547 858
 1084: Syntax error: expecting identifier before rightbrace.
 labnet/src/modules cases_list.mxml line 7 1196183214547 861
 1084: Syntax error: expecting identifier before rightbrace.
 labnet/src/modules cases_list.mxml line 7 1196183214547 864

 ?xml version=1.0 encoding=utf-8?
 mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
 width=100% height=100%
 mx:TitleWindow width=100% height=100% layout=absolute
 title=Cases
 mx:DataGrid left=10 top=10 right=10 bottom=10
 mx:dataProvider
 mx:ArrayCollection
 mx:source
 mx:Object case=1002 patient=Chris Pordan
 arrival=2007/12/02 delivery=2007/12/16 /
 mx:Object case=1003 patient=Dave Shompson
 arrival=2007/12/03 delivery=2007/12/17 /
 mx:Object case=1004 patient=Pat
 Boodfellow arrival=2007/12/04 delivery=2007/12/18 /
 mx:Object case=1005 patient=Mike Meath
 arrival=2007/12/05 delivery=2007/12/19 /
 mx:Object case=1006 patient=Sandy
 Macdaddy arrival=2007/12/05 delivery=2007/12/20 /
 /mx:source
 /mx:ArrayCollection
 /mx:dataProvider
 mx:columns
 mx:DataGridColumn headerText=Case dataField=case/
 mx:DataGridColumn headerText=Patient
 dataField=patient/
 mx:DataGridColumn headerText=Arrival
 dataField=arrival/
 mx:DataGridColumn headerText=Delivery
 dataField=delivery /
 /mx:columns
 /mx:DataGrid
 /mx:TitleWindow
 /mx:Module

  




-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


Re: [flexcoders] Re: Simple question about remoteObject?

2007-11-27 Thread Muzak
 RemoteObject uses AMF, a
 proprietary messaging protocol, to communicate with a Java back-end.

Or ColdFusion, PHP, .NET.. or whichever Remoting solution you can get your 
hands on.


- Original Message - 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, November 27, 2007 6:17 PM
Subject: RE: [flexcoders] Re: Simple question about remoteObject?


RemoteObject is one of the three RPC protocols that a Flex client app
can use to communicate with a server.  RemoteObject uses AMF, a
proprietary messaging protocol, to communicate with a Java back-end.
Your other RPC options are HTTPService(my personal favorite) which uses
XML over HTTP, and WebService, which uses SOAP.

 

All three require some server-side platform to receive the request and
return the response.

Tracy



--
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] Newbie compile issue rattling my brain

2007-11-27 Thread Seth Caldwell
I have an idea, but not sure. When I pasted your code, I noticed end of line
characters in some of your strings. 

For example:

mx:Object case=1006 patient=Sandy
Macdaddy arrival=2007/12/05 delivery=2007/12/20 /

This should be

mx:Object case=1006 patient=Sandy Macdaddy arrival=2007/12/05
delivery=2007/12/20 /

 

I cleaned it, compiled it, and ran it. All was good.

However, I also changed it from an Mx:Module to an Mx:Canvas, and then
dropped it in my main application.

Hope this helps,

Seth

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mcaplan_labnet
Sent: Tuesday, November 27, 2007 9:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie compile issue rattling my brain

 

Hi there,

I'm learning the ropes of Flex. I have a pretty much textbook example
of how to set up a datagrid that is resulting in compile time syntax
errors. I can't for the life of me see the error.

Any ideas?

Thanks!

mike

Severity and Description Path Resource Location Creation Time Id
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 851
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 854
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 857
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 860
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 863
1084: Syntax error: expecting identifier before case.
labnet/src/modules cases_list.mxml line 7 1196183214531 850
1084: Syntax error: expecting identifier before case.
labnet/src/modules cases_list.mxml line 7 1196183214547 853
1084: Syntax error: expecting identifier before case.
labnet/src/modules cases_list.mxml line 7 1196183214547 856
1084: Syntax error: expecting identifier before case.
labnet/src/modules cases_list.mxml line 7 1196183214547 859
1084: Syntax error: expecting identifier before case.
labnet/src/modules cases_list.mxml line 7 1196183214547 862
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 852
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 855
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 858
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 861
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 864

?xml version=1.0 encoding=utf-8?
mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
width=100% height=100%
mx:TitleWindow width=100% height=100% layout=absolute
title=Cases
mx:DataGrid left=10 top=10 right=10 bottom=10
mx:dataProvider
mx:ArrayCollection
mx:source
mx:Object case=1002 patient=Chris Pordan
arrival=2007/12/02 delivery=2007/12/16 /
mx:Object case=1003 patient=Dave Shompson
arrival=2007/12/03 delivery=2007/12/17 /
mx:Object case=1004 patient=Pat
Boodfellow arrival=2007/12/04 delivery=2007/12/18 /
mx:Object case=1005 patient=Mike Meath
arrival=2007/12/05 delivery=2007/12/19 /
mx:Object case=1006 patient=Sandy
Macdaddy arrival=2007/12/05 delivery=2007/12/20 /
/mx:source
/mx:ArrayCollection
/mx:dataProvider
mx:columns
mx:DataGridColumn headerText=Case dataField=case/
mx:DataGridColumn headerText=Patient
dataField=patient/
mx:DataGridColumn headerText=Arrival
dataField=arrival/
mx:DataGridColumn headerText=Delivery
dataField=delivery /
/mx:columns
/mx:DataGrid
/mx:TitleWindow
/mx:Module

 



RE: [flexcoders] Re: Dynamically Changing Easing Function Again

2007-11-27 Thread Gordon Smith
 Is there a more elegant way to tell Flex that it needs to link it in?
 
I don't think so. If you're building a SWC, compc has an
-include-classes configuration option, but if you're building a SWF,
mxmlc doesn't have this option and I think you have to create a
dependency in code.
 
 I haven't been able to find the most current debug player. 
 
If you download the SDK or Flex Builder it has the debug player.
 
- Gordon




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Monday, November 26, 2007 8:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Dynamically Changing Easing Function Again



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

  This is aggravatingly difficult to do.
 
 You don't say what's going wrong, but I suspect that
 getDefinitionByName() is returning null when you pass it a string like
 mx.effects.easing.Cubic. That's because the Cubic class doesn't 
exist
 in your SWF... the MXML compiler has no way of knowing that your app
 needs it, so it doesn't link it in. One way to get it to be linked in 
is
 to declare a static var of that type. Note that simply importing it is
 NOT sufficient to link it in.

I don't exactly know what is going wrong, because I haven't been able 
to find the most current debug player. Every link I can find that 
should lead to it goes to a regular player dated somewhere around June.

It seems to me that if I am going to add extra lines declaring 
variables of all the easing types, I might as well hard-code switch 
case statements, as it is just as verbose and non-extensible. Is there 
a more elegant way to tell Flex that it needs to link it in?

-Amy



 


[flexcoders] Re: Newbie compile issue rattling my brain

2007-11-27 Thread Justin Winter
Here you go:

The lower-case c in your object was throwing an error and I put this
all in an Application instead of a module.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute width=100% height=100%
 mx:TitleWindow width=100% height=100% layout=absolute
title=Cases
 mx:DataGrid left=10 top=10 right=10 bottom=10

 mx:dataProvider
 mx:ArrayCollection
 mx:source
 mx:Object Case=1002 patient=Chris Pordan
arrival=2007/12/02 delivery=2007/12/16 /
 mx:Object Case=1003 patient=Dave Shompson
arrival=2007/12/03 delivery=2007/12/17 /
 mx:Object Case=1004 patient=Pat Boodfellow
arrival=2007/12/04 delivery=2007/12/18 /
 mx:Object Case=1005 patient=Mike Meath
arrival=2007/12/05 delivery=2007/12/19 /
 mx:Object Case=1006 patient=Sandy Macdaddy
arrival=2007/12/05 delivery=2007/12/20 /
 /mx:source
 /mx:ArrayCollection
 /mx:dataProvider

 mx:columns
 mx:DataGridColumn headerText=Case dataField=Case/
 mx:DataGridColumn headerText=Patient
dataField=patient/
 mx:DataGridColumn headerText=Arrival
dataField=arrival/
 mx:DataGridColumn headerText=Delivery
dataField=delivery /
 /mx:columns
 /mx:DataGrid
 /mx:TitleWindow
/mx:Application


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

 I think you need define your list in an mx:Array (inside the source
block)
 since this is the type of the ArrayCollection.source property. I could
be
 wrong though, I usually don't define data in MXML.

 Regards,
 ...aaron

 On 11/27/07, mcaplan_labnet [EMAIL PROTECTED] wrote:
 
Hi there,
 
  I'm learning the ropes of Flex. I have a pretty much textbook
example
  of how to set up a datagrid that is resulting in compile time syntax
  errors. I can't for the life of me see the error.
 
  Any ideas?
 
  Thanks!
 
  mike
 
  Severity and Description Path Resource Location Creation Time Id
  1084: Syntax error: expecting colon before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 851
  1084: Syntax error: expecting colon before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 854
  1084: Syntax error: expecting colon before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 857
  1084: Syntax error: expecting colon before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 860
  1084: Syntax error: expecting colon before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 863
  1084: Syntax error: expecting identifier before case.
  labnet/src/modules cases_list.mxml line 7 1196183214531 850
  1084: Syntax error: expecting identifier before case.
  labnet/src/modules cases_list.mxml line 7 1196183214547 853
  1084: Syntax error: expecting identifier before case.
  labnet/src/modules cases_list.mxml line 7 1196183214547 856
  1084: Syntax error: expecting identifier before case.
  labnet/src/modules cases_list.mxml line 7 1196183214547 859
  1084: Syntax error: expecting identifier before case.
  labnet/src/modules cases_list.mxml line 7 1196183214547 862
  1084: Syntax error: expecting identifier before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 852
  1084: Syntax error: expecting identifier before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 855
  1084: Syntax error: expecting identifier before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 858
  1084: Syntax error: expecting identifier before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 861
  1084: Syntax error: expecting identifier before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 864
 
  ?xml version=1.0 encoding=utf-8?
  mx:Module xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
  width=100% height=100%
  mx:TitleWindow width=100% height=100% layout=absolute
  title=Cases
  mx:DataGrid left=10 top=10 right=10 bottom=10
  mx:dataProvider
  mx:ArrayCollection
  mx:source
  mx:Object case=1002 patient=Chris Pordan
  arrival=2007/12/02 delivery=2007/12/16 /
  mx:Object case=1003 patient=Dave Shompson
  arrival=2007/12/03 delivery=2007/12/17 /
  mx:Object case=1004 patient=Pat
  Boodfellow arrival=2007/12/04 delivery=2007/12/18 /
  mx:Object case=1005 patient=Mike Meath
  arrival=2007/12/05 delivery=2007/12/19 /
  mx:Object case=1006 patient=Sandy
  Macdaddy arrival=2007/12/05 delivery=2007/12/20 /
  /mx:source
  /mx:ArrayCollection
  /mx:dataProvider
  mx:columns
  mx:DataGridColumn headerText=Case dataField=case/
  mx:DataGridColumn headerText=Patient
  dataField=patient/
  mx:DataGridColumn headerText=Arrival
  dataField=arrival/
  mx:DataGridColumn headerText=Delivery
  

Re: [flexcoders] PopupManager - any way to make it blur the app but not the mask?

2007-11-27 Thread bjorn -
Application.application.mask = myCustomBorder; // myCustomBorder is a loaded
swf.



On 27/11/2007, Alex Harui [EMAIL PROTECTED] wrote:

i'm not sure what you maen by mask

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *bjorn -
 *Sent:* Tuesday, November 27, 2007 1:53 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] PopupManager - any way to make it blur the app but
 not the mask?



 I've got a two canvases which I use with the PopupManager this way:

 PopUpManager.addPopUp(canvas1,canvas2, true);

 The PopupManager will blur the entire application including it's mask -
 but I'd like to keep the mask as it is (not blurred, and with the popup
 masked by it as well).

 Is this possible?
 --

 
 http://www.juicability.com - flex blog
 http://www.43min.com - funny movies

  




-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


RE: [flexcoders] Re: This has to be a bug right? If not, please explain...

2007-11-27 Thread Samuel R. Neff

The better approach is to use bindings so the target is updated whenever the
source (height) changes, regardless of why it changed.

Moving from AS2 to AS3 is sometimes harder than learning AS3 from
scratch--don't think about how you did things before but learn how Flex does
things.  In general the more you leverage the framework and language the
better off you and your apps will be.  MXML and Bindings are good examples
of this.

HTH,

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]
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Justin Winter
Sent: Tuesday, November 27, 2007 12:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: This has to be a bug right? If not, please
explain...

Is there a better, more appropriate way to validate certain
properties, like height, after adding children to a UIComponent or
subclass of UIComponent? 

Coming from AS2 I find it confusing that there isn't an easy way to
access the height of a container after adding children. 

If later during runtime I need to access the height of dynamically
created child container, what is the appropriate approach?



[flexcoders] Re: Flex 3 Beta 2 Expires in 4 days

2007-11-27 Thread byte.sensei
I tried my old Flex 2 serial number and it didn't take it the first 
time (said it was invalid).  On a whim, I pasted it again and the 
second time it said it was valid and now I have 109 days left 
(instead of 4).  Go figure...


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

 If you go to Help - Manage Flex Licenses, you may enter a valid 
Flex 2
 serial number, it should extend your trial period.  At least mine 
has more
 than a few days to go.
 
  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Paul Andrews
 Sent: Tuesday, November 27, 2007 12:13 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex 3 Beta 2 Expires in 4 days
 
  
 
 - Original Message - 
 From: byte.sensei [EMAIL PROTECTED] mailto:byte.sensei%
40yahoo.com
 
 To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com 
 Sent: Tuesday, November 27, 2007 4:58 PM
 Subject: [flexcoders] Flex 3 Beta 2 Expires in 4 days
 
 I was recently forced to upgrade from Flex 2 to Flex 3 because 
of a
  bug in Flex 2 that was fixed in Flex 3 that was affecting a 
couple of
  projects I'm working on.
 
  Flex 3 Beta 2 has been great, however it looks like it's set to 
expire
  in 4 days (not sure if that's just my machine or a fixed date for 
all
  beta 2).
 
  The problem is, I can't buy Flex 3 (yet), and I don't see a new
  beta/version of Flex 3 with a later expiration date. What can I 
do to
  keep developing in Flex 3? I purchased Flex 2 last year and I have
  that serial, but I'm not sure if Flex 3 will accept it.
 
 There's only one way to find out. Far quicker than typing out a 
post asking 
 if it'll work..
 
 Will there be
  another beta update before the current one expires?
 
 Is the Beta expiring, or the trial period?





RE: [flexcoders] Re: Newbie compile issue rattling my brain

2007-11-27 Thread Gordon Smith
Unfortunately, 'case' is a reserved word in ActionScript (like 'class',
'var', 'function', 'if', 'for', 'switch', etc.) and you can't use
reserved words as names of object properties. It's worth filing a bug at
http://bugs.adobe.com/flex that the compilation error message isn't
sufficiently helpful in determining the problem.
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Justin Winter
Sent: Tuesday, November 27, 2007 10:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Newbie compile issue rattling my brain



Here you go:

The lower-case c in your object was throwing an error and I put this
all in an Application instead of a module.

?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 width=100% height=100%
mx:TitleWindow width=100% height=100% layout=absolute
title=Cases
mx:DataGrid left=10 top=10 right=10 bottom=10

mx:dataProvider
mx:ArrayCollection
mx:source
mx:Object Case=1002 patient=Chris Pordan
arrival=2007/12/02 delivery=2007/12/16 /
mx:Object Case=1003 patient=Dave Shompson
arrival=2007/12/03 delivery=2007/12/17 /
mx:Object Case=1004 patient=Pat Boodfellow
arrival=2007/12/04 delivery=2007/12/18 /
mx:Object Case=1005 patient=Mike Meath
arrival=2007/12/05 delivery=2007/12/19 /
mx:Object Case=1006 patient=Sandy Macdaddy
arrival=2007/12/05 delivery=2007/12/20 /
/mx:source
/mx:ArrayCollection
/mx:dataProvider

mx:columns
mx:DataGridColumn headerText=Case dataField=Case/
mx:DataGridColumn headerText=Patient
dataField=patient/
mx:DataGridColumn headerText=Arrival
dataField=arrival/
mx:DataGridColumn headerText=Delivery
dataField=delivery /
/mx:columns
/mx:DataGrid
/mx:TitleWindow
/mx:Application

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

 I think you need define your list in an mx:Array (inside the source
block)
 since this is the type of the ArrayCollection.source property. I could
be
 wrong though, I usually don't define data in MXML.

 Regards,
 ...aaron

 On 11/27/07, mcaplan_labnet [EMAIL PROTECTED] wrote:
 
  Hi there,
 
  I'm learning the ropes of Flex. I have a pretty much textbook
example
  of how to set up a datagrid that is resulting in compile time syntax
  errors. I can't for the life of me see the error.
 
  Any ideas?
 
  Thanks!
 
  mike
 
  Severity and Description Path Resource Location Creation Time Id
  1084: Syntax error: expecting colon before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 851
  1084: Syntax error: expecting colon before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 854
  1084: Syntax error: expecting colon before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 857
  1084: Syntax error: expecting colon before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 860
  1084: Syntax error: expecting colon before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 863
  1084: Syntax error: expecting identifier before case.
  labnet/src/modules cases_list.mxml line 7 1196183214531 850
  1084: Syntax error: expecting identifier before case.
  labnet/src/modules cases_list.mxml line 7 1196183214547 853
  1084: Syntax error: expecting identifier before case.
  labnet/src/modules cases_list.mxml line 7 1196183214547 856
  1084: Syntax error: expecting identifier before case.
  labnet/src/modules cases_list.mxml line 7 1196183214547 859
  1084: Syntax error: expecting identifier before case.
  labnet/src/modules cases_list.mxml line 7 1196183214547 862
  1084: Syntax error: expecting identifier before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 852
  1084: Syntax error: expecting identifier before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 855
  1084: Syntax error: expecting identifier before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 858
  1084: Syntax error: expecting identifier before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 861
  1084: Syntax error: expecting identifier before rightbrace.
  labnet/src/modules cases_list.mxml line 7 1196183214547 864
 
  ?xml version=1.0 encoding=utf-8?
  mx:Module xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=absolute
  width=100% height=100%
  mx:TitleWindow width=100% height=100% layout=absolute
  title=Cases
  mx:DataGrid left=10 top=10 right=10 bottom=10
  mx:dataProvider
  mx:ArrayCollection
  mx:source
  mx:Object case=1002 patient=Chris Pordan
  arrival=2007/12/02 delivery=2007/12/16 /
  mx:Object case=1003 patient=Dave Shompson
  arrival=2007/12/03 delivery=2007/12/17 /
  mx:Object case=1004 patient=Pat
  Boodfellow arrival=2007/12/04 delivery=2007/12/18 /
  mx:Object case=1005 patient=Mike Meath
  arrival=2007/12/05 

RE: [flexcoders] Re: This has to be a bug right? If not, please explain...

2007-11-27 Thread Gordon Smith
When a UIComponent's size has been determined and its children have been
arranged, it dispatches an updateComplete event. If you ask for its
width and height in a handler for this event, or at any time later, they
should be correct.
 
If every addChild() caused a remeasurement and relayout of the parent,
adding lots of children would be slow. The invalidation/revalidation
mechanism used by the LayoutManager allows you to add any number of
children quickly and then have the parent automatically, but
asynchronously, do all the calculations required to update itself only
once.
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Justin Winter
Sent: Tuesday, November 27, 2007 9:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: This has to be a bug right? If not, please
explain...



Is there a better, more appropriate way to validate certain
properties, like height, after adding children to a UIComponent or
subclass of UIComponent? 

Coming from AS2 I find it confusing that there isn't an easy way to
access the height of a container after adding children. 

If later during runtime I need to access the height of dynamically
created child container, what is the appropriate approach?



 


[flexcoders] Re: Can we Pass image object instead of image file reference???

2007-11-27 Thread tarun chandra


I was going through Adobe's Sample Photo Viewer and in that the
galleries.xml file provides the source to all the image files which
are stored locally. So, was wondering if instead of using the local
files can I read a byte stream and add it to my photo array collection. 

So, I guess what I am looking for is a way to read the byteStream and
create the image file. Is it anyway possible in flex?

- Tarun



[flexcoders] Re: Newbie compile issue rattling my brain

2007-11-27 Thread mcaplan_labnet
Hi Gordon, Justin, and Aaron,

Thanks for the tips!  Trimming out the reserved words did the trick!

Best,

mike


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

 Unfortunately, 'case' is a reserved word in ActionScript (like 'class',
 'var', 'function', 'if', 'for', 'switch', etc.) and you can't use
 reserved words as names of object properties. It's worth filing a bug at
 http://bugs.adobe.com/flex that the compilation error message isn't
 sufficiently helpful in determining the problem.
  
 Gordon Smith
 Adobe Flex SDK Team
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Justin Winter
 Sent: Tuesday, November 27, 2007 10:35 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Newbie compile issue rattling my brain
 
 
 
 Here you go:
 
 The lower-case c in your object was throwing an error and I put this
 all in an Application instead of a module.
 
 ?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 width=100% height=100%
 mx:TitleWindow width=100% height=100% layout=absolute
 title=Cases
 mx:DataGrid left=10 top=10 right=10 bottom=10
 
 mx:dataProvider
 mx:ArrayCollection
 mx:source
 mx:Object Case=1002 patient=Chris Pordan
 arrival=2007/12/02 delivery=2007/12/16 /
 mx:Object Case=1003 patient=Dave Shompson
 arrival=2007/12/03 delivery=2007/12/17 /
 mx:Object Case=1004 patient=Pat Boodfellow
 arrival=2007/12/04 delivery=2007/12/18 /
 mx:Object Case=1005 patient=Mike Meath
 arrival=2007/12/05 delivery=2007/12/19 /
 mx:Object Case=1006 patient=Sandy Macdaddy
 arrival=2007/12/05 delivery=2007/12/20 /
 /mx:source
 /mx:ArrayCollection
 /mx:dataProvider
 
 mx:columns
 mx:DataGridColumn headerText=Case dataField=Case/
 mx:DataGridColumn headerText=Patient
 dataField=patient/
 mx:DataGridColumn headerText=Arrival
 dataField=arrival/
 mx:DataGridColumn headerText=Delivery
 dataField=delivery /
 /mx:columns
 /mx:DataGrid
 /mx:TitleWindow
 /mx:Application
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Aaron Miller amiller@ wrote:
 
  I think you need define your list in an mx:Array (inside the source
 block)
  since this is the type of the ArrayCollection.source property. I could
 be
  wrong though, I usually don't define data in MXML.
 
  Regards,
  ...aaron
 
  On 11/27/07, mcaplan_labnet mcaplan@ wrote:
  
   Hi there,
  
   I'm learning the ropes of Flex. I have a pretty much textbook
 example
   of how to set up a datagrid that is resulting in compile time syntax
   errors. I can't for the life of me see the error.
  
   Any ideas?
  
   Thanks!
  
   mike
  
   Severity and Description Path Resource Location Creation Time Id
   1084: Syntax error: expecting colon before rightbrace.
   labnet/src/modules cases_list.mxml line 7 1196183214547 851
   1084: Syntax error: expecting colon before rightbrace.
   labnet/src/modules cases_list.mxml line 7 1196183214547 854
   1084: Syntax error: expecting colon before rightbrace.
   labnet/src/modules cases_list.mxml line 7 1196183214547 857
   1084: Syntax error: expecting colon before rightbrace.
   labnet/src/modules cases_list.mxml line 7 1196183214547 860
   1084: Syntax error: expecting colon before rightbrace.
   labnet/src/modules cases_list.mxml line 7 1196183214547 863
   1084: Syntax error: expecting identifier before case.
   labnet/src/modules cases_list.mxml line 7 1196183214531 850
   1084: Syntax error: expecting identifier before case.
   labnet/src/modules cases_list.mxml line 7 1196183214547 853
   1084: Syntax error: expecting identifier before case.
   labnet/src/modules cases_list.mxml line 7 1196183214547 856
   1084: Syntax error: expecting identifier before case.
   labnet/src/modules cases_list.mxml line 7 1196183214547 859
   1084: Syntax error: expecting identifier before case.
   labnet/src/modules cases_list.mxml line 7 1196183214547 862
   1084: Syntax error: expecting identifier before rightbrace.
   labnet/src/modules cases_list.mxml line 7 1196183214547 852
   1084: Syntax error: expecting identifier before rightbrace.
   labnet/src/modules cases_list.mxml line 7 1196183214547 855
   1084: Syntax error: expecting identifier before rightbrace.
   labnet/src/modules cases_list.mxml line 7 1196183214547 858
   1084: Syntax error: expecting identifier before rightbrace.
   labnet/src/modules cases_list.mxml line 7 1196183214547 861
   1084: Syntax error: expecting identifier before rightbrace.
   labnet/src/modules cases_list.mxml line 7 1196183214547 864
  
   ?xml version=1.0 encoding=utf-8?
   mx:Module xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
 layout=absolute
   width=100% height=100%
   mx:TitleWindow width=100% height=100% layout=absolute
   title=Cases
   mx:DataGrid left=10 top=10 right=10 bottom=10
   mx:dataProvider
   mx:ArrayCollection
   mx:source
   mx:Object case=1002 

Re: [flexcoders] Re: Application container failed to capture KeyboardEvent

2007-11-27 Thread Brent Dearth
I was hoping to hear that Adobe was already pursuing this issue. It would
require a bit of coordination to establish an acceptable level of security
from a browser implementation standpoint, but seeing as flash content is so
pervasive, shouldn't be out of the question. I think it's one of those
things that Adobe would have to put its weight behind, honestly.


On Nov 27, 2007 12:18 PM, Alex Harui [EMAIL PROTECTED] wrote:

plugins are at the mercy of the browser.  Maybe enough of you can
 pressure Mozilla and MS and others to provide better functionality for
 plugins.

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Brent Dearth
 *Sent:* Tuesday, November 27, 2007 8:23 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Application container failed to capture
 KeyboardEvent

  I know this is a long-standing issue, but are there any developments in
 the works to prevent this sort of behaviour? I know there are work-arounds
 to Flash being able to obtain focus programmatically, such as using
 ExternalInterface calls from Javascript to pass keyboard events. However,
 stuff like that has always struck me as hacky.

 In an ideal world, the Flash plugin would have the authority to demand
 focus and receive programmatic focus across all browsers.



 On Nov 26, 2007 3:37 PM, Alex Harui  [EMAIL PROTECTED] wrote:

 Nope, the browsers always steal focus.
 
   --
  *From:* flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com ]
  *On Behalf Of *zhongtie
  *Sent:* Monday, November 26, 2007 9:02 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Re: Application container failed to capture
  KeyboardEvent
 
   Thanks Alex. That works!
 
  When I switch to another application and then switch back, my all
  flash application loses the focus and no event fires at all unless I
  click somewhere in it. Is there any way around it?
 
  Tie
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex
  Harui [EMAIL PROTECTED] wrote:
  
   No children of the Application have focus, so there are no events to
   capture. If you listen to the stage, you'll see everything. The app is
   not the top-level displayobject so your handlers will not pick up
  events
   from popups either.
  
  
  
   
  
   From: flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.com[mailto:flexcoders@yahoogroups.comflexcoders%40yahoogroups.com]
  On
   Behalf Of zhongtie
   Sent: Saturday, November 24, 2007 6:22 PM
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   Subject: [flexcoders] Application container failed to capture
   KeyboardEvent
  
  
  
   My simple flex app somehow doesn't respond to key event, but mouse
   events work fine. Any ideas?
  
   Thanks,
   Tie
  
   --- src code ---
  
   ?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
   keyDown=onEvent(event)
   mouseDown=onEvent(event)
   mx:Script
   ![CDATA[
   protected function onEvent(e:Event):void {
   trace(e.type);
   }
   ]]
   /mx:Script
   /mx:Application
  
 
 
   



[flexcoders] Losing Focus in DataGrid

2007-11-27 Thread j_lentzz
Hi,

I've got a dataGrid that I want to allow someone to set a value in a
'selectAll' column and that value will be passed to all the other
appropriate columns on that row upon the DataGridEvent.ITEM_EDIT_END.
 I also have a custom keyDownHandler, to allow them to use the arrow
keys to navigate in the grid.  The arrow keys navigate just fine (and
the focus is correct) for all the columns except for the 'selectAll'
column.  When a value is typed in this column and the arrow keys are
used, the value is passed to the other columns properly, but the grid
is getting a CANCELLED edit event and the row is deselected.  If I use
the TAB key to navigate from the 'selectAll' column, the other columns
are updated and the row stays selected.  It seems like I'm missing a
call of some kind  in my keyDownHandler, to allow it to function
properly.  A sample of the code follows.  If anyone can tell me what
I'm doing wrong, I'd greatly appreciate it.

Thanks,
John
 override protected function keyDownHandler(event:KeyboardEvent):void {
   var eip:Object = this.editedItemPosition;
   var numColumns:int = this.columns.length;
   var dgc:DataGridColumn;
   var numRows:int = (this.dataProvider as ArrayCollection).length;

   if (event.keyCode == Keyboard.TAB)
return;

   if (eip != null) {
switch (event.keyCode) {

case Keyboard.RIGHT:
// go one cell over (or to the next visible and non-0 width column),
// or if at end of line, then go to start of next line
// if no line exists, then create the new line
var colFound:Boolean = false;
while (!colFound) {
   if (eip.columnIndex  numColumns) {
eip.columnIndex++;
dgc = this.columns[eip.columnIndex] as DataGridColumn;
if (dgc != null  dgc.visible  dgc.width  0  dgc.editable)

colFound = true;
}
else { // at end of row, so go to start of next row
   if (eip.rowIndex  numRows) {
eip.rowIndex++;
eip.columnIndex = -1; // start before row, so next loop 
can
increment and check
   }
else { // end of last row, so add row
   // DO THIS
}
}
}
// set new values
this.editedItemPosition = eip;
this.dataProvider.refresh();
break;


SAME FOR OTHER ARROW KEYS...
}
 }

private function handleEditEnd(event:DataGridEvent):void {
trace('dgevent reason: ' + event.reason + ' dataField: ' +
event.dataField );

if (event.reason != CANCELLED  event.dataField == 
selectAll) {
var tempString:String =
NumericInEmbedded(event.currentTarget.itemEditorInstance).text;
trace('tempString: ' + tempString);
if (tempString != null  tempString !=   
tempString !=  )
callLater(updateRow, [event,
Number(NumericInEmbedded(event.currentTarget.itemEditorInstance).text)]);
}
}

private function updateRow(event:DataGridEvent, newData:Number):void {
trace('updateRow called');
var dpAC:ArrayCollection = 
LPA_ItemList.dataProvider;
var dgCols:Array = LPA_ItemList.dg.columns;

// set all qty columns to this number
var obj:Object = dpAC.getItemAt(event.rowIndex);
if (obj[startDate] != null)
obj[startDate] = newData;
if (obj[endDate] != null)
obj[endDate] = newData;

for (var i:int=0; i dgCols.length; i++) { // 
go through defined
cols and set date columns to selectAll value
if ((dgCols[i] as 
DataGridColumn).dataField.indexOf(date) == 0) {
obj[(dgCols[i] as 
DataGridColumn).dataField] = newData;
}
}
dpAC.setItemAt(obj,event.rowIndex);
LPA_ItemList.dataProvider = dpAC;
(LPA_ItemList.dg.dataProvider as 
ArrayCollection).itemUpdated(obj); 
// LPA_ItemList.dg.dataProvider.refresh();

}
 



[flexcoders] Re: Determine measuredHeight on explicitly defined height?

2007-11-27 Thread Matt
Okay, just gave that a shot and didn't give me the results I was
hoping for.

More simply put, I want the display to appear as it has been being
100x100 but I also want to know what the size would be if I had left
the Box to do auto-sizing. I have used measuredWidth and
measuredHeight before to accomplish this, but apparently in this case
it doesn't work.

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

 Don't set height, call setActualSize instead.
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Matt
 Sent: Tuesday, November 27, 2007 9:35 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Determine measuredHeight on explicitly defined
 height?
 
 
 
 If I create a Box and set the height 100 pixels and then check the
 measuredHeight it is always 0. I'm trying to figure out how to
 determine the desired height on an explicitly defined container. 
 Particularly, I'd like to know when the necessary height is larger
 than the available height (thus creating scrollbars).
 
 Can someone point out how to accomplish this?
 
 Thanks





[flexcoders] Unhandled Security Error Crashes Browser

2007-11-27 Thread Kevin
We are having a consistent problem in our Flex - DataServices -  
Hibernate - MySQL testing.

When we load the application from a remote service we get an

Error #2044: Unhandled securityError:. text=Error #2048: Security  
sandbox violation:

which crashes our browser and then hangs when we try to load any  
other flash content in ANY browser.  The only thing that resolves  
this is a full system restart.  We have tried clearing the cache,  
closing and opening the browser, etc...

We are not loading any content from outside our URL at this point.   
Any thoughts or ideas would be greatly appreciated.  The biggest  
problem is that it doesn't happen consistently so we can't figure out  
how to debug it!

Thanks, Kevin


[flexcoders] Re: Flex Builder 3 Gotcha

2007-11-27 Thread David Spurr
Just a follow up on this thread, I'm using SVN here, but every so often 
I switch between my laptop and my main machine in the middle of a task, 
this is the kind of stuff I don't want to commit to the repository just 
to get on my main machine so I copy the handful of files across. This 
seems to trigger this issue (sometimes) but not always, I've also had it 
recently when I've exported the project from FB 3 standalone to the 
Eclipse plugin version (as I was moving everything across to Eclipse).


-D




[flexcoders] Re: Dynamically Changing Easing Function Again

2007-11-27 Thread Amy
--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

  Is there a more elegant way to tell Flex that it needs to link it 
in?
  
 I don't think so. If you're building a SWC, compc has an
 -include-classes configuration option, but if you're building a SWF,
 mxmlc doesn't have this option and I think you have to create a
 dependency in code.
  
  I haven't been able to find the most current debug player. 
  
 If you download the SDK or Flex Builder it has the debug player.
  

True, but it won't run.



RE: [flexcoders] Re: Determine measuredHeight on explicitly defined height?

2007-11-27 Thread Alex Harui
Try overriding getExplicitOrMeasuredWidth to return 100.  Then maybe the
measure() method will get called.  Are you waiting for validation to
occur or forcing validation before checking?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt
Sent: Tuesday, November 27, 2007 11:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Determine measuredHeight on explicitly defined
height?



Okay, just gave that a shot and didn't give me the results I was
hoping for.

More simply put, I want the display to appear as it has been being
100x100 but I also want to know what the size would be if I had left
the Box to do auto-sizing. I have used measuredWidth and
measuredHeight before to accomplish this, but apparently in this case
it doesn't work.

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

 Don't set height, call setActualSize instead.
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Matt
 Sent: Tuesday, November 27, 2007 9:35 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Determine measuredHeight on explicitly defined
 height?
 
 
 
 If I create a Box and set the height 100 pixels and then check the
 measuredHeight it is always 0. I'm trying to figure out how to
 determine the desired height on an explicitly defined container. 
 Particularly, I'd like to know when the necessary height is larger
 than the available height (thus creating scrollbars).
 
 Can someone point out how to accomplish this?
 
 Thanks




 


RE: [flexcoders] PopupManager - any way to make it blur the app but not the mask?

2007-11-27 Thread Alex Harui
I'd popup the mask to cover the blurred mask then popup your original
popup over that



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bjorn -
Sent: Tuesday, November 27, 2007 10:35 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] PopupManager - any way to make it blur the app
but not the mask?



 
Application.application.mask = myCustomBorder; // myCustomBorder is a
loaded swf.


 
On 27/11/2007, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote: 


i'm not sure what you maen by mask



From: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com  [mailto: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com ] On Behalf Of bjorn -
Sent: Tuesday, November 27, 2007 1:53 AM
To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] PopupManager - any way to make it blur the
app but not the mask?

 



I've got a two canvases which I use with the PopupManager this
way:
 
PopUpManager.addPopUp(canvas1,canvas2, true);
 
The PopupManager will blur the entire application including it's
mask - but I'd like to keep the mask as it is (not blurred, and with the
popup masked by it as well).
 
Is this possible?
-- 


http://www.juicability.com http://www.juicability.com/  - flex
blog
http://www.43min.com http://www.43min.com/  - funny movies 
















-- 

 
http://www.juicability.com http://www.juicability.com  - flex blog
http://www.43min.com http://www.43min.com  - funny movies 

 


[flexcoders] Re: Rendering problem

2007-11-27 Thread karunyanamuduri
Hi Josh,

Thanks for the help. The FTP tool I am using changing all the
javascript and mxml filenames to all lowercases.

Thanks,
Karunya 

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

 You don't provide a lot of information, but I can say the only
 problems I've ever experienced when moving a Flex app from a Windows
 server to a Unix server were relate to the case sensitivity of the
 file system.  For example in windows you will be able to get away with:
 
[Embed(source=assets/LOGO.png)]
 
 When the actual file name is logo.png, but in Unix the file name and
 the Embed tag must have the exact same case.
 
 __
 Josh Vanderberg -- vanderblog.typepad.com
 
 --- In flexcoders@yahoogroups.com, karunyanamuduri knamuduri@
 wrote:
 
  Hi All,
  
  I am a newbie in Flex. I am trying to do a simple Flex page deployment
  on our servers. It worked just fine when I deployed on a windows
  server. But I am getting error when I deployed on Sun - Unix ( Sun One
  Webserver) in the html wrapper saying that object not found.
  
  
  Any help is highly appreciated.
  
  
  Thanks,
  Karunya
 





[flexcoders] addMarkerbyLatLon from xml database driven

2007-11-27 Thread vevelynn
Hello,

I sthere anyone who can help me with an application I am working on?

It about getting a route (marker to marker) on a yahoo map.
I'm building in flex2 with AS3.

I trying to get a simple marker (filled circle) on my map by latitude
en longitude.
Latitudes en logitudes are in a xml file via database mysql.

but now putting even a simple marker without all the xml (just
coordinates directly given with the marker) doesn't work.
I don't know what to do, nu I really nee help.

I'm using the latLonControlle.addMarkerbyLatLon ... and then it goes
wrong...

so please help!!





[flexcoders] Re: Losing Focus in DataGrid

2007-11-27 Thread j_lentzz
After I set the editedItemPosition from the arrow key pressed, I
refresh the dataprovider, because that seemed to make it move the
focus properly.  For the 'selectAll' function, I perform an
itemUpdated on the arraycollection after setting the new item in it,
and then refresh the dataprovider, since I didn't see the new data in
the grid if I didn't.  Is there a better way (i.e. one that works)
that I should do to get the cell to navigate properly with the arrow
keys and the new data to be reflected in the row?

Thanks,

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

 Are you resetting the dataprovider or some other dataprovider?  I would
 not recommend doing that.
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of j_lentzz
 Sent: Tuesday, November 27, 2007 11:32 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Losing Focus in DataGrid
 
 
 
 Hi,
 
 I've got a dataGrid that I want to allow someone to set a value in a
 'selectAll' column and that value will be passed to all the other
 appropriate columns on that row upon the DataGridEvent.ITEM_EDIT_END.
 I also have a custom keyDownHandler, to allow them to use the arrow
 keys to navigate in the grid. The arrow keys navigate just fine (and
 the focus is correct) for all the columns except for the 'selectAll'
 column. When a value is typed in this column and the arrow keys are
 used, the value is passed to the other columns properly, but the grid
 is getting a CANCELLED edit event and the row is deselected. If I use
 the TAB key to navigate from the 'selectAll' column, the other columns
 are updated and the row stays selected. It seems like I'm missing a
 call of some kind in my keyDownHandler, to allow it to function
 properly. A sample of the code follows. If anyone can tell me what
 I'm doing wrong, I'd greatly appreciate it.
 
 Thanks,
 John
 override protected function keyDownHandler(event:KeyboardEvent):void {
 var eip:Object = this.editedItemPosition;
 var numColumns:int = this.columns.length;
 var dgc:DataGridColumn;
 var numRows:int = (this.dataProvider as ArrayCollection).length;
 
 if (event.keyCode == Keyboard.TAB)
 return;
 
 if (eip != null) {
 switch (event.keyCode) {
 
 case Keyboard.RIGHT:
 // go one cell over (or to the next visible and non-0 width column),
 // or if at end of line, then go to start of next line
 // if no line exists, then create the new line
 var colFound:Boolean = false;
 while (!colFound) {
 if (eip.columnIndex  numColumns) {
 eip.columnIndex++;
 dgc = this.columns[eip.columnIndex] as DataGridColumn;
 if (dgc != null  dgc.visible  dgc.width  0  dgc.editable)
 colFound = true;
 }
 else { // at end of row, so go to start of next row
 if (eip.rowIndex  numRows) {
 eip.rowIndex++;
 eip.columnIndex = -1; // start before row, so next loop can
 increment and check
 }
 else { // end of last row, so add row
 // DO THIS
 }
 }
 }
 // set new values
 this.editedItemPosition = eip;
 this.dataProvider.refresh();
 break;
 
 
 SAME FOR OTHER ARROW KEYS...
 }
 }
 
 private function handleEditEnd(event:DataGridEvent):void {
 trace('dgevent reason: ' + event.reason + ' dataField: ' +
 event.dataField );
 
 if (event.reason != CANCELLED  event.dataField == selectAll) {
 var tempString:String =
 NumericInEmbedded(event.currentTarget.itemEditorInstance).text;
 trace('tempString: ' + tempString);
 if (tempString != null  tempString !=   tempString !=  )
 callLater(updateRow, [event,
 Number(NumericInEmbedded(event.currentTarget.itemEditorInstance).text)])
 ;
 }
 }
 
 private function updateRow(event:DataGridEvent, newData:Number):void {
 trace('updateRow called');
 var dpAC:ArrayCollection = LPA_ItemList.dataProvider;
 var dgCols:Array = LPA_ItemList.dg.columns;
 
 // set all qty columns to this number
 var obj:Object = dpAC.getItemAt(event.rowIndex);
 if (obj[startDate] != null)
 obj[startDate] = newData;
 if (obj[endDate] != null)
 obj[endDate] = newData;
 
 for (var i:int=0; i dgCols.length; i++) { // go through defined
 cols and set date columns to selectAll value
 if ((dgCols[i] as DataGridColumn).dataField.indexOf(date) == 0) {
 obj[(dgCols[i] as DataGridColumn).dataField] = newData;
 }
 }
 dpAC.setItemAt(obj,event.rowIndex);
 LPA_ItemList.dataProvider = dpAC;
 (LPA_ItemList.dg.dataProvider as ArrayCollection).itemUpdated(obj); 
 // LPA_ItemList.dg.dataProvider.refresh();
 
 }





[flexcoders] window depth

2007-11-27 Thread Kenneth Sutherland
I want a window/component to always appear at the top of the Z order,
including being on top of ALL tooltips and ALL popups.  The only thing
that I need to be 'above' the component is cursors.  I've just found
that the SystemManager has various layers and it would seem that
tooltips are always above popups.  Is there anyway of changing this. 

 

Cheers.

 

Kenneth Sutherland

 



[flexcoders] Re: ListCollectionView dispatches too many CollectionEvents after enableAutoUpdate

2007-11-27 Thread t0ml33
Thanks for the response, Alex.  I understand that for most use cases, 
it would suffice to set a new source.  However, I believe that 
approach somewhat defeats the purpose of databinding.  Suppose you're 
bind to an ArrayCollection with 1000 items and you need to change 
20?  Should you clone the ArrayCollection, change the 20 items, and 
then rebind?  Should you update the existing ArrayCollection and have 
the rest take care of itself?  I prefer the latter - it's much 
cleaner.  However, I also don't want my bindings firing 20 times in a 
row.

Was there a particular use-case in mind when it was decided that only 
update events would be queued?  It would help me better understand 
enable/disableAutoUpdate to know.


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

 I suppose we should have called it queueUpUpdatesUntilLater and
 sendAllQueuedUpUpdatees.
 
  
 
 IMHO, there's an upper limit where, instead of changing piecemeal, 
you
 should just set a new source, which should just send one big RESET
 event.
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of t0ml33
 Sent: Wednesday, November 21, 2007 11:58 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] ListCollectionView dispatches too many
 CollectionEvents after enableAutoUpdate
 
  
 
 I am making some updates to an ArrayCollection. Since it's the 
 dataSource for a DataGrid, and I want the binding to update as few 
 times as possible, I am using ArrayCollection.disableAutoUpdate(), 
 making the changes, and then calling enableAutoUpdate() thinking 
that 
 this will cause the binding to refresh only once for all the 
 changes. This would be the case if the ArrayCollection were 
 dispatching events of kind CollectionEventKind.UPDATE. Alas, since 
I 
 am replacing the items in the ArrayCollection and not merely 
updating 
 them, it is CollectionEventKind.REPLACE. As you can see from 
 handlePendingUpdates() in ListCollectionView, it only gangs the 
 updates into a single refresh if the event.kind == 
 CollectionEventKind.UPDATE. All other CollectionEvents are fired 
 sequentially, which would seem to defeat the purpose of 
 disableAutoUpdate. Could someone clue me in on why this should be 
 the case? I'm tempted to monkey-patch around it, and submit a bug. 
 See the code below.
 
 Thanks,
 
 -tom
 
 private function handlePendingUpdates():void
 {
 if (pendingUpdates)
 {
 var pu:Array = pendingUpdates;
 pendingUpdates = null;
 
 // Could further optimize to consolidate various events
 // and make a decision if there are too many updates
 // and we should just refresh.
 var singleUpdateEvent:CollectionEvent;
 for (var i:int = 0; i  pu.length; i++)
 {
 var event:CollectionEvent = pu[i];
 
 // ** Here's the offending code
 if (event.kind == CollectionEventKind.UPDATE)
 {
 if (!singleUpdateEvent)
 {
 singleUpdateEvent = event;
 }
 else
 {
 for (var j:int = 0; j  event.items.length; 
 j++)
 {
 singleUpdateEvent.items.push(event.items
 [j]);
 }
 }
 }
 else
 {
 listChangeHandler(event);
 }
 }
 
 if (singleUpdateEvent)
 {
 listChangeHandler(singleUpdateEvent);
 }
 }
 }





RE: [flexcoders] Re: Dynamically Changing Easing Function Again

2007-11-27 Thread Gordon Smith
 True, but it won't run.
 
Can you please elaborate? What are you doing, and what happens when you
do it? Are you on Windows or Macintosh? Are you using the browser player
or the standalone player? Are you using FlexBuilder or the bare SDK? How
are you trying to run?
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Tuesday, November 27, 2007 12:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Dynamically Changing Easing Function Again



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

  Is there a more elegant way to tell Flex that it needs to link it 
in?
 
 I don't think so. If you're building a SWC, compc has an
 -include-classes configuration option, but if you're building a SWF,
 mxmlc doesn't have this option and I think you have to create a
 dependency in code.
 
  I haven't been able to find the most current debug player. 
 
 If you download the SDK or Flex Builder it has the debug player.
 

True, but it won't run.



 


RE: [flexcoders] Re: Can we Pass image object instead of image file reference???

2007-11-27 Thread Alex Harui
In Flex 3 (not currently in the beta), you can pass a bytearray to the
Image as its source instead of a url.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tarun chandra
Sent: Tuesday, November 27, 2007 11:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Can we Pass image object instead of image file
reference???





I was going through Adobe's Sample Photo Viewer and in that the
galleries.xml file provides the source to all the image files which
are stored locally. So, was wondering if instead of using the local
files can I read a byte stream and add it to my photo array collection. 

So, I guess what I am looking for is a way to read the byteStream and
create the image file. Is it anyway possible in flex?

- Tarun



 


[flexcoders] List itemRenderer based on VBox error when verticalGap

2007-11-27 Thread dave_defusion
I'm using the latest Flex 3 Beta SDK and I've just created an
itemRenderer based on a VBox which I'm using in a List. Everything is
fine until you scroll down and then back up to the top, if you do this
the first item height will have shrunk and it will never resize.

I tried overriding the measure() method but that didn't fix it, but I
did notice that if I removed the verticalGap on the VBox that fixed
the issue.

I'm not sure if this is a known issue or not (haven't tried with Flex
2), but I could do with a workaround for when a verticalGap is applied
(without adding extra containers) if anyone has any thoughts.

-D



  1   2   >