RE: [flexcoders] Flex2 versus Flex3 font size

2008-03-21 Thread Jason Szeto
We fixed some padding bugs in the Button classes. In Flex 2, if you
explicitly set a width, the button would ignore the padding in order to
fit the label. In Flex 3, we fixed this behavior so that padding is
always respected.

 

One solution for you is to adjust the paddingLeft/paddingRight values of
your buttons. You can try setting these on a Button type selector to see
if it works. 

 

mx:Style 

Button

{

paddingLeft: 0;

paddingRight: 0;
}

/mx:Style

 

Ultimately, I'd recommend creating a class selector and referencing it
using the styleName property on all of your precisely sized buttons. 

 

mx:Style 

.myButton

{

paddingLeft: 0;

paddingRight: 0;
}

/mx:Style

 

mx:Button label=Try this width=40 styleName=myButton/

 

Jason

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, March 20, 2008 12:02 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex2 versus Flex3 font size

 

There's a versioning flag that might help.  I think the defaults for the
kind of embedded font rendering changed as well and that may be what the
problem is.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dougco2000
Sent: Thursday, March 20, 2008 10:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 versus Flex3 font size

 

I switched to Flex3 the other day and found that the font sizing for
the default font has changed! So on most of my applications where I
painstakingly sized buttons so that they exactly fit the text label, I
know see the text does NOT FIT anymore and has ... at the end!

I'm wondering how can this be easily resolved? Obviously I don't want
to go through a resizing on all my buttons.

Thanks

 



RE: [flexcoders] customizing flex download progress bar.

2007-12-04 Thread Jason Szeto
Aaron,

 

Take a look at the Flex 2 Developer Guide. In chapter 14 (Using the
Application Container), there is a subchapter called Showing the
download progress of an application. That should give you a good
starting point. 

 

Jason

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of aaron smith
Sent: Monday, December 03, 2007 12:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] customizing flex download progress bar.

 

Anyone have any good resources / examples of how you can completely
overhaul what the download progress bar looks like / functions. I'm able
to hook into some of the progress events but haven't found a good
example of how to change what it actually looks like.. ?? Thanks .. 

 



RE: [flexcoders] flash.desktop.DragManager documentation location

2007-11-26 Thread Jason Szeto
Ivo,

 

flash.desktop.DragManager was renamed to flash.desktop.NativeDragManager
to avoid conflict with the mx.managers.DragManager. Docs are here:
http://livedocs.adobe.com/labs/flex3/langref/flash/desktop/NativeDragMan
ager.html

 

Jason

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ivo
Sent: Monday, November 26, 2007 1:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flash.desktop.DragManager documentation location

 

The documentation at 

http://livedocs.adobe.com/labs/flex/3/langref/flash/desktop/DragManager.
html#doDrag
http://livedocs.adobe.com/labs/flex/3/langref/flash/desktop/DragManager
.html#doDrag ()

makes reference to TransferableData which is not available when using
Flex Builder. Where can I find the matching documentation to my
current Flex Builder 3 installation?

Thanks,

- Ivo

 



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

2007-11-26 Thread Jason Szeto
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] Dynamically Changing Easing Function Again

2007-11-26 Thread Jason Szeto
Amy,

 

Did you import the easing functions? (ie. import mx.effects.easing.*). I
think you'll also have to create dummy variables of each class. These
classes won't be linked into the swf unless you perform these steps.
GetDefinitionByName will only return a result if the class is linked in.


 

Jason

 



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

 

I am trying to create an easing function explorer to be able to compare 
the existing easing functions. However, I am having a problem with the 
syntax to change out the function at runtime. I feel like I am really 
close here, but I am at a loss as to what else to try. Here is the 
function I am using.

private function onListChange(e:Event):void {
easingFunction = e.target.selectedItem.label;
goToBottom.easingFunction = getDefinitionByName
(mx.effects.easing.+easingFunction).easeIn;
goToTop.easingFunction = getDefinitionByName
(mx.effects.easing.+easingFunction).easeIn;
}

 



RE: [flexcoders] SetStyleAction - clear style?

2007-11-26 Thread Jason Szeto
Ryan,

 

Try using undefined instead of null. You can also just call
clearStyle() in the effectStart handler of any generic effect. 

 

Jason

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rkettrey
Sent: Monday, November 26, 2007 8:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SetStyleAction - clear style?

 

With respect to styles, you can setStyle() or clearStyle(). There is 
an effect, SetStyleAction, that allows you to accomplish the setStyle().

Is there some way of accomplishing clearStyle() as an effect? Using a 
SetStyleAction with a value of null does not work, as the style is 
still there, and for ints a null style value is often interpreted as 0.

At this stage I am thinking of making a custom effect, which seems easy 
enough, but did not want to re-invent the wheel.

-Ryan

 



RE: [flexcoders] Skinning a Panel in Flex

2007-11-26 Thread Jason Szeto
Clinton,

 

Support for Scale9Grid in Panel was added in Flex 3. What version are
you running?

 

Jason

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Derrick Anderson
Sent: Monday, November 26, 2007 6:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Skinning a Panel in Flex

 

i have had this same issue, and it's when i use bitmap graphics in flash
with scale-9, apparently it doesn't work that way, only on vector
graphics in flash.  what i do is reference the graphic file directly in
css, and also specify your scale9 grid in css as well.  then it should
work.  or the easier option is to convert your stuff to vector graphics,
but i'm not a graphics guy and have never had much luck with that. 

On Nov 26, 2007 9:40 AM, Clinton D. Judy [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

No answers yet? Should I package up the materials I have so ya'll can
try them out yourselves? I'm still hoping this will be a simple fix.

 

From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Clinton D. Judy
Sent: Friday, November 23, 2007 7:47 AM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] Skinning a Panel in Flex

 

I'm trying to skin panels for use in Flex, but my corners, which are
rounded, keep getting squished. I'm sure I'm doing it right in Flash: My
own drawing is lined up with the reference point (0, 0), the 4
guidelines for scale9 are in the right places and everything. And in my
css file, I have:

Panel

{

  borderSkin: Embed (source=flex_skins.swf,
symbol=Panel_borderSkin);

  borderThicknessLeft: 16 ;

  borderThicknessRight: 16 ;

  borderThicknessTop: 0 ;

  borderThicknessBottom: 16 ;

  headerHeight: 16 ;

} 

Where am I going wrong? Something else I should add, my panel gets
stretched depending on what size I want to make it at, but it looks like
the scale9 stuff is ignored completely, stretching the underlying swf as
if it were just one bitmap with no scale9 stuff.

Clinton

 

 

 



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

2007-11-26 Thread Jason Szeto
Gordon beat me to it. . . 

 

This works for me:

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical

  mx:Script

![CDATA[

  import mx.effects.easing.*;

  

  private var myBounce:Bounce;

  

  private function changeEasing():void

  {

var func:Function =
getDefinitionByName(mx.effects.easing.Bounce).easeIn;



myResize.easingFunction = func;

  }

]]

  /mx:Script

  

  mx:Resize id=myResize widthBy=50 duration=1000/

  

  mx:VBox width=100 height=100 backgroundColor=0xDD
mouseDownEffect={myResize}/

  mx:Button label=Change easing click=changeEasing()/

/mx:Application

 

Note that the class name is case sensitive. 

 

Jason

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Monday, November 26, 2007 4:56 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Dynamically Changing Easing Function Again

 

 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.

- Gordon

?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
 mx:Script
  ![CDATA[
   import mx.effects.easing.Cubic;
   private static var cubicDependency:Cubic;
   private function doit():void
   {
var easingFunction:String = Cubic;
trace(getDefinitionByName(mx.effects.easing. +
easingFunction).easeIn);
   }
  ]]
 /mx:Script
 mx:Button click=doit()/
/mx:Application

 



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

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

 FYI, in case you haven't seen this one:
 
http://www.madeinflex.com/img/entries/2007/05/customeasingexplorer.htm
http://www.madeinflex.com/img/entries/2007/05/customeasingexplorer.htm

l

Yes, I had seen that, which is why I made sure I mentioned that I was 
trying to explore the built-in functions and not making a custom 
function. I figured people would be less likely to send me to that ;-
). However, if you see anything in what that is doing that would 
work for what I need, maybe I have missed something. I would love it 
if I could find a way to use this as just a generic easing explorer 
for my own objects to see what the in-built easing functions do.

This is aggravatingly difficult to do...at this point it would have 
been far faster to just do a swich case and hard-code in all the 
easing functions. Not very dynamic or extensible, though, which kind 
of goes against the spirit of Flex.

-Amy

 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Amy amyblankenship@ wrote:
 
  I am trying to create an easing function explorer to be able to 
compare 
  the existing easing functions. However, I am having a problem 
with the 
  syntax to change out the function at runtime. I feel like I am 
really 
  close here, but I am at a loss as to what else to try. Here is 
the 
  function I am using.
  
  private function onListChange(e:Event):void {
  easingFunction = e.target.selectedItem.label;
  goToBottom.easingFunction = getDefinitionByName
  (mx.effects.easing.+easingFunction).easeIn;
  goToTop.easingFunction = getDefinitionByName
  (mx.effects.easing.+easingFunction).easeIn;
  }
 


 



RE: [flexcoders] Re: Buttons in Flex !

2007-09-25 Thread Jason Szeto
The button itself doesn't use its own states to move between the
up/over/down/disabled button states. Instead, you need to create a skin
class that defines these states. I've coded up a very basic example that
includes transitions. 

 

Enjoy,

Jason

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of restlessdesign
Sent: Friday, September 21, 2007 9:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Buttons in Flex !

 

Hmmm...not as easy as expected. Anyone have any ideas (MXML or
Actionscript)?

mx:Button id=myButton x=10 y=10 label=Squirrels!
styleName=customBtn
mx:transitions
mx:Transition fromState=* toState=*
mx:Fade alphaFrom=0 alphaTo=100 duration=2 /
/mx:Transition
/mx:transitions
/mx:Button

