[flexcoders] (Simple?) Problem with TextInput component

2007-02-26 Thread Ciarán
Hi All,

I also posted this question to the Adobe boards (albeit in completely
the wrong forum...).

In a UITextField there's some padding around the edge of the component
- just a few pixels of whitespace that clips the font so it doesn't
touch the edge of the box.

How do I get rid of it?

The best example to see this artifact is to resize the height of a
text input to about 18 or so, then try typing in it. With a few
adjustments, it's quite feasible to fit a font in here if it weren't
for the clipping.

I noticed further up the hierarchy things extend from flash.text
(which to my knowledge is non-editable)... so I'm prepared to accept
this may be impossible.

Has anyone done it before?

Best Regards,
Ciarán


[flexcoders] setCredentials not working with amfphp 1.9 beta 2

2007-02-26 Thread Kun Janos
Is this a dead issue? Does anybody know how to solve the problem?

Janos

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

 Hi all.
 
 I'm trying to use setCredentials in Flex and beforeFilter without any
 luck. Can anyone post a small example on how can we do that?
 When I use setCredentials on the Flex service, Charles shows me that
 an error message was returned, because it enters to
 if(!$handled)
 {
 $uriclasspath = amfphp/Amf3Broker.php;
 $classpath = $baseClassPath . amfphp/Amf3Broker.php;
 $classname = Amf3Broker;
 $methodname = handleMessage;
 }
 in Actions.php (part of amfphp 1.9 beta 2)and doesn't find the
 amfphp/Amf3Broker.php file. The file doesn't exist at all, but even if
 it would, the amfph script searches for that file in the
 services/amfphp/ directory. 
 Is this a bug?
 
 Janos





Re: [flexcoders] Re: flex sdk

2007-02-26 Thread Tom Chiverton
On Friday 23 Feb 2007, mapper2255 wrote:
 Does Adobe have a link where you can input your licenses for Flash
 5, Flash MX and Flash 2004 Pro and then they send you to a page with
 decent install instructions for troubleShooting the sdk?

What makes you think those 3 licenses entitle you to different instructions to 
what is already on the DevCenter.

If you post exactly what you are trying, and what you want to achieve we'll 
try to help.

-- 
Tom Chiverton
Helping to interactively grow proactive materials
at http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/4It09A/fOaOAA/yQLSAA/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/

* Your email settings:
Individual Email | Traditional

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

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

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

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


Re: [flexcoders] Re: Keyboard issues on VISTA

2007-02-26 Thread Tom Chiverton
On Friday 23 Feb 2007, iko_knyphausen wrote:
 What do you mean by thrashed? Sorry, have never heard that term before
 (not a native speaker either)

Sorry 'used heavily'.
Web browsers will drop the framerate of plugins, if something else is using 
the CPU a lot. This could interfere with events.

-- 
Tom Chiverton
Helping to enormously engineer holistic information
at http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/0It09A/bOaOAA/yQLSAA/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/

* Your email settings:
Individual Email | Traditional

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

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

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

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


Re: [flexcoders] Firefox (2.0.0.1) content caching and HTTPService calls

2007-02-26 Thread Tom Chiverton
On Friday 23 Feb 2007, Private Romeo wrote:
 Currently it’s a static XML file being served by an Apache Server. Any
 idea?

Use mod_headers and:
Header unset Pragma
Header unset Cache-control

Failing that, stick something like Wireshark between the server and the client 
and see what HTTP headers and XML are going past.

-- 
Tom Chiverton
Helping to autoschediastically repurpose plug-and-play portals
at http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



Re: [flexcoders] Quick Flex 2.0 questions

2007-02-26 Thread Tom Chiverton
On Saturday 24 Feb 2007, Dimitrios Gianninas wrote:
 Amen, Flex Builder saves time and the debugger helps.

As the parent said, the command line debugger is perfectly fine.
You'll probably rarely use it.

 * code hints and code completion that make writing MXML and AS code
 easier and faster

You can do this with vanilla Eclipse (or any other editor that understands XML 
schemas) and the community XSD file.
It's not complete, but it offers most of the insight features you need.

 * design view for doing visual layout

This is the only feature of FB I miss, but once you understand how layouts 
work, and what components are available, you can make a fairly good first 
stab in code straight off.

-- 
Tom Chiverton
Helping to greatly promote essential m-commerce
at http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/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/

* Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Re: Can anyone help on getting data from a grid cell .. I know the row/column index

2007-02-26 Thread sanjaypmg
Hi Sean,

you can do it by calling a method on itemClick of a dataGrid.

in this method you'll get the selected row of your Grid. thereafter 
you can access any particular cell's value by specifying dataField 
name like: evt.target.selectedItem.DataFieldNAME;



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

 Is it possible ?
 
 Sean.
 
 --- In flexcoders@yahoogroups.com, helihobby helihobby@ wrote:
 
  
  Hello,
  
  Can anyone help out ...
  I know the Data Grid Cell's Row and Colum Index.
  
  How can I retrieve the data in that cell if I know these two 
values ?
  
  Thank you,
  
  Sean.
 





Re: [flexcoders] URL Link in Flex Application

2007-02-26 Thread Tom Chiverton
On Saturday 24 Feb 2007, Lisa Lee wrote:
 Can you tell me how to be able to have a user click on a link (button,
 whatever) from within a Flex application and have it take the user to a
 non-Flex, regular web page within their browser?  It's probably a
 simple answer but I'm still getting up to speed with Flex.  Thanks!

navigateToUrl()

-- 
Tom Chiverton
Helping to autoschediastically negotiate virtual action-items
at http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/kOt0.A/gOaOAA/yQLSAA/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/

* Your email settings:
Individual Email | Traditional

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

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

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

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


RE: [flexcoders] Re: is there a way to open a file in flex app'

2007-02-26 Thread Karl Johnson
That is correct.

 

Karl

 

Cynergy

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ziksable
Sent: Sunday, February 25, 2007 3:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: is there a way to open a file in flex app'

 

So in fact as i understand you correctly, 
the only way to show the contents of the user selected file on the
screen without converting the flex app' in to stand alone app' is to
let the user to choose the file (with FileReference class), upload
selected file to server, open it there and send it back to flex app'
as byte stream from the server ?

Thanks. 

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

 Because of security restrictions, the Flash Player running in the
 browser can not access the user's file system. The only way to do this
 is to wrap your flex swf in something like Zinc which allows it to run
 as a desktop application, or of course Adobe Apollo, which is in
 alpha/almost-beta right now.
 
 
 
 Karl
 
 
 
 Cynergy
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of ziksable
 Sent: Sunday, February 25, 2007 7:01 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] is there a way to open a file in flex app'
 
 
 
 hi guys, 
 i'm pretty new to flex. 
 is there a way in flex 2 (action script 3) to perform the following
 action: let user (client) to choose the file on his local comp' and
 display its contents on the screen. 
 
 i've looked on FileReference class. but it seems the class allows just
 to upload the file to the server and not to look on the file stream. 
 
 Thanks, 
 :)


 



Re: [flexcoders] Finding out when an arraycollection in my model is set

2007-02-26 Thread Webdevotion

I'm getting my data back from a Ruby service.
The service method I'm calling is query of joined tables.
RoR returns this as an array of AlbumVO's.
Every AlbumVO item contains an array of TrackVO's.
That's the way it works.

To be able to use this data structure in my datagrid,
I have to loop through the data and rearrange it into
a usable dataprovider for my datagrid.

That is the reason I have to now when the model.library
is loaded; so I can transform my data into a usable ArrayCollection.


[flexcoders] Re: Code Highlighting Bug?

2007-02-26 Thread msloumac
for my purposes I managed to display my selectedRanges after changing
screens or selecting a date by overriding selectedRanges in
DateChooser.as in framework to be public 

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

 Hi There,
 may be bug, the data binding works fine for selectedRanges= {etc} but
 when you select a date on the dateChooser - switch views then return
 to the dateChooser the selectedRanges highlights are lost - like the
 selectedDate is overriding them - if you programatically force a reset
 of selectedRanges - this does not work -
 mydatechooserid.selectedRanges=mydateRange;
 L
 
 
 --- In flexcoders@yahoogroups.com, Brendan Meutzner bmeutzner@
 wrote:
 
  Hey,
  
  Yes, very annoying... it appears that  the combination of {[{ causes
  problems...
  
  
  Brendan
  
  
  On 1/25/07, Steve House newsgroups@ wrote:
  
 Brendan,
  
   I am getting the same problem with:
  
   mx:DateField id=dtNeeded disabledRanges={[{rangeEnd: new
 Date()}]}
   selectedDate={detailObject.dtNeeded }
   editable=true /
  
   Really Annoying!  Adobe, is this a bug and is there a
 workaround???
  
   Steve
  
  
   On 1/22/07, Brendan Meutzner bmeutzner@ wrote:
   
  Hi,
   
The following line causes the code-highlighting features in
 FlexBuilderto stop working...
   
DateChooser selectedRanges= {[{rangeStart:range1Start,
rangeEnd:range1End}]}  /
   
Is this a bug?
   
Brendan
   
   

  
  
  
  
  -- 
  Brendan Meutzner
  Stretch Media - RIA Adobe Flex Development
  brendan.meutzner@
  http://www.stretchmedia.ca
 





[flexcoders] Re: How to add a component in the field with AS3

2007-02-26 Thread Daniel Fernandes Credidio
c'mon guys i'm still stuck no one has any ideas on how to loop trough
the XML?? i need it to finish my work here. can't anyone help me with
this. and also, i dont know if it chages anything but the XMl is not
default its created dinamically to and i already verified and its ok

--- In flexcoders@yahoogroups.com, Daniel Fernandes Credidio
[EMAIL PROTECTED] wrote:

 Thanks for the help troy.
 
 but i'm still having some problems, The XML is still the same, and i
 made the change in the for just as you said, but it gets worse, if i
 do that it doesn't even enters the For, it goes through it.
 
 --- In flexcoders@yahoogroups.com, Troy Gilbert troy.gilbert@
 wrote:
 
  I've tripped on all of those at one time or another, so I'm happy to
 oblige
  with an answer as best I can:
  
  1. It threw me a bit at first, but it makes sense once you look at
 the types
  returned by XML class. If an element of the XML has complex
 content (i.e.
  its not just straight text, but rather has additional XML elements or
  structure), then referring to that XML element will always return an
  XMLList. Thus, when you say for each (var s:XML in
 data.lastResult.Tipos)
  the XML class is returning an XMLList for all elements named
 Tipos, which
  in your sample data there is only one. If you want to iterate for
 each of a
  certain element, you specify that element in the for each like this:
 for
  each (var s:XML in data.lastResult.Tipos.Tipo). And to access them
 directly
  with an index, you'd use var s:XML = data.lastResult.Tipos.Tipo[0];.
  
  2. To dynamically create UI components just new them (var
 txt:TextInput =
  new TextInput();) and then add them to the container
 (addChild(txt);).
  For dynamically creating forms the Form and FormItem components are a
  lifesaver as they'll save you from having to do any formating
work. Your
  code will end up looking something like this:
  
  var form:Form = new Form();
  var formItem:FormItem = new FormItem();
  formItem.label = Some Field:;
  var txtField:TextInput = new TextInput();
  formItem.addChild(txtField);
  form.addChild(formItem);
  addChild(form);
  
  3. You can load data from a ByteArray into things like the image
 component.
  Assuming you've already got the binary data pulled from the
 database, and
  assuming its in a format that Flash understands directly (SWF,
PNG, JPG,
  GIF, etc.), you can use the loadBytes() method of the
  flash.display.Loaderclass. This will give you a DisplayObject that you
  can then use elsewhere as
  you would traditionally use a dynamically loaded image.
  
  Troy.
  
  
  
  On 2/22/07, Daniel Fernandes Credidio lienwein@ wrote:
  
 Hi,
  
   I'm quite new to Flex and I need help with Three things.
  
   I have an file thats sending me an XML based on data i got from
 the DB,
  
   I have to loop trough the XML and i saw in another thread that
we can
   do it by using the code:
   //the XML
   Tipos
   Tipo
   Situa0/Situa
   Imagem Conteudo=''/
   QtdComputador: 11/Qtd
   /Tipo
   Tipo
   Situa0/Situa
   Imagem Conteudo=''/
   QtdMonitor: 9/Qtd
   /Tipo
   Tipo
   Situa0/Situa
   Imagem Conteudo=''/
   QtdNo break: 3/Qtd
   /Tipo
   Tipo
   Situa0/Situa
   Imagem Conteudo=''/
   QtdNotebook: 3/Qtd
   /Tipo
   /Tipos
  
   for each (var s:XML in data.lastResult.Tipos){
   //some code here
   }
  
   the first problem is that it only loops once even tough there are 3.
  
   the second is that i need to add components(TextArea, Image, Label,
   etc.)on a Panel, but i must do it Using AS3 since its going to be
   created based on the XML(i searched livedocs AND flex help but
didn't
   find it).
  
   the third one is the most tricky of the three, I an getting the
image
   from the DB and its binary i need to send it into flex and use
it as a
   kind of source to the Image component
  
   PS: its not an URL its the data itself.
  
   i know it can be rather confusing but please answer me even if
its to
   say its impossible to do this.
  
   Gratefull for your help,
   Daniel Fernandes Credidio
  

  
 





Re: [flexcoders] strange Could not resolve mx:Script to a component implementation. error

2007-02-26 Thread Yiðit Boyar
no; i declared; i assume some problem happened during copy paste to yahoo; 
i;m posting it again; by the way my old working codes does not work! (how a 
weird problem? )
?xml version=1.0 encoding=utf-8?
 mx: Application xmlns:mx=http://www.adobe.com/2006/mxml;  layout=absolute 
 
mx:Text text=AA x=44 y=57/
mx:Script
![CDATA[
]]
/mx:Script
/mx:Application


- Original Message 
From: Impudent1 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, February 24, 2007 7:01:22 PM
Subject: Re: [flexcoders] strange Could not resolve mx:Script to a component 
implementation. error









  



Yiðit Boyar wrote:

 hi all;

 i've just formatted my computer 1st time since i started flex; and now i'm 
 getting an error that i can not understand. do i miss sth with the install?

 here is the code:

 ?xml version=1.0 encoding=utf- 8?

 

 mx:Text text=AA x=44 y=57/

 mx:Script

 ![CDATA[

 ]]

 /mx:Script

 /mx:Application

  and here is the error:

 Could not resolve mx:Script to a component implementation.

 Also my working projects started to not to work.

 

 where can be the problem ?



not declaring the default namespace? don't forget you need 

xmlns:mx=http://www.adobe. com/2006/ mxml in the first line



Impudent1

LeapFrog Productions




  







!--

#ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;
}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;
}
#ygrp-vitnav{
padding-top:10px;
font-family:Verdana;
font-size:77%;
margin:0;
}
#ygrp-vitnav a{
padding:0 1px;
}
#ygrp-actbar{
clear:both;
margin:25px 0;
white-space:nowrap;
color:#666;
text-align:right;
}
#ygrp-actbar .left{
float:left;
white-space:nowrap;
}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;
font-size:77%;
padding:15px 0;
}
#ygrp-ft{
font-family:verdana;
font-size:77%;
border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;
}

#ygrp-vital{
background-color:#e0ecee;
margin-bottom:20px;
padding:2px 0 8px 8px;
}
#ygrp-vital #vithd{
font-size:77%;
font-family:Verdana;
font-weight:bold;
color:#333;
text-transform:uppercase;
}
#ygrp-vital ul{
padding:0;
margin:2px 0;
}
#ygrp-vital ul li{
list-style-type:none;
clear:both;
border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;
color:#ff7900;
float:right;
width:2em;
text-align:right;
padding-right:.5em;
}
#ygrp-vital ul li .cat{
font-weight:bold;
}
#ygrp-vital a {
text-decoration:none;
}

