Re: [flexcoders] Question about drawing on the canvas

2005-10-05 Thread Prasad Dhananjaya
Hi Manish  all,

 The solution is to make it a child (add a new object as a child and
 draw on top of that object instead).

sorry... , I didn't get the point yet.Is it Mean..

addedObject = Object(myCanves.createChild());
addedObject.createChild(arrow(target));

or

var ref_mc =myCanves.createChild(mx.containers.Canvas,undefined,{width:1000});
ref_mc.createChild(arrow(target));


Please explain me little more.

Thanks


 On 10/4/05, Prasad Dhananjaya [EMAIL PROTECTED] wrote:
 
  Have a simple question about drawing on the canvas.
 
  Below code draws an arrow between mousedown point and mouseup point.
  It works well. But...
 
  When I move  canvas's scrollbar, arrow didn't move. Means it is NOT
  on the canvas.Want to draw it ON the canvas. Tried several ways.
  But failed. (I drawing square on the canvas using fillRect() is OK)
 
 It indeed is on the Canvas, but it's not a child of the Canvas, and
 that's the reason it doesn't scroll along with other children.
 
 The solution is to make it a child (add a new object as a child and
 draw on top of that object instead).
 

 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
 Prasad Dhananjaya
 Sent: Tuesday, October 04, 2005 6:48 AM
 To: FlexML
 Subject: [flexcoders] Question about drawing on the canvas
 
 
 Hi,
 
 Have a simple question about drawing on the canvas.
 
 Below code draws an arrow between mousedown point and mouseup point.
 It works well. But...
 
 When I move  canvas's scrollbar, arrow didn't move. Means it is NOT
 on the canvas.Want to draw it ON the canvas. Tried several ways.
 But failed. (I drawing square on the canvas using fillRect() is OK)
 
 Can someone please tell me what's wrong.
 
 thanks,
 
 --
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
 mx:Script
 ![CDATA[
   var isPointerStarted = false;
   var bx:Number;
   var by:Number;
 
   function pointerStart(target) {
 if (isPointerStarted) return;
   isPointerStarted = true;
   bx = target.mouseX;
   by = target.mouseY;
 }
 
   function pointerReleased(target) {
 if (!isPointerStarted) return;
   target.lineStyle(2, 0x66, 100);
   target.createChild(arrow(target));
   isPointerStarted = false;
   //drawing squre on the canves
   var ref_mc = 
 target.createChild(mx.containers.Canvas,undefined,{width:1000});
   ref_mc.fillRect(900, 100, 910, 110, 0x00, 30);
 }
 
   function arrow(target) {
 var w = target.mouseX - bx;
 var h = target.mouseY - by;
 var l = Math.sqrt(w * w + h * h);
 var size=8;
 var sharpness=0.5;
 var s = Math.sin(sharpness);
 var c = Math.cos(sharpness);
 if(l0){
   w *= size / l;
   h *= size / l;
   target.moveTo(bx,by);
   target.lineTo(target.mouseX, target.mouseY);
   target.lineTo(target.mouseX - w * c - s * h, target.mouseY 
 + w * s - h * c);
   target.moveTo(target.mouseX, target.mouseY);
   target.lineTo(target.mouseX - w * c + s * h, target.mouseY 
 - w * s - h * c);
 }
   }
 ]]
 /mx:Script
 
 mx:Canvas id=myCanves 
   x=0 y=110  width=100% height=225 
   borderStyle=solid
   mouseUpSomewhere=pointerReleased(event.target)
   mouseDown=pointerStart(event.target)
 backgroundColor=#DEE0FE
 backgroundAlpha=0
 /mx:Canvas
 /mx:Application
 


 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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






RE: [flexcoders] Cairngorm ModelLocator

2005-10-05 Thread Simon Fifield
HI

This brings up an interesting problem I had recently with the
ModelLocator.initialise() method. I am trying to use Binding to its full
use, but I had a situation where I was binding to a ModelLocator value
before it was being initialised and my view was screwed - the ModelLocator's
initialise call in the Applications initialize event handler - which gets
called after all the other initialize handlers.

So I just added a static variable initialised:Boolean and now I can
initialise the ModelLocator anywhere in the app either in a view or a
ViewHelper.

Do you guys think that this is a good, bad or indifferent approach?

Regards,
Simon

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steven Webster
Sent: 04 October 2005 21:01
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Cairngorm ModelLocator

Hey,

We would tend to have global model objects all hung off the one
ModelLocator.  For instance, we might have a class Assets.mxml which itself
contains 100+ attributes for embedded images, but we'll have one attribute
in ModelLocator called assets.

However, if you wanted to have multiple ModelLocators, I'd recommend a
factory strategy similar to the old cairngorm ViewLocator or ServiceLocator,
where the ModelLocator becomes a factory rather than a singleton, and you do
things like:

ModelLocator.getModel(assets).bannerImage

I've a funny feeling we considered this in the Cairngorm Committee, and
there were issues with data-binding that chose us to not go for this in the
general cairngorm package.

But I could be talking rubbish.

Steven

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fowleryj
Sent: 04 October 2005 20:22
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm ModelLocator

Is the ModelLocator intended to be the *only* global repository for
variables to which you'll need to bind throughout your application? My
ModelLocator is getting huge, and I would like to split it into a few
ModelLocators (with different names, obviously). Has anyone done this?
Are there any caveats of which I should be aware? How have others dealt with
their ModelLocator's large size?




 Yahoo! Groups Sponsor ~-- Get
Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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



 



 Yahoo! Groups Sponsor ~-- Most
low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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



 





 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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




[flexcoders] Creating Children in a Dynamic Accordion

2005-10-05 Thread Mark Wales
Title: Message





Hello,

I am trying to 
dynamically/conditionally add children to a set of dynamically/conditionally 
created Accordion segments.

At 
present,I createthe segments I wantusing a loop over my 
array:

mx:Accordion id="inputDetail" height="100%" width="100%" 

creationComplete="addStuff(query.input)"
function 
addStuff(elements) { var count:Number = 
elements.length; for (var i=0; icount; i++) 
{ var element:String = 
elements[i].name;
 var 
type:String = elements[i].type;

 var vbox = 
inputDetail.createSegment(mx.containers.VBox, element, element, 
undefined);

 var newLabel = 
vbox.createChild(mx.controls.Label, undefined, "Some 
Data");
 
}
}

The createChild 
function does not yield any results. Does anyone have any 
suggestions?

Thanks,

-Mark







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



  









AW: [flexcoders] Re: Number(011) = 9 ????

2005-10-05 Thread Christoph Diefenthal
Well sorry, I haven't been specific enough.

Here it comes:
I have got Strings of the form 009, 010, 011,..., 999 which I expect
to be a decimal number, and so I was confused, that the output of
Number(011) is 9. 

I didn't know that a 0 in front of literal is a specifier for octal
literals.

So parseInt(011,10) does exactly what I want to do. It interprets 011 as
the decimal 11.

My last question was only, whether there is a way to use the Number class to
produce this output, because I thought that it is not the most
object-oriented way to use the global function parseInt(...)...

Thanks for the replies 
Christoph






 -Ursprüngliche Nachricht-
 Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
 Auftrag von Gordon Smith
 Gesendet: Dienstag, 4. Oktober 2005 20:05
 An: flexcoders@yahoogroups.com
 Betreff: RE: [flexcoders] Re: Number(011) = 9 
 
 If you do parseInt(011, 10), I'm pretty sure what happens is this:
 
 1. The octal literal 011 is compiled as the decimal Number 9.
 2. It is converted at runtime to the string 9, because parseInt expects
 to parse a string.
 3. parseInt parses 9 to produce 9.
 
 Obviously, this is a waste of time. 011 already *is* 9 at compile time. It
 is just a different way of writing it, just like 0x09 is a different way
 of writing it. For example, try this:
 
 trace(011 - 1);
 
 The output is 8.
 
 - Gordon
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Abdul Qabiz
 Sent: Tuesday, October 04, 2005 10:29 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Re: Number(011) = 9 
 
 Hi,
 
 What do you want to do?
 
 Convert 011 to decimal 11
 
 Or convert octal(11) to decimal(9)
 
 parseInt(..) is a global function and first argument is an expression, so
 you can pass number also:
 
 parseInt(011, 10) - 9 (decimal)
 
 You can look at Flash Player ActionScript on:
 
 http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/js/htm
 l/wwhelp.htm?href=Part_ASLR.html
 
 
 -abdul
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Christoph Diefenthal
 Sent: Tuesday, October 04, 2005 7:34 PM
 To: 'flexcoders@yahoogroups.com'
 Subject: AW: [flexcoders] Re: Number(011) = 9 
 
 Ok thank you all,
 
 I workaround (or isn't it a workaround??) this problem by using
 parseInt(011, 10) to get the decimal-system value.
 
 How can I use the Number-class to convert the values?
 Is there a
 Number.parseInt() function?
 
 There is no such function mentioned in the Flex ActionScript Language
 Reference... can you provide me with a better API?
 
 
 Cheers
 Christoph
 
 
 
  -Ursprüngliche Nachricht-
  Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
  Auftrag von Philippe Maegerman
  Gesendet: Dienstag, 4. Oktober 2005 12:24
  An: flexcoders@yahoogroups.com
  Betreff: RE: [flexcoders] Re: Number(011) = 9 
 
  If they are all octal numbers, you can use
  mx.controls.Alert.show( + Number(011).toString(8));
 
  Philippe Maegerman
 
  
 
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
  Behalf Of jamiebadman
  Sent: mardi 4 octobre 2005 11:34
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Number(011) = 9 
 
 
  It's performing an octal to decimal conversion. You can use the
  Number class to convert between various different number bases.
 
  Jamie.
 
  --- In flexcoders@yahoogroups.com, Christoph Diefenthal
  [EMAIL PROTECTED] wrote:
   Does anyone know why this happens???
  
   Try it on your own server  :
  
  
  
 mx:Application
  xmlns:mx=http://www.macromedia.com/2003/mxml;
   mx:Button label=Value Of String click=valueOfString
  () /
   mx:Script
 ![CDATA[
 import mx.controls.Button;
  
 public function valueOfString():Void
 {
  
   // the result is 9 ?
  mx.controls.Alert.show( + Number(011));
  
 }
 ]]
   /mx:Script
 /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
 
 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+si
 
 te+design+developmentw2=Computer+software+developmentw3=Software+design+
 
 and+developmentw4=Macromedia+flexw5=Software+development+best+practicec
  =5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ   Computer software
 development
 
 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+
 
 site+design+developmentw2=Computer+software+developmentw3=Software+desig
 
 n+and+developmentw4=Macromedia+flexw5=Software+development+best+practice
  c=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and
 development
 
 

Re: [flexcoders] how do i select a single datagrid cell not the whole row

2005-10-05 Thread David Harris



[your datagrid].focusedCell = {itemIndex:[your row number],columnIndex:[your coulmn number]};On 10/5/05, bhaq1972 
[EMAIL PROTECTED] wrote:



Everyone

I want to be able to to select and highlight a single cell in a non 
editable datagrid. i'm thinking, on a DataGrid.cellPress, color the 
cell 

any ideas/code would be grateful.

regards

bod(bhaq1972)










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




  
















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



  









[flexcoders] Re: Asynchronous notification

2005-10-05 Thread Daniel Harfleet
You should maybe also take a look at Flash Communication Server. FCS
allows you to push data to ActionScript clients using RTMP; you can
then just implement some kind of 'Listener' class in you client which
receives notifications of data changes.  You could implement your FCS
code in such a way that the client makes an initial request giving its
intent to listen to some server side data and then FCS pushes out the
data when it changes.

Check out Client.call(..)on the server / NetConnection.call(..)on the
client, or alternatively you can use SharedObject.onSync(..) and
setProperty(k, v)

http://www.macromedia.com/devnet/flashcom/cross_product_integration.html

http://livedocs.macromedia.com/flashcom/mx2004/index.html



hth

dan




--- In flexcoders@yahoogroups.com, Mink, Joseph [EMAIL PROTECTED]
wrote:
 Thanks, Kevin!  I finally did my homework of the XMLSocket obj, but
 wasn't sure how to serve that protocol with a web server or servlet
 container...I'll definitely look for the examples you mention.  I wonder
 if they are actual stand-alone, custom servers of if they are a hack way
 of getting servlets to solve the problem.
  
 Thanks!
 Joey
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Kevin Langdon
 Sent: Tuesday, October 04, 2005 10:01 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Asynchronous notification
 
 
 You probably want to look into the XMLSocket object.  This can make a
 connection back to a server and maintain it.  A 0 byte is sent between
 requests and response without the connection being dropped.  Those
 requests and responses are xml and could be used for messaging or keep
 alives to avoid timeout issues.  There are some good Java examples out
 there on implementing this on the server end, not sure about other
 platform implementations.
  
 Kevin
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Mink, Joseph
 Sent: Tuesday, October 04, 2005 8:32 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Asynchronous notification
 
 
 All,
  
 We have, up until now, used webservices to check for server-side
 notifications...we just poll (I know, I hate polling!).  We'd like to
 move to something more asynchronous, but I thought I'd ask the forum for
 their recommendation.
  
 I know there is some kind of method in AS for making an HTTP
 request...we could have a servlet that would accept that request, hold
 onto it until some data comes in, and then finally respond to the
 request.  Of course there are probably time-out issues that would have
 to be side-stepped.
  
 That's about the only sol'n I can see being possible right now.  I'm not
 very familiar with RMI and Remote Objects, but can this technology be
 used asynchronously in Flex?
  
 Any thoughts would be appreciated!
  
 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
 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+
 site+design+developmentw2=Computer+software+developmentw3=Software+des
 ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac
 ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ   Computer software
 development
 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We
 b+site+design+developmentw2=Computer+software+developmentw3=Software+d
 esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr
 acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and
 development
 http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=
 Web+site+design+developmentw2=Computer+software+developmentw3=Software
 +design+and+developmentw4=Macromedia+flexw5=Software+development+best+
 practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ   
 Macromedia flex
 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+
 developmentw2=Computer+software+developmentw3=Software+design+and+deve
 lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1
 66.sig=OO6nPIrz7_EpZI36cYzBjw   Software development best
 practice
 http://groups.yahoo.com/gads?t=msk=Software+development+best+practice;
 w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw
 are+design+and+developmentw4=Macromedia+flexw5=Software+development+be
 st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw
 
 
 
 YAHOO! GROUPS LINKS 
 
 
   
 *  Visit your group flexcoders
 http://groups.yahoo.com/group/flexcoders  on the web.
 
 *  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] 
 
 *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/ . 
 
 
 

Re: [flexcoders] images being cached w/ mx:image

2005-10-05 Thread jraben
Maybe its the flash plugin cache. Right mouse and set all to 0.

On 4 Oct 2005 at 16:27, Raymond Camden wrote:

 I am calling a custom control that makes use of mx:image. When I
 update the jpg file on the file system, it isn't reflected in Flex,
 even after a restart. Any ideas?
 
 --
 ===
 Raymond Camden, Director of Development for Mindseye, Inc (www.mindseye.com)
 
 Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)
 
 Email : [EMAIL PROTECTED]
 Blog : ray.camdenfamily.com
 Yahoo IM : cfjedimaster
 
 My ally is the Force, and a powerful ally it is. - Yoda
 
 
 --
 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. 
 
 
 