Stylesheet:
.customBtn {
upSkin: Embed(source='../assets/defaultButton_up.png',
scaleGridTop='6', scaleGridBottom='10', scaleGridLeft='40',
scaleGridRight='80');
overSkin: Embed(source='../assets/defaultButton_over.png',
scaleGridTop='6', scaleGridBottom='10', scaleGridLeft='40',
scaleGridRight='80');
downSkin: Embed(source='../assets/defaultButton_down.png',
scaleGridTop='6', scaleGridBottom='10', scaleGridLeft='40',
scaleGridRight='80');
}

Thanks!

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

 In theory you can do this in Moxie, but in 2.x, all you are seeing is
an
 inherited prop that Button does not use.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of restlessdesign
 Sent: Monday, September 17, 2007 11:10 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Buttons in Flex !
 
 
 
 I too have this issue and did some quick research. Would it be
 possible to use the transitions property of the Button class and pass
 in effects that way using its pre-defined states (upState, overState,
 downState, etc.)?


 



stateSkin.mxml
Description: stateSkin.mxml


buttonWithStateSkin.mxml
Description: buttonWithStateSkin.mxml
attachment: upSkin.jpgattachment: disabledSkin.jpgattachment: downSkin.jpgattachment: overSkin.jpg

RE: [flexcoders] Loading Language

2006-09-07 Thread Jason Szeto












Yes, check out the
mx.preloaders.DownloadProgressBar class. The Dev guide also has a very good
chapter on this. 



Jason











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel
Sent: Thursday, September 07, 2006
1:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loading
Language











Good day

I was wondering if it's possible to change the application Loading and
Initializing image language or text.

Thanks.






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






RE: [flexcoders] Re: ToggleButtonBar: Styling Individual Button

2006-08-29 Thread Jason Szeto












Kenny,



You will need to cast the child to a
Button. In the future, include the compiler error in your message. This will
help the forum isolate your problem. 



HTH,

Jason



?xml version=1.0
encoding=iso-8859-1 ? 

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

mx:Script

 public function
changeStyle():void

 {

 Button(bb.getChildAt(0)).setStyle(borderColor,0x23FF33);

 }



/mx:Script





mx:ButtonBar id=bb
dataProvider={['won', 'too', 'tree', 'for']}/



mx:Button
click=changeStyle()/





/mx:Application











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lostinrecursion
Sent: Monday, August 28, 2006 9:11
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
ToggleButtonBar: Styling Individual Button











Jason,

How do you iterate through the ButtonBar? Meaning I notice the
following code does not work and reports an error in Flex:

myButtonBar.getChildAt(0).setStyle(backgroundColor,
0x99);

Thank you. (I will also check out the documentation on this as well)

-Kenny






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Items Invisible in ComboBox

2006-08-29 Thread Jason Szeto












Steve,



There is a bug in ComboBox when you
include null or empty string items in your dataProvider. This results in every
5th item in the dropdown showing up as empty string. I believe the
workaround is to replace your empty string items with a whitespace character
(the space character, for example). 



If this is not the bug you are
encountering, can you please post a simple working example?



Jason











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas
Sent: Friday, August 25, 2006 7:28
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Items
Invisible in ComboBox











I experienced
this too at one point and it was because one of the items was null
Remove it and back to normal.







Dimitrios
Gianninas

RIA Developer

Optimal Payments
Inc.















From:
[EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of stevehousefl
Sent: Thursday, August 24, 2006
2:34 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Items
Invisible in ComboBox



I have a very standard combobox control:

mx:ComboBox id=cbStatus dataProvider={statusesWithAll}
labelField=sStatus change=filterChange()/mx:ComboBox

When I click on it and it opens, some items are invisible. The space
for them is there, but the text is missing. If I select an invisible
item, it displays properly in the closed combobox and works as
designed with the app.

It seems to randomly make items appear and disappear with each open
and close of the combobox. Sometimes the selected item will reappear
with the highlight on it or sometimes just the empty row will be
highlighted.

Any ideas? Thanks,

Steve H.




 
  
  AVIS IMPORTANT
  
  
  WARNING
  
 
 
  
  Ce message électronique et ses pièces jointes
  peuvent contenir des renseignements confidentiels, exclusifs ou légalement
  privilégiés destinés au seul usage du destinataire visé. L'expéditeur
  original ne renonce à aucun privilège ou à aucun autre droit si le présent
  message a été transmis involontairement ou s'il est retransmis sans son
  autorisation. Si vous n'êtes pas le destinataire visé du présent message ou
  si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et
  le supprimer, ainsi que toutes ses pièces jointes, de votre système. La
  lecture, la distribution, la copie ou tout autre usage du présent message ou
  de ses pièces jointes par des personnes autres que le destinataire visé ne
  sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier
  électronique par erreur, veuillez en aviser l'expéditeur.
  
  
  This electronic message and its attachments
  may contain confidential, proprietary or legally privileged information,
  which is solely for the use of the intended recipient. No privilege or other
  rights are waived by any unintended transmission or unauthorized
  retransmission of this message. If you are not the intended recipient of this
  message, or if you have received it in error, you should immediately stop
  reading this message and delete it and all attachments from your system. The
  reading, distribution, copying or other use of this message or its
  attachments by unintended recipients is unauthorized and may be unlawful. If
  you have received this e-mail in error, please notify the sender.
  
 





__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Custom server validation

2006-08-29 Thread Jason Szeto












Mike,



 From
a UI-perspective, I see two ways of doing this. One way is to perform
client-side validation immediately after the control has lost focus (the
default behavior of a validator) and then trigger server-side validation off of
some event (ie. Pressing the submit button). For the server-side validation,
you can directly pass a ValidationResultEvent to the component using the UIComponent.validationResultHandler
function. It doesnt make sense to subclass Validator in this situation. 



 The
other way is to perform client-side and server-side validation at the same
time. Right now it is not possible to incorporate server-side validation into a
Validator subclass. Wed have to modify the validator infrastructure to
get this to work properly. Ive gone ahead and filed a feature request
for this functionality. 



Jason 











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Mike Nimer
Sent: Friday, August 25, 2006 4:50
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom
server validation













So
I recently came upon an interesting situation. I needed to validate a form
entry against data on the server. For example, I wanted to query the db to make
sure the quantity that the user typed in was a validamount with the stock
on hand. 



My
initial thought was that I could just extend the Validator class (so I get all
of the validation triggers)and write a flash remoting server side call to
validate the data. However, that doesn't seem possible because the doValidation()
method, where I would make my Flash Remoting call, has to returnan array
of ResultEvents. Which means you can't wait for the result handler to determine
if something is valid or invalid.



It
seems like server side validation is a common enough thing. Has anyone else
tried to do this? How did you get it to work?



thanks,

--nimer










__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Org Chart

2006-08-29 Thread Jason Szeto












Douglas,



 Put hideEffect and showEffect
triggers on the ViewStack children. This will allow you to create some nice
ViewStack effect transitions. 



Jason











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen
Sent: Tuesday, July 18, 2006 6:52
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Org
Chart











ok, I got the current code base working on Flex
2. Seems ViewStack does not support changeEffect anymoreanother day
to tack that.
http://www.cubicleman.com/cmorgchart/cmorgchart.html

It should be obvious that I'm not a UI guy ;)

I'm re-writing it all now and using cairngorm too. Cairngorm really isn't
needed for such a small app, but its a exercise and can serve as another
example. Currently its fed from PHP using nusoap in front of some dummy
data in a MySQL DB. In my company I have it sitting in front of
PeopleSoft data. It should be really easy to plug it in to any
hierarchical people store. Once I get things rolling again, I'll make it
available via freepository.com.hopefully. 


If you just have to have the source now, send me email offlist. 

DK



On 7/18/06, Douglas
Knudsen  [EMAIL PROTECTED]
wrote:



I have to find time to update it to the Flex 2
GR code and make it purtier





I'm in knee deep with work projects, so fell behind updating it.
Paying jobs come first, eh? hehe! 






DK









On 7/18/06, Paul
Andrews [EMAIL PROTECTED]  wrote:







Same here:











TypeError: Error #1009: Cannot access a property or method
of a null object reference.
at mx.containers::Panel/mx.containers:Panel::layoutChrome()
at mx.core::Container/mx.core:Container::updateDisplayList()
at mx.containers::Panel/mx.containers:Panel::updateDisplayList()
at mx.core::UIComponent/validateDisplayList()
at mx.core::Container/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()















Paul











- Original Message - 





From: Nick
Collins 





To: flexcoders@yahoogroups.com






Sent: Tuesday, July 18,
2006 4:41 AM





Subject: Re: [flexcoders]
Org Chart 









Hey Doug, I tried to view
your CMOrgChart and it doesn't load with the final release of Flash Player 9.



On 7/17/06, Douglas
Knudsen 
[EMAIL PROTECTED] wrote: 











I have one I
created. Staye tuned to
http://www.cubicleman.com/

I have to find time to update it to the Flex 2 GR code and make it
purtier. It will be open source and all.

http://www.cubicleman.com/2006/05/11/cmorgchart-is-here/
is the orginal post...works with FlashPlayer 9 beta 3

DK



On 7/17/06, hitch_nj 
[EMAIL PROTECTED] wrote:





Hi,
I want to create an organisation chart, want to know if there are any
samples available. Actually I am new to Flex and would like to know
where to start.

Thanks
h











--
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/ 





* 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/










-- 
Douglas Knudsen
http://www.cubicleman.com

this is my signature, like it? 




























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








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






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] ToggleButtonBar: Styling Individual Button

2006-08-28 Thread Jason Szeto












Kenny,



ButtonBar (ToggleButtonBars parent
class) has three styles that control the first/last and all button styles:



buttonStyleNamefirstButtonStyleNamelastButtonStyleName



If you need more fine grained control than
this, then youll have to iterate through each child of the ToggleBB and
call setStyle on each. 



Jason













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of lostinrecursion
Sent: Monday, August 28, 2006 1:25
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
ToggleButtonBar: Styling Individual Button











Hi all,

I looked through the docs and did a couple of Googles but couldn't
find anything on this. Is it possible to style each individual button
in a ToggleButtonBar?

For example, assigning a different background color to each one?

Thanks
-Kenny






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] shadow lighting