#ygrp-vital a:hover{
text-decoration:underline;
}

#ygrp-sponsor #hd{
color:#999;
font-size:77%;
}
#ygrp-sponsor #ov{
padding:6px 13px;
background-color:#e0ecee;
margin-bottom:20px;
}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;
margin:0;
}
#ygrp-sponsor #ov li{
list-style-type:square;
padding:6px 0;
font-size:77%;
}
#ygrp-sponsor #ov li a{
text-decoration:none;
font-size:130%;
}
#ygrp-sponsor #nc {
background-color:#eee;
margin-bottom:20px;
padding:0 8px;
}
#ygrp-sponsor .ad{
padding:8px 0;
}
#ygrp-sponsor .ad #hd1{
font-family:Arial;
font-weight:bold;
color:#628c2a;
font-size:100%;
line-height:122%;
}
#ygrp-sponsor .ad a{
text-decoration:none;
}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;
}
#ygrp-sponsor .ad p{
margin:0;
}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;
}
#ygrp-text tt{
font-size:120%;
}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
--








 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

Re: [flexcoders] strange Could not resolve mx:Script to a component implementation. error

2007-02-26 Thread Yiðit Boyar
here is the solution :
i just edited flexbuilder.ini file and added the fallowing lines:
-Duser.language=en
-Duser.location=us
as i heard; it was an utf-8 encoding prblem..
thanks eren ;)

- Original Message 
From: Impudent1 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, February 24, 2007 7:01:22 PM
Subject: Re: [flexcoders] strange Could not resolve mx:Script to a component 
implementation. error









  



Yiðit Boyar wrote:

 hi all;

 i've just formatted my computer 1st time since i started flex; and now i'm 
 getting an error that i can not understand. do i miss sth with the install?

 here is the code:

 ?xml version=1.0 encoding=utf- 8?

 

 mx:Text text=AA x=44 y=57/

 mx:Script

 ![CDATA[

 ]]

 /mx:Script

 /mx:Application

  and here is the error:

 Could not resolve mx:Script to a component implementation.

 Also my working projects started to not to work.

 

 where can be the problem ?



not declaring the default namespace? don't forget you need 

xmlns:mx=http://www.adobe. com/2006/ mxml in the first line



Impudent1

LeapFrog Productions




  







!--

#ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;
}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;
}
#ygrp-vitnav{
padding-top:10px;
font-family:Verdana;
font-size:77%;
margin:0;
}
#ygrp-vitnav a{
padding:0 1px;
}
#ygrp-actbar{
clear:both;
margin:25px 0;
white-space:nowrap;
color:#666;
text-align:right;
}
#ygrp-actbar .left{
float:left;
white-space:nowrap;
}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;
font-size:77%;
padding:15px 0;
}
#ygrp-ft{
font-family:verdana;
font-size:77%;
border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;
}

#ygrp-vital{
background-color:#e0ecee;
margin-bottom:20px;
padding:2px 0 8px 8px;
}
#ygrp-vital #vithd{
font-size:77%;
font-family:Verdana;
font-weight:bold;
color:#333;
text-transform:uppercase;
}
#ygrp-vital ul{
padding:0;
margin:2px 0;
}
#ygrp-vital ul li{
list-style-type:none;
clear:both;
border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;
color:#ff7900;
float:right;
width:2em;
text-align:right;
padding-right:.5em;
}
#ygrp-vital ul li .cat{
font-weight:bold;
}
#ygrp-vital a {
text-decoration:none;
}

#ygrp-vital a:hover{
text-decoration:underline;
}

#ygrp-sponsor #hd{
color:#999;
font-size:77%;
}
#ygrp-sponsor #ov{
padding:6px 13px;
background-color:#e0ecee;
margin-bottom:20px;
}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;
margin:0;
}
#ygrp-sponsor #ov li{
list-style-type:square;
padding:6px 0;
font-size:77%;
}
#ygrp-sponsor #ov li a{
text-decoration:none;
font-size:130%;
}
#ygrp-sponsor #nc {
background-color:#eee;
margin-bottom:20px;
padding:0 8px;
}
#ygrp-sponsor .ad{
padding:8px 0;
}
#ygrp-sponsor .ad #hd1{
font-family:Arial;
font-weight:bold;
color:#628c2a;
font-size:100%;
line-height:122%;
}
#ygrp-sponsor .ad a{
text-decoration:none;
}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;
}
#ygrp-sponsor .ad p{
margin:0;
}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;
}
#ygrp-text tt{
font-size:120%;
}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
--








 

The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

Re: [flexcoders] ButtonBar's child enabling

2007-02-26 Thread Michael Schmalle

Hi,

Try;

var searchIndex:int = 2;

var button:Button = getChildAt(searchIndex) as Button;
button.enable = false;

or use the other DisplayObjectContainer methods for getting a child
instance;

- getChildByName()
etc

Peace, Mike

On 2/24/07, metalbeard [EMAIL PROTECTED] wrote:


  Hi,
Is there anyway that we can set the enable property of a specific
button inside the buttonBar (a child of a buttonBar) to false?

I couldn't find it.

Wael

 





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

Blog - Flex2Components
http://www.flex2components.com

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


Re: [flexcoders] Re: Best way for editing massive amounts of data?

2007-02-26 Thread Doug McCune

I don't have a suggestion right now, but just in terms of why this might not
elicit a response from the flex community, this isn't a flex question. It's
a UI question that is the same question if you're talking about building a
UI in flex, HTML, Java, .NET, etc etc.

I don't think there are going to be any flex-related insights to solve the
problem. Figure out a good way to display that many form fields, regardless
of what frontend technology you're using, and it will work. So this isn't
very helpful to answer you're question, but maybe it explains why flex
developers aren't jumping at replying.


On 2/24/07, gotgoose09 [EMAIL PROTECTED] wrote:


  I guess no one here has had this problem before?

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

 I'm web-enabling by using Flex 2 a project that has many fields for
 each record in the database. A typical UI screen has upwards of 35
 fields in it. This application has to be easy to use. e.g. explained
 over the telephone to customers who use it.

 I was thinking that one way to make editing fields consistent would be
 to have the user double click the data field, popping up a window with
 the right kind of input to edit the data, whether it is a TextInput,
 TextArea, DateField, etc. Then, if the user presses the submit
 button, the data would be saved to the database, but if the user
 presses the cancel button, the data would not be saved and they would
 return to the large form.

 Does anyone have experience in this type of application? Anyone have
 their own opinion on the matter?

 Thanks in advance! :)


 



Re: [flexcoders] Re: Using a downloaded theme in an application

2007-02-26 Thread André Rodrigues Pena

Hey Tom and Juan

Your tips worked out, thanks :)

On 2/23/07, potentialunfounded [EMAIL PROTECTED] wrote:


  André,

There should be a style folder in the downloaded source. Drop that
into the top level of your Flex project. Then, in your Applications
MXML, specify the path to the CSS file as the source in your mx:Style tag.

If you need more in depth details you can email me at juan [at]
scalenine.com.

Sorry about the bad link. I'm creating my own set of instructions.

Juan
scalenine.com

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, André
Rodrigues Pena

[EMAIL PROTECTED] wrote:

 Hi all,

 the site http://www.scalenine.com/ has great themes I'd like to use.
 But the how to install link doesn't explain how to actually add it
 to your application.

 Can anyone explain me or indicate a site that explains?

 thanks in advance

 --
 André Rodrigues Pena

 LOCUS
 www.locus.com.br

 Blog
 www.techbreak.org


 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] URL Link in Flex Application

2007-02-26 Thread André Rodrigues Pena

mx:LinkButton x=0 y=462 label=By AndrÃ(c) Pena fontSize=9
color=#808080
   mx:clicknavigateToURL(new URLRequest('
http://techbreak.org'),'_blank');/mx:click
/mx:LinkButton

On 2/24/07, Lisa Lee [EMAIL PROTECTED] wrote:


  Can you tell me how to be able to have a user click on a link (button,
whatever) from within a Flex application and have it take the user to a
non-Flex, regular web page within their browser? It's probably a
simple answer but I'm still getting up to speed with Flex. Thanks!

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Multiple TrackHighLight for a slider without thumbs

2007-02-26 Thread Doug McCune

My initial reaction is to suggest using two HSliders, one overlaid directly
on top of the other. For the bottom one, set the skin for the thumb to draw
nothing, so the thumbs won't appear. For the top one set the skin for the
track to a skin that draws nothing. So what you would end up seeing is the
track of the bottom slider but the thumb of the top slider. Then you just
set the bottom slider to have a thumbcount of 2, the top slider has a
thumbcount of 1, and when they drop the top slider it sets the values of the
bottom slider. Hopefully that makes sense.

Doug


On 2/24/07, ad9798 [EMAIL PROTECTED] wrote:


  I am trying to highlight multiple segments from a HSlider without
multiple thumbs.

For example, I drag the thumb to a certain position on the slider to
mark and then drag it again to the other place to mark again. After
second mark, the segment between two marks is highlighted.

Has anybody done this? or knows how to do this?
Much appreciated.

 



Re: [flexcoders] Re: Just curious, A big development team or individual developers

2007-02-26 Thread jwopitz

Team, and too big of a team if I may say.  It was initially just 4 of us,
then they another 4 people.  There are as many analogies as there are
developers on my team.  Here are my favorites:

  1. too many cooks in the kitchen
  2. too many chiefs, not enough injuns
  3. too many hands in the cookie jar


Now we have 'too many cooks in the kitchen' or another way of saying it is
'too many chiefs, not enough indians'

On 2/23/07, simonjpalmer [EMAIL PROTECTED] wrote:


  huh, what an interesting question.

INDIVIDUAL

However, have budget for large team...

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

 I wonder how many people are working on TEAM to develop their flex
applications (and how
 many are 1 or 2 men (whoops I mean PEOPLE) developers. Please
discount the Graphic
 artists, HTML coders. et. al. If you have 3 or more people working
on the same flex
 application, please answer as a TEAM. 2 or 1, INDIVIDUAL.

 Thanks
 Bruce


 





--
justin w. opitz
617.771.6639
jwopitz(at)gmail.com


Re: [flexcoders] Re: Best way for editing massive amounts of data?

2007-02-26 Thread slangeberg

What's your main concern with this issue? Simplicity? Performance? What are
you going for? Worried that someone may lose their data half-way through, or
something? You could do a sort of proxy where you store the user's data
locally, then upload the entire thing on submit. Then, you're preserving
their entry, if they accidentally leave the page, or something. I would say
no way to double-clicking fields to edit... Perhaps breaking up the
procedure into sub-panels, ala an Accordian or TabNavigator? I'm more
worried with usability in these kinds of things.

-Scott

On 2/24/07, gotgoose09 [EMAIL PROTECTED] wrote:


  I guess no one here has had this problem before?

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

 I'm web-enabling by using Flex 2 a project that has many fields for
 each record in the database. A typical UI screen has upwards of 35
 fields in it. This application has to be easy to use. e.g. explained
 over the telephone to customers who use it.

 I was thinking that one way to make editing fields consistent would be
 to have the user double click the data field, popping up a window with
 the right kind of input to edit the data, whether it is a TextInput,
 TextArea, DateField, etc. Then, if the user presses the submit
 button, the data would be saved to the database, but if the user
 presses the cancel button, the data would not be saved and they would
 return to the large form.

 Does anyone have experience in this type of application? Anyone have
 their own opinion on the matter?

 Thanks in advance! :)


 





--

: : ) Scott


RE: [flexcoders] Re: Best way for editing massive amounts of data?

2007-02-26 Thread Tracy Spratt
best is a slippery concept.

 

But what is your business reason for requiring editing through a pop-up?
That is a lot of logic and user interaction just to edit a value, unless
you have a powerful reason to do it. What don't you like about normal
editing controls?

 

Under your scenario, you will be updating the database on every field
edit.  Why do you want to do this?

 

35 fields in one view is too much.  Break the ui up into logical
business groupings and navigate them using a tabNavigator or ViewStack,
or menu or tree or something.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gotgoose09
Sent: Saturday, February 24, 2007 1:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Best way for editing massive amounts of data?

 

I guess no one here has had this problem before?

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

 I'm web-enabling by using Flex 2 a project that has many fields for
 each record in the database. A typical UI screen has upwards of 35
 fields in it. This application has to be easy to use. e.g. explained
 over the telephone to customers who use it.
 
 I was thinking that one way to make editing fields consistent would be
 to have the user double click the data field, popping up a window with
 the right kind of input to edit the data, whether it is a TextInput,
 TextArea, DateField, etc. Then, if the user presses the submit
 button, the data would be saved to the database, but if the user
 presses the cancel button, the data would not be saved and they would
 return to the large form.
 
 Does anyone have experience in this type of application? Anyone have
 their own opinion on the matter?
 
 Thanks in advance! :)


 



Re: [flexcoders] Finding out when an arraycollection in my model is set

2007-02-26 Thread slangeberg

You can use simple binding, via {} brackets.

MyComp dataProvider={model.library} /

Or, you can use the ChangeWatcher:

ChangeWatcher.watch( model, library, onLibraryChange );

function onLibraryChange(){ /*do stuff*/ }

-Scott

On 2/24/07, Webdevotion [EMAIL PROTECTED] wrote:


  Hello,

How can I now when my arraycollection in my modellocator is filled with
items ?
I tried using collectionEvent.collection_change, but it does not fire when

setting my AC like this in my command, after the remoting result handler:

model.library = new ArrayCollection(data.result);

What is the correct way ? ( I'm using Cairngorm )

 





--

: : ) Scott


Re: [flexcoders] Can anyone help on getting data from a grid cell .. I know the row/column index

2007-02-26 Thread Brendan Meutzner

Look at the n-th element of your datagrid's dataProvider (equal to the row
index value), with the property name equal to the column's dataField name...


Brendan


On 2/24/07, helihobby [EMAIL PROTECTED] wrote:



Hello,

Can anyone help out ...
I know the Data Grid Cell's Row and Colum Index.

How can I retrieve the data in that cell if I know these two values ?

Thank you,

Sean.

 





--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


Re: [flexcoders] Can anyone help on getting data from a grid cell .. I know the row/column index

2007-02-26 Thread Brendan Meutzner

Sorry... you also need to pay attention to your verticalScrollPosition for
your row index position when getting the value from your dataprovider.

Brendan



On 2/24/07, Brendan Meutzner [EMAIL PROTECTED]  wrote:


Look at the n-th element of your datagrid's dataProvider (equal to the row
index value), with the property name equal to the column's dataField name...



Brendan


On 2/24/07, helihobby [EMAIL PROTECTED] wrote:


 Hello,

 Can anyone help out ...
 I know the Data Grid Cell's Row and Colum Index.

 How can I retrieve the data in that cell if I know these two values ?

 Thank you,

 Sean.

  





--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca





--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


Re: [flexcoders] Finding out when an arraycollection in my model is set

2007-02-26 Thread Michael Schmalle

Hi,

Why not just make it a get, set bindable property in your ModelLocator? Then
you could dispatch and event or really whatever you want to do.

Peace, Mike

On 2/24/07, Webdevotion [EMAIL PROTECTED] wrote:


  Hello,

How can I now when my arraycollection in my modellocator is filled with
items ?
I tried using collectionEvent.collection_change, but it does not fire when

setting my AC like this in my command, after the remoting result handler:

model.library = new ArrayCollection(data.result);