Mit freundlichen Grüßen

Jurek Raben


---
AMW Alster Media  Werbung GmbH
Jurek Raben
Friedrich-Ebert-Damm 160b
22047 Hamburg
Tel.: +49 (0)40 3068320 
Fax: +49 (0)40 30683220  




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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




RE: [flexcoders] Re: Number(011) = 9 ????

2005-10-05 Thread Abdul Qabiz
Hi,

I think, you need to write a function to remove 0 from string and cast the rest 
of string as Number.

So probably, a private helper-method in your class can do thisBut in 
ActionScript, any number with 0 as prefix would be considered as an octal..


function getDecimalNumber(numStr:String):Number
{
if(numStr.indexOf(0)== 0)
{
return Number(numStr.substr(1));
}

return Number(numStr);
}


-abdul 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Christoph Diefenthal
Sent: Wednesday, October 05, 2005 12:51 PM
To: 'flexcoders@yahoogroups.com'
Subject: AW: [flexcoders] Re: Number(011) = 9 

Well sorry, I haven't been specific enough.

Here it comes:
I have got Strings of the form 009, 010, 011,..., 999 which I expect
to be a decimal number, and so I was confused, that the output of
Number(011) is 9. 

I didn't know that a 0 in front of literal is a specifier for octal
literals.

So parseInt(011,10) does exactly what I want to do. It interprets 011 as
the decimal 11.

My last question was only, whether there is a way to use the Number class to
produce this output, because I thought that it is not the most
object-oriented way to use the global function parseInt(...)...

Thanks for the replies 
Christoph






 -Ursprüngliche Nachricht-
 Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
 Auftrag von Gordon Smith
 Gesendet: Dienstag, 4. Oktober 2005 20:05
 An: flexcoders@yahoogroups.com
 Betreff: RE: [flexcoders] Re: Number(011) = 9 
 
 If you do parseInt(011, 10), I'm pretty sure what happens is this:
 
 1. The octal literal 011 is compiled as the decimal Number 9.
 2. It is converted at runtime to the string 9, because parseInt expects
 to parse a string.
 3. parseInt parses 9 to produce 9.
 
 Obviously, this is a waste of time. 011 already *is* 9 at compile time. It
 is just a different way of writing it, just like 0x09 is a different way
 of writing it. For example, try this:
 
 trace(011 - 1);
 
 The output is 8.
 
 - Gordon
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Abdul Qabiz
 Sent: Tuesday, October 04, 2005 10:29 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Re: Number(011) = 9 
 
 Hi,
 
 What do you want to do?
 
 Convert 011 to decimal 11
 
 Or convert octal(11) to decimal(9)
 
 parseInt(..) is a global function and first argument is an expression, so
 you can pass number also:
 
 parseInt(011, 10) - 9 (decimal)
 
 You can look at Flash Player ActionScript on:
 
 http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/js/htm
 l/wwhelp.htm?href=Part_ASLR.html
 
 
 -abdul
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Christoph Diefenthal
 Sent: Tuesday, October 04, 2005 7:34 PM
 To: 'flexcoders@yahoogroups.com'
 Subject: AW: [flexcoders] Re: Number(011) = 9 
 
 Ok thank you all,
 
 I workaround (or isn't it a workaround??) this problem by using
 parseInt(011, 10) to get the decimal-system value.
 
 How can I use the Number-class to convert the values?
 Is there a
 Number.parseInt() function?
 
 There is no such function mentioned in the Flex ActionScript Language
 Reference... can you provide me with a better API?
 
 
 Cheers
 Christoph
 
 
 
  -Ursprüngliche Nachricht-
  Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
  Auftrag von Philippe Maegerman
  Gesendet: Dienstag, 4. Oktober 2005 12:24
  An: flexcoders@yahoogroups.com
  Betreff: RE: [flexcoders] Re: Number(011) = 9 
 
  If they are all octal numbers, you can use
  mx.controls.Alert.show( + Number(011).toString(8));
 
  Philippe Maegerman
 
  
 
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
  Behalf Of jamiebadman
  Sent: mardi 4 octobre 2005 11:34
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Number(011) = 9 
 
 
  It's performing an octal to decimal conversion. You can use the
  Number class to convert between various different number bases.
 
  Jamie.
 
  --- In flexcoders@yahoogroups.com, Christoph Diefenthal
  [EMAIL PROTECTED] wrote:
   Does anyone know why this happens???
  
   Try it on your own server  :
  
  
  
 mx:Application
  xmlns:mx=http://www.macromedia.com/2003/mxml;
   mx:Button label=Value Of String click=valueOfString
  () /
   mx:Script
 ![CDATA[
 import mx.controls.Button;
  
 public function valueOfString():Void
 {
  
   // the result is 9 ?
  mx.controls.Alert.show( + Number(011));
  
 }
 ]]
   /mx:Script
 /mx:Application
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-
 

[flexcoders] Cairngorm ModelLocator

2005-10-05 Thread Malcolm
Oooh, some may feel strongly another way, but here goes...

Yep, definitely start splitting up your ModelLocators. I have a model
locator for every major section of my application (of which there are more
than 30 and counting!). It makes life so much easier.

Would also suggest splitting into packages (folders) as well, this makes it
easier to add and find locators based roughly on the functions of your
application. e.g...

com.mycompany.applicationname.model.administration.UsersModelLocator

Indeed look out for naming conflicts, on the 'very' odd occasion you may
find that a view needs to have bindings to a couple of model locators. If
you can, start making those bindings/views into their own standardised
components. For example I have a complex FilterUsers panel that is an mxml
component (with its own locator); it gets used throughout the application.
Thus views that need to filter users have the FilterUsersModelLocator as
well as their own. Works beautifully.

Same goes for controllers.

The plumbing is worth the effort, you'll never look back :D

Hope this helps.

Malcolm

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fowleryj
Sent: Wednesday, 5 October 2005 5:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm ModelLocator

Is the ModelLocator intended to be the *only* global repository for
variables to which you'll need to bind throughout your application? My
ModelLocator is getting huge, and I would like to split it into a few
ModelLocators (with different names, obviously). Has anyone done this?
Are there any caveats of which I should be aware? How have others
dealt with their ModelLocator's large size?





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



 




 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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






[flexcoders] Validator, Styles, ...

2005-10-05 Thread r_woess
Hi,

I've two questions:

1.
How can I change the thickness of die red-border of a textinput-box,
if the input is not valid?

2.
Is there a possibility to show the errermessages tooltip without
moving the mouse over the invalid textinput-box?

best regards
reini




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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




Re: [flexcoders] Getting FlexUnit Example to Work

2005-10-05 Thread hari.ibs



Hi!

Comment the following line in your AllTest.as which is located in WEB-INF/flex/user-classes/samples/test/org/iterationtwo/AllTests.as
testSuite.addTest( TestSuiteWithSetUpTearDown.suite() );
or else
update the AllTests.as like this:

import samples.test.com.iterationtwo.*;
import flexunit.framework.*;
import flexunit.extensions.*;
class samples.test.com.iterationtwo.AllTests
{
public static function suite() : Test
{
var testSuite:TestSuite = new TestSuite();
testSuite.addTest( new TestSuite( TestMoney ) );
testSuite.addTest(new TestSuite(TestMoneyWithFailingTests));
testSuite.addTest( new TestSuite( TestMoneyWithSetUpTearDown ) );
//testSuite.addTest( TestSuiteWithSetUpTearDown.suite() );
testSuite.addTest( new TestSuite( TestHari ) );
return testSuite;
}
}
If any doubts in this regard please mail me back..

Regards
Harinath K
On 10/4/05, fowleryj [EMAIL PROTECTED] wrote:
Has anybody had problems getting FlexUnit's examples to work?I've done the following:- installed FlexUnit (
- put the FlexUnit.swc file in my WEB-INF/flex/user_classes directory- put the flexunit-manifest.xml file in my WEB-INF/flex directory- added this to my flex-config.xml:namespace uri=
http://www.iterationtwo.com/flexunitmanifest/WEB-INF/flex/flexunit-manifest.xml/manifest/namespaceHowever, when I try to run the example (RunTests.mxml), I get this:
Warning /flexunit/RunTests.mxml:20Changes to unknown property, tests, will not be detected.Warning /flexunit/RunTests.mxml:20Changes to unknown property, flexunit, will not be detected.Warning /flexunit/RunTests.mxml:20
Changes to unknown property, AllTests, will not be detected.Error /flexunit/RunTests.mxml:20There is no method with the name 'tests'.Can anyone give me some insight?Thanks Yahoo! Groups Sponsor ~--
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM~-
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/
* 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/-- Harinath K 






--
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] Getting a null object reference

2005-10-05 Thread Kevin Langdon
Title: Mensagem










Your problem is that the Compositions
initialize and creationComplete events will fire before the Application
initialize event.  Most components initiate all of their components in their
own init and it is not until they are finished that they will fire the
initialize event.



You could just remove the initialize
method in your application and instead just set the model member.  It will then
set it before the Applications constructor is even called.



var model:CompositionModel = new
CompositionModel(); 













From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Matt Chotin
Sent: Tuesday, October 04, 2005
7:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Getting
a null object reference





Hmm, I dont have time to dig but
generally that should work Id think. What if you put a button in
Composition.mxml that calls initialize() and see if its not null
then. Clearly this is just an ordering problem but I cant tell why
off the top of my head.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michel Bertrand
Sent: Tuesday, October 04, 2005
11:21 AM
To: flexcoders@yahoogroups.com
Subject: RES: [flexcoders] Getting
a null object reference







Thank you for your suggestion ... I
changed to creationComplete, but still not working ... 





-Mensagem
original-
De: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] Em nome de Matt Chotin
Enviada em: terça-feira, 4 de
outubro de 2005 01:32
Para: flexcoders@yahoogroups.com
Assunto: RE: [flexcoders] Getting
a null object reference