2006-07-12 Thread Jason Szeto












Hank,



 There are a few basic things
you can do to style the drop shadows. Look at these styles:



dropShadowColor=0x00dropShadowEnabled=falseshadowDirection=centershadowDistance=2Jason













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of hank williams
Sent: Friday, June 30, 2006 1:26
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] shadow
lighting











when
applying shadowing to an object, if the lighting source is to the
top left of the object, then the shadow will be on the bottom and the
right. Typically there is also a white or light band across the top
and down the left side.

I am wondering how you do this in flex. I see it in the application
bar and so I am thinking that I should be able to style a canvas to do
it, but I cant seem to do it with the shadow related settings. I
believe I was able to do this kind of things with movie clips in
flash.

I guess a second question is whether it is possible to do any of those
cool flash 8 effects on containers/canvases in flex.

Hank






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Custom Validator woes....

2006-06-28 Thread Jason Szeto










Susan,



 The
reason that it is not static is because most validators have properties that
help define the validation rules. For example, the Number validator has a maxValue
and minValue property. Also, you can customize the error messages for each
validator. Thus, we need instances of the validators to accomplish this.



As for the errorString
property, it is better to use the UIComponent.validationResultHandler function
instead. Just pass in the results from the validate() function. 



Jason











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Suzy Lawson
Sent: Wednesday, June 28, 2006
6:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Custom
Validator woes











Jason,
Thanks. I guess I just got mixed up since it's a little unnatural to
instantiate a class to call a method that should be static! Also,
adding text to the errorString field automatically sets everything
redhere's my method should anyone search upon this message at a
future date:

private function validateField() : void {
var emails : Array = toField.text.split(,);
for(var j:uint=0; j  emails.length; j++)
{
var emailVal : EmailValidator = new EmailValidator();
var valResult : ValidationResultEvent =
emailVal.validate(emails[j]);
if(valResult.type == ValidationResultEvent.INVALID)
{
toField.errorString=' + emails[j] + ' is not a valid
e-mail address.;
return;
}
}
}

--- In [EMAIL PROTECTED]ups.com,
Jason Szeto [EMAIL PROTECTED] wrote:

 Suzy,
 
 
 
 The listener, source and trigger are all optional properties
 of Validators. You can just call the validate() function. Pass in the
 string you want to validate and it will return the ValidationResult. The
 validate() function is on the base class, Validator. 
 
 
 
 Jason
 
 
 
 
 
 From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of Suzy Lawson
 Sent: Tuesday, June 27, 2006 10:54 AM
 To: [EMAIL PROTECTED]ups.com
 Subject: [flexcoders] Custom Validator woes
 
 
 
 I'm building an e-mail client where the To: field can have a
comma
 delimited array of e-mail addresses: [EMAIL PROTECTED]
 mailto:bob%40yahoo.com , [EMAIL PROTECTED] mailto:sarah%40yahoo.com

 
 I have the validation occuring in the focusOut event, where I split
 the To: field so I get an Array of e-mail addresses. 
 var emails : Array = value.split(,);
 
 I then want to loop through and validate each value. However, there is
 no easy way to do this using the Flex SDK EmailValidator.as.
 
 Ideally, I would think I could call a static method which would return
 me a ValidationResultEvent, which I could then add to my component.
 However, everything with the SDK EmailValidator class requires a
 listener/source/trigger to be bound to it and no matter what I try to
 doit looks at that To: field as one big String...I can't
give it
 just the iterated split value. 
 
 Any ideas on this?? Is there a way to statically call a method without
 having to pass in a reference to the EmailValidator object?







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Transitions - How to apply movement to SetStyleAction(horizontalCenter proprety)

2006-06-28 Thread Jason Szeto










Post some code so we can take a look.



Jason











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nelson Batista
Sent: Wednesday, June 28, 2006
8:55 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Transitions - How to apply movement to SetStyleAction(horizontalCenter
proprety)













Hello Jason,



Ive tested in the final version of FLEX 2, and the bug
still persist.



Best regards,



Nelson Batista 
Dep. Informática  Área de Desenvolvimento
Cofina media

Avenida João Crisóstomo, Nº 72 . 1069-043
Lisboa PORTUGAL
Tel (+351) 213 307 746 . Fax (+351) 213 540 370



[EMAIL PROTECTED]









From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Jason Szeto
Sent: quinta-feira, 22 de Junho de
2006 22:12
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Transitions - How to apply movement to SetStyleAction(horizontalCenter proprety)















This is a bug in Flex 2b3. Youll have to wait for the
release to get the fix. 



Jason











From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of nelsoncostabatista
Sent: Thursday, June 22, 2006 8:28
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Transitions
 How to apply movement to SetStyleAction(horizontalCenter proprety)











Hello
all,

I'm defining a few states in my application and transitions between
these states.
In the beginning of the design development I was using the property
x for a panel, and in the transition I defined: 
mx:Move easingFunction={Circular.easeOut} duration=1000
target={myDataPanel}/
And the movement between states run well.

Now I need to change the property x for the style
horizontalCenter, in order to get in my main application the
correct
placement of the panel.
Now the panel movement doesn't work. I even forced the
mx:SetStyleAction relevantStyles=horizontalCenter
filter=move
target={ myDataPanel }/ in my transition, but with no
luck.

Best regards,
Nelson Batista






















__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Custom Validator woes....

2006-06-27 Thread Jason Szeto










Suzy,



 The listener, source and
trigger are all optional properties of Validators. You can just call the
validate() function. Pass in the string you want to validate and it will return
the ValidationResult. The validate() function is on the base class, Validator. 



Jason











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Suzy Lawson
Sent: Tuesday, June 27, 2006 10:54
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom
Validator woes











I'm building an e-mail client where the
To: field can have a comma
delimited array of e-mail addresses: [EMAIL PROTECTED],
[EMAIL PROTECTED]com

I have the validation occuring in the focusOut event, where I split
the To: field so I get an Array of e-mail addresses. 
var emails : Array = value.split(,);

I then want to loop through and validate each value. However, there is
no easy way to do this using the Flex SDK EmailValidator.as.

Ideally, I would think I could call a static method which would return
me a ValidationResultEvent, which I could then add to my component.
However, everything with the SDK EmailValidator class requires a
listener/source/trigger to be bound to it and no matter what I try to
doit looks at that To: field as one big String...I can't give
it
just the iterated split value. 

Any ideas on this?? Is there a way to statically call a method without
having to pass in a reference to the EmailValidator object?






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Changing Components Registration Point Flex 2.0

2006-06-26 Thread Jason Szeto










You can not change the registration point
of a DisplayObject. The Rotate Effect allows you to specify registration
points. We use some Euclidean math and we adjust the x/y positions to
accomplish this. You can either use the Rotate effect or copy the logic from
the source code. 



Jason











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Omar Ramos
Sent: Sunday, June 25, 2006 12:18
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Changing
Components Registration Point Flex 2.0











Hi guys,

Is there a way to change the registration point of a image component? I want to
be able to rotate the image from the center point but can not be done unless I
change the Image component registration point to the center. Is there a way to
do this in flex 2? Thanks 



Omar Ramos






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Transitions - How to apply movement to SetStyleAction(horizontalCenter proprety)

2006-06-22 Thread Jason Szeto










This is a bug in Flex 2b3. Youll
have to wait for the release to get the fix. 



Jason











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of nelsoncostabatista
Sent: Thursday, June 22, 2006 8:28
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Transitions
 How to apply movement to SetStyleAction(horizontalCenter proprety)











Hello all,

I'm defining a few states in my application and transitions between
these states.
In the beginning of the design development I was using the property
x for a panel, and in the transition I defined: 
mx:Move easingFunction={Circular.easeOut}
duration=1000
target={myDataPanel}/
And the movement between states run well.

Now I need to change the property x for the style
horizontalCenter, in order to get in my main application the
correct
placement of the panel.
Now the panel movement doesn't work. I even forced the
mx:SetStyleAction relevantStyles=horizontalCenter
filter=move
target={ myDataPanel }/ in my transition, but with no
luck.

Best regards,
Nelson Batista






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] preloader custmization

2006-06-22 Thread Jason Szeto










For Flex 1.5, download the Flex manual
here: http://download.macromedia.com/pub/documentation/en/flex/15/flex_dev_apps.pdf



For Flex 2.0 download the Flex manual
here: http://www.macromedia.com/go/flex2_devapps_pdf



Look up the DownloadProgressBar in both.
It describes how to customize the behavior. 



Jason











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rajni
Sent: Thursday, June 22, 2006 2:21
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] preloader
custmization











How to customize preloader in flex?

-- 
Sent using Laszlo Mail. Try it yourself.
http://www.laszlomail.com






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] States within List

2006-06-21 Thread Jason Szeto










Sree,



 You can create an ItemRenderer
based on any UIComponent and add your states into that. Then assign that
ItemRenderer to your List. I have started working on an example. This is not
complete because it doesnt handle selecting an item. But it should be a
good starting point. 



DynamicListItemRenderer.mxml:



?xml version=1.0
encoding=utf-8?

mx:VBox
xmlns:mx=http://www.adobe.com/2006/mxml
borderStyle=solid backgroundColor=0xFF 

 verticalGap=-2
cornerRadius=4 borderColor=0x00

 rollOver=currentState='expanded'
rollOut=currentState=''

 

 

 mx:transitions

 mx:Transition
fromState=* toState=*

 mx:Resize
target={this} duration=300/ 

 /mx:Transition

 /mx:transitions

 

 mx:states

 mx:State
name=expanded

 mx:AddChild
creationPolicy=all

 mx:Label
text={data.desc}/

 /mx:AddChild

 /mx:State

 /mx:states

 

 mx:Label
text={data.label}/

 

/mx:VBox





Main.mxml:



?xml version=1.0
encoding=utf-8?

mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
width=600 height=500
preinitialize=initList()

 mx:Script

 ![CDATA[

 import
mx.collections.ArrayCollection;

 

 [Bindable]

 public
var dataList:ArrayCollection; 

 

 public
function initList():void

 {

 dataList
= new ArrayCollection([{label:One, desc:The US won the game
on a last second goal},

 {label:Two,
desc:The pressure was too much to overcome},

 {label:Four,
desc:Look for exciting matchups}]);

 }

 

 ]]

 /mx:Script



 mx:List