What is the correct way ? ( I'm using Cairngorm )

 





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

Blog - Flex2Components
http://www.flex2components.com

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


Re: [flexcoders] Re: Just curious, A big development team or individual developers

2007-02-26 Thread jwopitz

pardon the doubling of my response.

On 2/23/07, jwopitz [EMAIL PROTECTED] wrote:


Team, and too big of a team if I may say.  It was initially just 4 of us,
then they another 4 people.  There are as many analogies as there are
developers on my team.  Here are my favorites:

   1. too many cooks in the kitchen
   2. too many chiefs, not enough injuns
   3. too many hands in the cookie jar


Now we have 'too many cooks in the kitchen' or another way of saying it is
'too many chiefs, not enough indians'

On 2/23/07, simonjpalmer [EMAIL PROTECTED] wrote:

   huh, what an interesting question.

 INDIVIDUAL

 However, have budget for large team...

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 boy_trike [EMAIL PROTECTED] wrote:
 
  I wonder how many people are working on TEAM to develop their flex
 applications (and how
  many are 1 or 2 men (whoops I mean PEOPLE) developers. Please
 discount the Graphic
  artists, HTML coders. et. al. If you have 3 or more people working
 on the same flex
  application, please answer as a TEAM. 2 or 1, INDIVIDUAL.
 
  Thanks
  Bruce
 

  





--
justin w. opitz
617.771.6639
jwopitz(at)gmail.com





--
justin w. opitz
617.771.6639
jwopitz(at)gmail.com


RE: [flexcoders] List itemRenderer problem with example

2007-02-26 Thread Tracy Spratt
In your itemRenderer, you must update a property in the dataprovider
item when the user causes the state to change, and in the overrides set
data() function, you must read this item property and set the state
accordingly.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Bray
Sent: Saturday, February 24, 2007 6:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List itemRenderer problem with example

 

Here are the steps to see my issue in action:

1. go to http://www.tombray.com/queryBuilder/
http://www.tombray.com/queryBuilder/ 
2. click the plus sign twice to create two more list items
3. change the first combobox in the first item to Date and notice 
that the itemRenderer changes state
4. click the minus sign in the first item (the one you just set to Date)
5. notice that the bottom itemRenderer is now in the Date state but 
shouldn't be.

So, I'm assuming that the List is recycling itemRenderer instances 
for efficiency, but I'd like a better understanding of what's going 
on and a recommended strategy for dealing with this. Any help? Thanks!

-Tom

 



RE: [flexcoders] Dynamically creating a text object

2007-02-26 Thread Tracy Spratt
You definitely can do that.

 

addChild() is the method to use.

 

I can't guess at what you are doing wrong without seeing what you are
doing.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Guy Morton
Sent: Sunday, February 25, 2007 8:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamically creating a text object

 

Hello. I'm stumped.

 

I'm creating some circles in AS and putting them on a Canvas that's
declared in my MXML file like so

 

var childCanvas:Canvas = new Canvas();

childCanvas.graphics.lineStyle(1, 0x33, 1);

childCanvas.graphics.beginFill(0xCC,0.6);

childCanvas.graphics.drawCircle(200,150,7); 

childCanvas.graphics.endFill();

childCanvas.id = myCircle;

childCanvas.toolTip = I'm a circle;

 

mainCanvas.addChild(childCanvas);

 

This all works fine. However, I want to add some text next to the circle
(with AS) and I can't see how to do it. I've tried many ways and nothing
worked. It seems I can't add an instance of a text object as a child to
the canvas in the same way that I can a shape. How should I be doing
this?

 

Guy

 

 



Re: [flexcoders] Dynamically creating a text object

2007-02-26 Thread Guy Morton
I've done some further tinkering with this, and I can't get any  
transformed text to appear on a canvas. Am I doing something wrong?  
Can someone point me to an example that works? Is this a bug?


Here's a simple test case:

var myText:Text = new Text();
myText.text = Hello;
myText.x = 200;
myText.y = 200;
myText.transform.matrix = new Matrix(1,0,0,-1,0,300);
myCanvas.addChild(myText);


Guy

On 26/02/2007, at 8:53 AM, Guy Morton wrote:

Nope, adding the text children clears my canvas. I think I now know  
why. After I add all these children to my main Canvas I'm adding a  
transform matrix to it to flip it vertically, like so:



mainCanvas.transform.matrix = new Matrix(1,0,0,-1);

This works just fine so long as I don't add the text children, but  
if I do, the canvas ends up empty.


Is this something to do with Flex not being happy to vertically  
flip my text objects? If so, would that be a bug?


Thanks for your help.

Guy


On 26/02/2007, at 6:39 AM, leds usop wrote:


var childCanvas: Canvas = new Canvas();
var t:Text= new Text();
t.text=this is a circle;
t.x=220;
t.y=140;
childCanvas.graphics.lineStyle (1, 0x33, 1);
childCanvas.graphics.beginFill (0xCC, 0.6);
childCanvas.graphics.drawCircle(200,150, 7);
childCanvas.graphics.endFill( );
childCanvas.id = myCircle;
childCanvas.toolTip = I'm a circle;
childCanvas.addChild(t);


mainCanvas.addChild(childCanvas);








RE: [flexcoders] RemoteObject - request timeout

2007-02-26 Thread Seth Hodgson
The requestTimeout property triggers the component (a RemoteObject in this 
case) to give up waiting for a result or fault response from the remote server 
and generates a fault locally on the client. So you'll be able to handle this 
in your general fault handler and you can watch for these; they'll have a 
faultCode of Client.Error.RequestTimeout.

This property is useful if your component is making an idempotent (read-only) 
request for data or is sending a notification that can be safely resent. If a 
request times out you can safely retry it.

If you use this when you make a call that modifies, creates or deletes data on 
the server and the request times out you should query the server for its 
current state before attempting to retry the call.

HTH,
Seth


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
alanmorehead79
Sent: Thursday, February 22, 2007 10:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RemoteObject - request timeout

Does anyone have an example of how to handle a request timeout for a
remote data service?

I have a RemoteObject in my app and it has a requestTimeout property.
Does this dispatch an event when the timeout occurs?

mx:RemoteObject id=myService requestTimeout=10
endpoint=http://localhost; destination=TestService
fault=onFault(event); showBusyCursor=true

I could create a timer that is started when the invoke event is fired,
but what would the point of the requestTimeout property be then?
 


AW: [flexcoders] Problem with List Item Renderer (and states)

2007-02-26 Thread Harald Dehn
Hi Neil,

 

the item renderer will be reused in a list after an item is outside the
visible area. You could save the state to the underlying data. In your
item renderer you could override the commitProperties method:

 

 

 private function buttonExpandedHandler(event:Event):void {

  // pressing the button

  data[ExpandedState] = (data[ExpandedState] != true ); 

 

 // Change state with effects

}

 

 //

 protected override function commitProperties():void {

  super.commitProperties();

 

  var expandedState:Boolean = ( data  data[ExpandedState] ) ;

  

  // Change state if necessary without effect

}

 

When an item renderer will be reused, the underlying item will be set by the
framework with the data property which calls invalidateProperty. The code is
not tested, but it should work. 

 

Please excuse my English,

Harald

 

 

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von nwebb
Gesendet: Sonntag, 25. Februar 2007 14:04
An: flexcoders
Betreff: [flexcoders] Problem with List Item Renderer (and states)

 

Hi, 
I have a custom item renderer with two states (expanded and collapsed)
My items are displayed in a List component, and the data is currently coming
from an ArrayCollection.

You can see the page here (click on Gig Calender):
http://www.bathbands.co.uk/test2007/

Here is an example of the problem I'm facing:

1) Click the Read More button of the first item in the List - it will
expand. 
2) Scroll down and you can see that the third and last item have also
expanded.
3) Scroll back up and you will see that the first item is now in the
collapsed state again, but other items are now in the expanded state. 

I'm not sure what's causing the other items to open/close. I guess it has
something to do with Flex redrawing stuff as it goes off screen, and would
appreciate suggestions on how best to prevent this kind of thing from
happening. 

Cheers,
Neil 

 



Re: [flexcoders] Is it possible to build an actionscript only app that uses FDS remoting?

2007-02-26 Thread hank williams

Hey Brian,

Wow, not at all what I was thinking about but it looks like a better much
more flexible solution to the problem than what I had in mind.

Thanks
Hank

On 2/25/07, Brian Lesser [EMAIL PROTECTED] wrote:


Hi Hank,
I'm not using FDS, but do you mean like this:
http://www.mikenimer.com/index.cfm/2007/1/10/Bye-bye-services
Yours truly,
-Brian


hank williams wrote:

 I want to do java remoting, and I am currently using FDS. I would like
to
 build an actionscript project that uses java remoting via remoteObject.

 When you configure a flex project for remoting you indicate in the
 project
 settings where the flex server is, but these options are not available
 for
 an actionscript project. This would suggest that you cannot (or should
 not)
 do actionscript only projects that do FDS based remoting. My guess is
 that I
 am supposed to do this with a flex project but it does seem wierd that
an
 actionscript project is not supposed to be used for remoting.

 Any insight appreciated.

 Hank



--
__
Brian Lesser
Assistant Director, Application Development and Integration
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: POD??  E-mail: [EMAIL PROTECTED]
(Enter through LB99)   Web: http://www.ryerson.ca/~blesser
__




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






RE: [flexcoders] CurrencyFormatter applied to LineSeries

2007-02-26 Thread Ely Greenfield
 
 
Marc -- what exactly are you trying to do?  Format the labels on the
axis?  On the datatips? elsewhere? For the chart to work, it needs to be
able to run calculations on the y values -- pre-formatting them prevents
that.  If you're looking to format datatips, try a data tip function on
the chart.  If you're looking to format the axis, try a label function
on the vertical axis.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of marc_rossi
Sent: Sunday, February 25, 2007 7:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] CurrencyFormatter applied to LineSeries



Hi all -

I'm trying to use a LineSeries with stock prices. When I format the
yField with the CurrencyFormatter the chart no longer works. It looks
as though I need to create my own itemRenderer but have been
unsuccessful thus far in my attempts. Is this the correct route? If
so, are there any examples available online?

TIA,
Marc 



 


Re: [flexcoders] How can I loop through a Tile ?

2007-02-26 Thread Ciarán
Hi Mark,

Your question is quite vague, a solid example of what you're trying to
achieve might clear things up a bit.

To access children, use the getChildAt() method, or if you're trying
to access non-display children:

http://livedocs.adobe.com/flex/201/html/containers_intro_063_25.html

tile.getChildAt(0) will return the first child, then a further
getChildAt(0) on the child will return the first child of the child
and so on.

If you're treating the contents of the Tile container like list data,
then investigate using the TileList control instead.

Best Regards,
Ciarán

On 2/26/07, oneproofdk [EMAIL PROTECTED] wrote:
 HI all.
 I'm populating a Tile using AS - addChild(), where I add a component.
 The component is a VBox, where I addChild 2 image's. I set the name
 for each image (leftImage.name = ).
 So the structure of the Tilelist is something like this :

 tile
 vbox
 hbox
 canvas
 image_left
 /canvas
 image_right
 /canvas
 /hbox
 /vbox
 ...
 /tile

 How can I access subchilds ??

 Any pseudocode or examples would be greatly appreciated!

 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






RE: [flexcoders] Can anyone help on getting data from a grid cell .. I know the row/column index

2007-02-26 Thread Tracy Spratt
You can not do that.

 

You must work with the dataProvider.

 

The cells do not exist, they are just windows into the dataProvider
item.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of helihobby
Sent: Sunday, February 25, 2007 12:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can anyone help on getting data from a grid cell
.. I know the row/column index

 


Hello,

Can anyone help out ...
I know the Data Grid Cell's Row and Colum Index.

How can I retrieve the data in that cell if I know these two values ?

Thank you,

Sean.

 



Re: [flexcoders] Re: broken: stacked AreaChart when using horizontal DateTimeAxis

2007-02-26 Thread Adam Royle
Just a general note to anyone reading this, remember that months in 
ActionScript dates are 0-indexed.

new Date(2007,2,25)  is actually March 25th, not February as you would expect. 
Here is my parseDate function which converts date strings from -MM-DD 
format into a Date object.


public function parseDate(s:String):Date
   {
if (!s) return null;
var a:Array = s.split('-');
return new Date(parseInt(a[0]),parseInt(a[1])-1,parseInt(a[2]));
   }


Hope that helps someone along the way.

Cheers,
Adam

  - Original Message - 
  From: Mark 
  To: flexcoders@yahoogroups.com 
  Sent: Sunday, February 25, 2007 10:37 PM
  Subject: [flexcoders] Re: broken: stacked AreaChart when using horizontal 
DateTimeAxis


  I was having the same problem and found from the help files I needed 
  to make sure my dates were coming in as dates, so there's a 
  parseFunction I needed to add, like this:

  mx:horizontalAxis
  mx:DateTimeAxis labelUnits=months dataUnits=days 
  displayLocalTime=true parseFunction=myParseFunction /
  /mx:horizontalAxis

  //function
  public function myParseFunction(s:String):Date { 
  // Get an array of Strings from the comma-separated String passed in.
  var a:Array = s.split(,);
  // Create the new Date object.
  var newDate:Date = new Date(a[0],a[1],a[2]);
  return newDate;
  }

  Hope it helps



   

RE: [flexcoders] is there a way to open a file in flex app'

2007-02-26 Thread Jeffry Houser


 How does Flash upload files without access to the user's file 
system?  I thought the security requirement was relaxed with the 
release of Flash 8.


 Conceptually, I would assume that if Flash can send a file to the 
server, it must be accessing the file system somehow.  Once Flash 
gets the file, I would expect there is a way to get at the contents.


 Realistically, I have no idea how to do that.

At 02:16 PM 2/25/2007, you wrote:

Because of security restrictions, the Flash Player running in the 
browser can not access the user's file system. The only way to do 
this is to wrap your flex swf in something like Zinc which allows it 
to run as a desktop application, or of course Adobe Apollo, which is 
in alpha/almost-beta right now.




Karl



Cynergy



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

Sent: Sunday, February 25, 2007 7:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] is there a way to open a file in flex app'



hi guys,
i'm pretty new to flex.
is there a way in flex 2 (action script 3) to perform the following
action: let user (client) to choose the file on his local comp' and
display its contents on the screen.

i've looked on FileReference class. but it seems the class allows just
to upload the file to the server and not to look on the file stream.

Thanks,
:)




--
Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com
Connecticut Macromedia User Group: http://www.ctmug.com


Re: [flexcoders] Problem with List Item Renderer (and states)

2007-02-26 Thread Ralf Bokelberg

Existing item renderers are reused by the framework to increase the
performance.
Your itemrenderer should rely on the data only, it should not have local
state.
In your case, you could store the open/close state of your item renderer in
the data object.

Cheers
Ralf

On 2/25/07, nwebb [EMAIL PROTECTED] wrote:


  Hi,
I have a custom item renderer with two states (expanded and collapsed)
My items are displayed in a List component, and the data is currently
coming from an ArrayCollection.

You can see the page here (click on Gig Calender):
http://www.bathbands.co.uk/test2007/

Here is an example of the problem I'm facing:

1) Click the Read More button of the first item in the List - it will
expand.
2) Scroll down and you can see that the third and last item have also
expanded.
3) Scroll back up and you will see that the first item is now in the
collapsed state again, but other items are now in the expanded state.

I'm not sure what's causing the other items to open/close. I guess it has
something to do with Flex redrawing stuff as it goes off screen, and would
appreciate suggestions on how best to prevent this kind of thing from
happening.

Cheers,
Neil
 





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


RE: [flexcoders] Problem with List Item Renderer (and states)

2007-02-26 Thread Tracy Spratt
In your itemRenderer, you must update a property in the dataProvider
item when the user causes the state to change, and in the overrides set
data() function, you must read this item property and set the state
accordingly.

 