Try using creationComplete in your
Composition.mxml instead of initialize and see if that works.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michel Bertrand
Sent: Monday, October 03, 2005
11:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Getting a
null object reference





Hi
! 

I'm
trying to do the following: 

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml




 xmlns:framework=com.datasul.framework.ui.template.view.*




 width=100%
height=100% 



 initialize=initialize() 
 
 mx:Script 
 ![CDATA[ 

 import
com.datasul.framework.ui.template.model.CompositionModel; 

 

 var model:CompositionModel;

 

 function initialize() : Void {



 model = new CompositionModel();


 } 
 ]] 
 /mx:Script 


framework:Composition width=100%
height=100% 

 framework:model{this.model}/framework:model

 /framework:Composition


/mx:Application


I
would like to bind the value of model with the
model
property of the Composition component. Like: 

Composition.mxml

mx:Canvas
xmlns:mx=http://www.macromedia.com/2003/mxml
initialize=initialize()
width=100% height=100% 
 mx:Panel
id=mainPanel 

 mx:Script 

 ![CDATA[ 


 import com.datasul.framework.ui.template.model.CompositionModel;




 var model:CompositionModel;




 function initialize(): Void {




 if ( model ==
undefined ) { 


 
 mx.controls.Alert.show(MODEL
= NULL); 



 } 


 } 

 ]] 

 /mx:Script 


.. 


/mx:Panel 
/mx:Canvas


Everytime
I run the code I get a message saying MODEL = NULL. Why I don't
have an 
object
instance since model has been already instantiated ? 

Any
help or suggestion will be very appreciated. 

Thanks
in advance ! 
Michel.















--
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: Number(011) = 9 ????

2005-10-05 Thread Philippe Maegerman





Maybe try to pass the value as a String instead of a 
Number and eventualy remove the leading '0' in the String beforecasting it 
as a Number

Philippe 
Maegerman



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Christoph 
DiefenthalSent: mercredi 5 octobre 2005 9:21To: 
'flexcoders@yahoogroups.com'Subject: AW: [flexcoders] Re: 
Number("011") = 9 
Well sorry, I haven't been specific enough.Here it 
comes:I have got Strings of the form "009", "010", "011",..., "999" which I 
expectto be a decimal number, and so I was confused, that the output 
ofNumber("011") is 9. I didn't know that a 0 in front of literal is 
a specifier for octalliterals.So parseInt("011",10) does exactly 
what I want to do. It interprets "011" asthe decimal 11.My last 
question was only, whether there is a way to use the Number class toproduce 
this output, because I thought that it is not the mostobject-oriented way to 
use the global function parseInt(...)...Thanks for the replies 
Christoph -Ursprüngliche 
Nachricht- Von: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] Im Auftrag von Gordon Smith 
Gesendet: Dienstag, 4. Oktober 2005 20:05 An: 
flexcoders@yahoogroups.com Betreff: RE: [flexcoders] Re: Number("011") = 
9   If you do parseInt(011, 10), I'm pretty sure what 
happens is this:  1. The octal literal 011 is compiled as the 
decimal Number 9. 2. It is converted at runtime to the string "9", 
because parseInt expects to parse a string. 3. parseInt parses 
"9" to produce 9.  Obviously, this is a waste of time. 011 
already *is* 9 at compile time. It is just a different way of writing 
it, just like 0x09 is a different way of writing it. For example, try 
this:  trace(011 - 1);  The output is 8. 
 - Gordon   -Original Message- 
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On 
Behalf Of Abdul Qabiz Sent: Tuesday, October 04, 2005 10:29 AM 
To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: 
Number("011") = 9   Hi,  What do you want to 
do?  Convert 011 to decimal 11  Or convert 
octal(11) to decimal(9)  parseInt(..) is a global function and 
first argument is an _expression_, so you can pass number also: 
 parseInt(011, 10) - 9 (decimal)  You can look at 
Flash Player ActionScript on:  http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/js/htm 
l/wwhelp.htm?href="">   -abdul 
  -Original Message- From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf 
Of Christoph Diefenthal Sent: Tuesday, October 04, 2005 7:34 PM 
To: 'flexcoders@yahoogroups.com' Subject: AW: [flexcoders] Re: 
Number("011") = 9   Ok thank you all,  I 
workaround (or isn't it a workaround??) this problem by using 
parseInt("011", 10) to get the decimal-system value.  How can I 
use the Number-class to convert the values? Is there a 
Number.parseInt() function?  There is no such function mentioned 
in the "Flex ActionScript Language Reference... can you provide me with 
a better API?   Cheers Christoph 
-Ursprüngliche Nachricht-  
Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im 
 Auftrag von Philippe Maegerman  Gesendet: Dienstag, 4. Oktober 
2005 12:24  An: flexcoders@yahoogroups.com  Betreff: RE: 
[flexcoders] Re: Number("011") = 9    If they are 
all octal numbers, you can use  mx.controls.Alert.show("" + 
Number("011").toString(8));   Philippe Maegerman 
     
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On 
 Behalf Of jamiebadman  Sent: mardi 4 octobre 2005 11:34 
 To: flexcoders@yahoogroups.com  Subject: [flexcoders] Re: 
Number("011") = 9 It's performing an 
octal to decimal conversion. You can use the  Number class to 
convert between various different number bases.   
Jamie.   --- In flexcoders@yahoogroups.com, Christoph 
Diefenthal  [EMAIL PROTECTED] wrote:   Does 
anyone know why this happens??? Try it on 
your own server :  
   
mx:Application  xmlns:mx="http://www.macromedia.com/2003/mxml" 
  mx:Button 
label="Value Of String" click="valueOfString  ()" /  
 mx:Script 
  
![CDATA[  
 import 
mx.controls.Button;
 public function 
valueOfString():Void  
 {  
  
 // 
the result is 9 ?  
 
mx.controls.Alert.show("" + Number("011"));
 }  
 ]] 
  
/mx:Script   
/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  http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+si 
 
te+design+developmentw2=Computer+software+developmentw3=Software+design+ 
 
and+developmentw4=Macromedia+flexw5=Software+development+best+practicec 
 =5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ 
 Computer software development 
 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+ 
 

[flexcoders] clearing of selected checkboxes for the next visit of the page ?

2005-10-05 Thread sandip_patil01
Hi All,

I have a button on abc.mxml when I click on that button next page 
say xyz.mxml is opening.
This xyz.mxml page has some checkboxes.

Let say I click on a button on abc.mxml then the next 
page xyz.mxml will open  say I have selected some of checkboxes 
from this page.

But when I do logout from xyz.mxml  when again if I click on the 
button from abc.mxml the checked values of that check boxes remains 
as it is.
I want to make them clear for every visit.

Any help will be appriciate.

Thx ,
Sandip patil.




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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




RE: [flexcoders] Question about drawing on the canvas

2005-10-05 Thread Mink, Joseph





I think theline below thatyou want 
is:

var ref_mc 
=myCanves.createChild(mx.containers.Canvas,undefined,{width:1000});
And then you want to draw your arrow directly on 
ref_mc.

ex
ref_mc.beginFill 
(someColor);
ref_mc.moveTo 
(someLocation);
...

Joey


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Prasad 
DhananjayaSent: Tuesday, October 04, 2005 10:55 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Question about 
drawing on the canvas
Hi Manish  all, The solution is to make it a 
child (add a new object as a child and draw on top of that object 
instead).sorry... , I didn't get the point yet.Is it 
Mean..addedObject = 
Object(myCanves.createChild());addedObject.createChild(arrow(target));orvar 
ref_mc 
=myCanves.createChild(mx.containers.Canvas,undefined,{width:1000});ref_mc.createChild(arrow(target));Please 
explain me little more.Thanks On 10/4/05, Prasad 
Dhananjaya [EMAIL PROTECTED] wrote:   Have a 
simple question about drawing on the canvas.   Below 
code draws an arrow between mousedown point and mouseup point.  It 
works well. But...   When I move canvas's 
scrollbar, arrow didn't move. Means it is NOT  on the canvas.Want to 
draw it ON the canvas. Tried several ways.  But failed. (I drawing 
square on the canvas using fillRect() is OK)  It indeed is on 
the Canvas, but it's not a "child" of the Canvas, and that's the reason 
it doesn't scroll along with other children.  The solution is to 
make it a child (add a new object as a child and draw on top of that 
object instead).From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Prasad Dhananjaya Sent: Tuesday, October 04, 2005 6:48 AM To: 
FlexML Subject: [flexcoders] Question about drawing on the 
canvas   Hi,  Have a simple question 
about drawing on the canvas.  Below code draws an arrow between 
mousedown point and mouseup point. It works well. But... 
 When I move canvas's scrollbar, arrow didn't move. Means it is 
NOT on the canvas.Want to draw it ON the canvas. Tried several 
ways. But failed. (I drawing square on the canvas using fillRect() is 
OK)  Can someone please tell me what's wrong.  
thanks,  
-- 
?xml version="1.0" encoding="utf-8"? mx:Application 
xmlns:mx="http://www.macromedia.com/2003/mxml" 
 mx:Script 
![CDATA[ var isPointerStarted = 
false; var 
bx:Number; var by:Number; 
 function pointerStart(target) 
{ 
if (isPointerStarted) 
return; 
isPointerStarted = 
true; 
bx = 
target.mouseX; 
by = 
target.mouseY; 
}  function 
pointerReleased(target) 
{ 
if (!isPointerStarted) 
return; 
target.lineStyle(2, 0x66, 
100); 
target.createChild(arrow(target)); 
isPointerStarted = 
false; 
//drawing squre on the 
canves 
var ref_mc = 
target.createChild(mx.containers.Canvas,undefined,{width:1000}); 
ref_mc.fillRect(900, 100, 910, 110, 0x00, 
30); 
}  function arrow(target) 
{ 
var w = target.mouseX - 
bx; 
var h = target.mouseY - 
by; 
var l = Math.sqrt(w * w + h * 
h); 
var 
size=8; 
var 
sharpness=0.5; 
var s = 
Math.sin(sharpness); 
var c = 
Math.cos(sharpness); 
if(l0){ 
w *= size / 
l; 
h *= size / 
l; 
target.moveTo(bx,by); 
target.lineTo(target.mouseX, 
target.mouseY); 
target.lineTo(target.mouseX - w * c - s * h, target.mouseY + w * s - h * 
c); 
target.moveTo(target.mouseX, 
target.mouseY); 
target.lineTo(target.mouseX - w * c + s * h, target.mouseY - w * s - h * 
c); 
} } ]] 
/mx:Script  mx:Canvas id="myCanves" 
 x="0" y="110" width="100%" 
height="225"  
borderStyle="solid" 
mouseUpSomewhere="pointerReleased(event.target)" 
mouseDown="pointerStart(event.target)" 
backgroundColor="#DEE0FE" 
backgroundAlpha="0" /mx:Canvas 
/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.



  









[flexcoders] Application built on Cairngorm framework, several instances problem

2005-10-05 Thread Stanislav Zayarsky
Hello Everybody,

I have next issue: I have built simple Rich Text Editor on Flex using
Cairngorm framework. All is working perfectly!

But, when I'm trying to create, for example, two instances in one
application...

The issue that we use ModelLocator class that has static properties
inside and this two instances are using the same properties.

So I'm wondering, is there a workaround about this.

I'm thinking to use singleton, and to create static array in
ModelLocator with objects that has properties for each instance, but
I'm not sure how then commands should access them. I can't figure
where to save index of that array.

Best regards
Stanislav


 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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




Re: AW: [flexcoders] Re: Number(011) = 9 ????

2005-10-05 Thread Darron J. Schall
Christoph Diefenthal wrote:

My last question was only, whether there is a way to use the Number class to
produce this output, because I thought that it is not the most
object-oriented way to use the global function parseInt(...)...
  


Use numVar = parseInt( string, base ) to convert a string to a number of 
a certain base.

Use numVar.toString( base ) to output a number in a certain base.

-d



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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




[flexcoders] Waterfall chart

2005-10-05 Thread Tom Fitzpatrick
I'd like to make a waterfall chart  (at least that's one name for it) - a 
version of the stacked bar chart. The first column is the total of three 
values. The next three columns represent the three separate values that 
make up the total, but instead of stacking they float next to each other 
at the appropriate height and with the appropriate color and tooltip info.