id=mainList itemRenderer=DynamicListItemRenderer
variableRowHeight=true 

 width=100%
height=300 dataProvider={dataList}/

/mx:Application











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sreejith Unnikrishnan
Sent: Wednesday, June 21, 2006
12:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] States
within List













Is it possible to create states within a List that changes
height on select?











Basically, I need to switch between a simple and advanced
view in a list only on select.











I tried using a Repeater in a VBox, but navigating up and
down using arrow keys is not possible(?) when using a repeater.











Any guidance is appreciated.











Thanks





Sree








__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Flex2B3 - Resize effect problem

2006-06-19 Thread Jason Szeto










This bug has been fixed internally and
will be in the Flex 2.0 release. 



Thanks for pointing it out to us. 



Jason











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tim Hoff
Sent: Monday, June 19, 2006 7:35
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex2B3
- Resize effect problem











Hi,

I've
noticed some interesting behavior with Beta3 like this as well. For now,
you could use a work-around like this:

mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml
mx:Script
![CDATA[
import mx.effects.*;

private
function dothis():void
{
var resize1:Resize = new Resize(panel1);
resize1.duration = 300;
resize1.widthTo = (panel1.width == 0) ?
300 : 0;
resize1.play();
if (panel1.width !=
0){panel1.title = ;} else {panel1.title = Hello World;}
}
]]
/mx:Script
mx:Panel id=panel1 title=HelloWorld
width=300
height=200/
mx:Button label=resize click=dothis()/
/mx:Application

-TH

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

 hi
 
 In my example i'm resizing a panel's width from 300 to 0 (and vice 
 versa). However i've got one issue. I sometimes see a ghost of the 
 panel's title still there. somekind of refresh issue? how do i 
 remove it.
 thanks
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 mx:Script
 ![CDATA[
 import mx.effects.*;
 
 private function dothis():void
 {
 var resize1:Resize = new Resize(panel1);
 resize1.duration = 300;
 resize1.widthTo = (panel1.width == 0) ? 
 300 : 0;
 resize1.play();
 }
 ]]
 /mx:Script
 mx:Panel id=panel1 title=HelloWorld
width=300 
 height=200/
 mx:Button label=resize click=dothis()/
 /mx:Application! 







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Flex2B3: Problem with a custom component nested repeaters

2006-06-19 Thread Jason Szeto










Aejaz,



 What
the error message is saying is that you have assigned two values to the
TileLists dataProvider property. The first place is the mxml attribute:
mx:TileList dataProvider={myQArr} . The message
also explains that the TileLists default property is dataProvider.
What this means is that if you place tags inside of the TileList and dont
specify which property they belong to, then it assigns the value to the default
property (which is dataProvider). The FormItem inside of TileList
is thus being assigned to TileLists dataProvider property. 



TileLists are not containers, so they cant
contain other components inside of it. You need to use an itemRenderer if you
want to control the appearance of the individual items.



Im assuming in this situation that
you didnt mean to have the FormItem inside of the TileLIst. Just remove
it and you should be able to compile. 



Jason











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of aejaz_98
Sent: Monday, June 19, 2006 7:16
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex2B3:
Problem with a custom component  nested repeaters











I changed
the second repeater to a TileList as follows,

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
layout=absolute xmlns:ns1=components.*
mx:Script
![CDATA[
[Bindable] 
public var
myArray:Array=[A,B,C,D];
[Bindable]
public var myQArray:Array=[{label:A}];
]]
/mx:Script
  
 mx:ArrayCollection id=myAC
source={myArray}/
 mx:ArrayCollection id=myQArr
source={myQArray}/
 mx:Accordion id=accordion x=139
y=303 width=200 height=200
  mx:Repeater id=myrep
dataProvider={myAC}
   ns1:QuestionForm
label={myrep.currentItem} width=199
height=178
  nb! sp; mx:TileList dataProvider={myQArr}
maxColumns=1 
   
mx:FormItem label=
   
 mx:Button label=Inner/
   
/mx:FormItem
   /mx:TileList
   mx:FormItem
label=
   
mx:Button label=Outer/
   /mx:FormItem
  
/ns1:QuestionForm
  /mx:Repeater
! /mx:Accordion

/mx:Application

N! ow I get the compilation error : Multiple
initializers for property 'dataProvider'. (note: 'dataProvider' is the default
property of 'mx.controls.TileList'). 
Please let me know why is it taking the dataProvider for the repeater ?


Thanks,
Aejaz






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

 Hi,
 
 I have the following application,
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 layout=absolute xmlns:ns1=components.*
 mx:Script
 ![CDATA[
 [Bindable]
 public var
myArray:Array=[A,B,C,D];
 [Bindable]
 public var myQArray:Array=[A];
 ]]
 /mx:Script
 mx:ArrayCollection id=myAC
source={myArray}/
 mx:ArrayCollection id=! myQArr
source={myQArray}/
 mx:Accordion id=accordion x=139
y=303 width=200
 height=200
 mx:Repeater id=myrep dataProvider={myAC}
 ns1:QuestionForm label={myrep.currentItem}
width=199
 height=178
 mx:Repeater id=myrep2
dataProvider={myQArr}
 mx:FormItem label=
 mx:Button label=Inner/
 /mx:FormItem
 /mx:Repeater
 mx:FormItem label=
 mx:Button label=Outer/
 /mx:FormItem
 /ns1:QuestionForm
 /mx:Repeater
 /mx:Accordion
 /mx:Application
 
 QuestionForm is a custom component defined as follows,
 
 ?xm! l version=1.0 encoding=utf-8?
 mx:Form xmln! s:mx=ht tp://www.adobe.com/2006/mxml
 mx:Script
 public var categoryID:Number;
 /mx:Script
 /mx:Form
 
 /mx:Application
 
 When I run this application, Flash gives the following Exception  the
 application fails to load. However, if I change QuestionForm to Form,
 the application runs fine. Please let me know what is missing here.
 
 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.core::[EMAIL PROTECTED] to Array.
 at mx.core::UIComponent/createReferenceOnParentDocument()
 at mx.core::Container/createComponentFromDescriptor()
 at mx.core::Container/createComponentsFromDescriptors()
 at mx.containers::Accordion/::instantiateSelectedChild()
 at mx.containers::Accordion/::commitSelectedIndex()
 at
 mx.containers::Accordion/mx.containers:A! ccordion::commitProperties()
 at mx.core::UIComponent/validateProperties()
 at mx.managers::LayoutManager/::validateProperties()
 at mx.managers::LayoutManager/::doPhasedInstantiation()
 at mx.core::UIComponent/::callLaterDispatcher2()
 at mx.core::UIComponent/::callLaterDispatcher()
 
 
 
 
 Thanks,
 Aejaz







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  


RE: [flexcoders] Is there way to check the cursor type or cursor name of the CursorManager?

2006-06-19 Thread Jason Szeto










Dan,



 If you can describe the
problem you are trying to solve, then I can suggest a solution. 



Jason











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle
Sent: Friday, June 16, 2006 5:12
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Is there
way to check the cursor type or cursor name of the CursorManager?











Hi,

Looking at the source of the CusorManager, I would say there is no such thing
as a 'name' of a cursor.

The 'busyCursor' is a style that points to a Class image/swf,

I think you are out of luck, try redefing what you are trying to do without the
name notion.

Peace, Mike



On 6/16/06, Dan
[EMAIL PROTECTED] wrote:











Hi,

the CursorManager.currentCursorID does return the id of the current 
cursosr. However, is there way to return the cursor, or the cursor 
name ?

Wish anyone can help

Dan
















-- 
What goes up, does come down. 






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] How to capture/handle runtime errors?

2006-06-19 Thread Jason Szeto










This is probably too late for your demo. You
can use the Release version of the player. It will silently ignore any RTE. 



Jason















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pat Buchanan
Sent: Thursday, June 15, 2006 5:43
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to
capture/handle runtime errors?











Hello all!

I'm experiencing runtime error # 2025 (The supplied DisplayObject must be a
child of the caller). I have not been able to solve the problem, but I
have a demo tomorrow and do not want to have the error pop up and have to click
the dismiss all button. This may even be a Flex 2 beta
problem, but I have not been able to track it down. 

It happens when I push the Tab key.

Is there a way to handle/capture/mute the runtime error message, just until I
can figure out the bug???

Thanks!
-Pat









__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Blank out password field in a datagrid cell

2006-06-19 Thread Jason Szeto










You need to create a TextInput with
password for your itemEditor as well. 



Jason











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of jfournet
Sent: Thursday, June 15, 2006 6:13
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Blank out
password field in a datagrid cell











How can I blank out a password field in a datagrid
cell. I have tried 
using a text_input field in a cell renderer with the password property 
set to true, but the clear text password is visable until the focus 
goes off the cell then the  are displayed. Any ideas, and code 
samples?






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Flex 1.5 Components Blinking

2006-06-15 Thread Jason Szeto










Stanislav,



 You might want to check out
this article on Progressive Layout: http://www.adobe.com/devnet/flex/articles/prog_layout.html



Good luck,
Jason











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stanislav Zayarsky
Sent: Wednesday, June 14, 2006
2:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 1.5
Components Blinking













Hello FlexCoders,











Let's assume next situation: We have a lot of different components on
the screen, application initialized and they are hidden. 





Then I load some data from the server, in the meantime showing
preloader, and after data loadedI set it to components and set visibile =
true to all of them and what user see: All components blinking, resizing
andmoving on the screen.User don't want to see this! 











My goal is: To show components to the user after theypopulated
with data and completelyinitialized.











Question: How to do that?











P.S. I don't accept workarounds like Timer, doLater, etc.. Just a clear
solution.











Thanks,











Best regards





Stanislav








__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Duplicating controls dynamically

2006-06-15 Thread Jason Szeto










Have you looked at the Repeater class?
This will achieve what you want declaratively. 



Jason











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Aasim
Sent: Tuesday, June 13, 2006 2:23
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Duplicating
controls dynamically