Tracy

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nwebb
Sent: Sunday, February 25, 2007 8:04 AM
To: flexcoders
Subject: [flexcoders] Problem with List Item Renderer (and states)

 

Hi, 
I have a custom item renderer with two states (expanded and collapsed)
My items are displayed in a List component, and the data is currently
coming from an ArrayCollection.

You can see the page here (click on Gig Calender):
http://www.bathbands.co.uk/test2007/
http://www.bathbands.co.uk/test2007/ 

Here is an example of the problem I'm facing:

1) Click the Read More button of the first item in the List - it will
expand. 
2) Scroll down and you can see that the third and last item have also
expanded.
3) Scroll back up and you will see that the first item is now in the
collapsed state again, but other items are now in the expanded state. 

I'm not sure what's causing the other items to open/close. I guess it
has something to do with Flex redrawing stuff as it goes off screen, and
would appreciate suggestions on how best to prevent this kind of thing
from happening. 

Cheers,
Neil 

 



Re: [flexcoders] Is it possible to build an actionscript only app that uses FDS remoting?

2007-02-26 Thread Anatole Tartakovsky

Hank,
Create trivial MXML project with single remote object/destination. Compile
with -keep-generated-actionscript=true. Look for ...init... class - copy
part of it into your project.
Alternatively, you can use gateway java class that would do server side
translation - one destination talking to that class will support any number
of client destinations.
Regards,
Anatole


On 2/25/07, Brian Lesser [EMAIL PROTECTED] wrote:


  Hi Hank,
I'm not using FDS, but do you mean like this:
http://www.mikenimer.com/index.cfm/2007/1/10/Bye-bye-services
Yours truly,
-Brian

hank williams wrote:

 I want to do java remoting, and I am currently using FDS. I would like
to
 build an actionscript project that uses java remoting via remoteObject.

 When you configure a flex project for remoting you indicate in the
 project
 settings where the flex server is, but these options are not available
 for
 an actionscript project. This would suggest that you cannot (or should
 not)
 do actionscript only projects that do FDS based remoting. My guess is
 that I
 am supposed to do this with a flex project but it does seem wierd that
an
 actionscript project is not supposed to be used for remoting.

 Any insight appreciated.

 Hank


--
__
Brian Lesser
Assistant Director, Application Development and Integration
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220
Office: POD?? E-mail: [EMAIL PROTECTED] blesser%40ryerson.ca
(Enter through LB99) Web: 
http://www.ryerson.ca/~blesserhttp://www.ryerson.ca/%7Eblesser
__

 



Re: [flexcoders] Re: Can anyone help on getting data from a grid cell .. I know the row/column index

2007-02-26 Thread André Rodrigues Pena

It's not usual to access data from the grid, you access data from it's
dataprovider that is normally either a ArrayCollection or a XML object.

Imagine your grid has the following data provider:

var xml:XML =
package
employee id=0 name=Michael/
employee id=1 name=Roger/
/package;

So you can access data this way:

[EMAIL PROTECTED] will return Roger.
[EMAIL PROTECTED] will return 0







On 2/26/07, helihobby [EMAIL PROTECTED] wrote:


  Is it possible ?

Sean.

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


 Hello,

 Can anyone help out ...
 I know the Data Grid Cell's Row and Colum Index.

 How can I retrieve the data in that cell if I know these two values ?

 Thank you,

 Sean.


 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Dynamically creating a text object

2007-02-26 Thread Guy Morton

Hi Karl

That was the first thing I tried, but it didn't work. Hmm. Am I going  
mad? Can someone confirm that the below code works for them?


Guy


On 26/02/2007, at 3:04 AM, Karl Johnson wrote:



var text:Text = new Text();

text.text = “My Text”;

text.x = 10;

text.y = 20;

childCanvas.addChild(text);



Karl



Cynergy



From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Guy Morton

Sent: Sunday, February 25, 2007 8:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamically creating a text object



Hello. I'm stumped.



I'm creating some circles in AS and putting them on a Canvas that's  
declared in my MXML file like so




var childCanvas:Canvas = new Canvas();

childCanvas.graphics.lineStyle(1, 0x33, 1);

childCanvas.graphics.beginFill(0xCC,0.6);

childCanvas.graphics.drawCircle(200,150,7);

childCanvas.graphics.endFill();

childCanvas.id = myCircle;

childCanvas.toolTip = I'm a circle;



mainCanvas.addChild(childCanvas);



This all works fine. However, I want to add some text next to the  
circle (with AS) and I can't see how to do it. I've tried many ways  
and nothing worked. It seems I can't add an instance of a text  
object as a child to the canvas in the same way that I can a shape.  
How should I be doing this?




Guy










Re: [flexcoders] Can anyone help on getting data from a grid cell .. I know the row/column index

2007-02-26 Thread Douglas Knudsen

just look at myDatagrid.selectedItem.  This is a reference to the item in
your dataprovider behind the row.

DK

On 2/25/07, helihobby [EMAIL PROTECTED] wrote:



Hello,

Can anyone help out ...
I know the Data Grid Cell's Row and Colum Index.

How can I retrieve the data in that cell if I know these two values ?

Thank you,

Sean.




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







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


Re: [flexcoders] New Project: FlexCRUD -- Create Update Delete for Flex/amfphp/cairngorm

2007-02-26 Thread Patrick Mineault
Sounds awesome. URL doesn't work though.

Patrick

Mike Crowe a écrit :

 Hi folks,

 I'm in the process of releasing my system generation utility via
 riaforge. Essentially, I'm using about 15 templates to generate 
 100 files.

 From a 1' perspective, I have created a generic template based
 system that generates:

 * Cairngorm commands: Get, GetAll, Save, Delete
 * Cairngorm events: GetSuccess, GetFailure, etc.
 * Cairngorm control file
 * amfphp Remote Delegate
 * amfphp ViewObject for both Actionscript and PHP
 * amfphp Service dispatcher
 * amfphp DTO file to save ViewObject to database
 * Unit test structures for testing both PHP-Database and Flex-
 PHP-Database operations for all tables.
 * etc.

 I based the database on PHP Doctrine, which handles all my database
 interaction in a very clean manner.

 Here's the help I need. To me, I think this will be very helpful to
 somebody *starting* a new project. It will generate all the core
 tables, events, commands, and directories for a basic system.
 However, I need some review from the Flex community to tell me if
 I'm way off base on this. If it isn't useful, please be honest and
 provide that feedback.

 Here's the initial wiki documenting the core. I'll shoot to release
 the full code tomorrow:

 http://www.your- solutions. us/doku.php/ start 
 http://www.your-solutions.us/doku.php/start

 TIA
 Mike

  



Re: [flexcoders] URL Link in Flex Application

2007-02-26 Thread Adam Royle
mx:Button label=Click me click=navigateToURL(new 
URLRequest('myurl.html'),'_self') /

  - Original Message - 
  From: Lisa Lee 
  To: flexcoders@yahoogroups.com 
  Sent: Saturday, February 24, 2007 2:37 PM
  Subject: [flexcoders] URL Link in Flex Application


  Can you tell me how to be able to have a user click on a link (button, 
  whatever) from within a Flex application and have it take the user to a 
  non-Flex, regular web page within their browser? It's probably a 
  simple answer but I'm still getting up to speed with Flex. Thanks!



   

Re: [flexcoders] List itemRenderer problem with example

2007-02-26 Thread Ciarán
Hi Tom,

You're right that only a finite number of list itemRenderers are
created. When something changes (like the visible portion of a list)
those that don't need to be re-rendered are moved on stage. They are
only re-rendered when the necessary (i.e. when the data changes).

You have to make certain that each itemRenderer is properly
initialized, and that if itemRenderers are moved, their state is
checked and they are re-rendered accordingly.

Posting the relevant code here might help expose the problem.

Best Regards,
Ciarán






On 2/24/07, Tom Bray [EMAIL PROTECTED] wrote:
 Here are the steps to see my issue in action:

 1. go to http://www.tombray.com/queryBuilder/
 2. click the plus sign twice to create two more list items
 3. change the first combobox in the first item to Date and notice
 that the itemRenderer changes state
 4. click the minus sign in the first item (the one you just set to Date)
 5. notice that the bottom itemRenderer is now in the Date state but
 shouldn't be.

 So, I'm assuming that the List is recycling itemRenderer instances
 for efficiency, but I'd like a better understanding of what's going
 on and a recommended strategy for dealing with this.  Any help?  Thanks!

 -Tom



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






Re: [flexcoders] Dynamically creating a text object

2007-02-26 Thread Doug McCune

Does flipping the canvas clear all the content, or does it simply make your
text disappear? Rotating text means you must embed the font that's used.
Otherwise the text will be invisible if any rotation is applied.

Doug


On 2/25/07, Guy Morton [EMAIL PROTECTED] wrote:


  Nope, adding the text children clears my canvas. I think I now know why.
After I add all these children to my main Canvas I'm adding a transform
matrix to it to flip it vertically, like so:

mainCanvas.transform.matrix = new Matrix(1,0,0,-1);

This works just fine so long as I don't add the text children, but if I
do, the canvas ends up empty.

Is this something to do with Flex not being happy to vertically flip my
text objects? If so, would that be a bug?

Thanks for your help.

Guy


On 26/02/2007, at 6:39 AM, leds usop wrote:

var childCanvas: Canvas = new Canvas();
var t:Text= new Text();
t.text=this is a circle;
t.x=220;
t.y=140;
childCanvas.graphics.lineStyle (1, 0x33, 1);
childCanvas.graphics.beginFill (0xCC, 0.6);
childCanvas.graphics.drawCircle(200,150, 7);
childCanvas.graphics.endFill( );
childCanvas.id = myCircle;
childCanvas.toolTip = I'm a circle;
childCanvas.addChild(t);


mainCanvas.addChild(childCanvas);


 



Re: [flexcoders] Re: Problem with List Item Renderer (and states)

2007-02-26 Thread nwebb

John, that's great info and should allow me to address the problem.
I really appreciate the answer.
Thanks :]

On 2/25/07, shuell2000 [EMAIL PROTECTED] wrote:


  Your problems stem from the fact that Lists reposition and resize
children each time updateDisplayList is called. Which is whenever you
scroll or resize any of their children. List components extend
TileBase which has a method called makeRowsAndColumns which is the
method that is causing you frustration at the moment. Lists were not
meant to hold itemRenderers that can resize themselves. Instead Lists
have built in mouseOver and mouseDown handlers that recolor the
background behind the object causing the mouseEvent and they must have
thought that would be good enough. I recently had to rewrite the list
classes to allow a resize to work on mouseOver of its children. It
was an ugly hack but the project timeline did not allow me to do much
more at the moment. Basically I created my own Tilebase and ListBase
classes then changed the updateDisplayList method and the
makeRowsAndColumns method to leave alone any itemRenderer that was not
in its default state. Aside from a few issues caused by this, it
seems to have solved my issue but is hardly clean enough to post here.
Take a look at those methods I mentioned and see if you can't do
something in them to ignore anything that is transitioning to a new
state or in a new state.

Good Luck,

John Shuell


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

 Hi,
 I have a custom item renderer with two states (expanded and collapsed)
 My items are displayed in a List component, and the data is
currently coming
 from an ArrayCollection.

 You can see the page here (click on Gig Calender):
 http://www.bathbands.co.uk/test2007/

 Here is an example of the problem I'm facing:

 1) Click the Read More button of the first item in the List - it will
 expand.
 2) Scroll down and you can see that the third and last item have also
 expanded.
 3) Scroll back up and you will see that the first item is now in the
 collapsed state again, but other items are now in the expanded state.

 I'm not sure what's causing the other items to open/close. I guess
it has
 something to do with Flex redrawing stuff as it goes off screen, and
would
 appreciate suggestions on how best to prevent this kind of thing from
 happening.

 Cheers,
 Neil


 



Re: [flexcoders] checkbox with tree component

2007-02-26 Thread Mrinmoyee Sanyal

Or you cud get it free from Adobe:

http://www.adobe.com/cfusion/exchange/index.cfm?view=sn611extID=1047969


-MS













On 2/23/07, dorkie dork from dorktown [EMAIL PROTECTED]
wrote:


  Saurav,

In case you want to buy a solution
http://www.teotigraphix.com/flex2/components/controls/checkboxtreefx.


On 2/22/07, sauravsinha79 [EMAIL PROTECTED] wrote:

 Hi,

 I want to add a check box with each tree node(branch/leaf).

 Any help will be really appreciated.I went through some sample but
 couldn't understand. I m just a begginer w.r.t flex, but i know AS2
 (OOPS).

 Any help will be really appreciated

 Regards  Thanx
 Saurav




 --
 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 - Join or create groups, clubs, forums  communities.
 Links





 



Re: [flexcoders] Dynamically creating a text object

2007-02-26 Thread Guy Morton

Yeah, sorry. I didn't realise it was relevant. :-)

The docs for Matrix and Transform ought perhaps to alert people to  
this, so others don't have to suffer as I have...


Guy

On 26/02/2007, at 3:10 PM, leds usop wrote:


you didnt mention the vertical flip in your prior post
:). If you dont apply the flip, the text and circle
will display fine. But the addition of the flip
requires that you embed the font in the text
component. see the docs on how to embed fonts using
styles. :)

--- Guy Morton [EMAIL PROTECTED] wrote:

 Nope, adding the text children clears my canvas. I
 think I now know
 why. After I add all these children to my main
 Canvas I'm adding a
 transform matrix to it to flip it vertically, like
 so:

 mainCanvas.transform.matrix = new Matrix(1,0,0,-1);

 This works just fine so long as I don't add the text
 children, but if
 I do, the canvas ends up empty.

 Is this something to do with Flex not being happy to
 vertically flip
 my text objects? If so, would that be a bug?

 Thanks for your help.

 Guy


 On 26/02/2007, at 6:39 AM, leds usop wrote:

  var childCanvas: Canvas = new Canvas();
  var t:Text= new Text();
  t.text=this is a circle;
  t.x=220;
  t.y=140;
  childCanvas.graphics.lineStyle (1, 0x33, 1);
  childCanvas.graphics.beginFill (0xCC, 0.6);
  childCanvas.graphics.drawCircle(200,150, 7);
  childCanvas.graphics.endFill( );
  childCanvas.id = myCircle;
  childCanvas.toolTip = I'm a circle;
  childCanvas.addChild(t);
 
 
  mainCanvas.addChild(childCanvas);



__
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find  
flight and hotel bargains.

http://farechase.yahoo.com/promo-generic-14795097






RE: [flexcoders] Re: Accessing FLEX data from within a SWF??

2007-02-26 Thread Shannon Hicks
To do it like you are thinking, you will need to use a Flash 9 swf instead
of a Flash 8 swf. Apollo will likely do exactly what you want. It is
presumed to be released in public beta form in the next few weeks.

 

Shan

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of stevekpeak8
Sent: Sunday, February 25, 2007 3:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Accessing FLEX data from within a SWF??

 

I really appreciate the good ideas.

I tried this approach, and it (unfortunately) didn't work.

What I really need, however is merely to be able to find out how to 
correctly notate the SCOPE of variables in the SWF, and whether I 
need to do anything specific to EXPOSE them in the SWF file.

Thanks,