My question is - can the values in the ColumnSeries be determined using a 
function - kind of like a labelFunction for charts? This would enable me to 
calculate the value for the total column and the starting and ending 
values for the three floating columns. Or is there an easier/better way to 
accomplish this?

- Tom






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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




Re: [flexcoders] images being cached w/ mx:image

2005-10-05 Thread Raymond Camden
Eh? I've never heard of a flash plugin cache. It isn't in the
settings. The only thing close is the local storage option, which is
for shared objects I believe, not cached data.

On 10/5/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Maybe its the flash plugin cache. Right mouse and set all to 0.

 On 4 Oct 2005 at 16:27, Raymond Camden wrote:

  I am calling a custom control that makes use of mx:image. When I
  update the jpg file on the file system, it isn't reflected in Flex,
  even after a restart. Any ideas?
 


--
===
Raymond Camden, Director of Development for Mindseye, Inc (www.mindseye.com)

Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email: [EMAIL PROTECTED]
Blog : ray.camdenfamily.com
Yahoo IM : cfjedimaster

My ally is the Force, and a powerful ally it is. - Yoda


 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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




Re: [flexcoders] images being cached w/ mx:image

2005-10-05 Thread Raymond Camden
Production mode is false. I'm not @Embeding.

On 10/4/05, Roger Gonzalez [EMAIL PROTECTED] wrote:
  I am calling a custom control that makes use of mx:image. When I
  update the jpg file on the file system, it isn't reflected in Flex,
  even after a restart. Any ideas?

 Make sure that
 - you're not in production mode
 - you're not @Embed-ing a http URL

 -Roger

 Roger Gonzalez
 mailto:[EMAIL PROTECTED]




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









--
===
Raymond Camden, Director of Development for Mindseye, Inc (www.mindseye.com)

Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email: [EMAIL PROTECTED]
Blog : ray.camdenfamily.com
Yahoo IM : cfjedimaster

My ally is the Force, and a powerful ally it is. - Yoda


 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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




RE: [flexcoders] images being cached w/ mx:image

2005-10-05 Thread Carson Hager
The browser will definitely cache things unless you explicitly tell it
not to.  You can even see this under SSL with HTTPService calls which is
a no-no but it absolutely happens. You have to set the cache headers
explicitly from your web server.


Carson 



 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY ext. 89
Mobile: 1.703.489.6466
 
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Raymond Camden
Sent: Wednesday, October 05, 2005 7:55 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] images being cached w/ mx:image

Eh? I've never heard of a flash plugin cache. It isn't in the settings.
The only thing close is the local storage option, which is for shared
objects I believe, not cached data.

On 10/5/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Maybe its the flash plugin cache. Right mouse and set all to 0.

 On 4 Oct 2005 at 16:27, Raymond Camden wrote:

  I am calling a custom control that makes use of mx:image. When I 
  update the jpg file on the file system, it isn't reflected in Flex, 
  even after a restart. Any ideas?
 


--
===
Raymond Camden, Director of Development for Mindseye, Inc
(www.mindseye.com)

Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email: [EMAIL PROTECTED]
Blog : ray.camdenfamily.com
Yahoo IM : cfjedimaster

My ally is the Force, and a powerful ally it is. - Yoda


 Yahoo! Groups Sponsor ~--
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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



 




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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




[flexcoders] Re: how do i select a single datagrid cell not the whole row

2005-10-05 Thread bhaq1972
Thanks for your response David. This wont work for me because my 
datagrid is non-editable. 

Basically, I want the green highlight, that appears across the whole 
row (when you select using your mouse), to only appear on one cell.

thanks
Bod (bhaq1972)




--- In flexcoders@yahoogroups.com, David Harris [EMAIL PROTECTED] 
wrote:
 [your datagrid].focusedCell = {itemIndex:[your row 
number],columnIndex:[your
 coulmn number]};
 
 On 10/5/05, bhaq1972 [EMAIL PROTECTED] wrote:
 
   Everyone
 
  I want to be able to to select and highlight a single cell in a 
non
  editable datagrid. i'm thinking, on a DataGrid.cellPress, color 
the
  cell 
 
  any ideas/code would be grateful.
 
  regards
 
  bod(bhaq1972)
 
 
 
 
 
   --
  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 developmenthttp://groups.yahoo.com/gads?
t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=
Computer+software+developmentw3=Software+design+and+developmentw4=M
acromedia+flexw5=Software+development+best+practicec=5s=166.sig=L
-4QTvxB_quFDtMyhrQaHQ  Computer
  software developmenthttp://groups.yahoo.com/gads?
t=msk=Computer+software+developmentw1=Web+site+design+developmentw
2=Computer+software+developmentw3=Software+design+and+developmentw4
=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig
=lvQjSRfQDfWudJSe1lLjHw  Software
  design and developmenthttp://groups.yahoo.com/gads?
t=msk=Software+design+and+developmentw1=Web+site+design+development
w2=Computer+software+developmentw3=Software+design+and+development
w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.s
ig=1pMBCdo3DsJbuU9AEmO1oQ   Macromedia
  flexhttp://groups.yahoo.com/gads?
t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+sof
tware+developmentw3=Software+design+and+developmentw4=Macromedia+fl
exw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZ
I36cYzBjw  Software
  development best practicehttp://groups.yahoo.com/gads?
t=msk=Software+development+best+practicew1=Web+site+design+developm
entw2=Computer+software+developmentw3=Software+design+and+developme
ntw4=Macromedia+flexw5=Software+development+best+practicec=5s=166
.sig=f89quyyulIDsnABLD6IXIw
   --
  YAHOO! GROUPS LINKS
 
 
 - Visit your 
group flexcodershttp://groups.yahoo.com/group/flexcoders
 on the web.
  - To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]flexcoders-
[EMAIL PROTECTED]
  - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/.
 
 
   --
 




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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




[flexcoders] How to find out the thickness of the scroll bar?

2005-10-05 Thread Marcin Glowacki
How to find out the thickness of the scroll bar?
Is it available as some global variable, is it always the same?

Thanks,
Marcin




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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




Re: [flexcoders] How to find out the thickness of the scroll bar?

2005-10-05 Thread JesterXL
I think HScrollbar is always 16 wide, and VScrollbar is always 16 high.

:: checks ::

Hrm... well, screenshot reports 17, but I think that's a border.

- Original Message - 
From: Marcin Glowacki [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, October 05, 2005 11:03 AM
Subject: [flexcoders] How to find out the thickness of the scroll bar?


How to find out the thickness of the scroll bar?
Is it available as some global variable, is it always the same?

Thanks,
Marcin





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



 



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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




RE: [flexcoders] images being cached w/ mx:image

2005-10-05 Thread Kevin Langdon
If your talking about right clicking on the Flash Player and going to
Settings-Local Storage tab.  This is local storage for shared objects, not
for media like images.  Images are stored in the browser cache and would
need to be cleared through your browser.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, October 05, 2005 3:52 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] images being cached w/ mx:image

Maybe its the flash plugin cache. Right mouse and set all to 0.

On 4 Oct 2005 at 16:27, Raymond Camden wrote:

 I am calling a custom control that makes use of mx:image. When I 
 update the jpg file on the file system, it isn't reflected in Flex, 
 even after a restart. Any ideas?
 
 --
 ==
 = Raymond Camden, Director of Development for Mindseye, Inc 
 (www.mindseye.com)
 
 Member of Team Macromedia 
 (http://www.macromedia.com/go/teammacromedia)
 
 Email : [EMAIL PROTECTED]
 Blog : ray.camdenfamily.com
 Yahoo IM : cfjedimaster
 
 My ally is the Force, and a powerful ally it is. - Yoda
 
 
 --
 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. 
 
 
 


Mit freundlichen Grüßen

Jurek Raben


---
AMW Alster Media  Werbung GmbH
Jurek Raben
Friedrich-Ebert-Damm 160b
22047 Hamburg
Tel.: +49 (0)40 3068320
Fax: +49 (0)40 30683220  





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



 






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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




[flexcoders] How to jump to a node within a tree?

2005-10-05 Thread jrab2999
Hello,

I want to jump to a some node of a tree. The tree should open all
parent nodes, if needed. How is the possible?

It's always a childnode in the next lower level I want jump to. Is it
right then to get the currentnode with something like this:

treeid.setIsOpen(treeid.selectedNode,true,false,false);
var c=0;
while(c  treeid.selectedNode.length) {
  cnode = treeid.selectedNode.getTreeNodeAt(c);
  if (cnode.label == targetLabel) {
treeid.selectedNode = cnode;
break;
  }
}

Thanks.




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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




RE: [flexcoders] Waterfall chart

2005-10-05 Thread Ely Greenfield


Hi Tom. The best way to do this is to pre-process your dataprovider into
a synthetic one that has all of the summed values in it. Use that as the
dataprovider for the chart, and set the various min/max fields of the
series appropriately.


Ely.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Fitzpatrick
Sent: Wednesday, October 05, 2005 6:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Waterfall chart
Importance: High

I'd like to make a waterfall chart  (at least that's one name for it)
- a version of the stacked bar chart. The first column is the total of
three values. The next three columns represent the three separate values
that make up the total, but instead of stacking they float next to
each other at the appropriate height and with the appropriate color and
tooltip info.