Hi,

I am new to Flex. I would like develop an application which has a 
number of radio buttons. How could i possibly duplicate them 
dynamically?

Is there anyhing like duplicateMovieClip (as in Flash IDE).

Please suggest.

Regards,
Aasim






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Aligning formitem labels

2006-06-15 Thread Jason Szeto










FormItem labels are all right-aligned when
they are inside of a Form container. 



Jason











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bas J. Brey
Sent: Wednesday, June 14, 2006
7:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Aligning
formitem labels













Is
this possible? The help says it it not and I wonder why..



Anyone
got a clue?












__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Resizing Container's children in FLEX

2006-06-15 Thread Jason Szeto










Iuiliu,



 You need to provide more
information. Write up an example mxml file, explain what is happening and then describe
what you want to happen. 



Jason











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of iuliub
Sent: Thursday, June 15, 2006 7:24
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Resizing
Containers children in FLEX











Hi list,

What do I have to do on a container's child in FLEX, to make it NOT 
listen to its parent RESIZE EVENT. 
I don't want it to keep its specified width and height (even if 
they're percents), while resizing the parent.

I'm talking about the same blunt behavior of a MovieClip's child in 
Flash. 
Whenever I resize the parent MovieClip, the inside child also resizes 
with the same amount, keeping the proportions.

I really need to implement this behavior to a dozen of buttons in my 
FLEX project, so I'd be really thankful to anyone who can provide the 
slightest idea.

Thanks in advance,
Iuliu B.






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Capturing ESCAPE key in IE

2006-06-15 Thread Jason Szeto










The Flash ActiveX Player doesnt
receive ESCAPE key presses. Probably because IE doesnt pass this along
to the Player. 

When you receive a keyDown event, you can
find out of the ESCAPE key has been pressed. But this only works if the user
presses ESC and another key at the same time. 



There is no workaround. Youll just
have to not use the ESC key in your application. 



Jason











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dmitry Miller
Sent: Wednesday, June 14, 2006
5:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Capturing
ESCAPE key in IE











Hello all

I am trying to capture ESCAPE key press by TextInput control in Flex 1.5.

mx:TextInput keyDown=handleKeyDown(event) ... 

and later inside mx:Script tag I have the following implementation 

private function handleKeyDown(event:Object):Void
{
if(event.code == Key.ESCAPE)
{ 
//do smth
}
if(event.code == Key.ENTER)
{
//do smth else
}
}

The above code works great in Firefox but doesn't work in IE. Also, to
make the matter worse, the code for capturing Key.ENTER works in both
browsers. Any suggestions?

Thanks






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] NumberValidator dynamic binding problems

2006-05-02 Thread Jason Szeto



Unfortunately Validators in Flex 1.5 don't support binding in values
like your example. Instead, you need to programmatically create a
NumberValidator and update the maxValue property when maxVal changes.
Then you'll need to call the validator's doValidation function yourself
when you lose focus from the field you are validating. 

In Flex 2.0, it is possible to bind in values to a validator's
properties. 

Jason

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of KOT_MATPOC
Sent: Tuesday, May 02, 2006 2:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] NumberValidator dynamic binding problems

hi all,

I am using Flex 1.5 and trying to do something like that:

mx:NumberValidator minValue=1 maxValue={maxVal} domain=int 
field=model.field/

I need to have maxValue attribute dynamically calculated as it might 
change and I want my validator to know what is the current maxValue 
for that field. However, this doesn't seem to work. I define a 
variable maxVal, assign it a value, and bind it to the validator. But 
it doesnt see it. If I hardcode it like that:

mx:NumberValidator minValue=1 maxValue=8 domain=int 
field=model.field/

it works fine, but dynamic binding doesn't work here.

anyone has any suggestions? Thanks a lot





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



 








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












RE: [flexcoders] Help with Effect on Panel...

2006-04-26 Thread Jason Szeto




In Beta3, you can set the showEffect and hideEffect effect triggers on
the children of the ViewStack. For Beta2 and earlier, you should be able
to use the changeEffect trigger on the ViewStack. 

Jason

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Chotin
Sent: Sunday, April 23, 2006 6:22 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Help with Effect on Panel...

Set showEffect=Fade on the Panel? Maybe set the hideEffect on them
too. That's for the individual Panels. If you want it applied to
everything all the time there's a changeEffect on ViewStack.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexabledev
Sent: Sunday, April 23, 2006 2:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help with Effect on Panel...

I am trying to create an Fade effect on each Panel in a ViewStack,
that takes place when I change the viewStack.selectedIndex value.

I have something similar to this:

mx:ViewStack id=vStack...
 mx:Panel
 child
 .
 .
 .
 /mx:Panel

 mx:Panel
 child
 .
 .
 .
 /mx:Panel
 .
 .
 .
/mx:ViewStack

I would like the entire Panel (including all it's children) to Fade in
 when the viewStack.selectedIndex value is changed. What would the
best way be to accomplish this? 






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



 





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



 








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] can someone explain creationPolicy=queued

2005-06-28 Thread Jason Szeto












Clint,



 Can
you post your mxml here? Setting the creationPolicy to queued on the Panels
will create the panel container and queue up the creation of its children
components. The thing that triggers the children to be created is the
Applications creationComplete event. Once we receive this event, we
proceed to create the components in the creation queue. 



 It
is not necessary to specify creationIndex. You dont want to set the
creationPolicy on the Canvas to queued. 



In the following example, you see that the
HBox is created when the application starts up. At a later time, the children
of the container (the Button), get created. 





mx:HBox label=HBox1 creationPolicy=queued borderStyle=solid
width=100%
 mx:Button label=Box 1
creationComplete=output.text += 'box3 created' + '\n' /
/mx:HBox



Heres a link to an article I wrote on the subject: http://www.macromedia.com/devnet/flex/articles/prog_layout.html



Jason













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint Modien
Sent: Tuesday, June 28, 2005 5:44
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] can
someone explain creationPolicy=queued





Hey Matt... thanks for
taking the time...

First I tried the parent...

Then I tried setting each of the panels (the children)...

On each one I tried setting creationIndex incrementally on each control that I
had just set creationIndex

And I couldn't get it to draw properly... either the controls weren't created @
all... or they were created but the children weren't...

I found this simple example in the docs...

?xml version=1.0 ?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml

 mx:VBox id=accord width=300
height=200 creationPolicy=queued
 mx:HBox
label=HBox1 creationPolicy=queued
creationIndex=3 borderStyle=solid
width=100%
 mx:Button
label=Box 1
creationComplete=output.text += 'box1 created' + '\n'/
 /mx:HBox
 mx:HBox
label=HBox2 creationPolicy=queued
creationIndex=2 borderStyle=solid
width=100%

mx:Button label=Box
 2 creationComplete=output.text += 'box2 created' +
'\n'/
 /mx:HBox 
 mx:HBox label=HBox3
creationPolicy=queued creationIndex=1
borderStyle=solid width=100%

mx:Button label=Box
 3 creationComplete=output.text += 'box3
created' + '\n' /
 /mx:HBox
 /mx:VBox
 mx:TextArea id=output width=200
height=200 / 
/mx:Application

Does this mean that I have to wrap whatever I want to be created in order in a
Container subclass like an HBox?



On 6/28/05, Matt Chotin [EMAIL PROTECTED] wrote:



You set each of the Panels to
creationPolicy=queued or just the parent Canvas? I think you
want to set just the Canvas and not set any of the others. Have you given
any of the Panels a creationIndex? I'm not sure if it's required to have
an index or if it will work automatically without. Maybe if any of them
have an index all of them need it?



Matt











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Clint Modien
Sent: Monday, June 27, 2005 6:57
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] can someone
explain creationPolicy=queued







I thought the concept
seemed pretty straightforward to me...

According to the docs... setting the parent container's creationPolicy
to queued should create its children in a queued manner. 

When i set my containers (which are subclassed panel components
by the way ) creationPolicy=queued they don't create their child
components @ all... (very frustrating)


When I set the parents (a Canvas) creationPolicy to queued, (of
the panels i just mentioned) the panels don't get created one @ a time

I'm really confused by the whole experience...








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

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





 Visit your group
 flexcoders
 on the web.
 
 To unsubscribe
 from this group, send an email to:
  [EMAIL PROTECTED]
 
 Your use of
 Yahoo! Groups is subject to the Yahoo! Terms of Service.





















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: context-sensitive help

2005-04-28 Thread Jason Szeto
As a followup to my post, I realized I was running my test on Firefox, which
does not display its own Context help when pressing F1. In IE, when you
press F1, it pops up the context help. To get around this problem, you can
use a bit of script in your html page. 

Create a wrapper for your mxml app (one method is to grab the html source
when you view your mxml app), and then add in the following script into your
html wrapper:

SCRIPT
function dsble_Help(){
//replace this -alert- with your help scripts
alert('confirmation that event will trigger the F1 command')
return false;
}
document.onhelp=dsble_Help
/SCRIPT

Note that your Flex app will still receive the F1 keystroke (ascii 112) in
IE. 

Jason

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 28, 2005 11:17 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: context-sensitive help



You can easily build your own context-sensitive help by listening
for the keyDown event and using the FocusManager's getFocus call to retrieve
the control in focus. 

Here is a simple app that can get you started:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=*
width=700 keyDown=handleKey(event)

mx:Script
function handleKey(event)
{
msg.text += handleKey code  + Key.getCode() +  target  +
event.target + 
 focus  + getFocusManager().getFocus() + \n;
}
/mx:Script

mx:HBox
mx:Text text=lkajrlekja rekl /
mx:RadioButton label=bobbe/
/mx:HBox

mx:TextInput keyDown=handleKey(event)/
mx:NumericStepper/
mx:Button/

mx:TextArea width=90% height=70% id=msg/

/mx:Application

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 28, 2005 12:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: context-sensitive help


As i know in flex,i think this type of requirement we can't implement
in flex application.And this is very useful functionality.If they
support in future this in flex very much useful!!

-Thipperudra


--- In flexcoders@yahoogroups.com, ssudha2 [EMAIL PROTECTED] wrote:
 Are features for context-sensitive help available in Flex out-of-