Steve

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

 have you tried using FABridge or externalinterface
 instead? that is assuming of course swfkit supports
 javascript.
 
 
 --- stevekpeak8 [EMAIL PROTECTED] wrote:
 
  Thanks for the response,
  
  I'm not really trying to go between AVM2 and AVM3
  for my actual 
  product. Yes, opening a Flex app in Flash AMOUNTS
  to doing so, but 
  that's just to try to get a better view of how to
  access the AVM3 
  variables.
  
  All I'm trying to do is to gain access to some of
  the AVM3 variables 
  in my Flex swf so that my EXE wrapper can
  communicate with the SWF.
  
  BTW... Are there any utilities available that would
  let me peer 
  inside an AVM3 SWF?
  
  Thanks in Advance.
  
  Steve
  
  
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, leds usop
  rptlead@ wrote:
  
   You cant access avm2(as2 swfs) scripts loaded
  within
   avm3 (as3 swfs --flex swfs) and vice versa. Well
  at
   least not directly. If you forcibly load an as3
  swf in
   flash 8, certainly you will not be able to see the
   scripts/ vars within except perhaps the version
  var.
   Same thing goes with loading as2 swfs within as3,
   unless you are using the as2 swf as assets for
   skinning and the like, you will lose the
   script-enabled functionalities in that as2 swf. 
  You
   can check out the docs for more details about
  this. 
   
   You may want to take a look at FlashInterface
  here:
  
 
 http://www.flashextensions.com/products/flashinterface.php
   
   although i think you will have to change which
  loads
   which... anyway, it's better than not being able
   to use your as2 functionalities entirely - unless
  you
   port all of them into as3 :) I hope that helps.
  Best
   of luck! 
   
   -leds
   
   --- stevekpeak8 stevek@ wrote:
   
Claus,

Thanks very much for your reply.

Unfortunately, I can't do this the way you
  suggest,
as I'm not 
operating in a typical WEB environment. I'm in
  an
.EXE environment 
using a tool called SWFKit.

Here's the thing... If I take my output SWF,
  and
load it from within 
Flash Professional 8, I can list variables
  from
the debug menu. 
Using most SWFs that are created in Flash
  itself, I
CAN gain 
visibility to many/all of the variables defined
within Flash. 
However, from a SWF created in FLEX, I can only
  see
ONE variable:

Level #0:
Variable _level0.$version = WIN 8,0,22,0

And I AM able to see this variable from within
  the
SWFKit environment.

There's GOT to be a way to mark other variables
  in
Flex to make them 
appear in this exported list of variables, don't
  you
think? I'm 
hoping that someone at Adobe can help me with an
MXMLC trick to 
export variables to the Flash'variables' list.

ANY HELP WILL BE GREATLY APPRECIATED.

Thanks AGain, Claus
--- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Claus Wahlers
claus@ wrote:

 
  When I define a VAR in Flex, I know that the
MXML compiler turns 
that 
  into a FLASH variable in the output SWF… 
  But
What DOMAIN is that 
  variable listed in (for example _root in a
.FLA)?
  
  I need to know this because we're using
  SWFKit
to turn a SWF into 
an 
  EXE, and I need the domain in order to
  get/set
Flex Variables 
from 
  with in the SWF wrapper.
 
 You need to go the other way round: At startup
  of
your application, 
grab 
 the LoaderInfo.parameters object which
  contains
the variables 
passed to 
 your SWF from the outside, something like
  this:
 
 var flashVars:Object =
  root.loaderInfo.parameters;
 var myFlashVar:String =
  flashVars['myFlashVar'];
 
 Cheers,
 Claus.
 
 -- 
 claus wahlers
 côdeazur brasil
 http://codeazur.com.br/
 http://wahlers.com.br/claus/blog/
 
 --
 READ CAREFULLY. By reading this email you
  agree,
on behalf of your 
 employer, to release me from all obligations
  

RE: [flexcoders] Google Map API Flex2.0 Integration?

2007-02-26 Thread Grant Davies
if it doesn't have to be free, I've integrated flashmaps.com into flex..
Ive used location connection and external interface to it.
 
 
Grant
 
 
...
 b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
 [EMAIL PROTECTED]
 http://www.bluetube.com/bti http://www.bluetube.com/bti 
 A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rich Tretola
Sent: Friday, February 23, 2007 5:48 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Google Map API  Flex2.0 Integration?



This can be done through an iFrame, but I would suggest you use the
flash version yahoo maps with LocalConnection to communicate instead.
Here is a good resource:
http://www.asfusion.com/blog/entry/inserting-yahoo-maps-in-a-flex-2-appl
ication
http://www.asfusion.com/blog/entry/inserting-yahoo-maps-in-a-flex-2-app
lication 

Also, be sure to vote for Flex 2 support for Yahoo Maps here:
http://suggestions.yahoo.com/detail/?prop=ydnfid=3208
http://suggestions.yahoo.com/detail/?prop=ydnfid=3208 

Rich


On 2/23/07, sanjaypmg [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

Hi All,

How can I integrate google map API with Flex?

Has anybody done it?

Please send your Comments\Ideas to get it done.

Thanks in Advance,
Sanjay








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

 
attachment: small.jpg


Re: [flexcoders] Firefox (2.0.0.1) content caching and HTTPService calls

2007-02-26 Thread Douglas Knudsen

On 2/23/07, Private Romeo [EMAIL PROTECTED] wrote:


 We have build an application which polls XML data bound to Flex Charting
controls via HTTPService. We have noticed that run in Firefox 2.0.0.1 it
seems as if the result get cached. Even though the server side data changes
the chart does not update. If you select *Tools  Clear Private Data* in
Firefox the updated data is fetched and the chart immediately gets updated.



Does anybody know how to send a no-cache instruction via HTTPService or
work around this problem?



Internet Explorer 7 does not seem to have this odd behavior.



bet it does if you set 'Check for newer versions of stored pages' to
automatic.  A issue we have here  due to forced intranet settings.  Ran
across this using AJAX too.  Try adding a random number to your URL
http://myurl.com?stupid=insertrandomumberhere

DK

Your feedback is very much appreciated.




-Ralf


 





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


Re: [flexcoders] URL Link in Flex Application

2007-02-26 Thread Angus Johnson

navigateToURL() method is what you're after. There is an example included in
the Flex doc's loading a url to a new window after a button click.

On 24/02/07, Lisa Lee [EMAIL PROTECTED] wrote:


  Can you tell me how to be able to have a user click on a link (button,
whatever) from within a Flex application and have it take the user to a
non-Flex, regular web page within their browser? It's probably a
simple answer but I'm still getting up to speed with Flex. Thanks!

 



Re: [flexcoders] URL Link in Flex Application

2007-02-26 Thread Bhuvan Gupta

Use LinkButton.
Refer ComponentExplorer shipped with Flex SDK for an example.


On Feb 24, 2007, at 10:07 AM, Lisa Lee wrote:


Can you tell me how to be able to have a user click on a link (button,
whatever) from within a Flex application and have it take the user  
to a

non-Flex, regular web page within their browser? It's probably a
simple answer but I'm still getting up to speed with Flex. Thanks!







Re: [flexcoders] Re: Quick Flex 2.0 questions

2007-02-26 Thread Adam Pasztory

I just took the plunge and purchased FlexBuilder after spending a lot of
time exploring other options (OK, you can call me stingy).  The existing
FlashDevelop solution was too problematic in my opinion, and there's no
indication about when FD3 will be out.   And unless you're a big fan of
command line in general, it's probably not going to cut it for you.

After having played around with FB for about 2 days, I realize the decision
was a no-brainer.  The design mode is excellent.  I was able to throw
together nice-looking UIs for unit testing within a matter of hours.  The AS
coding support is on par with FlashDevelop.  So far my favorite new feature
is that the editor adds in import statements for you automatically when
you declare a var using that data type.  I love clever little features like
that.

-Adam

On 2/23/07, Jamie [EMAIL PROTECTED] wrote:


Thanks for the info guys, that's exactly what I need.  I'm definitely
going to download the demo of Flex Builder and play with it.  I
suspect I'll end up buying it if my prototypes with Flex prove to
work the way I expect them to.

I have to say, I'm really excited to discover Flex.  I was trying
to figure out a solution for this project via AJAX and it just wasn't
working.  Even using all the latest stuff, the web UI just couldn't
match the desktop app that this web app needs to replace.  I had
talked with the client about using Flash, but as a developer, I
always found developing apps for Flash really difficult.  I had no
idea you guys were working on essentially a UI/App framework for
Flash.  What a great idea!  From what I've seen so far, it seems like
the way to go for rich web app UI.

I'm excited to see what I can do with Flex.  Thanks!

Jamie


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

  I'm assuming that Flex retains the Flash socket ability to
 communication over TCP/IP?

 Yes. All Flash Player 9 APIs (the flash.* packages) are available in
 Flex.


  If all I want to do is deliver a Flex Flash app on the client that
 talks to a back end server over TCP/IP, I
 don't need to be paying for Flex Data Services, correct?

 Correct.

  There are no licensing fees to distribute regular Flex
applications?

 Correct.

  If I want to do some simple 2-D pie charts, will I need to buy the
 Adobe Flex Charting?

 Yes, unless you want to write your own 2-D pie charts.

  Or is ther some basic charting built into Flex?

 There is not.

  How much easier is it to build a Flex app with Flex Builder than
with
 the SDK?

 The three main advantages of FlexBuilder are:

 * code hints and code completion that make writing MXML and AS code
 easier and faster
 * visual debugging instead of command-line debugging with fdb
 * design view for doing visual layout

 I've heard developers say that FB pays for itself pretty quickly,
but
 since I work for Adobe I'll let other recommend whether you should
buy
 it or not. We love having SDK-only developers just as much as those
 using FlexBuilder.

 - Gordon


 

 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
 Behalf Of Jamie
 Sent: Friday, February 23, 2007 2:01 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Quick Flex 2.0 questions



 I am architecting an RIA that needs to be able to connect via
TCP/IP
 to a back-end server. I've looked at a lot of technologies, and
Flex
 2.0 Flash seems to be the best front end solution.

 4 questions:

 1) I'm assuming that Flex retains the Flash socket ability to
 communication over TCP/IP?

 2) All of the extremely expensive licensing for Flex Data Services
 has me a little spooked. If all I want to do is deliver a Flex
Flash
 app on the client that talks to a back end server over TCP/IP, I
 don't need to be paying for Flex Data Services, correct? There are
 no licensing fees to distribute regular Flex applications?

 3) If I want to do some simple 2-D pie charts, will I need to buy
 the Adobe Flex Charting? Or is ther some basic charting built into
 Flex?

 4) How much easier is it to build a Flex app with Flex Builder than
 with the SDK? I'll probably just download the trial and find out
 myself on this one.

 Thanks!






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






[flexcoders] About the mx:RemoteObject

2007-02-26 Thread huangxi12342003
when i click the button,do checkUsername(),it check if the 
filled usename have been used. I use RemoteObject to pass 
the username to java , java return the result :trueor false 
(string Type)
Error is:  Cannot invoke method 'ifUsernameUsed'.

There is code.
/
mx:script
   ...
   public function checkUsername():void
   {
... 
String s=BlogSpaceDatabase.ifUsernameUsed(Trim  
(textInputUsername.text));
... 
   }
   ...
/mx:script

mx:TextInput id=textInputUsername/

mx:Button id=btnCheckUsername label=¼ì²âÓû§Ãû 
click=checkUsername()/

mx:RemoteObject id=BlogSpaceDatabase  destination=BlogSpaceConn 
showBusyCursor=true fault=ErrorFunction(event)
   mx:method name=ifUsernameUsed /
/mx:RemoteObject



Re: [flexcoders] URL Link in Flex Application

2007-02-26 Thread Dave Carabetta

mx:Script
  import flash.net.navigateToURL;
/mx:Script

mx:LinkButton
   label=Cynergy Systems, Inc.
   click=navigateToURL(new URLRequest('http://www.cynergysystems.com/'),
'_blank'); /

Regards,
Dave.
Cynergy Systems, Inc.

On 2/23/07, Lisa Lee [EMAIL PROTECTED] wrote:


  Can you tell me how to be able to have a user click on a link (button,
whatever) from within a Flex application and have it take the user to a
non-Flex, regular web page within their browser? It's probably a
simple answer but I'm still getting up to speed with Flex. Thanks!

 



Re: [flexcoders] strange Could not resolve mx:Script to a component implementation. error

2007-02-26 Thread simon

it looks like you don't have an opening mx:Application tag so your mxml is
not well formed.

On 2/24/07, Yiðit Boyar [EMAIL PROTECTED] wrote:


  hi all;
i've just formatted my computer 1st time since i started flex; and now i'm
getting an error that i can not understand. do i miss sth with the install?
here is the code:
?xml version=1.0 encoding=utf-8?

mx:Text text=AA x=44 y=57/
mx:Script
![CDATA[
]]
/mx:Script
/mx:Application
 and here is the error:
Could not resolve mx:Script to a component implementation.
Also my working projects started to not to work.

where can be the problem ?

--
Need Mail bonding?
Go to the Yahoo! Mail 
QAhttp://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=asksid=396546091for
 great
tips from Yahoo! 
Answershttp://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=asksid=396546091users.

 





--
www.hootandholler.co.uk


Re: [flexcoders] URL Link in Flex Application

2007-02-26 Thread Brendan Meutzner

Hey,

Have a look at URLRequest and navigateToURL();


Brendan


Brendan


On 2/23/07, Lisa Lee [EMAIL PROTECTED] wrote:


  Can you tell me how to be able to have a user click on a link (button,
whatever) from within a Flex application and have it take the user to a
non-Flex, regular web page within their browser? It's probably a
simple answer but I'm still getting up to speed with Flex. Thanks!

 





--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


Re: [flexcoders] Re: FDS/Hibernate Sample of updating hierarchical list of values

2007-02-26 Thread Valy Sivec
That's an excellent message and I had ran through same issues myself and feel 
your pain...

Regards,
Valy 

- Original Message 
From: simonjpalmer [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 23, 2007 5:34:38 AM
Subject: [flexcoders] Re: FDS/Hibernate Sample of updating hierarchical list of 
values









  



PW and Jeff,



PW, you and I seem to be in the same boat.  I am trying to fight off

the people who were flex skeptics to start with.  Not being able to

write data back makes the whole thing look pretty amateur and confirms

people's belief that the technology isn't ready - which given this

experience it clearly isn't.  The baby is definitely at risk of being

thrown out with the bath water.  It stands in our company simply

because I have the final call as Technical Director (CTO if you are in

the US).



I am a huge flex advocate and really doing my best to evangelise on

the topic.  What's more I think that the bridge to operational data is

the most profound leap forward for flash, it takes it out of the world

of gimicks and into the world of real business applications.  



Jeff, you and your and team deserve huge credit for that vision and

excellent execution.



However, much as it pains me to say it, the bottom line is that the

hibernate middle tier provided does not work, as PW and I (and a host

of other people on various forums) have found.  I know that I can

re-write the whole thing myself and will probably have to, but when

introducing new technologies it is unfortunately all about initial

perception.  



I have made a career of doing this sort of thing myself and I have

seen excellent projects fail to fly because of low initial quality,

even though we fixed them immediately, the damage was done because

people's impression was that they were flaky.  I'm sure you know it is

hard to get back from that first impression and the word of mouth that

springs from it.  Once it becomes entrenched that opinion becomes fact

and you are irrevocably lost.  If I were Adobe I would be a little

worried about the tone of the posts I am seeing about integration with

Hibernate.



The Hibernate Assembler is very important and I would really hate to

see that happen to it.  The corollary is very unfortunate.  That

little bit of technology transform the boardroom conversation about

FDS.  Suddenly the cost of the licensing of FDS becomes justifiable

against the dev cost savings because we can just plug into the ORM. 

Having made that justification myself it is very difficult for me now

to go back and say, by the way I also have to incur the dev costs. 

When asked why? I have to confess that the Adobe code doesn't work and

we don't know when we're getting a fix.  For the Flex/Flash skeptics

in the room that's a god send.



For me it is a complete nightmare.  It is hard for me to separate the

cost of FDS licenses (which is almost prohibitively large) against the

cost of dev.  I would urge Jeff and Co to get the Hibernate Assembler

code watertight and shipping asap.  If I can be of any assistance I

will gladly offer my services.



If either of you would like to contact me, post a reply and I will

happily give you my details.



Simon Palmer

Technical Director

The PMCo

62 St Peters Street

St Albans

HERTS  AL1 3HG

UK



--- In [EMAIL PROTECTED] ups.com, parkerwhirlow parkerwhirlow@ ...

wrote:



 Thats very unfortunate. I'm getting farther and farther into hot water

 not being able to reliably update our data model using Flex.

 

 Last it was just wait for 2.0.1, there's a lot of Hibernate/FDS fixes

 in it and now we're waiting for another unknown amount of time for

 fixes we can only hope will help our situation.

 

 I'm apologize, I understand it's not your fault, and I really

 appreciate the insight you provide as to what can be causing our

 problems, I'm just getting up to my neck in unsolved problems.

 

 If you have any insight as to roughly when this next release could

 occur, can you tip me off?

 

 thanks,

 PW

 

 --- In [EMAIL PROTECTED] ups.com, Jeff Vroom jvroom@ wrote:

 

  I have finished making the changes and the use of the merge call

seems

  to be a) much simpler and b) more robust than the way the current code

  works.   

  

   

  

  Unfortunately we've made enough changes to the code surrounding the

  HibernateAssembler so I can't just send you the updated file and