My question is - can the values in the ColumnSeries be determined using
a function - kind of like a labelFunction for charts? This would enable
me to calculate the value for the total column and the starting and
ending values for the three floating columns. Or is there an
easier/better way to accomplish this?

- Tom






 Yahoo! Groups Sponsor ~--
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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



 




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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






[flexcoders] Flash Debug Player 8

2005-10-05 Thread charlespaz1
Does there exist yet a Flash Debug Player version 8?  I'd like the new
features of Flash Player 8, but need to keep the Debug player for Flex
building.




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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






RE: [flexcoders] images being cached w/ mx:image

2005-10-05 Thread Roger Gonzalez
Flash uses WinInet, which caches things according to your browser
settings.

In IE, 

Tools  Internet Options  General  Temporary Internet files  Settings

-rg
 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Raymond Camden
 Sent: Wednesday, October 05, 2005 7:57 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] images being cached w/ mx:image
 
 Production mode is false. I'm not @Embeding.
 
 On 10/4/05, Roger Gonzalez [EMAIL PROTECTED] wrote:
   I am calling a custom control that makes use of mx:image. When I 
   update the jpg file on the file system, it isn't 
 reflected in Flex, 
   even after a restart. Any ideas?
 
  Make sure that
  - you're not in production mode
  - you're not @Embed-ing a http URL
 
  -Roger
 
  Roger Gonzalez
  mailto:[EMAIL PROTECTED]
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 --
 ==
 =
 Raymond Camden, Director of Development for Mindseye, Inc 
 (www.mindseye.com)
 
 Member of Team Macromedia 
 (http://www.macromedia.com/go/teammacromedia)
 
 Email: [EMAIL PROTECTED]
 Blog : ray.camdenfamily.com
 Yahoo IM : cfjedimaster
 
 My ally is the Force, and a powerful ally it is. - Yoda
 
 
  Yahoo! Groups Sponsor 
 ~-- Most low income households are not 
 online. Help bridge the digital divide today!
 http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
 --
 --~- 
 
 --
 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
 
 
 
  
 
 
 


 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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






Re: [flexcoders] Flash Debug Player 8

2005-10-05 Thread JesterXL
What I've been doing is keeping Flash Player 7 Debug for IE.  This allows 
FlexBuilder to keep the debug player.

Then, I test in Firefox which has the Flash Player 8 non-debug.  So, I can 
debug if I need to in FlexBuilder, but see my F8 features actually work in 
Firefox.

If you think that is dumb, then just install the F8 player ActiveX here:
C:\Program Files\Macromedia\Flash 8\Players\Debug


- Original Message - 
From: charlespaz1 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, October 05, 2005 12:53 PM
Subject: [flexcoders] Flash Debug Player 8


Does there exist yet a Flash Debug Player version 8?  I'd like the new
features of Flash Player 8, but need to keep the Debug player for Flex
building.





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









 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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






RE: [flexcoders] Form in Repeater

2005-10-05 Thread Doodi, Hari - BLS CTR











Hi Abdul,

 Thanks
for your tip and I was able to complete my basic operations  displaying data
in a form which is repeated. Now I have couple of processing issues.
Based on value of discountFlag some FormItems should be enabled or disabled in
each repeated form. When I read Repeater class literature I found there are 2
useful events  repeat and repeatEnd. What are the possible arguments
available at each event? Which event the best in my case to implement functionality
I described above and if you dont mind can you (in fact any expert) send
psuedocode ? Thanks in advance and I appreciate any kind of help.



mx:Repeater id=Rptr dataProvider={myData}
repeat=showFlag(event.target) repeatEnd=rptDone() 

 mx:Form
width=830 height=298 vScrollPolicy=off verticalGap=0


 mx:FormItem
direction=horizontal width=100%
height=30

 mx:Text
text=Effective Date width=110 textDecoration=underline
fontSize=12 fontWeight=bold textAlign=left/

 mx:Spacer
width=100/

 mx:Label
text=Process Month :  fontSize=14 fontWeight=bold
color=#6633CC height=20 /

 mx:Label
id=irm_lb text={Rptr.currentItem.irm} fontSize=14
fontWeight=bold color=#6633CC height=20
/

 mx:Label
text=Discount Flag :  /

 mx:Label
text={Rptr.currentItem.discountFlag} /

 mx:Spacer
width=100/

 mx:Spacer
width=31%/

 mx:Image
source=@Embed('assets/icons/rolling.gif') mouseDown=showData(event.target.instanceIndices)
/

 
/mx:FormItem

 mx:FormItem
direction=horizontal width=100%
height=30

 ..

 
/mx:FormItem

 

 /mx:Form

/mx:Repeater



script functions:



 function
showFlag(ref:Object)

 {

 Alert.show('repricing
flag is : '+ref.discountFlag,ref.index+  index); 

 }

 function
rptDone()

 {

 var
item = Rptr.getRepeaterItem(0);

 

 Alert.show('repricingFlag
: '+item.discountFlag,repeater done );

 }



Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Abdul Qabiz
Sent: Tuesday, October 04, 2005 1:36 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Form in
Repeater



I think, it should work.
Can you check the length of array you are assigning as dataProvider to
Repeater.



If you can post the
sample-but-complete code here, we can see what is going wrong here..



-abdul









From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Doodi, Hari - BLS CTR
Sent: Tuesday, October 04, 2005 8:53 PM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] Form in
Repeater

Hi experts,


Is it possible to use mx:Form/mx:Form tags in side mx:Repeater/mx:Repeater
tags. The situation is I have to display 5 months data on one screen. I was
able to display One month data came from remote object call. Now my next task
is to display 5 months data. I thought it will be simple to use repeater around
Form but looks like it is not simple. When I use it I got a blank screen? Any
ideas? I appreciate any suggestions about how to implement  displaying 5
months dynamic data on one screen? 



Thanks! 
Hari












--
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] CFC Cashing

2005-10-05 Thread Greg Johnson
I make a change to the CFC and the Flex App doesn't see it unless I 
change the CFC's filename.

How can I force it to see the updates without having to constantly play 
musical filenames?

-- 
Greg Johnson
Owner  Lead Technician
[EMAIL PROTECTED]

Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
--
www.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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






RE: [flexcoders] Creating Children in a Dynamic Accordion

2005-10-05 Thread Shahnavaz Alware
Title: Message










Hi Mark,



Try this 



mx:Accordion id=inputDetail
height=100% width=100% 

creationComplete=addStuff(query.input)



 import
mx.controls.Label;

 import
mx.controls.TextArea; 

 import
mx.controls.VBox;



function addStuff(elements) {
 var count:Number = elements.length;
 for (var i=0; icount; i++) {
 var element:String =
elements[i].name;

 var type:String
= elements[i].type;



 var vbox = VBox(inputDetail.createSegment(VBox,
element, element, undefined));



 var newLabel = Label(vbox.createChild(Label,
undefined, Some Data));

 }

}













From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Wales
Sent: Wednesday, October 05, 2005
12:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Creating
Children in a Dynamic Accordion







Hello,











I am trying to dynamically/conditionally add children to a
set of dynamically/conditionally created Accordion segments.











At present,I createthe segments I
wantusing a loop over my array:











mx:Accordion
id=inputDetail height=100% width=100% 





creationComplete=addStuff(query.input)





function addStuff(elements) {
 var count:Number = elements.length;
 for (var i=0; icount; i++) {
 var element:String = elements[i].name;





 var type:String
= elements[i].type;











 var vbox =
inputDetail.createSegment(mx.containers.VBox, element, element, undefined);











 var newLabel =
vbox.createChild(mx.controls.Label, undefined, Some Data);





 }





}











The createChild function does not yield any results. Does
anyone have any suggestions?











Thanks,











-Mark























--
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] CFC Cashing

2005-10-05 Thread Peter Farland
Are you using the CFC as a web service?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg Johnson
Sent: Wednesday, October 05, 2005 10:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] CFC Cashing

I make a change to the CFC and the Flex App doesn't see it unless I
change the CFC's filename.

How can I force it to see the updates without having to constantly play
musical filenames?

--
Greg Johnson
Owner  Lead Technician
[EMAIL PROTECTED]

Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
--
www.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560



 Yahoo! Groups Sponsor ~--
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet
Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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



 






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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






[flexcoders] Pass data from a popUp to main.mxml

2005-10-05 Thread rgwilson25
I am looking to do is create a popup component that I can pass data 
from the popup.mxml to the main.mxml file. In main.mxml I have a click 
event (click=showPopup();) that displays the custom component. 
However, I need to pass the data from the popup.mxml custom component 
back to my main.mxml. 

I have no problem passing variables inside custom component 
{ID.Property}, but getting another custom component or main.mxml file 
to see these variables is what I need some clarification on how to go 
about doing this.





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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






[flexcoders] Re: Getting FlexUnit Example to Work

2005-10-05 Thread fowleryj
Thanks-- that worked! However, I had to copy and paste the samples
directory into my WEB-INF/flex/user_classes directory, because I have
my flexunit sitting at the same level as my com folder.

I'm using Cairngorm as a framework, so I have a web folder that
contains as sub-folders the folders com (which contains as
sub-folders all of the folders required by Cairngorm) and flexunit
(which contains as sub-folders docs, images, src and the folders
they contain) and WEB-INF.

Where did you install flexunit when you unzipped it? Where does it fit
into your application's directory structure?

--- In flexcoders@yahoogroups.com, hari.ibs [EMAIL PROTECTED] wrote:
 Hi!
  Comment the following line in your AllTest.as which is located in
 WEB-INF/flex/user-classes/samples/test/org/iterationtwo/AllTests.as
 testSuite.addTest( TestSuiteWithSetUpTearDown.suite() );
 or else
 update the AllTests.as like this:
 
 import samples.test.com.iterationtwo.*;
 
 import flexunit.framework.*;
 
 import flexunit.extensions.*;
 
 class samples.test.com.iterationtwo.AllTests
 
 {
 
 public static function suite() : Test
 
 {
 
 var testSuite:TestSuite = new TestSuite();
 
 testSuite.addTest( new TestSuite( TestMoney ) );
 
 testSuite.addTest(new TestSuite(TestMoneyWithFailingTests));
 
 testSuite.addTest( new TestSuite( TestMoneyWithSetUpTearDown ) );
 
 //testSuite.addTest( TestSuiteWithSetUpTearDown.suite() );
 
 testSuite.addTest( new TestSuite( TestHari ) );
 
 return testSuite;
 
 }
 
 }
 If any doubts in this regard please mail me back..
  Regards
 Harinath K
 
  On 10/4/05, fowleryj [EMAIL PROTECTED] wrote:
 
  Has anybody had problems getting FlexUnit's examples to work?
 
  I've done the following:
 
  - installed FlexUnit (
  - put the FlexUnit.swc file in my WEB-INF/flex/user_classes directory
  - put the flexunit-manifest.xml file in my WEB-INF/flex directory
  - added this to my flex-config.xml:
  namespace uri=http://www.iterationtwo.com/flexunit;
  manifest/WEB-INF/flex/flexunit-manifest.xml/manifest
  /namespace
 
  However, when I try to run the example (RunTests.mxml), I get this:
  Warning /flexunit/RunTests.mxml:20
  Changes to unknown property, tests, will not be detected.
  Warning /flexunit/RunTests.mxml:20
  Changes to unknown property, flexunit, will not be detected.
  Warning /flexunit/RunTests.mxml:20
  Changes to unknown property, AllTests, will not be detected.
  Error /flexunit/RunTests.mxml:20
  There is no method with the name 'tests'.
 
  Can anyone give me some insight?
  Thanks




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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






RE: [flexcoders] Flex tree labelFunction Help

2005-10-05 Thread Tracy Spratt










That is a very poor sample app:

1) the xml file is not valid, multiple mismatched start-end tags