box?  
 That is, apart from tool-tip, can I invoke a help window for each 
field 
 on click of F1.  
 
 Should this be implemented programmatically or features are already 
 available in Flex?
 
 Thanks





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

* 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] Bounce effect-toggle effect

2005-04-27 Thread Jason Szeto










Nithya,



 All
effect triggers, like mouseDownEffect are styles. You need to access them using
getStyle and setStyle. 



Instead of 



basketPanel[mouseDownEffect] = basketMoveRight;



Use 



basketPanel.setStyle(mouseDownEffect, basketMoveRight);



Jason











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
Sent: Wednesday, April 27, 2005
3:43 AM
To: flexcoders
Subject: [flexcoders] Bounce
effect-toggle effect







hai!





 just try running the following code..
Actually it should make a vbox bounce from right to left on click and then
bounce back to right.. but it doesnot.. It doesnot bounce back it only keeps
moving left on evry click.. can u find where i have gone wrong?











regrds,





nithya











?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
backgroundColor=#FF hScrollPolicy=off





mx:Script
var price:Number;
public function setPrice( price:Number ) : Void
{
this.price = price ;
var priceDown = new mx.effects.Move( this.basketTotal );
priceDown.yBy = 20;
priceDown.duration = 100;
var priceUp = new mx.effects.Move( this.basketTotal );
priceUp.yBy = -20;
priceUp.duration = 100;
var soundEffect = new CashSoundEffect();
var priceRegister = new mx.effects.Sequence();
priceRegister.addChild( priceDown );
priceRegister.addChild( priceUp );
priceRegister.addChild( soundEffect );
priceRegister.playEffect();

}

![CDATA[
function toggleBasketEffect()
{
var currentEffect = basketPanel[mouseDownEffect];
if ( currentEffect == basketMoveLeft )
{
basketPanel[mouseDownEffect] =
basketMoveRight;
}
else
{
basketPanel[mouseDownEffect] =
basketMoveLeft;
}
}
function bounce(t, b, c, d)
{
if ((t /= d)  (1 / 2.75))
{
return c * (7.5625 * t * t) + b;
}
else if (t  (2 / 2.75))
{
return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b;
}
else if (t  (2.5 / 2.75))
{
return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b;
}
else
{
return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b;
}
};
]]





/mx:Script
mx:Panel height=100% width=700
hScrollPolicy=off
!--mx:Number id=edgeDistance/
mx:Number id=panelWidth /
mx:Number id=panelHeight /--
mx:Effect
mx:Move name=basketMoveLeft
xBy=295 easing=bounce duration=1000/
mx:Move name=basketMoveRight
xBy=-295 easing=bounce duration=1000/
/mx:Effect
 mx:Canvas width=700 height=100%
hScrollPolicy=off
mx:HBox borderStyle=solid
mouseDownEffect=basketMoveRight
mouseDown=toggleBasketEffect()
width=47%
height=100%
id=basketPanel x=670
hScrollPolicy=off
!-- The grab bar --
mx:VBox width=25 height=100%
borderStyle=solid backgroundColor=#66CCFF
verticalGap=-1
 mx:Text text=S fontSize=10
width=15 fontWeight=bold/



/mx:VBox
mx:Effect
mx:Sequence name=productHoverIn
mx:Fade alphaFrom=100 alphaTo=50
duration=250 /
mx:Pause duration=1000 /
mx:Resize widthTo=150
heightTo=150 duration=1000/
/mx:Sequence
/mx:Effect
mx:Effect
mx:Parallel name=productHoverOut
mx:Fade alphaFrom=50 alphaTo=100
duration=500 /
mx:Resize widthTo=100
heightTo=100 duration=500 /
/mx:Parallel
/mx:Effect
mx:Loader contentPath=product.jpg
width=100 height=100
mouseOverEffect=productHoverIn
mouseOutEffect=productHoverOut
mouseDown=setPrice(39.99)
id=product /
!-- The Shopping Basket --
mx:VBox verticalAlign=bottom
mx:Label styleName=title text=Shopping
Basket/
mx:Spacer width=1/
mx:Label text=Basket Empty /
mx:Spacer height=1/
mx:VBox id=basketTotal
mx:TextArea editable=false
borderStyle=none
styleName=price text={price}/
/mx:VBox
/mx:VBox
/mx:HBox
/mx:Canvas
/mx:Panel

/mx:Application









Yahoo! Messenger - Communicate
instantly...Ping your friends
today! Download Messenger Now











Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Progress Bar Remote Objec

2005-04-26 Thread Jason Szeto

Jeff,

The Remote Object has no information regarding how much data it has
sent to the client. Instead, you'll need to use the progress bar in the
indeterminate state (set the indeterminate property to true) or use a busy
cursor (set the showBusyCursor property of RemoteObject to true). 

Jason

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 25, 2005 11:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Progress Bar  Remote Objec


Hi,

I'm looking for a strategy by which I could tie a progress bar to data
loading from an external source. Has anyone played around with this? Is
there any continuously updated meta data from Remote object that could
be used for this a la BytesLoaded/BytesTotal?

Any advice appreciated.

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

* 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: Rendering in background

2005-04-14 Thread Jason Szeto

This should help:

http://www.macromedia.com/devnet/flex/articles/prog_layout.html

-Original Message-
From: Tracy Spratt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 14, 2005 9:10 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Rendering in background


I have not done any of this but you might look into progressive
instantiation.  You set the creationPolicy=none on your containers,
then use methods that explicitly cause the children to be instantiated.

There is a white paper or technote about this somewhere.

Tracy

-Original Message-
From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 14, 2005 11:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Rendering in background



Sorry - but I do not understand your response.

My Splash page is part of a viewStack as is the application page.  
The data is loaded with the splash page being displayed.  The 
performance problem is with the rendering of the application page.  
This page is initialized when I select it in the viewstack.  

So the question is how do I get the page to construct while it is 
not displayed, and then switch to it when it has rendered.


Thanks.