have it

  work in FDS2.  It will be in an upcoming public beta but I don't think

  we've announced the dates on that.  

  

   

  

  Jeff

  

   

  

   _ _ __

  

  From: [EMAIL PROTECTED] ups.com

[mailto:[EMAIL PROTECTED] ups.com] On

  Behalf Of parkerwhirlow

  Sent: Thursday, February 15, 2007 3:29 PM

  To: [EMAIL PROTECTED] ups.com

  Subject: [flexcoders] Re: FDS/Hibernate Sample of updating

hierarchical

  list of values

  

   

  

  Hey Jeff, just curious if you've got 

[flexcoders] Re: CurrencyFormatter applied to LineSeries

2007-02-26 Thread marc_rossi
--- In flexcoders@yahoogroups.com, leds usop [EMAIL PROTECTED] wrote:

 a code post will help :) if you dont mind
 

Ok, did my best to shorten things up.  The line in question is:

 dict[vami] = tester.format(vami);

Changing this back to simply dict[vami] = vami gets the chart back.

Thanks again,
Marc


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

[Bindable]
public var monthlyData:ArrayCollection;

private function initApp():void {
srv.send();
monthlyData = new ArrayCollection();
}   

private function resultHandler(event:ResultEvent):void {
var vami:Number = 1000.0;
var temp:Array = event.result.list.month.source;
for (var i:Number = 0; i  temp.length; i++) {
vami *= (1.0 + Number(temp[i].roi));

var dict:Array = new Array();
dict[vami] = tester.format(vami);
dict[name] = temp[i].name;
monthlyData.addItem(dict);
}
}
]]
/mx:Script

mx:HTTPService id=srv url=http://192.168.1.6/pl/pnl2xml.pl;
useProxy=false result=resultHandler(event)/
mx:CurrencyFormatter id=tester precision=2/

mx:LineChart dataProvider={monthlyData}
mx:horizontalAxis
mx:CategoryAxis categoryField=name/ 
/mx:horizontalAxis
mx:series
mx:LineSeries displayName=VAMI yField=vami/
/mx:series
/mx:LineChart
/mx:Application



 --- marc_rossi [EMAIL PROTECTED] wrote:
 
  Hi all -
  
  I'm trying to use a LineSeries with stock prices. 
  When I format the
  yField with the CurrencyFormatter the chart no
  longer works.  It looks
  as though I need to create my own itemRenderer but
  have been
  unsuccessful thus far in my attempts.  Is this the
  correct route?  If
  so, are there any examples available online?
  
  TIA,
  Marc  
  
  
 
 
 
  


 It's here! Your new message!  
 Get new email alerts with the free Yahoo! Toolbar.
 http://tools.search.yahoo.com/toolbar/features/mail/





[flexcoders] ctrl key with a combination - doesnt seem to work

2007-02-26 Thread jmorpher03
Hi,

I am trying to trap the ctrl key along with a combination of any other
alphanumeric key by using the following code on a DataGrid control:

public void myKeyDown(event:KeyBoardEvent):void {
   if ( event.ctrlKey  event.keyCode == 67 ) // for 'C'
 {
   // copy selected row
   }
}

This does not seem to work. Nor is any other key combination detected
when we use the ctrl key. 

Isnt this the way to handle keyboard events ? Is there any other
explicit way to handle it ?

Regards,
Asgar.



[flexcoders] Flex Fullscreen Apps

2007-02-26 Thread john_69_11
Hi, I have a flex app that I want to be able to make fullscreen and
was having some problems with it.  I looked at the tutorial on adobes
site, and can get full screen to work but the components in my app
don't change size when going into fullscreen mode.  I've found that
setting the height and width on my components to 100% will cause them
to change size, all my components are absolutly sized and positioned
though.  Do I need to manually change the sized/position of all my
components when changing between normal and fullscreen or am I doing
something wrong?

Thanks for the help,

-john



[flexcoders] FlexBuilder issue

2007-02-26 Thread Paul DeCoursey
I have this warning...


1   Data binding will not be able to detect assignments to
systemManager.vmxma.mxml  vmxma/sourceline 551
February 23, 2007
3:42:38 PM  10823

Which refers to this line...
data:ItemProvider id=itemProvider


I was assigning systemManager to a property on that, but have since
removed it.  Why does the warning still appear?  How do I clear these
erroneous errors from my problems tab?

Paul 






[flexcoders] Looking for guidance on HTTPService sequencing

2007-02-26 Thread pgp.coppens
Hello Flex fans,

Yet another flex 101

I have read and (hopefully) understood how HTTPService and its result
handling works.

What I am struggling with is how I can enforce a certain sequencing so
that I have the guarantee that flash will not send a second request
after the first has been completed.

Alternatively, are there any synchronization mechanisms available at
all that could be used to implement the above?

Thanks,

Peter 



[flexcoders] properties file - changing at runtime

2007-02-26 Thread alehrens
I would like to implement a .XML file that contains properties, just
like a java.properties file.  What is the best way to do this?

I've found some previous posts, but have run into some issues with
them.  Specifically, what I'm trying to do is build my .swc and deploy
it to tomcat.  Then, on initialization of the .swc, it will read a
properties.xml file to read the URL for the WSDL for my webservices. 
I don't know the path to the .xml file prior to compilation because
the IP will change for each deployment and I don't want to include
that in the .mxml file, so I'd like it to be a relative path to the
location of the .swc or .html file.  I need to access the properties
file in both the .mxml file and a .as file as well.  Ideally then, I
could change the URL in the properties file and the change would be
read in on the next access of the flex application.

Thoughts?



[flexcoders] WS call sucessful with resultFormat=e4x, fails otherwise

2007-02-26 Thread ben.clinkinbeard
Hello, we are seeing some weird behavior when calling an RPC encoded
.NET web service. Unless we set resultFormat to e4x, we receive the
following error:

fault: [FaultEvent fault=[RPC Fault faultString=Error #1009: Cannot
access a property or method of a null object reference.
faultCode=DecodingError faultDetail=null]
messageId=BCCBBAB0-1457-00EA-5329-FE83F9158923 type=fault
bubbles=false cancelable=true eventPhase=2]

ServiceCapture shows that the call does return successfully, and the
response contains data. A faultCode of DecodingError leads me to
believe Flex is having trouble deserializing the response into
objects, but I am not sure why that would be. Are there certain SOAP
structures Flex is known to have problems with?

Thanks,
Ben



Re: [flexcoders] Re: broken: stacked AreaChart when using horizontal DateTimeAxis

2007-02-26 Thread Tom Chiverton
On Sunday 25 Feb 2007, Adam Royle wrote:
 public function parseDate(s:String):Date
{
 if (!s) return null;
 var a:Array = s.split('-');
 return new Date(parseInt(a[0]),parseInt(a[1])-1,parseInt(a[2]));
}

Might be better with a regular expression etc etc here, what happens if you 
give it 2007-45-45 or 2007--5-5 :-)

-- 
Tom Chiverton
Helping to heterogeneously brand third-generation design-patterns
at http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/4It09A/fOaOAA/yQLSAA/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/

* Your email settings:
Individual Email | Traditional

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

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

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

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


AW: [flexcoders] Re: Problem with List Item Renderer (and states)

2007-02-26 Thread Harald Dehn
There is a better solution solution:

 

You could save the state to the underlying data. In your item renderer you
could override the commitProperties method:

 

 

 private function buttonExpandedHandler(event:Event):void {

  // pressing the button

  data[ExpandedState] = (data[ExpandedState] != true ); 

 

 // Change state with effects

}

 

 //

 protected override function commitProperties():void {

  super.commitProperties();

 

  var expandedState:Boolean = ( data  data[ExpandedState] ) ;

  

  // Change state if necessary without effect

}

 

 

Harald

 

 

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von shuell2000
Gesendet: Sonntag, 25. Februar 2007 16:16
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: Problem with List Item Renderer (and states)

 

Your problems stem from the fact that Lists reposition and resize
children each time updateDisplayList is called. Which is whenever you
scroll or resize any of their children. List components extend
TileBase which has a method called makeRowsAndColumns which is the
method that is causing you frustration at the moment. Lists were not
meant to hold itemRenderers that can resize themselves. Instead Lists
have built in mouseOver and mouseDown handlers that recolor the
background behind the object causing the mouseEvent and they must have
thought that would be good enough. I recently had to rewrite the list
classes to allow a resize to work on mouseOver of its children. It
was an ugly hack but the project timeline did not allow me to do much
more at the moment. Basically I created my own Tilebase and ListBase
classes then changed the updateDisplayList method and the
makeRowsAndColumns method to leave alone any itemRenderer that was not
in its default state. Aside from a few issues caused by this, it
seems to have solved my issue but is hardly clean enough to post here.
Take a look at those methods I mentioned and see if you can't do
something in them to ignore anything that is transitioning to a new
state or in a new state.

Good Luck,

John Shuell

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

 Hi,
 I have a custom item renderer with two states (expanded and collapsed)
 My items are displayed in a List component, and the data is
currently coming
 from an ArrayCollection.
 
 You can see the page here (click on Gig Calender):
 http://www.bathbands.co.uk/test2007/
 
 Here is an example of the problem I'm facing:
 
 1) Click the Read More button of the first item in the List - it will
 expand.
 2) Scroll down and you can see that the third and last item have also
 expanded.
 3) Scroll back up and you will see that the first item is now in the
 collapsed state again, but other items are now in the expanded state.
 
 I'm not sure what's causing the other items to open/close. I guess
it has
 something to do with Flex redrawing stuff as it goes off screen, and
would
 appreciate suggestions on how best to prevent this kind of thing from
 happening.
 
 Cheers,
 Neil


 



[flexcoders] Re: Quadrant chart

2007-02-26 Thread Mehul Doshi

Yeah, it is quite nice and not complex as I first thought. At least, 
creating those lines is very straight-forward.

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

 
 ok...i'll look at it a little more patiently and get back to you 
if 
 i get stuck.
 
 i realize what u've built is quite extensible and powerful...so 
 thanks. I just hope I don't end up spending more time trying to 
 figure it out than I should.
 
 Mehul.
 --- In flexcoders@yahoogroups.com, Ely Greenfield egreenfi@ 
 wrote:
 
   
   
   
  
  For both. It's really not very complex...just a moveTo, 
 lineTo,
  and you're done. This is the easiest way to draw a line at a 
 specific
  location.
   
  Ely.
   
  
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Mehul Doshi
  Sent: Friday, February 23, 2007 11:39 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Quadrant chart
  
  
  
  Yeah, I've looked at it, but it seems a bit complex (for a 
 beginner) 
  to do something as simple as creating a single vertical or 
  horizontal line for a specified value. Can that not be done 
using 
  just a single horizontal and vertical gridline?
  
  Or, did you refer me to your custom charts example for the label 
  annotations on the chart?
  
  Thanks,
  Mehul.
  
  --- In flexcoders@yahoogroups.com mailto:flexcoders%
 40yahoogroups.com
  , Ely Greenfield egreenfi@ 
  wrote:
  
   
   
   See my post:
   
   http://www.quietlyscheming.com/blog/charts/easy-custom-charts/
  http://www.quietlyscheming.com/blog/charts/easy-custom-charts/ 
   
   Ely.
   
   
   
   
   
   
   From: flexcoders@yahoogroups.com mailto:flexcoders%
 40yahoogroups.com
  
  [mailto:flexcoders@yahoogroups.com mailto:flexcoders%
 40yahoogroups.com
  ] On
   Behalf Of Mehul Doshi
   Sent: Friday, February 23, 2007 11:11 AM
   To: flexcoders@yahoogroups.com mailto:flexcoders%
 40yahoogroups.com 
   Subject: [flexcoders] Quadrant chart
   
   
   
   Hi,
   
   I'm trying to develop a chart that looks similar to the 
 following:
   
   
  
 
http://www.adaptivepath.com/images/publications/essays/prioritization
  
 
http://www.adaptivepath.com/images/publications/essays/prioritizatio
 n 
   
  
 
http://www.adaptivepath.com/images/publications/essays/prioritizatio
  
 
http://www.adaptivepath.com/images/publications/essays/prioritizatio
  
  n 
   _chart.gif
   
   Essentially, have a set of 'A' values and a set of 'B' values, 
  then 
   calculate the average of 'A' values and show that as a 
vertical 
   line, calculate the average of 'B' values and show that as a 
   horizontal line, and then display each combination of [A,B] 
 value 
  as 
   a point on the chart. I've looked at a couple of other posts 
on 
  this 
   forum to see how I can use the gridline to create the average 
   horizontal and vertical lines...but haven't been able to 
really 
 do 
   it. Can someone please post a really small example of how I 
can 
  plot 
   those lines?
   
   Also, (and this is optional) how can I place those label 
  annotations 
   on the chart at specific data points?
   
   Thanks,
   Mehul.
  
 





[flexcoders] Re: Programatically creating LineSeries

2007-02-26 Thread Mehul Doshi
Could someone please look at my post below and provide me some help?

Thanks.
--- In flexcoders@yahoogroups.com, Mehul Doshi [EMAIL PROTECTED] 
wrote:

 Hi,
 
 I have a few questions on how I should go about achieving 
something 
 using Flex Charting.
 
 I have a Java servlet/controller that will return XML data. The 
data 
 will consist of multiple datapoints for multiple companies. Let's 
 assume that the xml follows the below structure:
 
 company1 name=ABC
datapoint date=Jan50/datapoint
datapoint date=Feb70/datapoint
 /company1
 company2 name=DEF
datapoint date=Jan70/datapoint
datapoint date=Feb50/datapoint
 /company2
 
 Using this XML, I need to programatically (using 
 Javascript/Actionscript) create a chart with multiple LineSeries 
and 
 set the dataprovider for each. 
 
 My questions are:
 
 1. How do I obtain the XML data? I'm currently using 
XMLHttpRequest 
 to get it...any better approach? Do I need to use the DataServices 
 feature of Flex?
 2. Using my current approach, I'm not sure how I can set the 
 dataprovider (and xfield,yfield) for each LineSeries (each 
company)?
 
 Thanks,
 Mehul.