2) The mxml file is invalid, comments before the ?xml tag

3) The model source path and filename are wrong



Next time, please run the sample to make
sure it works. Also I do not see an implementation of any of the
suggestions I made, like labelFunction. If it had not been
so easy to fix, I would have quickly stopped trying.



Now, before we look at labelFunction,
there is a larger issue. Your source xml has more nodes in it than your desired
tree structure. The tree will faithfully render all the nodes in the source
xml, and we cannot control that directly. So the tree dataProvider XML
will need to be built using the source xml.



You can do this on the server, (manually,
or using XSLT, if you have the necessary skills), or you can do it in action script
on the client. Client side, you will be recursively traversing the xml
tree and conditionally building an xml string for your tree dataProvider, or
building it out of TreeNode objects.



In the mean time, below is your sample app
modified to use a labelFunction that simply displays the xml with tags as
labels for the element nodes and the node value for the text nodes. Note
that I changed mx:Model to mx:XML



Tracy



?xml version=1.0
encoding=utf-8?



mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

mx:Script![CDATA[



 //labelFunction

 private
function lfTree(oNode:XMLNode):String

 {

 var
sNodeType:String = oNode.nodeType.toString();

 if
(sNodeType == 3) { //3
indicates a text node

 return
oNode.nodeValue;;

 }

 else
{ //1
is an element node

 return
oNode.nodeName;

 }

 }//lfTree

]]/mx:Script



mx:XML
id=DocumentMaster source=DocumentMaster.xml/

mx:VBox
height=100%

 

 mx:Tree
id=myTree height=100% width=100% 

 labelFunction=lfTree
 

 mx:dataProvider

 
{DocumentMaster}


 /mx:dataProvider

 /mx:Tree

/mx:VBox





/mx:Application















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Augie Marcello III
Sent: Wednesday, October 05, 2005
9:59 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex
tree labelFunction Help





Thanks for your help
Tracy.
I tried what you told me below and I still could not get it to work. I have
enclosed and attached a brief example if someone has a minute to help me out,
it would be much appreciated, and I will repay the favor briefly when I send
out some examples to the group on bringing 3D aspects to Flex GUI's.

Here is my problem:

I need to Display in a tree:

document Name
 ModuleName
 RName

These three fields would be the Label
and for the data fields I would be using 

 DMKey
  MOKey
 RSKey

So in a perfect XML world my XML file would look like this:

I need to Display in a tree:

DocumentName
 ModuleName
 RName

These three fields would be the Label and for the data fields I would be using:

 DMKey
 MOKey
 RSKey

So in a perfect XML world my file would look like this:

node
 node label=Doc Type 1 data="">
 node label=Module 1 Name
data="">
node
label=R Name 1 data="" /
node label=R
Name 2 data="" /
  /node
 /node
/node


Origanal Message
Hi all,
Can someone please help me out using the Flex tree
labelFunction. I have a massive XML document with no
labels specified. I need to right a function that
grabs only nodes and display them within my tree
control.

Thank you in advance. Much Appreciated.
-Augie


//Code Below and Attached
***tree.mxml*

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml

mx:VBox height=100%
 mx:Model id=DocumentMaster
source=DocumentMaster2.xml/

  mx:Tree id=myTree
height=100% width=100%
borderStyle=none 
  
   
  
mx:dataProvider


{DocumentMaster}
 
/mx:dataProvider

  /mx:Tree
/mx:VBox

/mx:Application


*DocumentMaster.xml**

 DocumentMaster
 DMKey1/DMKey
 DocumentTypeDoc Type
1/DocumentType
 DocumentSubTypeDOc Sub Type
1 /DocumentSubType
 DocumentNameDocument One Name
1/DocumentName

DocumentNumber12345/DocumentNumber
 
   Modules
  
MOKey1/MOKey
  
DMKey1/DMKey
  
ModuleNameModule 1 Name/ModuleName
  
ModuleOrder1/ModuleOrder
  
ModuleStatusActive/ModuleStatus
   
   
RSets

RSKey1/RSKey

MOKey1/MOKey

RTypeAction/RType

RNameR Name 1/RuName

RuleStatusActive 1/RStatus

ROrder1/ROrder
   
/RuleSets

   
RSets

RSKey2/RSKey

MOKey1/MOKey

RTypeAction 2/RType

RNameR Name 2/RName

RStatusActive 2/RStatus
   
ROrder2/ROrder
   
/RSets

   
RSets

RSKey3/RSKey

MOKey1/MOKey

RTypeAction 3/RType

RNameR Name 3/RuName

RStatusActive 3/RStatus

ROrder3/ROrder 
   
/RSets

   /Modules
 /DocumentMaster
 
 DocumentMaster
 DMKey2/DMKey
  DocumentTypeDoc Type
2/DocumentType
 DocumentSubTypeDOc Sub Type
2 /DocumentSubType
 DocumentNameDocument Two
Name 2/DocumentName


[flexcoders] Pass data from child component to parent in wizard app

2005-10-05 Thread face7hill
Hello All,

I have a wizard type app called main.mxml with three children 
(screen1, screen2 and screen3).  I have a button in main.mxml 
called nextButton.  Inside screen1.mxml are a couple of radio 
buttons that a user can select.  How do I get the selected radio 
button (in the child component) to broadcast to the nextButton (in 
the parent app) where it should point to?  For example, in the code 
below, on screen1.mxml, I have a function:

//this function is fired when a user selects a radio 
button
function buttonClicked( event : Object ) : Void {

//this works
//sets the status label in the parent app

mx.core.Application.application.setStatusLabel
(event.target.data);

//this does not work
//trying to set where nextButton (in the 
parent app) will point to when the nextButton is clicked

mx.core.Application.application.nextButton.click = 
mx.core.Application.application.goToScreenName(event.target.data);
}

Am I approaching this the wrong way?  Any suggestions?  I am 
essentially trying to create a wizard like application where the 
flow from screen to screen will be based on the user's input on each 
screen, so the nextButton.click in the parent app will be 
dynamically assigned.
Thank you for any help!



!--  main.mxml --
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
xmlns=* width=100% height=100% pageTitle=Wizard Question 
initialize=initApp() 

mx:Script 
![CDATA[ 

//This function is for jumping from screen 
to screen outside of the flow when debugging
function jumpToScreen(x){
mainViewStack.selectedIndex = x -1;

}

function goToScreenNumber(x){
mainViewStack.selectedIndex = x-1;
}

function goToScreenName(x){
mainViewStack.selectedChild = x;
}

function initApp(){
//list initialization functions here
}

function setPanelTitle(x){
mainPanel.title = x;

}

function setStatusLabel (x){
statusLabel.text = x;
}

]] 
/mx:Script 

!-- jump to form (for debugging screens)--
mx:HBox width=100% horizontalAlign=right  
verticalAlign=bottom borderStyle=none

mx:HBox width=50% horizontalAlign=right   

mx:Form id=showMeScreenForm 
borderStyle=none marginTop=0 marginBottom=0
mx:FormItem label=jump to screen: 
direction=horizontal horizontalAlign=right
mx:TextInput 
id=showMeScreenTextInput width=60/
mx:Button 
id=showMeScreenButton label=Go click=jumpToScreen
(showMeScreenTextInput.text);/
/mx:FormItem
/mx:Form
/mx:HBox
/mx:HBox


!-- Main Panel -- 
mx:Panel id=mainPanel title= width=100% height=100% 
styleName=mainPanel 
!-- Main ViewStack -- 
mx:ViewStack id=mainViewStack width=100% 
height=100% 


!-- mainViewStack.selectedChild=screen1  --
 
screen1 id=screen1 label=screen1/

!-- mainViewStack.selectedChild=screen2 -- 
screen2 id=screen2 label=screen2/

!-- mainViewStack.selectedChild=screen3 -- 
screen3 id=screen3/


/mx:ViewStack 
!-- End Main ViewStack -- 
!-- The Control Bar -- 
mx:ControlBar 
mx:HBox width=50% 
horizontalAlign=left 
mx:Label 
id=statusLabel text= width=200/ 
/mx:HBox 
mx:HBox width=50% 
horizontalAlign=right 
mx:Button 
id=backButton label=Back/ 
mx:Button 
id=nextButton label=Next/ 
/mx:HBox 

RE: [flexcoders] Pass data from child component to parent in wizard app

2005-10-05 Thread Mink, Joseph
I'm not totally sure of your approach, but as far as the specifc line
giving you trouble (mx.core.Application.application.nextButton.click =
mx.core.Application.application.goToScreenName(event.target.data);), did
you happen to trace or log the value of event.target.data?

I think if I were making a wizard, I would use a different mxml
component for each wizard screen.  And I would store the input from each
wizard screen in the parent application.

Hope something here was useful to you, though I doubt it : )



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of face7hill
Sent: Wednesday, October 05, 2005 3:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Pass data from child component to parent in wizard
app


Hello All,

I have a wizard type app called main.mxml with three children 
(screen1, screen2 and screen3).  I have a button in main.mxml 
called nextButton.  Inside screen1.mxml are a couple of radio 
buttons that a user can select.  How do I get the selected radio 
button (in the child component) to broadcast to the nextButton (in 
the parent app) where it should point to?  For example, in the code 
below, on screen1.mxml, I have a function:

//this function is fired when a user selects a radio 
button
function buttonClicked( event : Object ) : Void {

  //this works
  //sets the status label in the parent app

  mx.core.Application.application.setStatusLabel
(event.target.data);
  
  //this does not work
  //trying to set where nextButton (in the 
parent app) will point to when the nextButton is clicked

  mx.core.Application.application.nextButton.click = 
mx.core.Application.application.goToScreenName(event.target.data);
}

Am I approaching this the wrong way?  Any suggestions?  I am 
essentially trying to create a wizard like application where the 
flow from screen to screen will be based on the user's input on each 
screen, so the nextButton.click in the parent app will be 
dynamically assigned.
Thank you for any help!



!--  main.mxml --
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
xmlns=* width=100% height=100% pageTitle=Wizard Question 
initialize=initApp()  
  
  mx:Script 
![CDATA[ 

  //This function is for jumping from screen 
to screen outside of the flow when debugging
  function jumpToScreen(x){
mainViewStack.selectedIndex = x -1;
  
  }
  
  function goToScreenNumber(x){
mainViewStack.selectedIndex = x-1;
  }

  function goToScreenName(x){
mainViewStack.selectedChild = x;
  }

  function initApp(){
//list initialization functions here
  }
  
  function setPanelTitle(x){
mainPanel.title = x;
  
  }
  
  function setStatusLabel (x){
statusLabel.text = x;
  }

]] 
/mx:Script 

  !-- jump to form (for debugging screens)--
  mx:HBox width=100% horizontalAlign=right  
verticalAlign=bottom borderStyle=none

mx:HBox width=50% horizontalAlign=right  

  mx:Form id=showMeScreenForm 
borderStyle=none marginTop=0 marginBottom=0
mx:FormItem label=jump to screen: 
direction=horizontal horizontalAlign=right
  mx:TextInput 