--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:
 Throw your splash page in a modal popup?
 
 import mx.managers.PopUpManager;
 
 splash = PopUpManager.createPopUp(mx.core.Application.application,
 YourSplashComponent,
 true);
 
 
 // later
 
 splash.deletePopUp();
 
 - Original Message - 
 From: viraf_bankwalla [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, April 14, 2005 10:07 AM
 Subject: [flexcoders] Rendering in background
 
 
 
 
 Hi,
 
 I have an application that displays a splash page on startup.  It 
then 
 proceeds to load data for some grids.  Once the data has been 
 received, it selects the view to be displayed.  
 
 The problem is that this view takes a considerable amount of time 
to 
 load (it has two grids).  I would like for this view to be 
constructed 
 in thee background if possible.  When the data is received, and 
the 
 view has been constructed, I would like to switch from the splash 
view 
 to the application view.
 
 My question being how do I get the view to render its content in 
the 
 background while the splash page is being displayed.
 
 Thanks.
 
 
 
 
 
  
 Yahoo! Groups Links





 
Yahoo! Groups Links



 







 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

* 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: Radio Button Custom Component

2005-04-14 Thread Jason Szeto

Let me explain what is going on here and why it has been done this way. 

Let's say you've got a MXML Component called myChoice. It contains three
RadioButtons, called rA, rB,  rC. You assign each of these a groupName
called myGroup. It also has a member variable called dataProvider. The way
that you use this component is that you set the dataProvider property, which
then sets the label and data properties of each of your three RadioButtons. 

Now in your main application, you instantiate three of these myChoice
components, called cA, cB,  cC. 

In this application, would you expect all nine RadioButton be part of a
single group called myGroup? No, you'd expect that there would be three
groups and that the RadioButtons within each component are only a part of
the internal group of the component. The same thing with the dataProvider
property. You wouldn't expect that this property would be shared among all
three components. 

What is happening under the covers is that a RadioButtonGroup with the id
myGroup is created as a member variable of the myChoice component. 

So in short, radio buttons can only share a RadioButtonGroup if they are
within the same class. (Remember that each MXML file is its own class.)

Jason

-Original Message-
From: jwaknitz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 14, 2005 10:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Radio Button Custom Component



I tried that, to no avail.  :(




--- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED] 
wrote:
 I don't see a mx:RadioButtonGroup tag in your code anywhere. 
This tag is
 what defines the group which your RadioButtons will work as a 
single control
 under. You can also use this tag to specify the labelPlacement for 
all the
 RB's in the group. 
 
 So I think what you need is outside of your Repeater this:
 
 mx:RadioButtonGroup id=group1 labelPlacement=right /
 
 Check out the ASDocs for more info.
 
 -Original Message-
 From: jwaknitz [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 14, 2005 10:47 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Radio Button Custom Component
 
 
 
 I went back to the script and changed the if statement to create a 
 RadioButton directly to the app and not grab a component.  This 
 fixed the group problem but is not the fix that I wanted.  
 Components is much nicer for what I want as the other way has 
 generated a few problems with my design.  
 
 Does anyone have any input about why the groupName attribute 
doesn't 
 seem to work between components?
 
 
 --- In flexcoders@yahoogroups.com, Matthew Shirey [EMAIL PROTECTED] 
 wrote:
  I am working with Jack and I am familiar with his problem. 
There's 
 a few 
  reasons why we're using a component with a radio control inside 
 it. Our 
  problem is that it seems to be ignoring the groupName property. 
Do 
 radio 
  controls have to all exist inside the same parent container to 
 work as a 
  group? I have looked in the documentation and didn't see any 
such 
  limitation. Maybe I missed it. Shouldn't you be able to put 
radio 
 buttons 
  anywhere in the application and as long as they all have the 
same 
 groupName 
  they all behave as a group?
  
  -- Matthew
  
  On 4/13/05, Tracy Spratt [EMAIL PROTECTED] wrote:
   
   
   Why not just use straight mxml. The following works for me.
   
   mx:VBox id=vboxRG x=3 y=3 
   mx:Repeater id=repeaterRB 
 dataProvider={leParameter.valuesarray}
   
   mx:RadioButton id=RBParameter groupName=RGBParameter
   data={repeaterRB.currentItem[0]}
   label={repeaterRB.currentItem[labelColumn]}
   click=setParameterValue(event)
   width={this.width-6}/
   /mx:Repeater
   /mx:VBox
   
   Tracy
   
   -Original Message-
   From: jwaknitz [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, April 13, 2005 1:16 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Radio Button Custom Component
   
   I'm using a repeater to grab a component that makes a 
radiobutton
   each time.
   When the app is displayed, there are 7 radiobuttons. The 
problem
   is, they are not in the same group. They are all individually
   checkable. I went into the component and gave the radiobutton a
   groupName=group1. All of the radiobuttons then had the same
   groupName. The problem was still there.
   
   I also tried putting the component call within a 
RadioButtonGroup
   component and had no luck.
   
   Anyone have any solutions to this?
   
   ** App:
   
   mx:Script
   ![CDATA[
   
   var compData3:Object;
   var compData4:Object;
   
   function repeaterfunc(){
   if(repradio.currentItem.nodeName == response_lid){
   compData3 = cont.createChild
   (Components.RadioButtons.labelbuttoncomp);
   compData3.compData4 = repradio.currentItem;
   }
   }
   ]]
   /mx:Script
   
   mx:Repeater id=repradio dataProvider={compData2.childNodes
   [1].firstChild.childNodes} repeat=repeaterfunc()/
   
   mx:VBox 

RE: [flexcoders] Re: Radio Button Custom Component

2005-04-14 Thread Jason Szeto
You can try using the group property of RadioButton. I've coded up a simple
example. The only issue with my sample is that the RadioButtons get added in
the wrong order. You'll need to add some logic to get them attached in the
correct order. 

Jason

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 14, 2005 4:40 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Radio Button Custom Component


That does make sense.  It's a bit of pain for what we're trying to do.
 But we'll find a workaround.  We're dealing with a ton of dynamic
data that is being used to generate in turn a dynamic interface. 
We'll just have to figure out a way to get the RadioButtons grouped in
the same container.  Thanks for the detailed explanation,

-- Matthew

On 4/14/05, Jason Szeto [EMAIL PROTECTED] wrote:
 
 Let me explain what is going on here and why it has been done this way.
 
 Let's say you've got a MXML Component called myChoice. It contains three
 RadioButtons, called rA, rB,  rC. You assign each of these a groupName
 called myGroup. It also has a member variable called dataProvider. The way
 that you use this component is that you set the dataProvider property,
which
 then sets the label and data properties of each of your three
RadioButtons.
 
 Now in your main application, you instantiate three of these myChoice
 components, called cA, cB,  cC.
 
 In this application, would you expect all nine RadioButton be part of a
 single group called myGroup? No, you'd expect that there would be three
 groups and that the RadioButtons within each component are only a part of
 the internal group of the component. The same thing with the dataProvider
 property. You wouldn't expect that this property would be shared among all
 three components.
 
 What is happening under the covers is that a RadioButtonGroup with the id
 myGroup is created as a member variable of the myChoice component.
 
 So in short, radio buttons can only share a RadioButtonGroup if they are
 within the same class. (Remember that each MXML file is its own class.)
 
 Jason
 
 -Original Message-
 From: jwaknitz [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 14, 2005 10:59 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Radio Button Custom Component
 
 I tried that, to no avail.  :(
 
 --- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED]
 wrote:
  I don't see a mx:RadioButtonGroup tag in your code anywhere.
 This tag is
  what defines the group which your RadioButtons will work as a
 single control
  under. You can also use this tag to specify the labelPlacement for
 all the
  RB's in the group.
 
  So I think what you need is outside of your Repeater this:
 
  mx:RadioButtonGroup id=group1 labelPlacement=right /
 
  Check out the ASDocs for more info.
 
  -Original Message-
  From: jwaknitz [mailto:[EMAIL PROTECTED]
  Sent: Thursday, April 14, 2005 10:47 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Radio Button Custom Component
 
 
 
  I went back to the script and changed the if statement to create a
  RadioButton directly to the app and not grab a component.  This
  fixed the group problem but is not the fix that I wanted.
  Components is much nicer for what I want as the other way has
  generated a few problems with my design.
 
  Does anyone have any input about why the groupName attribute
 doesn't
  seem to work between components?
 
 
  --- In flexcoders@yahoogroups.com, Matthew Shirey [EMAIL PROTECTED]
  wrote:
   I am working with Jack and I am familiar with his problem.
 There's
  a few
   reasons why we're using a component with a radio control inside
  it. Our
   problem is that it seems to be ignoring the groupName property.
 Do
  radio
   controls have to all exist inside the same parent container to
  work as a
   group? I have looked in the documentation and didn't see any
 such
   limitation. Maybe I missed it. Shouldn't you be able to put
 radio
  buttons
   anywhere in the application and as long as they all have the
 same
  groupName
   they all behave as a group?
  
   -- Matthew
  
   On 4/13/05, Tracy Spratt [EMAIL PROTECTED] wrote:
   
   
Why not just use straight mxml. The following works for me.
   
mx:VBox id=vboxRG x=3 y=3 
mx:Repeater id=repeaterRB
  dataProvider={leParameter.valuesarray}

mx:RadioButton id=RBParameter groupName=RGBParameter
data={repeaterRB.currentItem[0]}
label={repeaterRB.currentItem[labelColumn]}
click=setParameterValue(event)
width={this.width-6}/
/mx:Repeater
/mx:VBox
   
Tracy
   
-Original Message-
From: jwaknitz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 1:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Radio Button Custom Component
   
I'm using a repeater to grab a component that makes a
 radiobutton
each time.
When the app is displayed, there are 7

RE: [flexcoders] Transition animations problem

2005-04-13 Thread Jason Szeto

Min,

You might be running into some processing limitations of the Player.
Check your CPU usage during these transitions. There are a couple of tricks
you can use to optimize this. If the objects you are animating have child
components, you can turn off the visibility of these children while the
animation is playing, and then restore them once the animation completes. If
you don't have any children, you might consider using a simplified version
of the object when you are doing the animation. 

You can also try to stagger the transitions so that not all 5 are running at
the same time. You can use a combination of Parallel, Sequence and Pause to
get this behavior. 

Ex. 

Parallel
Sequence
Pause duration=500/
Fade/
/Sequence
Zoom/
/Parallel

Jason

-Original Message-
From: Min Lieu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 1:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Transition animations problem



Is there a limitation to how many transition animations can run at the 
same time? I have an application where 5 transitions are occurring 
simultaneously. The behavior is not consistent. Most of the time, the 
animations run smoothly, but maybe 1 out of 10 times, one of the 
transitions will get stuck and not animate correctly.

Is this a known problem?

Thanks!





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

* 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] Custom AS2 Effects

2005-03-31 Thread Jason Szeto

 Mike,

Add 

listener.onEffectEnd(this);

to the end of your playEffect function. This will tell the Sequence effect
that the effect is finished playing. The Sequence effect sets itself as the
listener of each of its child effects. 

Jason

-Original Message-
From: Mike Shaw [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005 11:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom AS2 Effects



Hi Folks,

Does anyone know why the following custom effect class which I am trying to
use to call various functions in an effect sequence would cause the sequence
to halt after running the called function.

Thanks Mike.

import mx.effects.Effect;

class com.webqem.flex.effects.CallFunctionEffect extends Effect {

private var obj:Object;
private var func:String;
private var args:Array;

function CallFunctionEffect(obj:Object, func:String) {
this.obj = obj;
this.func = func;
arguments.shift();
arguments.shift();
this.args = arguments;
}

public function playEffect():Void { 
if (obj != null  func != null) {
obj[func].apply(obj, args);
}   
}

public function getAffectedProperties():Array {
return new Array();
}
}




 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

* 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] Custom Preloader Questions

2005-03-24 Thread Jason Szeto

James,

If you don't want the loader to go away after the application's
creationComplete event, override the creationComplete function in your
application and have it do nothing. 

Then call preloadObj.pBar.removeMovieClip(); when you want to get rid of
the preloader. 

Note that if you override the creationComplete function, you will will break
progressive layout, which is used when you set the creationPolicy of your
containers to queued. 

Preloading can be thought of occurring in two phases, the download phase and
the application loading phase. When the app is in the cache, it skips the
download phase. Your custom preloader should be subclassing
DownloadProgressBar. When the application loading phase starts, your custom
progress bar will have its indeterminate property set to true. If you want
to have more control over the appearance of your preloader in the
application loading phase, override the set indeterminate function like
this:

function set indeterminate(val:Boolean):Void
{
// Do my animation here
}

Note that during this time, the type of animation you can do is pretty
limited. The Player is spending most of its time loading up the application
and has few cycles to dedicate to updating the stage.  

Jason

-Original Message-
From: James Ward [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 24, 2005 2:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom Preloader Questions


Hi All.
I have been messing with custom preloader stuff and a few questions have
come up which I can't seem to find answers to, so I am turning to the
guru's.  Basically I want to control what my preloader looks like (this
part is pretty straight forward), but I also want this preloader to stay
on the screen for a little while beyond my app's creationComplete.  I
want it to stay up until I generate another event.  The next thing is
that I would like to use my custom preloader when the browser loads the
swf from cache.  I can't seem to override the default preloader in this
instance.  Only on the first, non-cached pull of the swf.  Is this stuff
possible?  Thanks!

-James




 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

* 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] Advantages / Disadvantages of web-inf/flex/user_ classes directory

2005-03-22 Thread Jason Szeto
Title: Advantages / Disadvantages of web-inf/flex/user_classes directory










Well, for one thing, putting them in
user_classes makes them available to different applications on your server. If
you put them in the application directory, then only that application can use
those classes. 



Jason











From: Mercer, Dustin
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 22, 2005 2:12
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Advantages /
Disadvantages of web-inf/flex/user_classes directory





Are
there any advantages / disadvantages of putting your custom classes inside of
web-inf/flex/user_classes directory? I have seen some articles stating we
should put our custom AS classes there, but have not seen
any reason why other than organization. Anyone have any thoughts on
this? TIA

Dustin
Mercer














Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Waiting for a remote call during application ini tialization

2005-03-21 Thread Jason Szeto










Raghu,



 You can also use progressive
layout to wait for data coming back from remote calls. There is an article on
devnet that explains how to use this feature.



http://www.macromedia.com/devnet/flex/articles/prog_layout.html



Jason











From: Jeroen De Vos
[mailto:[EMAIL PROTECTED] 
Sent: Monday, March 21, 2005 4:51
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Waiting
for a remote call during application initialization





1.Make a viewstack.

2.Put an indeterminate
progressbar in the first viewpane

3.Put your application in
the second viewpane.

4.In your eventhandler
for the remote call, active the second viewpane when the answer of the call
returns.



Jeroen.











Van: raghu2707
[mailto:[EMAIL PROTECTED] 
Verzonden: maandag 21 maart 2005
13:46
Aan: flexcoders@yahoogroups.com
Onderwerp: [flexcoders] Waiting
for a remote call during application initialization






Hi,

Can anyone please help me with this:

I need to wait for a remote call to finish before
i proceed for laying
out my components. Based on the data that is
recieved from
the remote call certain components are to enabled
or disabled.
I believe, all the remote calls are asynchronous
in Flex and to add
synchronous behaviour to this one work around is
to have a 
onResult function and then having the logic there.


But how to do if the application initialization
has to start with the
call to a remote method, wait for the response and
then proceed further.

Thanks,
Raghu






Deze
e-mail en alle gekoppelde bestanden zijn officiele documenten van het
Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke
informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch
te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder
vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of
te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen
enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud
van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk
gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt
als gevolg van een onnauwkeurigheid of fout in deze e-mail.[GHA#Disclaimer]















Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Re: Slider extension

2005-03-14 Thread Jason Szeto








Matt,



 We purposely limited the
Slider to only support 2 thumbs. Can you describe the use case for supporting
more than two thumbs?



In any case, you can create a subclassof
Slider that overrides the set thumbCount setter function. Ive included
an example below. Note that when you override a setter function, you must also
override the getter. 



class MySlider extends mx.controls.HSlider

{

 function MySlider()

 {

 }

 

 function set
thumbCount(val:Number)

 {

 super.thumbCount =
val;

 __thumbCount =
val;

 }

 

 function get
thumbCount():Number

 {

 return
super.thumbCount;

 }

}





Jason









From: Matthew Pflueger
[mailto:[EMAIL PROTECTED] 
Sent: Monday, March 14, 20058:55
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Slider
extension





Has anybody extended the Slider component to use more than
two thumbs? Also, does anybody have the source to the Flex Slider
components? The FlexForFlash archive under resources does not seem to
contain the mx.controls.sliderclasses package



Thanks,



Matt















RE: [flexcoders] Use hand cursor

2005-03-14 Thread Jason Szeto








You can also use the ImageButton component
that ships in the extras folder of Flex 1.5. 



Jason











From: Tracy Spratt
[mailto:[EMAIL PROTECTED] 
Sent: Monday, March 14, 20059:18
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Use hand
cursor





I found this:



mouseOver=event.target.




It's the onRelease that fixes it.



But also:



FYI,
I've found it much easier to use an mx:Link icon=.../tag
than to overide all the handlers on an image tag.



Tracy











From: Robert
Stuttaford [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 14, 20059:29
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Use hand
cursor





Hi flex coders,



Does anyone know how I can force use of the hand cursor,
specifically on an Image control? Ideally Id love to just go instance.useHandCursor = true;



Do I have to write a derivative and override the relevant mouse
handlers?



Thanks!

Robert














RE: [flexcoders] DateField

2005-02-16 Thread Jason Szeto
Jasper, 

The selectedDate property should give you what you want. 

Jason

-Original Message-
From: Jasper Blues [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 16, 2005 3:11 PM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] DateField


Hi Folks, 

I noticed a shortcoming in the DateField component - no property or method
to return an instance of Date class. I need to send this data to the
business tier, so I had to write my own method to convert the data (because
we want to do validation on the client-side). You can only seem to get the
text property. 

Am I correct? If so, I'd certainly suggest this to the good folks at
Macromedia as an improvement for the next Flex. 

Happy days :)
Jasper



~~---
This e-mail may contain confidential information. If you are not the
intended recipient, please notify the sender immediately and delete this
e-mail from your system. You must not disclose this e-mail to anyone
without express permission from the sender. The contents of all e-mails
sent to and received from Optus may be scanned, stored, or disclosed to
others at Optus discretion.

Optus has exercised care to avoid errors in the information contained in
this e-mail but does not warrant that the information is error or omission
free. The information (including any pricing information) contained in this
e-mail is subject to change. This e-mail is not a quotation or proposal and
no contractual obligations arise until you and Optus sign a formal written
contract or formal variation to your existing contract. 

Any pricing contained in this e-mail is exclusive of GST unless otherwise
stated.





Yahoo! Groups Links










RE: [flexcoders] RE: Mouse cursor change question

2005-02-15 Thread Jason Szeto








Ive answered this in a previous
post, but here is the answer again:



Chris,



 The useHandCursor
property is a property of MovieClip and only works if there is a onRelease
handler. You can look at the documentation here: 



http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/js/html/wwhelp.htm?href="">



You'll probably need to
create a subclass of Image and implement an onRelease handler that does
nothing. 



Jason



-Original Message-

From: Chris Phillips [mailto:[EMAIL PROTECTED]]

Sent: Monday, January 03,
2005 4:56 PM

To: Flex Coders

Subject: [flexcoders] Force
the hand cursor





So, I've read the docs.

And I've played aroundwith
the code.

I still can't figure out how
to force the hand curcor to show.



I have this, but it doesn't
work.



mx:Image
mouseOver=event.target.useHandCursor=true;

 mouseDown=mainPhoto.source=event.target.source


 width=100
height=75 maintainAspectRatio=true 

 source={photoURL(photos.currentItem)}
/



Could someone tell me how to
force the hand cursor to show over

particular elements?

I'll be using it over both
the Image tag and the Text tag.



Thanks,



-- 

Chris Phillips

www.dealerpeak.com

Senior Application Developer







Yahoo! Groups Links



* To visit your
group on the web, go to:

 http://groups.yahoo.com/group/flexcoders/



* 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/





















From: Pilby
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 15, 2005
12:04 PM
To: Flex Coders
Subject: [flexcoders] RE: Mouse
cursor change question







How can I change the mouse cursor to a hand, just like the
hand cursor we get when the mouse is hovered over a mx:Link control? And how do
I change it back to the normal cursor?











Thanks.



















RE: [flexcoders] Re: Refactored App, now: Initializing... THEN NO THING...

2005-01-31 Thread Jason Szeto
This is usually caused by a bug in the application (infinite loop, etc.).
Try turning off the preloader (set usePreloader=false on the Application
tag) and seeing what happens. 

Jason

-Original Message-
From: Chris Phillips [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 29, 2005 3:17 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Refactored App, now: Initializing... THEN NO
THING...


BTW, I've done this with certain combinations of tags/containers. Just
goes to 100 and then sit's there stuck at 100 and not doing anything.


On Wed, 26 Jan 2005 11:50:51 -0500, Roger Gonzalez
[EMAIL PROTECTED] wrote:
 Some things to try (I personally don't believe that it is the 32k issue):
 
 - Toggle optimization
 - Toggle the SWO cache
 - Double check any static dependencies
 - Turn on the compile report and check class deps
 - Connect with the debugger to see where it is wedged.
 
 When the progress bar finishes the initializing phase, does the dialog
 disappear or does it hang at 100%? (It is waiting for the app to kill
it,
 so its an interesting data point to see if it continues and wedges
 elsewhere
 or isn't getting removed.)
 
 -Roger
 
 Roger Gonzalez
 mailto:[EMAIL PROTECTED]
 
 
  -Original Message-
  From: extensive_systems [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, January 25, 2005 9:35 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Refactored App, now: 
  Initializing... THEN NOTHING...
  
  
  
  Ok, adding ?debug=true, refactoring again to make code smaller or
  larger to get under/over (as per suggestions) a '32K Limit' does not
  solve this tedious issue.
  
  I find that (to cite one example of a few possible) if I leave the
  following simple code inline (instead of refactoring it to its own
  MXML file for modularity and further expansion as I certainly want to
  do) then the app compiles, links and loads. But if I place it in its
  own MXML file, and reference the nested component in standard fashion,
  things don't work, as I've described.
  
  mx:Tree
  id=foobar width=100% height=70%
  xmlns:xxx=xxx.*
  xmlns:esf-view=com.extensivesystems.esf.view.* 
  
  xmlns:mx=http://www.macromedia.com/2003/mxml;
  /mx:Tree
  
  
  
  
   --- In flexcoders@yahoogroups.com, Tracy Spratt 
  [EMAIL PROTECTED] wrote:
You are probably on the edge of the 32k limit.

Add ?debug=true to your app url. Sometime that gets over 
  the hump, and
lets you run, sometimes it shows the error message.

I you can find out where the limit is being hit, either 
  make the code
smaller by more refactoring, or add some bogus code. It 
  appears that
there is some threshold where the 32k limit strikes, but 
  adding more
code causes flex to generate differently.

Large script blocks are a particular problem. Move them 
  into a class.
But try the more code route first.

Tracy

-Original Message-
From: extensive_systems [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 25, 2005 4:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Refactored App, now: Initializing... THEN
NOTHING...



Flex 1.5

Has anybody any insight into this issue that I've just 
  run into after
refactoring my app's MXML code?

When I run the app the Initializing progress bar shows 
  up, goes to
100% then... nothing - no sign of life, no message...

All I did was make some new components (i.e., cut MXML text from a
couple of files and created a few new MXML files, then 
  referred to the
components represented by the latter in the former. BTW, 
  I can make
the app fail as described in more than one way, so it 
  doesn't seem to
be just one bad snippet of code.






Yahoo! Groups Links
  
  
  
  
  
  
  Yahoo! Groups Links
  
  
  
  
  
  
  
 
 
 Yahoo! Groups Links
 
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-- 
Chris Phillips
www.dealerpeak.com
Senior Application Developer



Yahoo! Groups Links