[flexcoders] Re: CurrencyFormatter applied to LineSeries

2007-02-26 Thread marc_rossi
--- In flexcoders@yahoogroups.com, marc_rossi [EMAIL PROTECTED] wrote:

 --- In flexcoders@yahoogroups.com, leds usop rptlead@ wrote:
 
  a code post will help :) if you dont mind
  

A little more reasonable (and self-contained) example:

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

[Bindable]
private var monthlyData:ArrayCollection = new
ArrayCollection( [
{ Month: Jan, VAMI: 1016.32324 },
{ Month: Feb, VAMI: 1209.24445 },
{ Month: Mar, VAMI: 1235.31233 } 
] );

private function initApp():void {
for (var i:Number = 0; i  monthlyData.length; i++) {
monthlyData[i][VAMI] =
tester.format(monthlyData[i].VAMI);
}
vami.dataProvider = monthlyData;
}   
]]
/mx:Script

mx:CurrencyFormatter id=tester precision=2/

mx:LineChart id=vami showDataTips=true
mx:series
mx:LineSeries displayName=VAMI yField=VAMI/ 
 /mx:series
/mx:LineChart
/mx:Application

 
  --- marc_rossi marc_rossi@ wrote:
  
   Hi all -
   
   I'm trying to use a LineSeries with stock prices. 
   When I format the
   yField with the CurrencyFormatter the chart no
   longer works.  It looks
   as though I need to create my own itemRenderer but
   have been
   unsuccessful thus far in my attempts.  Is this the
   correct route?  If
   so, are there any examples available online?
   
   TIA,
   Marc  
   
   
  
  
  
   
 


  It's here! Your new message!  
  Get new email alerts with the free Yahoo! Toolbar.
  http://tools.search.yahoo.com/toolbar/features/mail/
 





[flexcoders] Chart annotationElements based on series data

2007-02-26 Thread durnelln
Hi all - and hopefully Ely ;-)

I have a LineChart containing a LineSeries which updates 
automagically from an arrayCollection - works great.  I have also 
created a simple annotationElements element which renders a 
horizontal line across the chart at a configured value.

What I'm trying to do now is to create a more complex 
annotationElement which draws a nice curve across the chart based on 
the data point values.  So this time I need to access the data values 
themselves to perform some calculations.

How do I get hold of the lineseries data values from my 
annotationElement?  Similarly, is there a way to retrieve only the 
data points that are currently visible on the chart?  I've had a 
quick poke around the charting help files and source code but I'm 
only getting more confused...

Thanks,

Nick.




[flexcoders] Time Based State Transitions

2007-02-26 Thread nextadvantage
How would I go about changing view states say every 10 secs... with a 1 
sec fade?



[flexcoders] Custom Component Styles

2007-02-26 Thread g_odds
I have been looking through the Adobe documentation for a few hours
now and have no suggestion of how to achieve what I want to do.  I
have a custom component that has some custom style attributes.  I
would like these style attributes to have default values.  So, I
followed what is described in the Live Docs
(http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part2_DevApps_048_1.html).

All is fine and dandy, except for a (rather major?) problem.  This
method of setting defaults forces someone using the component to set
all the style values or none, because if they set a single style
attribute the default values are not set for any of the other
attributes.  Am I missing something or is this styling malarky
complicated?

Cheers,

Graham



[flexcoders] Re: Invalid Configuration Exception

2007-02-26 Thread jairokan
Hi again,
Anyone had a look to my message. I's still struggling with this 
query. I just cannot see my SWF file. When I request the file from my 
browser I get the exception below. If I drop the same file on the 
flex.war root dirctory, it work fine and I see it on my browser. The 
problem must be with the configuration file. But as I said I have 
made no changes to this file.
Can please someone help.
Thanks
 
--- In flexcoders@yahoogroups.com, jairokan [EMAIL PROTECTED] wrote:

 Hi all,
 Just joined this group. I'm having an exception when I try to 
request my
 swf file from Tomcat container. The Web application is exactly the 
same
 as the felex.war provided with FDS. No setting changed. The only
 difference I'm deploying the application from deployment project
 directory, using a custom Ant build file. Checking the directory
 structure after deploying in Tomcat is as flex.war. I get this
 Exception:
 javax.servlet.ServletException: Invalid Configuration: see previous
 failures.
  flex2.server.j2ee.SwfServlet.init(SwfServlet.java:71)
  javax.servlet.GenericServlet.init(GenericServlet.java:211)
 
 flex2.server.j2ee.CompileAgentServlet.init
(CompileAgentServlet.java:20)
  flex.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
 
 org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java\
 :118)
 
 org.apache.coyote.tomcat5.CoyoteAdapter.service
(CoyoteAdapter.java:160)
 
 org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:79\
 9)
 
 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces
sC\
 onnection(Http11Protocol.java:705)
 
 org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:57\
 7)
 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool\
 .java:683)
  java.lang.Thread.run(Thread.java:595)
 
 Can please someone advise what I'm missing or doing wrong.
 Thanks
 Jairo





RE: [flexcoders] Looking for guidance on HTTPService sequencing

2007-02-26 Thread Karl Johnson
Data access via HTTP and Web services is asynchronous so there is no way
to guarantee natively that your services return in a certain order. But
you can accomplish this if you really need to by chaining together
service calls via result handlers. Calling service 1, and then in the
result handler for service one, calling service two, and so on.

 

Karl

Cynergy 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pgp.coppens
Sent: Monday, February 26, 2007 9:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Looking for guidance on HTTPService sequencing

 

Hello Flex fans,

Yet another flex 101

I have read and (hopefully) understood how HTTPService and its result
handling works.

What I am struggling with is how I can enforce a certain sequencing so
that I have the guarantee that flash will not send a second request
after the first has been completed.

Alternatively, are there any synchronization mechanisms available at
all that could be used to implement the above?

Thanks,

Peter 

 



Re: [flexcoders] ButtonBar's child enabling

2007-02-26 Thread Michael Schmalle

Oh, supposed to be

var button:Button = buttonBar.getChildAt(searchIndex) as Button;

Mike

On 2/24/07, Michael Schmalle [EMAIL PROTECTED] wrote:


Hi,

Try;

var searchIndex:int = 2;

var button:Button = getChildAt(searchIndex) as Button;
button.enable = false;

or use the other DisplayObjectContainer methods for getting a child
instance;

- getChildByName()
etc

Peace, Mike

On 2/24/07, metalbeard [EMAIL PROTECTED] wrote:

   Hi,
 Is there anyway that we can set the enable property of a specific
 button inside the buttonBar (a child of a buttonBar) to false?

 I couldn't find it.

 Wael

  





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

Blog - Flex2Components
http://www.flex2components.com

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





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

Blog - Flex2Components
http://www.flex2components.com

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


RE: [flexcoders] checkbox with tree component

2007-02-26 Thread Joan Lafferty
Saurav,

 

Here is an example that might be what you need or at least get your
started. It adds a CheckBox to all of the leaf nodes (not the parent
nodes). This example is expecting that your data has objects that
include a selected property, by the way.

 

package comps {

 

import flash.display.DisplayObject;

import flash.events.MouseEvent;

import flash.xml.*;



import mx.controls.CheckBox;

import mx.controls.Tree;

import mx.controls.listClasses.*;

import mx.controls.treeClasses.*;

import mx.core.IDataRenderer;

 

 

public class MyCheckItemRenderer extends TreeItemRenderer

{

 

protected var myCheckBox:CheckBox;

private var listOwner:Tree;

private var folderCbX:uint = 32;

private var leafCbX:uint = 40;

private var margin:uint = 15;

   

override protected function createChildren():void

{

   super.createChildren();



   myCheckBox = new CheckBox();

   addChild(myCheckBox);

   myCheckBox.setStyle(paddingTop, 15);

   myCheckBox.addEventListener( MouseEvent.CLICK,
CBToggleHandler);

}   



private function CBToggleHandler(event:MouseEvent):void

{

 [EMAIL PROTECTED] = CheckBox(event.target).selected;


}

 

private var _data:Object;

   

override public function set data(value:Object):void

{

_data = value;

super.data = value;



if(value != null)

{

if(TreeListData(super.listData).hasChildren)

{

myCheckBox.visible = false;

myCheckBox.includeInLayout = false;

}

if([EMAIL PROTECTED] == true)

{

myCheckBox.selected = true;

}

}

}

 

   private var _listData:TreeListData;



   override public function set listData(value:BaseListData):void

   {

   _listData = TreeListData(value);

   super.listData = value;

   }

 

   override protected function commitProperties():void

   {

   super.commitProperties();



   if (icon)

   {

   if(!TreeListData(listData).hasChildren)

   {

   removeChild(DisplayObject(icon));

   icon = null;

   }

   }

  

  }



  override protected function
updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void

  {   

super.updateDisplayList(unscaledWidth, unscaledHeight);



if(_listData)

{

myCheckBox.x = (TreeListData(listData).hasChildren) ?
folderCbX : leafCbX;

myCheckBox.y = 2;

if(! TreeListData(listData).hasChildren)

{

super.label.x = myCheckBox.x + myCheckBox.width +
margin;

}

}

}

}

}

 

Good Luck,

Joan

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dorkie dork from dorktown
Sent: Friday, February 23, 2007 1:56 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] checkbox with tree component

 

Saurav,

In case you want to buy a solution
http://www.teotigraphix.com/flex2/components/controls/checkboxtreefx
http://www.teotigraphix.com/flex2/components/controls/checkboxtreefx .



On 2/22/07, sauravsinha79 [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Hi,

I want to add a check box with each tree node(branch/leaf).

Any help will be really appreciated.I went through some sample but
couldn't understand. I m just a begginer w.r.t flex, but i know AS2
(OOPS).

Any help will be really appreciated

Regards  Thanx
Saurav




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


(Yahoo! ID required)

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


http://docs.yahoo.com/info/terms/ 

 

 



Re: [flexcoders] URL Link in Flex Application

2007-02-26 Thread Roman Protsiuk

Try navigateToURL method.

R.

On 2/24/07, Lisa Lee [EMAIL PROTECTED] wrote:


  Can you tell me how to be able to have a user click on a link (button,
whatever) from within a Flex application and have it take the user to a
non-Flex, regular web page within their browser? It's probably a
simple answer but I'm still getting up to speed with Flex. Thanks!

 



[flexcoders] flash 9 alpha IDE run on mac os x intel?

2007-02-26 Thread disasterstruckonthedayofmybirth
Hey Everyone, sorry this is on the wrong list. I can't seem to get
flashcoders list to subscribe me. Is the flashcoders list still up and
running?

anyway, does anyone know if flash 9 alpha IDE is supported on Intel
Mac? I try compiling and it tells me the java runtime enviornment
failed to intiailize. Just curious if anyone has experienced this?

thanks
a



[flexcoders] Re: Can anyone help on getting data from a grid cell .. I know the row/column index

2007-02-26 Thread helihobby
Thank you all for the answers ...
The problem is that I need to know which cell he clicked on.

Or in other words, what is the text that displayed on that cell...

Getting the complete ArrayCollection object which the user clicked on 
is easy as I can ( as u guys mentioned ) simply grab the event and do 
event.selectedItem.SOME_PROP_HERE

However, I need to know which prop he clicked on as during runtime I 
do not know the name of SOME_PROP_HERE.

In my case I have over 40 columns per row and each carries the name 
of Open1 Open2 Open3 Open4 . etc ...

So of course doing event.selectedItem.Open1 will work.

But how do I know if clicked on the column Open1 or Open2 or Open3 
etc ...


I need to figure out which OpenN ( N = number ) he clicked on ...

Thanks again,

Sean.



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

 
 Hello,
 
 Can anyone help out ...
 I know the Data Grid Cell's Row and Colum Index.
 
 How can I retrieve the data in that cell if I know these two 
values ?
 
 Thank you,
 
 Sean.





Re: [flexcoders] New Project: FlexCRUD -- Create Update Delete for Flex/amfphp/cairngorm

2007-02-26 Thread dorkie dork from dorktown

it sounds very useful to me. the link doesn't seem to work for me.

On 2/24/07, Mike Crowe [EMAIL PROTECTED] wrote:


Hi folks,

I'm in the process of releasing my system generation utility via
riaforge.  Essentially, I'm using about 15 templates to generate 
100 files.

From a 1' perspective, I have created a generic template based
system that generates:

  * Cairngorm commands:  Get, GetAll, Save, Delete
  * Cairngorm events:  GetSuccess, GetFailure, etc.
  * Cairngorm control file
  * amfphp Remote Delegate
  * amfphp ViewObject for both Actionscript and PHP
  * amfphp Service dispatcher
  * amfphp DTO file to save ViewObject to database
  * Unit test structures for testing both PHP-Database and Flex-
PHP-Database operations for all tables.
  * etc.

I based the database on PHP Doctrine, which handles all my database
interaction in a very clean manner.

Here's the help I need.  To me, I think this will be very helpful to
somebody *starting* a new project.  It will generate all the core
tables, events, commands, and directories for a basic system.
However, I need some review from the Flex community to tell me if
I'm way off base on this.  If it isn't useful, please be honest and
provide that feedback.

Here's the initial wiki documenting the core.  I'll shoot to release
the full code tomorrow:

http://www.your-solutions.us/doku.php/start

TIA
Mike




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






Re: [flexcoders] Creating a Video Player in Flex

2007-02-26 Thread Alan Rother

Awesome

Thank you. I had searched the archives but didn't find this one.

=]
--
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer


Re: [flexcoders] Finding out when an arraycollection in my model is set

2007-02-26 Thread Yiðit Boyar
i had a similar problem; when an array collection in my model is changed; my 
datagrid should be refreshed so here is my code: (here ; user.projects is an 
arrayCollection)
in the creation complete of the mxml file :
ModelVT.getInstance().user.projects.addEventListener(collectionChange,dgYenile);
private function dgYenile(e:Event):void{
dataGrid.invalidateList();
}

- Original Message 
From: Webdevotion [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, February 24, 2007 11:20:34 PM
Subject: [flexcoders] Finding out when an arraycollection in my model is set









  



Hello,

How can I now when my arraycollection in my modellocator is filled with items ?
I tried using collectionEvent. collection_ change, but it does not fire when 
setting my AC like this in my command, after the remoting result handler:


model.library = new ArrayCollection( data.result) ;

What is the correct way ? ( I'm using Cairngorm )





  







!--

#ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;
}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;
}
#ygrp-vitnav{
padding-top:10px;
font-family:Verdana;
font-size:77%;
margin:0;
}
#ygrp-vitnav a{
padding:0 1px;
}
#ygrp-actbar{
clear:both;
margin:25px 0;
white-space:nowrap;
color:#666;
text-align:right;
}
#ygrp-actbar .left{
float:left;
white-space:nowrap;
}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;
font-size:77%;
padding:15px 0;
}
#ygrp-ft{
font-family:verdana;
font-size:77%;
border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;
}

#ygrp-vital{
background-color:#e0ecee;
margin-bottom:20px;
padding:2px 0 8px 8px;
}
#ygrp-vital #vithd{
font-size:77%;
font-family:Verdana;
font-weight:bold;
color:#333;
text-transform:uppercase;
}
#ygrp-vital ul{
padding:0;
margin:2px 0;
}
#ygrp-vital ul li{
list-style-type:none;
clear:both;
border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;
color:#ff7900;
float:right;
width:2em;
text-align:right;
padding-right:.5em;
}
#ygrp-vital ul li .cat{
font-weight:bold;
}
#ygrp-vital a {
text-decoration:none;
}

#ygrp-vital a:hover{
text-decoration:underline;
}