id=showMeScreenTextInput width=60/
  mx:Button 
id=showMeScreenButton label=Go click=jumpToScreen
(showMeScreenTextInput.text);/
/mx:FormItem
  /mx:Form
/mx:HBox
  /mx:HBox
  

!-- Main Panel -- 
mx:Panel id=mainPanel title= width=100% height=100% 
styleName=mainPanel 
!-- Main ViewStack -- 
mx:ViewStack id=mainViewStack width=100% 
height=100% 


!-- mainViewStack.selectedChild=screen1  --
 
  screen1 id=screen1 label=screen1/

!-- mainViewStack.selectedChild=screen2 -- 
  screen2 id=screen2 label=screen2/

!-- mainViewStack.selectedChild=screen3 -- 
  screen3 id=screen3/
  
  
/mx:ViewStack 
!-- End Main ViewStack -- 
!-- The Control Bar -- 
mx:ControlBar 
mx:HBox width=50% 
horizontalAlign=left 

Re: [flexcoders] extended tree class with improved drag and drop feedback available

2005-10-05 Thread Rick Schmitty



Hi Ed, thanks for sharing this tutorial, very impressive!

This might end up being a question for Matt and the MM guys, but I'm
getting some odd behavior when using the treeDataProvider API to form
the DP instead of mx:XML. Drag and drop ends up with a bunch of
linked objects or something. Give it a whirl below to see what I
mean


When you debug the 2 treeDataproviders their structure is different, which I wasnt expecting either

Taking the example from MM:
http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentationfile=0225.htm



In your demo.mxml add the following to the mx:Script block

// Import the TreeNode.
 import mx.controls.treeclasses.TreeNode; 
 // Create a data provider variable.
 var treeDP2; 

 function initTree(){
 // Populate the data provider variable with the root node, 
 // and two subnodes.
 treeDP2 = new TreeNode();
 var root = treeDP2.addTreeNode(root,0);
 root.addTreeNode(node 1 ,1);
 root.addTreeNode(node 2,2);

 // Create a third subnode, and two subnodes of it.
 var node3 = root.addTreeNode(node 3,3);
 node3.addTreeNode(node 3-0, 3-0);
 node3.addTreeNode(node 3-1, 3-1);
  
  var root2 = treeDP2.addTreeNode(root2,0-2);
 root2.addTreeNode(node2 1 ,1-2);
 root2.addTreeNode(node2 2,2-2);

 // Create a third subnode, and two subnodes of it.
 var node32 = root2.addTreeNode(node2 3,3-2);
 node32.addTreeNode(node2 3-0, 3-0-2);
 node32.addTreeNode(node2 3-1, 3-1-2);

 // Initialize the tree data provider.
 myTree.dataProvider = treeDP2; 
 }

and then the corresponding tree control beneath the existing one

eeControls:Tree id=myTree
dragEnabled=true 
initialize=initTree();
dragOver=doDragOver(event)
dragDrop=doDragDrop(event)
dragEnter=doDragEnter(event)

highlightColor=#00FFCC
highlightAlpha=40
showOpenFolderHighlight=true
width=350 height=400
/



On 7/19/05, edeustace [EMAIL PROTECTED] wrote:
hello,i was working on a project recently where the client wanted the dragand drop behaviour of the tree to be improved as the tree they wereusing only had folders in it and they felt the black line wasn't very
intuitive.so i extended the tree class for them, and now i've extended it againto handle folders and items. so it should be of use to somebody.the source code and a tutorial is at:
http://ed.eustace.net/index.php?id=15itemId=5sectionId=1i'd welcome feedback on both as this is my first foray into flex.thanksed--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/






--
Flexcoders 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: CFC Cashing

2005-10-05 Thread Tariq Ahmed






This may help:

http://www.bpurcell.org/blog/index.cfm?mode=entryentry=965




kg4awg wrote:

  --- In flexcoders@yahoogroups.com, "Peter Farland" [EMAIL PROTECTED] wrote:
  
  
Are you using the CFC as a web service?


  
  
Ya, im calling it from flex as a webservice, however I have not
registered it as a webservice in coldfusion admin





  








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



  










[flexcoders] Re: CFC Cashing

2005-10-05 Thread Greg Johnson
Ya, im calling it from flex as a webservice, however I have not
registered it as a webservice in coldfusion admin

--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] 
wrote:
 Are you using the CFC as a web service?
 





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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






[flexcoders] Odd ComboBox Population Behavior

2005-10-05 Thread fowleryj
Does anyone have any idea why a ComboBox on a pop-up window (which is
being populated with the results of a stored procedure) will not
populate the first time the window pops up, but will populate once the
window is closed and re-opened? 

The dataProvider for the ComboBox is stored in a ModelLocator specific
to that particular window. I've tried this with and without calling
the ModelLocator's initialise() method, and I get the same behavior
both times.




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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






RES: [flexcoders] Getting a null object reference

2005-10-05 Thread Michel Bertrand
Title: Mensagem





Hi 
!

You 
were right ! Iadded"creationComplete" to Compositionand now I 
have everything working ! Thank you very much !

My 
last test fail due to a mistake.

Regards,
Michel.




  
  -Mensagem original-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de 
  Matt ChotinEnviada em: terça-feira, 4 de outubro de 2005 
  20:57Para: flexcoders@yahoogroups.comAssunto: RE: 
  [flexcoders] Getting a null object reference
  
  Hmm, I dont have 
  time to dig but generally that should work Id think. What if you put a 
  button in Composition.mxml that calls initialize() and see if its not null 
  then. Clearly this is just an ordering problem but I cant tell why off 
  the top of my head.
  
  
  
  
  
  From: 
  flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] 
  On Behalf Of Michel 
  BertrandSent: Tuesday, 
  October 04, 2005 11:21 AMTo: 
  flexcoders@yahoogroups.comSubject: RES: [flexcoders] Getting a null 
  object reference
  
  
  Thank you for your 
  suggestion ... I changed to creationComplete, but still not working ... 
  
  
-Mensagem 
original-De: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] Em nome de Matt ChotinEnviada em: terça-feira, 4 de outubro 
de 2005 01:32Para: 
flexcoders@yahoogroups.comAssunto: RE: [flexcoders] Getting a 
null object reference
Try using 
creationComplete in your Composition.mxml instead of initialize and see if 
that works.

Matt





From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Michel 
BertrandSent: Monday, 
October 03, 2005 11:45 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Getting a null 
object reference

Hi ! 

I'm trying to do the 
following: 
mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" 
 
 
 
 xmlns:framework="com.datasul.framework.ui.template.view.*" 
 
 
 
 width="100%" 
height="100%"  
 
 
 initialize="initialize()" 
 
 mx:Script 
 ![CDATA[ 
 
 import 
com.datasul.framework.ui.template.model.CompositionModel; 
 
 
 
 var model:CompositionModel; 
 
 
 function initialize() : 
Void {  
 
 model = new 
CompositionModel(); 
 
 } 
 ]] 
 /mx:Script 

 
framework:Composition 
width="100%" height="100%" 
 
 framework:model{this.model}/framework:model 
 /framework:Composition 

/mx:Application 

I would like to bind the value 
of "model" with the 
"model" property of 
the Composition component. Like: 
"Composition.mxml" 
mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml" 
initialize="initialize()" 
width="100%" height="100%" 
 mx:Panel 
id="mainPanel" 
 
 mx:Script 
 
 ![CDATA[ 
 
 
 import 
com.datasul.framework.ui.template.model.CompositionModel; 

 
 
 var model:CompositionModel; 

 
 
 function initialize(): Void 
{  
 
 
 if ( model == 
undefined ) {  
 
 
 
 mx.controls.Alert.show("MODEL = 
NULL");  
 
 
 } 
 
 
 } 
 
 ]] 
 
 /mx:Script 

 
.. 
 
/mx:Panel 
/mx:Canvas 

Everytime I run the code I get 
a message saying "MODEL = NULL". Why I don't have an object 
instance since model has been already instantiated ? 

Any help or suggestion will be 
very appreciated. 
Thanks in advance 
! Michel. 


  





--
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] Pass data from child component to parent in wizard app

2005-10-05 Thread Tracy Spratt
Why not just set an an instance variable(some people say global) like:
mx.core.Application.application._NextButtonViewIndex =
event.target.data;

On Click you could then do: 
myViewstack.selectedIndex = _NextButtonViewIndex;  

You are using a ViewStack, I hope? 

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mink, Joseph
Sent: Wednesday, October 05, 2005 3:49 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Pass data from child component to parent in
wizard app

I'm not totally sure of your approach, but as far as the specifc line
giving you trouble (mx.core.Application.application.nextButton.click =
mx.core.Application.application.goToScreenName(event.target.data);), did
you happen to trace or log the value of event.target.data?

I think if I were making a wizard, I would use a different mxml
component for each wizard screen.  And I would store the input from each
wizard screen in the parent application.

Hope something here was useful to you, though I doubt it : )



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of face7hill
Sent: Wednesday, October 05, 2005 3:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Pass data from child component to parent in wizard
app


Hello All,

I have a wizard type app called main.mxml with three children 
(screen1, screen2 and screen3).  I have a button in main.mxml 
called nextButton.  Inside screen1.mxml are a couple of radio 
buttons that a user can select.  How do I get the selected radio 
button (in the child component) to broadcast to the nextButton (in 
the parent app) where it should point to?  For example, in the code 
below, on screen1.mxml, I have a function:

//this function is fired when a user selects a radio 
button
function buttonClicked( event : Object ) : Void {

  //this works
  //sets the status label in the parent app

  mx.core.Application.application.setStatusLabel
(event.target.data);
  
  //this does not work
  //trying to set where nextButton (in the 
parent app) will point to when the nextButton is clicked

  mx.core.Application.application.nextButton.click = 
mx.core.Application.application.goToScreenName(event.target.data);
}

Am I approaching this the wrong way?  Any suggestions?  I am 
essentially trying to create a wizard like application where the 
flow from screen to screen will be based on the user's input on each 
screen, so the nextButton.click in the parent app will be 
dynamically assigned.
Thank you for any help!



!--  main.mxml --
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
xmlns=* width=100% height=100% pageTitle=Wizard Question 
initialize=initApp()  
  
  mx:Script 
![CDATA[ 

  //This function is for jumping from screen 
to screen outside of the flow when debugging
  function jumpToScreen(x){
mainViewStack.selectedIndex = x -1;
  
  }
  
  function goToScreenNumber(x){
mainViewStack.selectedIndex = x-1;
  }

  function goToScreenName(x){
mainViewStack.selectedChild = x;
  }

  function initApp(){
//list initialization functions here
  }
  
  function setPanelTitle(x){
mainPanel.title = x;
  
  }
  
  function setStatusLabel (x){
statusLabel.text = x;
  }

]] 
/mx:Script 

  !-- jump to form (for debugging screens)--
  mx:HBox width=100% horizontalAlign=right  
verticalAlign=bottom borderStyle=none

mx:HBox width=50% horizontalAlign=right  

  mx:Form id=showMeScreenForm 
borderStyle=none marginTop=0 marginBottom=0
mx:FormItem label=jump to screen: 
direction=horizontal horizontalAlign=right
  mx:TextInput 
id=showMeScreenTextInput width=60/
  mx:Button 
id=showMeScreenButton label=Go click=jumpToScreen
(showMeScreenTextInput.text);/
/mx:FormItem
  /mx:Form
/mx:HBox
  /mx:HBox
  

!-- Main Panel -- 
mx:Panel id=mainPanel title= width=100% height=100% 
styleName=mainPanel 
!-- Main ViewStack -- 
mx:ViewStack id=mainViewStack width=100% 
height=100% 