#ygrp-sponsor #hd{
color:#999;
font-size:77%;
}
#ygrp-sponsor #ov{
padding:6px 13px;
background-color:#e0ecee;
margin-bottom:20px;
}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;
margin:0;
}
#ygrp-sponsor #ov li{
list-style-type:square;
padding:6px 0;
font-size:77%;
}
#ygrp-sponsor #ov li a{
text-decoration:none;
font-size:130%;
}
#ygrp-sponsor #nc {
background-color:#eee;
margin-bottom:20px;
padding:0 8px;
}
#ygrp-sponsor .ad{
padding:8px 0;
}
#ygrp-sponsor .ad #hd1{
font-family:Arial;
font-weight:bold;
color:#628c2a;
font-size:100%;
line-height:122%;
}
#ygrp-sponsor .ad a{
text-decoration:none;
}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;
}
#ygrp-sponsor .ad p{
margin:0;
}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;
}
#ygrp-text tt{
font-size:120%;
}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
--








 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

RE: [flexcoders] Invalid Configuration Exception

2007-02-26 Thread Dimitrios Gianninas
Look at your tomcat log file, before that exception, you will find another 
exception that will explain what the real problem is.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jairokan
Sent: Sunday, February 25, 2007 2:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Invalid Configuration Exception



Hi all,
Just joined this group. I'm having an exception when I try to request my swf 
file from Tomcat container. The Web application is exactly the same as the 
felex.war provided with FDS. No setting changed. The only difference I'm 
deploying the application from deployment project directory, using a custom Ant 
build file. Checking the directory structure after deploying in Tomcat is as 
flex.war. I get this Exception:
javax.servlet.ServletException: Invalid Configuration: see previous failures.
flex2.server.j2ee.SwfServlet.init(SwfServlet.java:71)
javax.servlet.GenericServlet.init(GenericServlet.java:211)
flex2.server.j2ee.CompileAgentServlet.init(CompileAgentServlet.java:20)
flex.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
   nbs! 
p;org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:595)

Can please someone advise what I'm missing or doing wrong.
Thanks
Jairo 

 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



[flexcoders] Replacing special characters

2007-02-26 Thread TJ Downes
Hey all, Im hoping someone else has experienced this and can provide a
simple answer:

I am finding that a lot of my work with Flex involves either users
cutting and pasting from Word, or I am importing data from external
systems. Often there are invalid or special characters, such as
apostrophes, which need to be stripped. 

Is there an easy way to perform this string cleaning or am I forced
to write a class that lists all these characters and replaces them
with their valid values?



[flexcoders] Re: Custom Component Styles

2007-02-26 Thread g_odds
It would appear the link I gave is broken.  But nevermind, I have
found the solution by delving through the framework source code, where
the developers do it differently from what is documented in the Live Docs.

The solution is to use something along the lines of:

private static var stylesInitialised:Boolean = initStyles();

private static function initStyles():Boolean {
  var sd:CSSStyleDeclaration =
StyleManager.getStyleDeclaration(AreaZoom);
   
  if (!sd)
  {
sd = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(AreaZoom, sd, false);
  }

  sd.defaultFactory = function():void
  {
this.borderColour = 0x017C98;
this.borderAlpha = 1;
this.fillColour = 0x96CEFD;
this.fillAlpha = 0.2;
  }

  return true;
}


Graham


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

 I have been looking through the Adobe documentation for a few hours
 now and have no suggestion of how to achieve what I want to do.  I
 have a custom component that has some custom style attributes.  I
 would like these style attributes to have default values.  So, I
 followed what is described in the Live Docs

(http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part2_DevApps_048_1.html).
 
 All is fine and dandy, except for a (rather major?) problem.  This
 method of setting defaults forces someone using the component to set
 all the style values or none, because if they set a single style
 attribute the default values are not set for any of the other
 attributes.  Am I missing something or is this styling malarky
 complicated?
 
 Cheers,
 
 Graham





[flexcoders] How to align identical CategoryAxis as HorizontalAxis and SecondHorizontalAxis

2007-02-26 Thread mgrayfmr
Help Ely (or anyone who knows) !!!

I'm having trouble with the data being displayed in a LineChart.
I have same data in a horizontal and secondhorizontal category axis. 
I am also displaying vertical gridlines using the backgroundElements 
property. What is happening is that the spacing is different for the 
bottom and top axis. The bottom axis is fine but the top is spacing 
the interval differently than the bottom axis. The gridlines are 
aligne with the top axis interval. Basically, I end up with data in 
each series that don't match up because they align to two different 
axises. Is there a way to control how Flex sets the divlines ? I have 
tried creating a sub-class of Category axis, but nothing seems to be 
of help.
I have managed to get the top axis labels to display in the correct 
spacing, but this does not change the actual plot points on the 
gridlines.

Any help would be appreciated !!!



[flexcoders] Re: Charting - create a secondSeries with Actionscript 3.0 ???

2007-02-26 Thread mgrayfmr
Thanks Brendan
I think my problem was caused by me specifying a secondDataProvider 
on my LineChart.
Here is a snippet of what worked for me :
My chart is named chLinearChart

var tmpSeriesArrayColl : ArrayCollection;
var ls_P : LineSeries;
var stroke : Stroke;
var tmpFill : LinearGradient;

//Custom ValueObject that holds cahrt data
tmpSeriesArrayColl = ChartDataVO.arrPageByProducerChartData;

for(var k:int = 0; k  tmpSeriesArrayColl.length - 1; k++)
{   
ls_P = new LineSeries();
ls_P.displayName = tmpSeriesArrayColl[k].name; 
ls_P.yField = 'value'; 
ls_P.xField = 'time'; 
//Use the color specified in XML for the stroke
stroke = new Stroke();
stroke.color = tmpSeriesArrayColl[k].color;
stroke.weight = 2;
//My tmpSeriesArrayColl contains a gradient fill I created earlier
tmpFill = tmpSeriesArrayColl[k].fill;
ls_P.setStyle(lineStroke, stroke);
//So the legend dynamically gets the correct color
ls_P.setStyle(fill, tmpSeriesArrayColl[k].color);
ls_P.dataProvider = tmpSeriesArrayColl[k].data; 
this.chLinearChart.secondSeries.push(ls_P); 
}

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

 Hey Mike,
 
 mx:CartesianChart id=chart
dataProvider={_localChartData}
 secondDataProvider={_localChartData}
series={_firstSeriesArray}
 secondSeries={_secondSeriesArray}
 
 mx:Script
 ![CDATA[
 [Bindable] private var _firstSeriesArray:Array;
 [Bindable] private var _secondSeriesArray:Array;
 
 
 private function createSeries():void
 {
 _firstSeriesArray = new Array();
 //LEFT AXIS
 var leftSeriesItem:ColumnSeries = new 
ColumnSeries();
 leftSeriesItem.yField = yFieldName;
 leftSeriesItem.displayName = yFieldName;
 _firstSeriesArray[0] = leftSeriesItem;
 
 _secondSeriesArray = new Array();
 var rightSeriesItem:LineSeries = new 
LineSeries();
 rightSeriesItem.yField = yFieldName;
 rightSeriesItem.displayName 
= yFieldDisplayName;
 _secondSeriesArray[0] = rightSeriesItem;
 }
 
 ]]
 /mx:Script
 
 
 Perhaps you're missing the secondDataProvider property?
 
 
 Brendan
 
 
 
 
 On 2/23/07, leds usop [EMAIL PROTECTED] wrote:
 
a code post will help :)
 
  --- mgrayfmr [EMAIL PROTECTED] mgrayfmr%40yahoo.com wrote:
 
   Hey Gang -
  
   Has anyone had any experience with dynamically
   adding a second series
   to a chart using actionscript 3.0 ?
   Using a LineChart object I have been dynamically
   creating new
   LineSeries under the linechart's series with no
   problem.
   I am not having luck adding a second series though.
   The data is fine, it just won't display a second
   series.
   To test, I added my secondSeries data to the primary
   series, and it
   displays (but realtive to the wrong Y axis,
   obviously).
  
   If anyone has any ideas, I would appreciate it.
   If I find a solution, I'll post it here as well.
  
   Thanks,
   Mike
  
  
 
  __
  Sucker-punch spam with award-winning protection.
  Try the free Yahoo! Mail Beta.
  http://advision.webevents.yahoo.com/mailbeta/features_spam.html
   
 
 
 
 
 -- 
 Brendan Meutzner
 Stretch Media - RIA Adobe Flex Development
 [EMAIL PROTECTED]
 http://www.stretchmedia.ca





[flexcoders] Re: Looking for guidance on HTTPService sequencing

2007-02-26 Thread pgp.coppens
Thanks Karl, I appreciate your help!

I will try(have) to get used to it :)

As a follow up : I bumped into a reference of the Mappr API as a
source of information on unit testing async components. Is there any
other information available on this ?

Thanks,

Peter




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

 Data access via HTTP and Web services is asynchronous so there is no way
 to guarantee natively that your services return in a certain order. But
 you can accomplish this if you really need to by chaining together
 service calls via result handlers. Calling service 1, and then in the
 result handler for service one, calling service two, and so on.
 
  
 
 Karl
 
 Cynergy 
 
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of pgp.coppens
 Sent: Monday, February 26, 2007 9:28 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Looking for guidance on HTTPService sequencing
 
  
 
 Hello Flex fans,
 
 Yet another flex 101
 
 I have read and (hopefully) understood how HTTPService and its result
 handling works.
 
 What I am struggling with is how I can enforce a certain sequencing so
 that I have the guarantee that flash will not send a second request
 after the first has been completed.
 
 Alternatively, are there any synchronization mechanisms available at
 all that could be used to implement the above?
 
 Thanks,
 
 Peter





[flexcoders] pie chart: group small values together

2007-02-26 Thread bruno.navert
I'm quite new to Flex, so please forgive me if this is a no-brainer.

I have a Pie Chart control that shows a lot of wedges, and I would
like it to automatically group together smaller wedges (say all those
whose percentage value is lower than 1-2%) and display something like
Others - x%, x being the sum of all the grouped wedges.
 
Is there some quick  painless way to get this to work ?
 
Obviously the data comes from an external data provider, which sources
the data from a database, so I don't have direct control over it (i.e.
the grouping has to be done at run time)
 
thanks,
Bruno



Re: [flexcoders] Re: Custom Component Styles

2007-02-26 Thread Mike Britton

Graham,

You may also want to take a look at this:
http://www.scalenine.com/

You'll need the Flex 2.1 update to use it.

hth,

Mike Britton


[flexcoders] Re: How to align identical CategoryAxis as HorizontalAxis and SecondHorizontalAxis

2007-02-26 Thread mgrayfmr
Holy cow, I figured it out, and it's stoopid easy.
It may not be that apparent at first glance though.
All I needed to do was set the padding to 0 for my horizontal axis.
It seems that by default, the padding for my top/secondHorizontal 
axis, which is a CategoryAxis, was 0.5. By Setting it to 0, it now 
mathches the scaling of my bottom horizontal axis.
Done !!!

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

 Help Ely (or anyone who knows) !!!
 
 I'm having trouble with the data being displayed in a LineChart.
 I have same data in a horizontal and secondhorizontal category 
axis. 
 I am also displaying vertical gridlines using the 
backgroundElements 
 property. What is happening is that the spacing is different for 
the 
 bottom and top axis. The bottom axis is fine but the top is 
spacing 
 the interval differently than the bottom axis. The gridlines are 
 aligne with the top axis interval. Basically, I end up with data 
in 
 each series that don't match up because they align to two 
different 
 axises. Is there a way to control how Flex sets the divlines ? I 
have 
 tried creating a sub-class of Category axis, but nothing seems to 
be 
 of help.
 I have managed to get the top axis labels to display in the 
correct 
 spacing, but this does not change the actual plot points on the 
 gridlines.
 
 Any help would be appreciated !!!





[flexcoders] FDS with Java Question: Why is it grouping requests?

2007-02-26 Thread billy_d_white
Maybe Vroom or one of you other FDS experts can tell my what I'm doing
wrong :

I'm using Cairngorm with a Java/Spring backend.  I'm using autocommit
and autosync enabled and when I perform a deleteItem which I want to
fail, it calls my Java assembler which attempts the deletion and
fails. I customize the error message and send it back as a
MessageException. So far so good.  

However, if I then try another deletion, the request is sent to the
assembler with an array of inside the DataMessage and this array
contains the previous delete request as well as the new delete
request.  Apparently it is trying to batch the multiple requests since
the previous one failed.  (These are stored in that _token_chain_
property of the request) How do I avoid this and make each deletion
request atomic so it will not attempt to execute the previous (failed)
request?  Do I need to re-write the service call on the client to use
the manual commit() call or something like that?

Any



[flexcoders] Constrain where a popup can be dragged?

2007-02-26 Thread craig.drabik
Hello all.  Is there a way to constrain where a user can drag a popup?
 I have a sort of MDW application which has the application's controls
on the left, and the reports the user works with in popup windows on
the right.  I want to make it so the user cannot drag the reports on
top of the navigation.

Thanks!



RE: [flexcoders] Re: Best way for editing massive amounts of data?

2007-02-26 Thread Dimitrios Gianninas
35 fields? peanuts :) We did one that is variable here... anywhere from 50 to 
200. Basically the way we tackled the problem is to display a 3 pane view 
divide like so:
 
left pane: displays section names in a list, when u select one, it populates 
the middle pane
middle pane: displays the fields in  a section as list of name/value pair
right pane: display the field info with the appropriate control to edit the 
data (its more complex than that, but u get the idea
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug 
McCune
Sent: Saturday, February 24, 2007 1:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Best way for editing massive amounts of data?



I don't have a suggestion right now, but just in terms of why this might not 
elicit a response from the flex community, this isn't a flex question. It's a 
UI question that is the same question if you're talking about building a UI in 
flex, HTML, Java, .NET, etc etc. 

I don't think there are going to be any flex-related insights to solve the 
problem. Figure out a good way to display that many form fields, regardless of 
what frontend technology you're using, and it will work. So this isn't very 
helpful to answer you're question, but maybe it explains why flex developers 
aren't jumping at replying. 



On 2/24/07, gotgoose09 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  wrote: 

I guess no one here has had this problem before?

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

 I'm web-enabling by using Flex 2 a project that has many fields for
 each record in the database. A typical UI screen has upwards of 35
 fields in it. This application has to be easy to use. e.g. explained
 over the telephone to customers who use it.
 
 I was thinking that one way to make editing fields consistent would be
 to have the user double click the data field, popping up a window with
 the right kind of input to edit the data, whether it is a TextInput,
 TextArea, DateField, etc. Then, if the user presses the submit
 button, the data would be saved to the database, but if the user
 presses the cancel button, the data would not be saved and they would
 return to the large form.
 
 Does anyone have experience in this type of application? Anyone have
 their own opinion on the matter?
 
 Thanks in advance! :)







 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



[flexcoders] Re: Replacing special characters

2007-02-26 Thread Tim
I think you will need to write your own class to do the cleanup, but
you should be able to use character classes in regular expressions to
identify legitimate characters and substitute or remove the others.
For example, \w will match a word character (A-Z, a-z, 0-9 and _). See
the ActionScript 3.0 reference manual chapter on regular expressions.

Tim
--- In flexcoders@yahoogroups.com, TJ Downes [EMAIL PROTECTED] wrote:

 Hey all, Im hoping someone else has experienced this and can provide a
 simple answer:
 
 I am finding that a lot of my work with Flex involves either users
 cutting and pasting from Word, or I am importing data from external
 systems. Often there are invalid or special characters, such as
 apostrophes, which need to be stripped. 
 
 Is there an easy way to perform this string cleaning or am I forced
 to write a class that lists all these characters and replaces them
 with their valid values?





  1   2   >