!-- mainViewStack.selectedChild=screen1  --
 
  screen1 

RE: [flexcoders] Re: Number(011) = 9 ????

2005-10-05 Thread Blake Kadatz
You might want to alter Abdul's function slightly if you expect more
than one leading zero:

function getDecimalNumber(numStr:String):Number
{
if(numStr.indexOf(0)== 0)
{
return getDecimalNumber(numStr.substr(1));
}

return Number(numStr);
}


Cheers,

Blake


 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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






RE: [flexcoders] Pass data from a popUp to main.mxml

2005-10-05 Thread Tracy Spratt
This example is oriented toward passing data into the pop up, but the
application reference that gets passed in can be used to set or get data
from the main app.

http://www.cflex.net/showfiledetails.cfm?ObjectID=197

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rgwilson25
Sent: Wednesday, October 05, 2005 1:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Pass data from a popUp to main.mxml

I am looking to do is create a popup component that I can pass data 
from the popup.mxml to the main.mxml file. In main.mxml I have a click 
event (click=showPopup();) that displays the custom component. 
However, I need to pass the data from the popup.mxml custom component 
back to my main.mxml. 

I have no problem passing variables inside custom component 
{ID.Property}, but getting another custom component or main.mxml file 
to see these variables is what I need some clarification on how to go 
about doing 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



 








 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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






Re: [flexcoders] How to find out the thickness of the scroll bar?

2005-10-05 Thread Manish Jethani
On 10/5/05, JesterXL [EMAIL PROTECTED] wrote:
 I think HScrollbar is always 16 wide, and VScrollbar is always 16 high.

 :: checks ::

 Hrm... well, screenshot reports 17, but I think that's a border.

I think I remember having read in the docs that it's 16 by default.

Anyway, so the way to check the thickness of the scrollbar is to query
its width or height property.  Note that for both the horizontal and
vertical scrollbar the same property stores the actual thickness --
and I forgot which one it is (width or height).


 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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






[flexcoders] Re: Pass data from child component to parent in wizard app

2005-10-05 Thread face7hill
Tracy,

This is awesome--thank you very much!  Exactly what I was looking 
for.  I was doing all kinds of crazy stuff with dispatchEvent and 
addEventListener and was having no luck.  Thanks again!

--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] 
wrote:
 Why not just set an an instance variable(some people say global) 
like:
 mx.core.Application.application._NextButtonViewIndex =
 event.target.data;
 
 On Click you could then do: 
 myViewstack.selectedIndex = _NextButtonViewIndex;  
 
 You are using a ViewStack, I hope? 
 
 Tracy
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Mink, Joseph
 Sent: Wednesday, October 05, 2005 3:49 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Pass data from child component to parent 
in
 wizard app
 
 I'm not totally sure of your approach, but as far as the specifc 
line
 giving you trouble 
(mx.core.Application.application.nextButton.click =
 mx.core.Application.application.goToScreenName
(event.target.data);), did
 you happen to trace or log the value of event.target.data?
 
 I think if I were making a wizard, I would use a different mxml
 component for each wizard screen.  And I would store the input 
from each
 wizard screen in the parent application.
 
 Hope something here was useful to you, though I doubt it : )
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of face7hill
 Sent: Wednesday, October 05, 2005 3:22 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Pass data from child component to parent in 
wizard
 app
 
 
 Hello All,
 
 I have a wizard type app called main.mxml with three children 
 (screen1, screen2 and screen3).  I have a button in 
main.mxml 
 called nextButton.  Inside screen1.mxml are a couple of radio 
 buttons that a user can select.  How do I get the selected radio 
 button (in the child component) to broadcast to the nextButton (in 
 the parent app) where it should point to?  For example, in the 
code 
 below, on screen1.mxml, I have a function:
 
 //this function is fired when a user selects a radio 
 button
 function buttonClicked( event : Object ) : Void {
 
   //this works
   //sets the status label in the parent app
 
   mx.core.Application.application.setStatusLabel
 (event.target.data);
   
   //this does not work
   //trying to set where nextButton (in the 
 parent app) will point to when the nextButton is clicked
 
   mx.core.Application.application.nextButton.click = 
 mx.core.Application.application.goToScreenName(event.target.data);
 }
 
 Am I approaching this the wrong way?  Any suggestions?  I am 
 essentially trying to create a wizard like application where the 
 flow from screen to screen will be based on the user's input on 
each 
 screen, so the nextButton.click in the parent app will be 
 dynamically assigned.
 Thank you for any help!
 
 
 
 !--  main.mxml --
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
 xmlns=* width=100% height=100% pageTitle=Wizard Question 
 initialize=initApp()  
   
   mx:Script 
 ![CDATA[ 
 
   //This function is for jumping from screen 
 to screen outside of the flow when debugging
   function jumpToScreen(x){
 mainViewStack.selectedIndex = x -1;
   
   }
   
   function goToScreenNumber(x){
 mainViewStack.selectedIndex = x-1;
   }
 
   function goToScreenName(x){
 mainViewStack.selectedChild = x;
   }
 
   function initApp(){
 //list initialization functions here
   }
   
   function setPanelTitle(x){
 mainPanel.title = x;
   
   }
   
   function setStatusLabel (x){
 statusLabel.text = x;
   }
 
 ]] 
 /mx:Script 
 
   !-- jump to form (for debugging screens)--
   mx:HBox width=100% horizontalAlign=right  
 verticalAlign=bottom borderStyle=none
 
 mx:HBox width=50% horizontalAlign=right  
 
   mx:Form id=showMeScreenForm 
 borderStyle=none marginTop=0 marginBottom=0
 mx:FormItem label=jump to screen: 
 direction=horizontal horizontalAlign=right
   mx:TextInput 
 id=showMeScreenTextInput width=60/
   mx:Button 
 id=showMeScreenButton label=Go click=jumpToScreen
 (showMeScreenTextInput.text);/
 

[flexcoders] charting effects question via ActionScript

2005-10-05 Thread delaquae
--- In flexcoders@yahoogroups.com, delaquae [EMAIL PROTECTED] 
wrote:
 If I want to preserve an effect that is declared via mxml:
 
 mx:Effect
   mx:SeriesInterpolate duration=2000 elementOffset=5 
 name=interpolate/
 /mx:Effect
 
 when I use AcionScript later to add a series to a chart, the 
 following does not seem to work:
 
   var cllSeries=new ColumnSeries();
   cllSeries.yField=cllQuantity;
   cllSeries.showDataEffect=interpolate;
   cllChart.series.addItem(cllSeries);
 
 Any help would be greatly appreciated.
 
 Martin




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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






[flexcoders] Choosing the best font size for all screen resolutions

2005-10-05 Thread symbltechies
Problem: I'm having difficulty scaling my application for different 
screen resolutions. I need to select the correct font family and font 
size that is readable for high (1280 X 1024) and low (1024 X 768) 
screen resolutions.  If I choose font size=9 and FontFamily=Arial, 
when I change to a (1024 X )screen resolution, its not readable on the 
screen.  If I choose to use graphics for my labels, I still have 
problems with the combo boxes not being readable.

Does anyone have a preferred font family and size that seems to be 
working for them - or a simple work-around to resize the application?

Thanks for your time.

symbltechies




 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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






RE: [flexcoders] Validator, Styles, ...

2005-10-05 Thread Matt Chotin










I dont think the thickness of the
border is exposed right now for manipulation unfortunately. Same for having
the error tip show up without the mouseover. These are good enhancement
requests though, can you file them at http://www.macromedia.com/go/wish please?



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of r_woess
Sent: Wednesday, October 05, 2005
1:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Validator,
Styles, ...





Hi,

I've two questions:

1.
How can I change the thickness of die red-border
of a textinput-box,
if the input is not valid?

2.
Is there a possibility to show the errermessages
tooltip without
moving the mouse over the invalid textinput-box?

best regards
reini










--
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] date sort

2005-10-05 Thread Matt Chotin










If its not working by default you
may want to look into the sortCompareFunction on DataGridColumn.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Joe
Sent: Wednesday, October 05, 2005
2:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] date sort





Is there a way to sort a date
field in a data grid that is using a 
labelfunction to get the date value. I have read
that it can be done 
when using a cell renderer, but I do not want to
change the code. Can 
this be done? 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] How to find out the thickness of the scroll bar?

2005-10-05 Thread JesterXL
I think VScrollbar is the real one; HSrcrollbar has some crazy _rotation 
code in it's init.

- Original Message - 
From: Manish Jethani [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, October 05, 2005 6:27 PM
Subject: Re: [flexcoders] How to find out the thickness of the scroll bar?


On 10/5/05, JesterXL [EMAIL PROTECTED] wrote:
 I think HScrollbar is always 16 wide, and VScrollbar is always 16 high.

 :: checks ::

 Hrm... well, screenshot reports 17, but I think that's a border.

I think I remember having read in the docs that it's 16 by default.

Anyway, so the way to check the thickness of the scrollbar is to query
its width or height property.  Note that for both the horizontal and
vertical scrollbar the same property stores the actual thickness --
and I forgot which one it is (width or height).



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









 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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






[flexcoders] Focusing cell on datagrid

2005-10-05 Thread thisdudenamedjon
I have a datagrid with several columns of cells that are editable and a 
custom combobox cell renderer. When a user edits a cell and leaves, I 
pass that entire row to a RemoteObject to do some validation. If there 
are errors, I want to keep that cell focused until the errors are 
corrected. 

Right now, I have implemented this using my datagrid's change and 
cellEdit listeners to simply dispose the celleditor and set focused 
cell to the errored cell. However, with my combobox, Mm invalid cell 
simply loses focus and I am able to access and change it. I do not want 
to allow access to this combobox while I still have an error.

Can someone point me towards a more elegant solution or something to 
force the focus back onto the invalid cell when I access the combobox.

Thanks.




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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






[flexcoders] Trying BlueButton example

2005-10-05 Thread jasonstaczek
Hello All,

I'm trying the BlueButton example in the building custom Flash 
components for Flex and I'm getting the following when I try to run 
the Flex app.

I've installed FlexForFlash components, am using the correct 
classpath, etc. What am I missing?

Thanks,

Jason


10/05 17:14:02 user FlexSwfServlet: Warning: A linked symbol is 
incompatible with a referenced version.
The linked symbol BlueButton.swc:__Packages.mx.controls.Button 
(modified 10/5/05 3:02 PM, priority 2)
is incompatible with WEB-
INF\flex\frameworks\mx.swc:__Packages.mx.controls.Button (modified 
10/15/04 5:11 PM, priority 2)
The symbol is incompatible because:
property textRollOverColor is missing.
property cornerRadius is missing.
property borderThickness is missing.
property textSelectedColor is missing.
property defaultAsset1 is missing.
The incompatible symbol is referenced by:
WEB-
INF\flex\frameworks\mx.swc:__Packages.mx.controls.CheckBox (modified 
10/15/04 5:11 PM, priority 2)
WEB-
INF\flex\frameworks\mx.swc:__Packages.mx.containers.tabclasses.Tab 
(modified 10/15/04 5:11 PM, priority 2)
WEB-
INF\flex\frameworks\mx.swc:__Packages.mx.controls.CustomButton 
(modified 10/15/04 5:11 PM, priority 2)
WEB-INF\flex\frameworks\mx.swc:Button (modified 10/15/04 
5:11 PM, priority 2)
WEB-INF\flex\frameworks\mx.swc:__Packages.mx.controls.Link 
(modified 10/15/04 5:11 PM, priority 2)




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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