[flexcoders] how to assign itemRenderer w/ActionScript

2006-06-19 Thread keishichi2001
I've trying following code to assign custom renderer into itemRenderer
property on a TileList.

You'll see commented part, which works well.
However, I just want to try how i can do this by ActionScript.
Following code reports no error, but each cell is empty(actually
printed 'object Object').

Someone could help me out?

k


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:comp=*
creationComplete=init()

mx:Script
![CDATA[
import itemRenderers.myThumbnail;
import mx.collections.ArrayCollection;
[Bindable]
private var photoColl:ArrayCollection;

private var mT:myThumbnail = new myThumbnail;

private function init():void
{
simpletest.send();

myTile.setStyle(itemRenderer, mT);
}
]]
/mx:Script

mx:Label id=foodName
text=Watch here/

mx:HTTPService id=simpletest
url=assets/photo.xml
result=photoColl=new
ArrayCollection(simpletest.lastResult.list.food)/

mx:TileList id=myTile
dataProvider={photoColl}
width=700
rowHeight=170
columnWidth=220/

!--
mx:TileList id=foodTile
dataProvider={photoColl}
itemRenderer=itemRenderers.myThumbnail
width=700
rowHeight=170
columnWidth=220/
--

/mx:Application







 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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/

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

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





RE: [flexcoders] Can we move Flexcoders to a new forum??

2006-06-19 Thread Tolulope Olonade










Actually I configured mine to be sent to
my company email address.

Now we all use MS Outlook internally.

So I just created a separate folder that
all flexcoder mails get stored in and then arrange that folder by subject line
1st and then by date.

Now I dont have to go to yahoo to
get updates and all

Its makes it very very easy to trace any
post you want and grabs your attention cause message groups are branded with
the subject of the mails J



Enjoy











From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Suzy Lawson
Sent: Friday, June 16, 2006 02:30
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can we move
Flexcoders to a new forum??











Is anyone else pulling their teeth trying to find
messages they posted
several days ago? I can see it in the mail-archives no problem, but
when I go back to yahoo to post a reply to a message...it's quite the
b*tch to find. I ended up just doing a search on my username and
clicking through all the pages of results and of course it wasn't there. 

Yahoo could at least have a link that says My Posts or something.
It'd also be nice if the posts were listed out like theserverside.com
(although more stable :-)

Since we're all developing in a slick technology, can't we dump tyhe
legacy forum?

Anyone else feel this way?

Cheers.






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___






[flexcoders] using date formatter for datefield

2006-06-19 Thread Bas J. Brey










Im having problems when I set the selectedDate
of a datefield.

When I set it dynamicly the formatter works, but when
I click on the datefield the month and day are switched.

This is a bug cause I verified the input date, and it
works with days above 12!



Anyone got a clue on how to solve this? 








__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___





Re: [flexcoders] how to assign itemRenderer w/ActionScript

2006-06-19 Thread Tom Chiverton
On Monday 19 June 2006 07:16, keishichi2001 wrote:
   myTile.setStyle(itemRenderer, mT);

Renders aren't styles.
Maybe something like 
myTile.itemRenderer = mT 
?

-- 
Tom Chiverton



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.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards



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

* 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] [To Michael Schmalle] Rendered from dataProvider ?

2006-06-19 Thread Jean-Luc ESSER





Michael, i saw one of your posts where you said 
:
" Once you have 
established that the list has been rendered from the dataProvider 
"

I assume you mean when the List has finished 
working with its dataProvider (including finished drawing its itemRenderers with 
their data).
If so, how would you do that ?

Best,
Jean-Luc.
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] htmlText formating destroyed by binding execution

2006-06-19 Thread n51red
I've come across some odd behaviour with Text components that have the 
htmlText attribute in use. If a binding execution causes the text to 
change while some of that text is selected, the text styles revert to 
their defaults, ignoring values set either inline or in CSS. I assume 
this is a problem with the Text component class.

I've got round the problem with the use of font tags in the html, but 
that's left me feeling unclean. Has anyone else come across this 
problem?

N51





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

* 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] [To Michael Schmalle] Rendered from dataProvider ?

2006-06-19 Thread Michael Schmalle



Hi,

Yeah I remeber that post tit was in relation to setting the height based on rows.

I remember Manish said the rowHeight property and I said calculateHeight().

You rquestion is alittle nebulus, do you mean an event that signifies everything has been drawn?

Or measurements?

Peace, MikeOn 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote:









  






Michael, i saw one of your posts where you said 
:
 Once you have 
established that the list has been rendered from the dataProvider 


I assume you mean when the List has finished 
working with its dataProvider (including finished drawing its itemRenderers with 
their data).
If so, how would you do that ?

Best,
Jean-Luc.

  













-- What goes up, does come down.

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] remoting without value object by using ResultSets

2006-06-19 Thread hank williams
I am attempting to port work that I have done with the old remoting
model into the new one.

In the old model, I leveraged a feature that allowed JDBC ResultSets
to be sent from the Java server to the Flash client and for that data
to be received as a RecordSet and displayed properly in a DataGrid.

I want to be able to do the same thing within Flex, and I would love
to know if my strategy should work.

The issue boils down to how Flex converts data of type java.util.Map.
In the documentation it says that such data gets converted into an
untyped Object. So if I send a java.util.Collection of java.util.Map
objects, will Flex convert that into an ArrayCollection of Objects?
And if so, would Flex recognize the types of the *fields* in these
untyped objects (formerly java.util.Map) in the ArrayCollection so as
to be able to properly render a DataGrid with column names and
properly typed data?

If so, this would allow me to write one routine that converts my
ResultSet data into something that Flex can read without having to
create all of these object on the Java side that have no purpose other
than creating typed data for sending to flash. The need to do this,
from my perspective, just creates another layer of potential error,
and makes the overall code more brittle. So aside from my being lazy,
another motivation is to reduce the number of places I have to
maintain my schema to make my code more maintainable. I would prefer
to just maintain it in my database, and in the Flex client, and not
also in my conversion code.

So any insight on this would be appreciated. I would code first and
ask questions later, but since I am not yet super fast with Flex/AS3
I thought I would ask the group. Also I think this discussion could
yield (or retrieve) a useful design pattern.

Hank


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

* 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] Problem parsing mxml (flex2.B3)

2006-06-19 Thread silpa s
Hi all, 

I'm new to Flex. I may have to develop some RIA
application using Flex2.0. I'm using Weblogic as my
application server. When try to locate my
index.mxml(http://localhost:7001/index.mxml), i'm
getting following error.

22 Errors found. 
  
Error /index.mxml:2 
Unknown attribute 'layout' on mx.core.Application 




Error /index.mxml:3 
Don't know how to parse element
http://www.adobe.com/2006/mxml:Style;. It is not a
known type or a property of mx.core.Application.



I've configured name space in my flex-config.xml in
the following way 

namespaces 
namespace
uri=http://www.adobe.com/2006/mxml; 
   
manifest/WEB-INF/flex/mxml-manifest.xml/manifest 
/namespace 
namespace
uri=http://www.macromedia.com/2003/mxml; 
   
manifest/WEB-INF/flex/mxml-manifest.xml/manifest 
/namespace 
/namespaces
I've got Flex 1.5 jars(flex-bootstrap.jar). do i need
to update any jars for flex 2.0? if so where can i get
new jar files. I've installed flex2.0 builder on my
system. I'll be thankful for the help on this. Thanks
in advance.

Thanks
-silpa


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




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

* 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] New to Flex 2.0 Help please

2006-06-19 Thread Silpa sirivella
Hi all,

I'm new to Flex. I may have to develop some RIA application using 
Flex2.0. I'm using Weblogic as my application server. When try to 
locate my index.mxml(http://localhost:7001/index.mxml), i'm getting 
following error.

22 Errors found. 
 
Error /index.mxml:2 
Unknown attribute 'layout' on mx.core.Application



Error /index.mxml:3 
Don't know how to parse 
element http://www.adobe.com/2006/mxml:Style;. It is not a known 
type or a property of mx.core.Application.


I've configured name space in my flex-config.xml in the following way

namespaces
namespace uri=http://www.adobe.com/2006/mxml;
manifest/WEB-INF/flex/mxml-manifest.xml/manifest
/namespace
namespace uri=http://www.macromedia.com/2003/mxml;
manifest/WEB-INF/flex/mxml-manifest.xml/manifest
/namespace
/namespaces
I've got Flex 1.5 jars(flex-bootstrap.jar). do i need to update any 
jars for flex 2.0? if so where can i get new jar files. I've 
installed flex2.0 builder on my system. I'll be thankful for the help 
on this. Thanks in advance.

-silpa









 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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/

* 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] Problem with parsing mxml file

2006-06-19 Thread Silpa sirivella
Hi all,

I'm new to Flex. I may have to develop some RIA application using 
Flex2.0. I'm using Weblogic as my application server. When try to 
locate my index.mxml(http://localhost:7001/index.mxml), i'm getting 
following error.

22 Errors found. 
 
Error /index.mxml:2 
Unknown attribute 'layout' on mx.core.Application



Error /index.mxml:3 
Don't know how to parse 
element http://www.adobe.com/2006/mxml:Style;. It is not a known 
type or a property of mx.core.Application.


I've configured name space in my flex-config.xml in the following way

namespaces
namespace uri=http://www.adobe.com/2006/mxml;
manifest/WEB-INF/flex/mxml-manifest.xml/manifest
/namespace
namespace uri=http://www.macromedia.com/2003/mxml;
manifest/WEB-INF/flex/mxml-manifest.xml/manifest
/namespace
/namespaces
I've got Flex 1.5 jars(flex-bootstrap.jar). do i need to update any 
jars for flex 2.0? if so where can i get new jar files. I've 
installed flex2.0 builder on my system. I'll be thankful for the help 
on this. Thanks in advance.

-silpa









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

* 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: Flex beta 3/CF and Datagrid not being populated

2006-06-19 Thread malik_robinson



Hi,
Sweet it is working now. The "lastResult" worked. Sothat is basically a reference to my query object?
Once I did that, just for tests I removed the :
public function initApp():void {// Force artists class to loadartSvc.getArtists.send();}
I removed the "send()" and it still worked so I am not sure of the reason for it? Is isa coding practice to use that, either way it worked with and without the send() method call.
How would you reference an array? Lets say I had a CFC that returned like a 2D array? 
I guess I really looking for more information on how a datagridor tree control or whatever it may be would handle things of different data types like an array or a query object or whatever.
Thanks for the help! Highly appreciated!
-Malik

--- In flexcoders@yahoogroups.com, "Tim Hoff" [EMAIL PROTECTED] wrote: Yeah,  Sorry, use:  artSvc.getArtists.lastResult  for the dataProvider, without artists at the end.  -TH  --- In flexcoders@yahoogroups.com, "malik_robinson"  Malik_Robinson@ wrote: Hi,I ended up getting an error, I think it was due to the text  "lastResult". Below is the error:I am very curious to know if someone can try this simple example  and get  a datagrid to populate via a query object from CF.Error: Unknown Property 'artists'.  at   mx.collections::ListCollectionView/http://www.adobe.com/2006/actionsc rip\  t/flash/proxy::getProperty()  at mx.binding::PropertyWatcher/::updateProperty()  at mx.binding::Watcher/mx.binding:Watcher::wrapUpdate()  at mx.binding::PropertyWatcher/updateParent()  at mx.binding::Watcher/updateChildren()  at mx.binding::PropertyWatcher/::updateProperty()  at mx.binding::Watcher/mx.binding:Watcher::wrapUpdate()  at mx.binding::PropertyWatcher/eventHandler()  at flash.events::EventDispatcher/dispatchEvent()  at   mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::r esu\  ltHandler()  at mx.rpc::Responder/result()  at mx.rpc::AsyncRequest/acknowledge()  at  ::NetConnectionMessageResponder/NetConnectionChannel.as$42:NetConne ction\  MessageResponder::resultHandler()  at mx.messaging::MessageResponder/result()  Here is the CFC:cfcomponentcffunction name="getArtists" access="remote" returntype="query"cfset var artists = '' /cfquery name="Artists" datasource="cfcodeexplorer"SELECT firstname, lastnameFROM ARTISTS/cfquerycfreturn Artists //cffunction/cfcomponentHere is the current MXML:?xml version="1.0" encoding="utf-8"?  mx:Application xmlns:mx="http://www.adobe.com/2006/mxml  http://www.adobe.com/2006/mxml " layout="absolute"  creationComplete="initApp()"mx:Script  ![CDATA[  import mx.rpc.events.*;  import mx.collections.ArrayCollection;  public function initApp():void {  // Force artists class to load  artSvc.getArtists.send();  }]]  /mx:Scriptmx:RemoteObject  id="artSvc"  destination="ColdFusion"  source="myApp.cf.com.artists"  showBusyCursor="true" /  mx:DataGrid id="dg" dataProvider="{artSvc.getArtists.artists}"  x="177"  y="65"  mx:columns  mx:DataGridColumn headerText="First Name"  dataField="firstName"/  mx:DataGridColumn headerText="Last Name"  dataField="lastName"/  /mx:columns  /mx:DataGrid/mx:Application--- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:   Hi Malik, I can't test this, but this is how the examples that I've seen  work. -TH ?xml version="1.0" encoding="utf-8"?   mx:Application xmlns:mx="http://www.adobe.com/2006/mxml   http://www.adobe.com/2006/mxml "   layout="absolute" creationComplete="initApp()" mx:Script   ![CDATA[   import mx.collections.ArrayCollection;   import mx.rpc.events.*; public function initApp():void {   // Force artists class to load   artSvc.getArtists.send();   }   ]]   /mx:Script mx:RemoteObject id="artSvc" destination="ColdFusion"   source="myapp.cf.com.artists" showBusyCursor="true" / mx:DataGrid id="dgArtists"   dataProvider="{artSvc.getArtists.lastResult.artists}" x="177"  y="65"   mx:columns   mx:DataGridColumn headerText="First Name"  dataField="firstname"/   mx:DataGridColumn headerText="Last Name" dataField="lastname"/   /mx:columns   /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com, "malik_robinson"  Malik_Robinson@   wrote:   Hi,   I have the following code that I *thought* would work, but it  doesnot. Can anyone see why this might not work? Basically the  datagriddoes not get loaded, the browser says "transferring data fromlocalhost", but it never populates the grid, no error, I see  the  showbusy cursor and my empty datagrid. I am using CF 7 and there  is adatasource that is defined when you install the tutorials. It  isbasically a database of artists or something. I wrote a test  page toensure my CFC works and it does return a query object, so I  know theCFC is fine.   I am just trying to have it load the datagrid upon  creationComplete   Here is the main.mxml:   ?xml version="1.0" 

[flexcoders] Re: Flex beta 3/CF and Datagrid not being populated

2006-06-19 Thread malik_robinson
Hi,

Thanks for the help.

It is almost working.  It now appears that the grid is being 
populated but I do not see anything in the grid.  The reason I know 
its being populated is when i move my mouse over, it highlights the 
rows.  It also adds a scroll bar to the display indicating there are 
more records than can be displayed in the grid due to the current 
size of the grid.  The only problem now is I do not see the values in 
the columns.  The CFC does work and I have tested it using a 
basic .cfm page.  I think I we are almost there, I just do not see 
the actual values in the grid.

1. Also, what is lastResult.  Where does that come from and how 
would one know about this?

2. Any idea why I do not see any actual text in the grid? I tried 
firstname, FIRSTNAME, as I heard someone reference that I need to use 
CAPS, but either way I do not get values in the grid. But it does 
appear records are there as I move the mouse over, it highlights the 
*would be value*.

mx:DataGrid id=dg dataProvider={artSvc.getArtists.lastResult} 
x=177 y=65
mx:columns
mx:DataGridColumn headerText=First Name dataField=FIRSTNAME/
mx:DataGridColumn headerText=Last Name dataField=LASTNAME/
/mx:columns
/mx:DataGrid

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

 Yeah,
 
 Sorry, use:
 
 artSvc.getArtists.lastResult
 
 for the dataProvider, without artists at the end.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, malik_robinson 
 Malik_Robinson@ wrote:
 
  
  Hi,
  
  I ended up getting an error, I think it was due to the text
  lastResult. Below is the error:
  
  I am very curious to know if someone can try this simple example 
 and get
  a datagrid to populate via a query object from CF.
  
  Error: Unknown Property 'artists'.
at
  
 
mx.collections::ListCollectionView/http://www.adobe.com/2006/actionsc
 rip\
  t/flash/proxy::getProperty()
at mx.binding::PropertyWatcher/::updateProperty()
at mx.binding::Watcher/mx.binding:Watcher::wrapUpdate()
at mx.binding::PropertyWatcher/updateParent()
at mx.binding::Watcher/updateChildren()
at mx.binding::PropertyWatcher/::updateProperty()
at mx.binding::Watcher/mx.binding:Watcher::wrapUpdate()
at mx.binding::PropertyWatcher/eventHandler()
at flash.events::EventDispatcher/dispatchEvent()
at
  
 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::r
 esu\
  ltHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at
 
 ::NetConnectionMessageResponder/NetConnectionChannel.as$42:NetConne
 ction\
  MessageResponder::resultHandler()
at mx.messaging::MessageResponder/result()
  
  
  Here is the CFC:
  
  cfcomponent
  
  
  
  cffunction name=getArtists access=remote returntype=query
  
  cfset var artists = '' /
  
  cfquery name=Artists datasource=cfcodeexplorer
  
  SELECT firstname, lastname
  
  FROM ARTISTS
  
  /cfquery
  
  cfreturn Artists /
  
  /cffunction
  
  /cfcomponent
  
  Here is the current MXML:
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
  http://www.adobe.com/2006/mxml  layout=absolute
  creationComplete=initApp()
  
  mx:Script
 ![CDATA[
  import mx.rpc.events.*;
  import mx.collections.ArrayCollection;
  
  
 public function initApp():void {
 // Force artists class to load
 artSvc.getArtists.send();
 }
  
 ]]
/mx:Script
  
  mx:RemoteObject
id=artSvc
destination=ColdFusion
source=myApp.cf.com.artists
showBusyCursor=true /
  
  
mx:DataGrid id=dg dataProvider={artSvc.getArtists.artists} 
 x=177
  y=65
 mx:columns
  mx:DataGridColumn headerText=First Name 
 dataField=firstName/
  mx:DataGridColumn headerText=Last Name 
 dataField=lastName/
 /mx:columns
/mx:DataGrid
  
  /mx:Application
  
  
  
  --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
  
  
   Hi Malik,
  
   I can't test this, but this is how the examples that I've seen 
 work.
  
   -TH
  
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
   http://www.adobe.com/2006/mxml 
   layout=absolute creationComplete=initApp()
  
   mx:Script
   ![CDATA[
   import mx.collections.ArrayCollection;
   import mx.rpc.events.*;
  
   public function initApp():void {
   // Force artists class to load
   artSvc.getArtists.send();
   }
   ]]
   /mx:Script
  
   mx:RemoteObject id=artSvc destination=ColdFusion
   source=myapp.cf.com.artists showBusyCursor=true /
  
   mx:DataGrid id=dgArtists
   dataProvider={artSvc.getArtists.lastResult.artists} x=177 
 y=65
   mx:columns
   mx:DataGridColumn headerText=First Name 
 dataField=firstname/
   mx:DataGridColumn headerText=Last Name dataField=lastname/
   /mx:columns
   /mx:DataGrid
  
   /mx:Application
  
   --- In flexcoders@yahoogroups.com, malik_robinson 
 Malik_Robinson@
   wrote:
   
Hi,
   
I have the following code that I *thought* would work, but it 
 does
not. Can 

[flexcoders] Will Flex 2 support overloaded operations in WSDLs?

2006-06-19 Thread wayne_badu_johnson

Hi All

Just wondering if Flex 2 will support overloading operations in WSDL 
calls?

Thanks 
Wayne








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

* 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] Problem parsing mxml (flex2.B3)

2006-06-19 Thread Sandip Patil



can u post your index.mxml file heresilpa s [EMAIL PROTECTED] wrote:  Hi all, I'm new to Flex. I may have to develop some RIAapplication using Flex2.0. I'm using Weblogic as myapplication server. When try to locate myindex.mxml(http://localhost:7001/index.mxml), i'mgetting following error.22 Errors found. Error /index.mxml:2 Unknown attribute 'layout' on mx.core.Application Error /index.mxml:3 Don't know how to parse element"http://www.adobe.com/2006/mxml:Style". It is not aknown type or a property of mx.core.Application.I've configured name space in my flex-config.xml inthe following way namespaces namespaceuri="http://www.adobe.com/2006/mxml" manifest/WEB-INF/flex/mxml-manifest.xml/manifest /namespace namespaceuri="http://www.macromedia.com/2003/mxml" manifest/WEB-INF/flex/mxml-manifest.xml/manifest /namespace /namespaces I've got Flex 1.5 jars(flex-bootstrap.jar). do i needto update any jars for flex 2.0? if so where can i getnew jar files. I've installed flex2.0 builder on mysystem. I'll be thankful for the help on
 this. Thanksin advance.Thanks-silpa__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com  
		Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Paging with datagrid in flex2.0 beta3

2006-06-19 Thread Ranadheer Reddy



Hello All,Can anybody help in implementing paging in datagrid control in flex2.0 Beta3.thanks in advance,Ranadheer Reddy.G 
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Re: flex2gateway woes on UNIX

2006-06-19 Thread wlbagent
I'm not using apache, I'm using IPlanet (SunOne Web Server).  However,
I tried http://hostname:8500/flex2gateway and
http://hostname:80/flex2gateway.  Neither work.

What do you mean by you may need to enable it first?  CF is running
and cfm pages are being processed.

Thanks...


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

 On Thursday 15 June 2006 21:49, wlbagent wrote:
  I ran across someone who appears to be having the same problem but on
  LINUX using apache.  He hasn't found a resolution yet, either.
 
 Had this at work yesterday.
 Try by passing apache and going straight to the ColdFusion server
(you may 
 need to enable it first), so your URL is http://host:8500:/flex2gateway
 
 -- 
 Tom Chiverton
 
 
 
 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.
 
 We are pleased to announce that Halliwells LLP has been voted AIM
Lawyer of the Year at the 2005 Growth Company Awards










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

* 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] example of RemoteObject data service component

2006-06-19 Thread Sawant, Ramdas \(IT\)









Hi all,

 Can
any one provide a simple example of RemoteObject data service component?

I am curious
about it. Thanks in advance.



Regards,

Ramdas Sawant







NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.


__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] how to assign itemRenderer w/ActionScript

2006-06-19 Thread Yaniv De Ridder










Hello,



Have you tried :



import mx.core.ClassFactory;



myTitle.itemRenderer = new ClassFactory( myThumbnail
);



this should work, you have to use
ClassFactory because an itemRenderer should receive an object that implement IFactory
,



cheers











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of keishichi2001
Sent: Monday, June 19, 2006 7:17
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to
assign itemRenderer w/ActionScript











I've trying following code to assign custom renderer
into itemRenderer
property on a TileList.

You'll see commented part, which works well.
However, I just want to try how i can do this by ActionScript.
Following code reports no error, but each cell is empty(actually
printed 'object Object').

Someone could help me out?

k


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
xmlns:comp=*
creationComplete=init()

mx:Script
![CDATA[
import itemRenderers.myThumbnail;
import mx.collections.ArrayCollection;
[Bindable]
private var photoColl:ArrayCollection;

private var mT:myThumbnail = new myThumbnail;

private function init():void
{
simpletest.send();

myTile.setStyle(itemRenderer, mT);
}
]]
/mx:Script

mx:Label id=foodName
text=Watch here/

mx:HTTPService id=simpletest
url="">photo.xml
result=photoColl=new
ArrayCollection(simpletest.lastResult.list.food)/

mx:TileList id=myTile
dataProvider={photoColl}
width=700
rowHeight=170
columnWidth=220/

!-- 
mx:TileList id=foodTile
dataProvider={photoColl}
itemRenderer=itemRenderers.myThumbnail
width=700
rowHeight=170
columnWidth=220/
--

/mx:Application







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___






[flexcoders] Using HTTPService

2006-06-19 Thread abi27ram
hello all,
  I am new to flex.i don't know how to use httpservice in flex.
i'm using flexbuilder with jrun server now.

example.mxml

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

mx:HTTPService 
id=feedRequest method=post
url=login.mxml
useProxy=true/
/mx:Application


login.mxml

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 

mx:Panel title=My Application paddingTop=10 
paddingBottom=10
paddingLeft=10 paddingRight=10 

mx:Label text=Hello World! fontWeight=bold 
fontSize=24 /

/mx:Panel
/mx:Application


i am not getting any output  or error.

plz help me
thanks in advance
abiramkumar











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

* 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: Definition _ could not be found: itemRenderer component in Flex2Beta3

2006-06-19 Thread polestar11
Thanks Brendan

Yes, that solved the problem.

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

 Hi,
 
 Had this issue myself... works when you provide the full namespace
in your
 itemRenderer (whether it's imported or not, or even sitting in the same
 directory)...
 
 itemRenderer=my.path.to.DataListItem
 
 Hope that helps,
 
 Brendan
 
 On 6/9/06, polestar11 [EMAIL PROTECTED] wrote:
 
Hi there
 
  I am using a datagrid with an itemRenderer component for one of the
  columns. I have never been able to get this to work in Flex2Beta3,
  always getting the error:
  Definition (my component) could not be found. [CODEGEN ... (path to my
  file)]
 
  If I use the component outside of a datagrid itemRenderer I dont get
  any compilation error.
 
  Here is the actual code example ...
 
  .mxml file containing the datagrid:
  -
  mx:Canvas label=My Canvas width=408 height=154
  mx:DataGrid x=-1 y=0 id=dataList
  dataProvider={model.dataList}
  mx:columns
  mx:DataGridColumn headerText=Col 1 dataField=col1 /
  mx:DataGridColumn headerText=Col 2 itemRenderer=DataListItem /
  /mx:columns
  /mx:DataGrid
  /mx:Canvas
 
  DataListItem.mxml file containing the component:
  -
  ?xml version=1.0 encoding=utf-8?
  mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=80
  height=20
  mx:HBox
 
  mx:Label text={data.number} /
  mx:Label text={data.textVal} /
 
  /mx:HBox
  /mx:Canvas
 
   
 










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

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

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





RE: [flexcoders] How to recover from 'cleaning' project?

2006-06-19 Thread Daniel Tuppeny





I'm sure that's the corect behaviour. Mine also completely 
wipes the bin folder. The HTML files get copied back from the html-template 
folder when I next build. If I delete that folder, then I get compile errors and 
the rebuild option. You shouldn't get compile errors with an empty bin folder, 
so sounds like a problem with compiling, rather than the Clean 
option.

I'm guessing there are still files in your html-templates 
folder?


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Phil 
MarstonSent: 15 June 2006 14:55To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] How to recover 
from 'cleaning' project?
Thanks Daniel,but there must be a difference in behavior 
between your FlexBuilder and mine because thats where the problem lays for 
me. When I selected Project - Clean... it cleared everything out of 
the project bin including the html files the debug files and everything! 
The damn thing wont recompile or rebuild - I get no "regenerate html" option and 
there is no message in the Problems pane - it just bombs with a "Launch Failed" 
modal dialog saying "File not found {the path to /bin/project.html 
here}"I've been trying to create a whole new project from scratch with 
different name, but the whole IDE seems to've given up on running the code for 
this project . . . . curses-under-breath/PhilDaniel 
Tuppeny wrote: 

  
  I may not have understood properly, but when I did a 
  similar thing, it told me to right-click on the message in the Problems pane, 
  anc hoose the "regenerate html" option!
  
  Also, there's a Project - Clean option which clears 
  out the compiled stuff without deleting the html templates 
  :-)
  
  
  From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
  On Behalf Of Michael SchmalleSent: 15 June 2006 
  12:50To: flexcoders@yahoogroups.comSubject: 
  Re: [flexcoders] How to recover from 'cleaning' 
  project?Oh yeah,You could also just copy in the 
  swf's and html from another project rename them and recompile.I have 
  found this method is not so 'stable' but most of the time works.Peace, 
  Mike
  On 6/15/06, Michael 
  Schmalle [EMAIL PROTECTED] 
  wrote: 
  
Hi,This is what I do,Rename your project, oldProj or 
something. Create a new project with the same name as your old one. 
If I were you with this still in beta, rebuild your project if not to 
complicated. In the new project, you then have new swf's and .html 
files.You also could copy the files back into the old and rename it 
back.But, when something like that happens to me, I am more than 
willing to just start from scratch with a new project with the same 
name.It only takes me about 1-2 minutes to rename, move and delete 
stuff and it's back up and running.If anybody knows a better way, I 
am all ears.Peace, Mike

On 6/15/06, Phil 
Marston  
[EMAIL PROTECTED] wrote: 

  
  
  
  
  
  Hi all,Making a mess here! For some reason Flex Builder didn't 
  seem to be incorporating changes I'd made to source files, so I 
  figured there was some sort of caching issue (I don't really know how 
  Eclipse works) so I figured if I clear out all the compiled stuff and 
  get FB to build from scratch that'd do it ... big mistake it's now 
  refusing to build apparently because the html file to display the swf 
  in is missing - my projects bin directory is empty!What do I 
  have to do?:'(-- 
  __ Phil 
  Marston Learning TechnologistLearning Technology Unit Edward 
  Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK[EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 
  723660 http://www.abdn.ac.uk/diss/ltu/pmarston/http://www.abdn.ac.uk/diss/ltu/__The 
  University of Aberdeen Open Day 29th August 2006Booking is 
  essentialwww.abdn.ac.uk/opendayemail [EMAIL PROTECTED]or call 0800 027 
  1495
-- What goes up, does come down. 
  -- What goes up, 
  does come down. [Inbound Mail 
  Scanned by 
  MessageLabs]__This 
  email has been scanned by the MessageLabs Email Security System.For more 
  information please visit http://www.messagelabs.com/email 
  __-- 
__ 
Phil Marston 
Learning Technologist
Learning Technology Unit 
Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
[EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 723660 
http://www.abdn.ac.uk/diss/ltu/pmarston/
http://www.abdn.ac.uk/diss/ltu/
__

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]
or call 0800 

Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?

2006-06-19 Thread Jean-Luc ESSER





Hi Mike,

Yes i mean an event that signifies everything has 
been drawn.
I mean if i have an image to show in the 
itemRenderers, i want to know when the data has been received, image has been 
loaded, itemRenderer has been renderered, and the List has finished sizing and 
showing all items.

Best,
JL



  - Original Message - 
  From: 
  Michael 
  Schmalle 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, June 19, 2006 1:04 PM
  Subject: Re: [flexcoders] [To Michael 
  Schmalle] Rendered from dataProvider ?
  
  
  Hi,Yeah I remeber that post tit was in relation to setting the 
  height based on rows.I remember Manish said the rowHeight property and 
  I said calculateHeight().You rquestion is alittle nebulus, do you mean 
  an event that signifies everything has been drawn?Or 
  measurements?Peace, Mike
  On 6/19/06, Jean-Luc 
  ESSER [EMAIL PROTECTED] 
  wrote:
  





Michael, i saw one of your posts where you said 
:
" Once you 
have established that the list has been rendered from the dataProvider 
"

I assume you mean when the List has finished 
working with its dataProvider (including finished drawing its itemRenderers 
with their data).
If so, how would you do that ?

Best,
Jean-Luc.
-- What goes up, does come down. 
  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Connection Debugging

2006-06-19 Thread Bjorn Schultheiss










In Flash Development I was using
ServiceCapture for my NetConnection Debugging.



Whats the preferred NetConnection
debugger for Flex2?

In particular Im using a
Coldfusion backend.



Has anyone managed to use ServiceCapture
with flex2?





Regards,



Bjorn Schultheiss

Senior Flash Developer



QDC Technologies 




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___






Re: [flexcoders] Re: flex2gateway woes on UNIX

2006-06-19 Thread Tom Chiverton
On Monday 19 June 2006 12:13, wlbagent wrote:
 What do you mean by you may need to enable it first?  CF is running
 and cfm pages are being processed.

In a standalone CF server install, it can be configured to only answer 
requests arriving over the jrun (Apache) plug-in.

-- 
Tom Chiverton



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.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards



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

* 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: Flex beta 3/CF and Datagrid not being populated

2006-06-19 Thread João Fernandes











Manik,



Try to debug your code on result event of your code, then you
can watch the variable event.lastResult, it should be your array of artists,
expand one of the nodes and check your columns case.  





João Fernandes
Dep. Informática - Área de Desenvolvimento
Cofina media

Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
Tel (+351) 213 185 200 . Fax (+351) 213 540 370
[EMAIL PROTECTED]









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of malik_robinson
Sent: segunda-feira, 19 de Junho de 2006 2:54
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex beta 3/CF and Datagrid not being
populated













Hi,

Thanks for the help.

It is almost working. It now appears that the grid is being 
populated but I do not see anything in the grid. The reason I know 
its being populated is when i move my mouse over, it highlights the 
rows. It also adds a scroll bar to the display indicating there are 
more records than can be displayed in the grid due to the current 
size of the grid. The only problem now is I do not see the values in 
the columns. The CFC does work and I have tested it using a 
basic .cfm page. I think I we are almost there, I just do not see 
the actual values in the grid.

1. Also, what is lastResult. Where does that come from and how 
would one know about this?

2. Any idea why I do not see any actual text in the grid? I tried 
firstname, FIRSTNAME, as I heard someone reference that I need to use 
CAPS, but either way I do not get values in the grid. But it does 
appear records are there as I move the mouse over, it highlights the 
*would be value*.

mx:DataGrid id=dg dataProvider={artSvc.getArtists.lastResult}

x=177 y=65
mx:columns
mx:DataGridColumn headerText=First Name dataField=FIRSTNAME/
mx:DataGridColumn headerText=Last Name dataField=LASTNAME/
/mx:columns
/mx:DataGrid

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

 Yeah,
 
 Sorry, use:
 
 artSvc.getArtists.lastResult
 
 for the dataProvider, without artists at the end.
 
 -TH
 
 --- In flexcoders@yahoogroups.com,
malik_robinson 
 Malik_Robinson@ wrote:
 
  
  Hi,
  
  I ended up getting an error, I think it was due to the text
  lastResult. Below is the error:
  
  I am very curious to know if someone can try this simple example 
 and get
  a datagrid to populate via a query object from CF.
  
  Error: Unknown Property 'artists'.
  at
  
 
mx.collections::ListCollectionView/http://www.adobe.com/2006/actionsc
 rip\
  t/flash/proxy::getProperty()
  at mx.binding::PropertyWatcher/::updateProperty()
  at mx.binding::Watcher/mx.binding:Watcher::wrapUpdate()
  at mx.binding::PropertyWatcher/updateParent()
  at mx.binding::Watcher/updateChildren()
  at mx.binding::PropertyWatcher/::updateProperty()
  at mx.binding::Watcher/mx.binding:Watcher::wrapUpdate()
  at mx.binding::PropertyWatcher/eventHandler()
  at flash.events::EventDispatcher/dispatchEvent()
  at
  
 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::r
 esu\
  ltHandler()
  at mx.rpc::Responder/result()
  at mx.rpc::AsyncRequest/acknowledge()
  at
 
 ::NetConnectionMessageResponder/NetConnectionChannel.as$42:NetConne
 ction\
  MessageResponder::resultHandler()
  at mx.messaging::MessageResponder/result()
  
  
  Here is the CFC:
  
  cfcomponent
  
  
  
  cffunction name=getArtists access=remote
returntype=query
  
  cfset var artists = '' /
  
  cfquery name=Artists datasource=cfcodeexplorer
  
  SELECT firstname, lastname
  
  FROM ARTISTS
  
  /cfquery
  
  cfreturn Artists /
  
  /cffunction
  
  /cfcomponent
  
  Here is the current MXML:
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
  http://www.adobe.com/2006/mxml
 layout=absolute
  creationComplete=initApp()
  
  mx:Script
  ![CDATA[
  import mx.rpc.events.*;
  import mx.collections.ArrayCollection;
  
  
  public function initApp():void {
  // Force artists class to load
  artSvc.getArtists.send();
  }
  
  ]]
  /mx:Script
  
  mx:RemoteObject
  id=artSvc
  destination=ColdFusion
  source=myApp.cf.com.artists
  showBusyCursor=true /
  
  
  mx:DataGrid id=dg dataProvider={artSvc.getArtists.artists}

 x=177
  y=65
  mx:columns
  mx:DataGridColumn headerText=First Name 
 dataField=firstName/
  mx:DataGridColumn headerText=Last Name 
 dataField=lastName/
  /mx:columns
  /mx:DataGrid
  
  /mx:Application
  
  
  
  --- In flexcoders@yahoogroups.com,
Tim Hoff TimHoff@ wrote:
  
  
   Hi Malik,
  
   I can't test this, but this is how the examples that I've seen 
 work.
  
   -TH
  
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
   http://www.adobe.com/2006/mxml

   layout=absolute creationComplete=initApp()
  
   mx:Script
   ![CDATA[
   import mx.collections.ArrayCollection;
   import mx.rpc.events.*;
  
   public function initApp():void {
   // Force artists class to load
   artSvc.getArtists.send();
   }
   ]]
   /mx:Script
  

Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?

2006-06-19 Thread Michael Schmalle



Oh yeah,

Add the listener right before you change the dataProvider, remove it
when the actual handler fires for the UPDATE_COMPLETE event.

Peace, MikeOn 6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote:
Hi,

Well, I am to to up to speed on the deep workings of the ListBase and
List *yet* but, changing the dataProvider is connected to
updateDisplayLit().

That being said, I would say try;

mx.events.FlexEvent.UPDATE_COMPLETE

Dispatched when an object has had its commitProperties, measure, and 
updateDisplayList called (if needed).. 

Now looking at the UIComponent, I am pretty sure that is it. BTW,
thanks for this question becasue that is a very important event!

Ok, double on that, LayoutManger says FlexEvent.UPDATE_COMPLETE ;-)

Peace, MikeOn 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED]
 wrote:









  






Hi Mike,

Yes i mean an event that signifies everything has 
been drawn.
I mean if i have an image to show in the 
itemRenderers, i want to know when the data has been received, image has been 
loaded, itemRenderer has been renderered, and the List has finished sizing and 
showing all items.

Best,
JL



  - Original Message - 
  

From: 
  Michael 
  Schmalle 
  To: 

flexcoders@yahoogroups.com 
  Sent: Monday, June 19, 2006 1:04 PM

  Subject: Re: [flexcoders] [To Michael 
  Schmalle] Rendered from dataProvider ?
  
  
  Hi,Yeah I remeber that post tit was in relation to setting the 
  height based on rows.I remember Manish said the rowHeight property and 
  I said calculateHeight().You rquestion is alittle nebulus, do you mean 
  an event that signifies everything has been drawn?Or 
  measurements?Peace, Mike
  On 6/19/06, Jean-Luc 
  ESSER [EMAIL PROTECTED] 
  wrote:
  





Michael, i saw one of your posts where you said 
:
 Once you 
have established that the list has been rendered from the dataProvider 


I assume you mean when the List has finished 
working with its dataProvider (including finished drawing its itemRenderers 
with their data).
If so, how would you do that ?

Best,
Jean-Luc.
-- What goes up, does come down. 
  

  













-- What goes up, does come down.

-- What goes up, does come down.

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?

2006-06-19 Thread Jean-Luc ESSER





Well i tried that, and it looks like it is fired 
several times during the population of the List.
So i have no way of knowing when it is fired for 
the last time, that is when the last item has been rendered !

Or maybe i did notput the listener at the 
correct place.
I'll keep trying.

Best,
JL



  - Original Message - 
  From: 
  Michael 
  Schmalle 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, June 19, 2006 3:25 PM
  Subject: Re: [flexcoders] [To Michael 
  Schmalle] Rendered from dataProvider ?
  
  
  Oh yeah,Add the listener right before you change the dataProvider, 
  remove it when the actual handler fires for the UPDATE_COMPLETE 
  event.Peace, Mike
  On 6/19/06, Michael 
  Schmalle [EMAIL PROTECTED] 
  wrote:
  Hi,Well, I am 
to to up to speed on the deep workings of the ListBase and List *yet* but, 
changing the dataProvider is connected to updateDisplayLit().That 
being said, I would say try;mx.events.FlexEvent.UPDATE_COMPLETE"Dispatched 
when an object has had its commitProperties, measure, and updateDisplayList 
called (if needed).. "Now looking at the UIComponent, I am pretty 
sure that is it. BTW, thanks for this question becasue that is a very 
important event!Ok, double on that, LayoutManger says 
FlexEvent.UPDATE_COMPLETE ;-)
Peace, Mike
On 6/19/06, Jean-Luc 
ESSER [EMAIL PROTECTED]  wrote:

  
  
  
  
  
  
  Hi Mike,
  
  Yes i mean an event that signifies everything 
  has been drawn.
  I mean if i have an image to show in the 
  itemRenderers, i want to know when the data has been received, image has 
  been loaded, itemRenderer has been renderered, and the List has finished 
  sizing and showing all items.
  
  Best,
  JL
  
  
  
  
  - 
  Original Message - 
  From: 
  Michael Schmalle 
  To: 
  flexcoders@yahoogroups.com 
  Sent: 
  Monday, June 19, 2006 1:04 PM 
  Subject: 
  Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
  
  
  
  
  Hi,Yeah I remeber that post tit was in relation to 
  setting the height based on rows.I remember Manish said the 
  rowHeight property and I said calculateHeight().You rquestion is 
  alittle nebulus, do you mean an event that signifies everything has been 
  drawn?Or measurements?Peace, Mike
  On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] 
  wrote: 
  






Michael, i saw one of your posts where you 
said :
" Once 
you have established that the list has been rendered from the 
dataProvider "

I assume you mean when the List has 
finished working with its dataProvider (including finished drawing its 
itemRenderers with their data).
If so, how would you do that ?

Best,
Jean-Luc.

  -- What goes up, does come down. 
  
  
  
  -- What goes up, does come down. 
  -- What goes up, 
  does come down. 
  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?

2006-06-19 Thread Michael Schmalle



JL,

Have you test the event's currentTarget property for the actuall list?

When the LayoutManager rolls through it's updateCompleteQueue, it goes backwards, children to parent.

I would think you could check for the base components instance.

If you find out that you cannot, I don't understand what is going on by looking at the LayoutManager. It seems pretty simple.

Peace, Mike

PS show me some code so I can try what you are doing! :)

On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote:









  






Well i tried that, and it looks like it is fired 
several times during the population of the List.
So i have no way of knowing when it is fired for 
the last time, that is when the last item has been rendered !

Or maybe i did notput the listener at the 
correct place.
I'll keep trying.

Best,
JL



  - Original Message - 
  
From: 
  Michael 
  Schmalle 
  To: 
flexcoders@yahoogroups.com 
  Sent: Monday, June 19, 2006 3:25 PM

  Subject: Re: [flexcoders] [To Michael 
  Schmalle] Rendered from dataProvider ?
  
  
  Oh yeah,Add the listener right before you change the dataProvider, 
  remove it when the actual handler fires for the UPDATE_COMPLETE 
  event.Peace, Mike
  On 6/19/06, Michael 
  Schmalle [EMAIL PROTECTED] 
  wrote:
  Hi,Well, I am 
to to up to speed on the deep workings of the ListBase and List *yet* but, 
changing the dataProvider is connected to updateDisplayLit().That 
being said, I would say try;mx.events.FlexEvent.UPDATE_COMPLETE
Dispatched 
when an object has had its commitProperties, measure, and updateDisplayList 
called (if needed).. Now looking at the UIComponent, I am pretty 
sure that is it. BTW, thanks for this question becasue that is a very 
important event!Ok, double on that, LayoutManger says 
FlexEvent.UPDATE_COMPLETE ;-)
Peace, Mike
On 6/19/06, Jean-Luc 
ESSER [EMAIL PROTECTED]  wrote:

  
  
  
  
  
  
  Hi Mike,
  
  Yes i mean an event that signifies everything 
  has been drawn.
  I mean if i have an image to show in the 
  itemRenderers, i want to know when the data has been received, image has 
  been loaded, itemRenderer has been renderered, and the List has finished 
  sizing and showing all items.
  
  Best,
  JL
  
  
  
  
  - 
  Original Message - 
  From: 
  Michael Schmalle 
  To: 
  flexcoders@yahoogroups.com 
  Sent: 
  Monday, June 19, 2006 1:04 PM 
  Subject: 
  Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
  
  
  
  
  Hi,Yeah I remeber that post tit was in relation to 
  setting the height based on rows.I remember Manish said the 
  rowHeight property and I said calculateHeight().You rquestion is 
  alittle nebulus, do you mean an event that signifies everything has been 
  drawn?Or measurements?Peace, Mike
  On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED]
 
  wrote: 
  






Michael, i saw one of your posts where you 
said :
 Once 
you have established that the list has been rendered from the 
dataProvider 

I assume you mean when the List has 
finished working with its dataProvider (including finished drawing its 
itemRenderers with their data).
If so, how would you do that ?

Best,
Jean-Luc.

  -- What goes up, does come down. 
  
  
  
  -- What goes up, does come down. 
  -- What goes up, 
  does come down. 
  

  













-- What goes up, does come down.

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] FDS Samples

2006-06-19 Thread Peter Farland





Are you running on Tomcat by any chance? If so,what 
version? For Tomcat you need to setup JOTM first as Data Services makes use of 
JTA (for transactions).


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of hank 
williamsSent: Sunday, June 18, 2006 3:20 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] FDS 
Samples


I just downloaded flex data services, installed, and tried to run the the 
sample apps.The flash UI part all works fine, but it cant connect to 
data. The error that comes in on the java console looks like 
this:[Flex] [DEBUG] Before invoke service: data-service 
incomingMessage: Flex Message (flex.data.messages.DataMessage) 
 operation = fill id = 
null clientId = 
5C535BF9-496C-1163-025E-E8915E76244B correlationId = 
 destination = contact messageId = 
43802177-0968-4AB3-9AB5-E8915E86D54E timestamp = 
1150658109140 timeToLive = 0 body = 
 [ 
 ] hdr(DSEndpoint) = my-rtmp 
Throwable in RtmpReader thread: java.lang.NoClassDefFoundError: 
javax/transaction/SystemExceptionjava.lang.NoClassDefFoundError: 
javax/transaction/SystemException at 
flex.data.DataService.serviceMessage 
(DataService.java:284) at 
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:565) 
at 
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:298) 
at flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage 
(AbstractRTMPServer.java:653) at 
flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:650) 
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask 
(ThreadPoolExecutor.java:643) at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668) 
at java.lang.Thread.run(Unknown Source)Obviously I have done 
something wrong from a setup perspective, but I am not sure what. Any 
input would be greatly appreciated.Hank
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] How can I use the flash class MovieClip in my flex script

2006-06-19 Thread zd_khaled

Hi

I need to use the flash class MovieClip in my flex application, I
tried to import this class but it doesn't work.
Can you help me please
thanks,






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

* 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: Using HTTPService

2006-06-19 Thread s_hernandez01
abiramkumar,

I am new to flex as well, but I would try keeping everything on one
application component.  Usually when you use an http service you want
to call a series of objects instead of calling them one by one, say
for example calling a list of photos you have in your folder.  In
addition, try using creationComplete=feedRequest.send() instead of
the initialize call.

Sal

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

 hello all,
   I am new to flex.i don't know how to use httpservice in flex.
 i'm using flexbuilder with jrun server now.
 
 example.mxml
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* 
 layout=absolute  initialize=feedRequest.send() 
 
 mx:HTTPService 
 id=feedRequest method=post
 url=login.mxml
 useProxy=true/
 /mx:Application
 
 
 login.mxml
 
 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 
 mx:Panel title=My Application paddingTop=10 
 paddingBottom=10
 paddingLeft=10 paddingRight=10 
 
 mx:Label text=Hello World! fontWeight=bold 
 fontSize=24 /
 
 /mx:Panel
 /mx:Application
 
 
 i am not getting any output  or error.
 
 plz help me
 thanks in advance
 abiramkumar








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

* 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] [To Michael Schmalle] Rendered from dataProvider ?

2006-06-19 Thread Michael Schmalle



Hi,

Well I have done some testing and well, I see what you are saying.
There is no way to test the target or currentTarget because they point
to the List.

I added that event listener to the LayoutManager's instance, it came down to two calls. There has to be a way to know this.

I also checked the updateCompletePendingFlag of the List, this offers
no help either because after the event is broadcast, it switches it to
false again by the LayoutManager just after it loops through the
complete queue.

For now, I am out of ideas, Adobe?

Peace, MikeOn 6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote:
JL,

Have you test the event's currentTarget property for the actuall list?

When the LayoutManager rolls through it's updateCompleteQueue, it goes backwards, children to parent.

I would think you could check for the base components instance.

If you find out that you cannot, I don't understand what is going on by looking at the LayoutManager. It seems pretty simple.

Peace, Mike

PS show me some code so I can try what you are doing! :)

On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED]
 wrote:









  






Well i tried that, and it looks like it is fired 
several times during the population of the List.
So i have no way of knowing when it is fired for 
the last time, that is when the last item has been rendered !

Or maybe i did notput the listener at the 
correct place.
I'll keep trying.

Best,
JL



  - Original Message - 
  

From: 
  Michael 
  Schmalle 
  To: 

flexcoders@yahoogroups.com 
  Sent: Monday, June 19, 2006 3:25 PM

  Subject: Re: [flexcoders] [To Michael 
  Schmalle] Rendered from dataProvider ?
  
  
  Oh yeah,Add the listener right before you change the dataProvider, 
  remove it when the actual handler fires for the UPDATE_COMPLETE 
  event.Peace, Mike
  On 6/19/06, Michael 
  Schmalle [EMAIL PROTECTED] 
  wrote:
  Hi,Well, I am 
to to up to speed on the deep workings of the ListBase and List *yet* but, 
changing the dataProvider is connected to updateDisplayLit().That 
being said, I would say try;mx.events.FlexEvent.UPDATE_COMPLETE

Dispatched 
when an object has had its commitProperties, measure, and updateDisplayList 
called (if needed).. Now looking at the UIComponent, I am pretty 
sure that is it. BTW, thanks for this question becasue that is a very 
important event!Ok, double on that, LayoutManger says 
FlexEvent.UPDATE_COMPLETE ;-)
Peace, Mike
On 6/19/06, Jean-Luc 
ESSER [EMAIL PROTECTED]  wrote:

  
  
  
  
  
  
  Hi Mike,
  
  Yes i mean an event that signifies everything 
  has been drawn.
  I mean if i have an image to show in the 
  itemRenderers, i want to know when the data has been received, image has 
  been loaded, itemRenderer has been renderered, and the List has finished 
  sizing and showing all items.
  
  Best,
  JL
  
  
  
  
  - 
  Original Message - 
  From: 
  Michael Schmalle 
  To: 
  flexcoders@yahoogroups.com 
  Sent: 
  Monday, June 19, 2006 1:04 PM 
  Subject: 
  Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
  
  
  
  
  Hi,Yeah I remeber that post tit was in relation to 
  setting the height based on rows.I remember Manish said the 
  rowHeight property and I said calculateHeight().You rquestion is 
  alittle nebulus, do you mean an event that signifies everything has been 
  drawn?Or measurements?Peace, Mike
  On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED]
 
  wrote: 
  






Michael, i saw one of your posts where you 
said :
 Once 
you have established that the list has been rendered from the 
dataProvider 

I assume you mean when the List has 
finished working with its dataProvider (including finished drawing its 
itemRenderers with their data).
If so, how would you do that ?

Best,
Jean-Luc.

  -- What goes up, does come down. 
  
  
  
  -- What goes up, does come down. 
  -- What goes up, 
  does come down. 
  

  













-- What goes up, does come down.

-- What goes up, does come down.

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best 

RE: [flexcoders] Re: Using HTTPService

2006-06-19 Thread Peter Farland





That's right Sal, RPC and Data services should be called 
after creationComplete.

However, you don't seem to have result and fault handlers 
specified for your HTTPService... how will you know when something has gone 
wrong or when the result has been returned asynchronously?




From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
s_hernandez01Sent: Monday, June 19, 2006 9:14 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Re: Using 
HTTPService


abiramkumar,I am new to flex as well, but I would try keeping 
everything on oneapplication component. Usually when you use an http service 
you wantto call a series of objects instead of calling them one by one, 
sayfor example calling a list of photos you have in your folder. 
Inaddition, try using creationComplete="feedRequest.send()" 
instead ofthe "initialize" call.Sal--- In [EMAIL PROTECTED]ups.com, 
"abi27ram" abiram.vel@... wrote: hello all, 
I am new to flex.i don't know how to use httpservice in flex. i'm using 
flexbuilder with jrun server now.  example.mxml  
?xml version="1.0" encoding="utf-8"? mx:Application 
xmlns:mx="http://www.adobe.com/2006/mxml" 
xmlns="*"  layout="absolute" initialize="feedRequest.send()" 
  mx:HTTPService  id="feedRequest" 
method="post" url="" useProxy="true"/ 
/mx:Application   login.mxml  
?xml version="1.0"? mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
  mx:Panel title="My Application" paddingTop="10" 
 paddingBottom="10" paddingLeft="10" 
paddingRight="10"   mx:Label text="Hello World!" 
fontWeight="bold"  fontSize="24" /  
/mx:Panel /mx:Application   i am 
not getting any output or error.  plz help me thanks in 
advance abiramkumar
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Re: Flex beta 3/CF and Datagrid not being populated

2006-06-19 Thread Tim Hoff



Hi Malik,
Glad to help. Here are a couple of answers to your questions.
What is "lastResult". Where does that come from and howwould one know about this?
lastResult is the ActionScript object that is returned from an RPC call. The name was changed from result to lastResult to distinguish it from the result of an event. You can search the help docs for lastResult to learn more.Any idea why I do not see any actual text in the grid? I triedfirstname, FIRSTNAME, as I heard someone reference that I need to useCAPS, but either way I do not get values in the grid. But it doesappear records are there as I move the mouse over, it highlights the*would be value*.
The field names of your lastResult object are case sensitive. They need to match the field names in your query exactly. In this case firstname and lastname.
 I removed the "send()" and it still worked so I am not sure of the reason for it? Is is a coding practice to use that, either way it worked with and without the send() method call.
Yes, this is a common coding practice. It helps you and other programmers read the code quickly to see when the data service is being called.
 How would you reference an array? Lets say I had a CFC that returned like a 2D array?
Another common practice is to cast the lastResult from a service call to an ArrayCollection or an XMLListCollection. These objects can be easily accessed, manipulated (filter, sort...) and bound to list-based controls (DataGrid, Tree...). The members of the ArrayCollection can be accessed with dot notations like: contactsAC.phoneNumbers.homePhone. It is also common to use onResult and onFault event listener functionswith RPC calls. But, let's take this one step at a time. See the example below.
?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.utils.ArrayUtil;import mx.rpc.events.*;public function initApp():void {// Force artists class to loadartSvc.getArtists.send();}]]/mx:Scriptmx:RemoteObject id="artSvc" destination="ColdFusion" source="myapp.cf.com.artists" showBusyCursor="true" /
mx:ArrayCollection id="artistsAC" source="mx.utils.ArrayUtil.toArray(artSvc.getArtists.lastResult)"/mx:DataGrid id="dgArtists" dataProvider="{artistsAC}" x="177" y="65" mx:columns mx:DataGridColumn headerText="First Name" dataField="firstname"/ mx:DataGridColumn headerText="Last Name" dataField="lastname"/ /mx:columns/mx:DataGrid/mx:ApplicationHope that this helps,-TH--- In flexcoders@yahoogroups.com, "malik_robinson" [EMAIL PROTECTED] wrote:  Hi,  Sweet it is working now. The "lastResult" worked. So that is  basically a reference to my query object?  Once I did that, just for tests I removed the :  public function initApp():void { // Force artists class to load artSvc.getArtists.send(); }  I removed the "send()" and it still worked so I am not sure of the reason for it? Is is a coding practice to use that, either way it worked with and without the send() method call.  How would you reference an array? Lets say I had a CFC that returned like a 2D array?  I guess I really looking for more information on how a datagrid or tree control or whatever it may be would handle things of different data types like an array or a query object or whatever.  Thanks for the help! Highly appreciated!  -Malik --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:   Yeah,   Sorry, use:   artSvc.getArtists.lastResult   for the dataProvider, without artists at the end.   -TH   --- In flexcoders@yahoogroups.com, "malik_robinson"  Malik_Robinson@ wrote:   Hi, I ended up getting an error, I think it was due to the text   "lastResult". Below is the error: I am very curious to know if someone can try this simple example  and get   a datagrid to populate via a query object from CF. Error: Unknown Property 'artists'.   atmx.collections::ListCollectionView/http://www.adobe.com/2006/actionsc  rip\   t/flash/proxy::getProperty()   at mx.binding::PropertyWatcher/::updateProperty()   at mx.binding::Watcher/mx.binding:Watcher::wrapUpdate()   at mx.binding::PropertyWatcher/updateParent()   at mx.binding::Watcher/updateChildren()   at mx.binding::PropertyWatcher/::updateProperty()   at mx.binding::Watcher/mx.binding:Watcher::wrapUpdate()   at mx.binding::PropertyWatcher/eventHandler()   at flash.events::EventDispatcher/dispatchEvent()   atmx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::r  esu\   ltHandler()   at mx.rpc::Responder/result()   at mx.rpc::AsyncRequest/acknowledge()   at   ::NetConnectionMessageResponder/NetConnectionChannel.as$42:NetConne  ction\   MessageResponder::resultHandler()   at mx.messaging::MessageResponder/result()   Here is the CFC: cfcomponent cffunction name="getArtists" access="remote" returntype="query" cfset var artists = '' / cfquery name="Artists" datasource="cfcodeexplorer" SELECT 

[flexcoders] Flex2B3 - Resize effect problem

2006-06-19 Thread bhaq1972
hi

In my example i'm resizing a panel's width from 300 to 0 (and vice 
versa). However i've got one issue. I sometimes see a ghost of the 
panel's title still there. somekind of refresh issue? how do i 
remove it.
thanks

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

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






 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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/

* 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] FDS Samples

2006-06-19 Thread Peter Farland





My apologies, this was sitting in my outbox for over a day 
and only went out now. I see that you've already got this to 
work.

I agree that the docs could be better on this subject. 
Also, I've found for Tomcat 5.5 that modifying the Context in the 
/META-INF/context.xml file of the web application more 
convenient.


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Peter 
FarlandSent: Monday, June 19, 2006 9:46 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] FDS 
Samples



Are you running on Tomcat by any chance? If so,what 
version? For Tomcat you need to setup JOTM first as Data Services makes use of 
JTA (for transactions).


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of hank 
williamsSent: Sunday, June 18, 2006 3:20 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] FDS 
Samples


I just downloaded flex data services, installed, and tried to run the the 
sample apps.The flash UI part all works fine, but it cant connect to 
data. The error that comes in on the java console looks like 
this:[Flex] [DEBUG] Before invoke service: data-service 
incomingMessage: Flex Message (flex.data.messages.DataMessage) 
 operation = fill id = 
null clientId = 
5C535BF9-496C-1163-025E-E8915E76244B correlationId = 
 destination = contact messageId = 
43802177-0968-4AB3-9AB5-E8915E86D54E timestamp = 
1150658109140 timeToLive = 0 body = 
 [ 
 ] hdr(DSEndpoint) = my-rtmp 
Throwable in RtmpReader thread: java.lang.NoClassDefFoundError: 
javax/transaction/SystemExceptionjava.lang.NoClassDefFoundError: 
javax/transaction/SystemException at 
flex.data.DataService.serviceMessage 
(DataService.java:284) at 
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:565) 
at 
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:298) 
at flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage 
(AbstractRTMPServer.java:653) at 
flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:650) 
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask 
(ThreadPoolExecutor.java:643) at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668) 
at java.lang.Thread.run(Unknown Source)Obviously I have done 
something wrong from a setup perspective, but I am not sure what. Any 
input would be greatly appreciated.Hank

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



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

2006-06-19 Thread aejaz_98



I changed the second repeater to a TileList as follows,?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="components.*"mx:Script![CDATA[[Bindable] public var myArray:Array=["A","B","C","D"];[Bindable]public var myQArray:Array=[{label:"A"}];]]/mx:Script   mx:ArrayCollection id="myAC" source="{myArray}"/ mx:ArrayCollection id="myQArr" source="{myQArray}"/ mx:Accordion id="accordion" x="139" y="303" width="200" height="200"  mx:Repeater id="myrep" dataProvider="{myAC}"   ns1:QuestionForm label="{myrep.currentItem}" width="199" height="178"   mx:TileList dataProvider="{myQArr}" maxColumns="1" mx:FormItem label="" mx:Button label="Inner"//mx:FormItem   /mx:TileList   mx:FormItem label=""mx:Button label="Outer"/   /mx:FormItem   /ns1:QuestionForm  /mx:Repeater /mx:Accordion/mx:ApplicationNow I get the compilation error : Multiple initializers for property 'dataProvider'. (note: 'dataProvider' is the default property of 'mx.controls.TileList'). Please let me know why is it taking the dataProvider for the repeater ?Thanks,Aejaz--- In flexcoders@yahoogroups.com, "aejaz_98" [EMAIL PROTECTED] wrote: Hi,  I have the following application,  ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="components.*" mx:Script ![CDATA[ [Bindable] public var myArray:Array=["A","B","C","D"]; [Bindable] public var myQArray:Array=["A"]; ]] /mx:Script  mx:ArrayCollection id="myAC" source="{myArray}"/  mx:ArrayCollection id="myQArr" source="{myQArray}"/  mx:Accordion id="accordion" x="139" y="303" width="200" height="200"  mx:Repeater id="myrep" dataProvider="{myAC}"  ns1:QuestionForm label="{myrep.currentItem}" width="199" height="178"  mx:Repeater  id="myrep2" dataProvider="{myQArr}"  mx:FormItem label=""  mx:Button label="Inner"/  /mx:FormItem  /mx:Repeater  mx:FormItem label=""  mx:Button label="Outer"/  /mx:FormItem  /ns1:QuestionForm  /mx:Repeater  /mx:Accordion /mx:Application  QuestionForm is a custom component defined as follows,  ?xml version="1.0" encoding="utf-8"? mx:Form xmlns:mx="http://www.adobe.com/2006/mxml"  mx:Script   public var categoryID:Number;  /mx:Script /mx:Form  /mx:Application  When I run this application, Flash gives the following Exception  the application fails to load. However, if I change QuestionForm to Form, the application runs fine. Please let me know what is missing here.  TypeError: Error #1034: Type Coercion failed: cannot convert mx.core::[EMAIL PROTECTED] to Array.  at mx.core::UIComponent/createReferenceOnParentDocument()  at mx.core::Container/createComponentFromDescriptor()  at mx.core::Container/createComponentsFromDescriptors()  at mx.containers::Accordion/::instantiateSelectedChild()  at mx.containers::Accordion/::commitSelectedIndex()  at mx.containers::Accordion/mx.containers:Accordion::commitProperties()  at mx.core::UIComponent/validateProperties()  at mx.managers::LayoutManager/::validateProperties()  at mx.managers::LayoutManager/::doPhasedInstantiation()  at mx.core::UIComponent/::callLaterDispatcher2()  at mx.core::UIComponent/::callLaterDispatcher() Thanks, Aejaz


__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?

2006-06-19 Thread Jean-Luc ESSER





Mike, here is what i do :

public function 
myTest():void{bookFormatMedium.addEventListener(FlexEvent.UPDATE_COMPLETE, 
myTest2);bookFormatMedium.dataProvider = 
myDataProvider;}public function 
myTest2(event:FlexEvent):void{bookFormatMedium.removeEventListener(FlexEvent.UPDATE_COMPLETE, 
myTest2, false);trace('myTestComplete 
'+event.currentTarget);}

And i invoke myTest on creationComplete of my 
TileList (or List) :

mx:TileList id="bookFormatMedium" 
backgroundAlpha="0" textAlign="left" 
horizontalScrollPolicy="off"width="100%" height="100%" 
styleName="bookFormatMedium"itemRenderer="com.lmg.view.global.book.BookFormatMediumItemRenderer"itemClick="changeFlowStates(panelState, 
BookVO(bookFormatMedium.selectedItem))"creationComplete="myTest()"/

My event is dispatched too soon (items are not 
fully drawn yet).
Also, invoking myTest() on creationComplete is 
wrong because next time my dataProvider changes, i won't be able to call 
myTest().

This is new for me, sorry if i misunderstood what 
you said !

Best,
JL




  - Original Message - 
  From: 
  Michael 
  Schmalle 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, June 19, 2006 3:39 PM
  Subject: Re: [flexcoders] [To Michael 
  Schmalle] Rendered from dataProvider ?
  
  
  JL,Have you test the event's currentTarget property for the actuall 
  list?When the LayoutManager rolls through it's updateCompleteQueue, it 
  goes backwards, children to parent.I would think you could check for 
  the base components instance.If you find out that you cannot, I don't 
  understand what is going on by looking at the LayoutManager. It seems pretty 
  simple.Peace, MikePS show me some code so I can try what you 
  are doing! :)
  On 6/19/06, Jean-Luc 
  ESSER [EMAIL PROTECTED] 
  wrote:
  





Well i tried that, and it looks like it is 
fired several times during the population of the List.
So i have no way of knowing when it is fired 
for the last time, that is when the last item has been rendered 
!

Or maybe i did notput the listener at the 
correct place.
I'll keep trying.

Best,
JL




- 
Original Message - 
From: 
Michael Schmalle 
To: 
flexcoders@yahoogroups.com 

Sent: 
Monday, June 19, 2006 3:25 PM 
Subject: 
Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?




Oh yeah,Add the listener 
right before you change the dataProvider, remove it when the actual handler 
fires for the UPDATE_COMPLETE event.Peace, Mike


On 
6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote: 



Hi,Well, I am to to up to speed on the deep workings of the 
ListBase and List *yet* but, changing the dataProvider is connected to 
updateDisplayLit().That being said, I would say try;mx.events.FlexEvent.UPDATE_COMPLETE 
"Dispatched when an object has had its commitProperties, measure, 
and updateDisplayList called (if needed).. "Now looking at the 
UIComponent, I am pretty sure that is it. BTW, thanks for this question 
becasue that is a very important event!Ok, double on that, 
LayoutManger says FlexEvent.UPDATE_COMPLETE ;-)


Peace, Mike
On 6/19/06, Jean-Luc 
ESSER [EMAIL PROTECTED]  wrote: 

  
  
  
  
  
  
  Hi Mike,
  
  Yes i mean an event that signifies everything 
  has been drawn.
  I mean if i have an image to show in the 
  itemRenderers, i want to know when the data has been received, image has 
  been loaded, itemRenderer has been renderered, and the List has finished 
  sizing and showing all items.
  
  Best,
  JL
  
  
  
  
  - 
  Original Message - 
  From: 
  Michael Schmalle 
  To: 
  flexcoders@yahoogroups.com 
  Sent: 
  Monday, June 19, 2006 1:04 PM 
  Subject: 
  Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
  
  
  
  
  Hi,Yeah I remeber that post tit was in relation to 
  setting the height based on rows.I remember Manish said the 
  rowHeight property and I said calculateHeight().You rquestion is 
  alittle nebulus, do you mean an event that signifies everything has been 
  drawn?Or measurements?Peace, Mike
  On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED]  
  wrote: 
  






Michael, i saw one of your posts where you 
said :
" Once 
you have established that the list has been rendered from the 
dataProvider "

I assume you mean when the List has 
finished working with its dataProvider (including finished drawing its 
itemRenderers with their data).
If so, how would you do that ?

Best,
Jean-Luc.

  -- What goes up, does 

[flexcoders] Re: using date formatter for datefield

2006-06-19 Thread Tim Hoff
Hi,

The help docs recommend something like this:

mx:DateFormatter id=dfconv formatString=/MM/DD/
mx:Script
![CDATA[
private function formatDate(date:Date):String
{
return dfconv.format(date);
}
]]
/mx:Script

mx:DateField id=df labelFunction=formatDate 
parseFunction=null/

-TH

--- In flexcoders@yahoogroups.com, Bas J. Brey [EMAIL PROTECTED] wrote:

 I'm having problems when I set the selectedDate of a datefield.
 
 When I set it dynamicly the formatter works, but when I click on 
the
 datefield the month and day are switched.
 
 This is a bug cause I verified the input date, and it works with 
days above
 12!
 
  
 
 Anyone got a clue on how to solve this?








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

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

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




Re: [flexcoders] How to recover from 'cleaning' project?

2006-06-19 Thread Phil Marston






Yeah the html-templates folder is untouched - what I'm beginning to
discover is that if there are any errors in your code when you clean,
then the project wont recompile - kind of obvious really! Trouble was
that I thought is was compiling despite there being errors prior to
cleaning - I'm now realising that it was compiling using a previous
version even if you make some alterations to your source file and save,
but still have errors - it's like it's got a cached version of your
last error free source file that it uses to compile from.

Maybe this is normal experience for developers using Flex, but it's not
totally obvious caught me out through the "cleaning" process! doh!

:-/

Daniel Tuppeny wrote:

  
  
  I'm sure that's the corect
behaviour. Mine also completely wipes the bin folder. The HTML files
get copied back from the html-template folder when I next build. If I
delete that folder, then I get compile errors and the rebuild option.
You shouldn't get compile errors with an empty bin folder, so sounds
like a problem with compiling, rather than the Clean option.
  
  I'm guessing there are still
files in your html-templates folder?
  
  
  From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Phil Marston
  Sent: 15 June 2006 14:55
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] How to recover from 'cleaning'
project?
  
  
Thanks Daniel,
  
but there must be a difference in behavior between your FlexBuilder and
mine because thats where the problem lays for me. When I selected
Project - Clean... it cleared everything out of the project bin
including the html files the debug files and everything! The damn
thing wont recompile or rebuild - I get no "regenerate html" option and
there is no message in the Problems pane - it just bombs with a "Launch
Failed" modal dialog saying "File not found {the path to
/bin/project.html here}"
  
I've been trying to create a whole new project from scratch with
different name, but the whole IDE seems to've given up on running the
code for this project . . . . curses-under-breath/
  
Phil
  
Daniel Tuppeny wrote:
  

I may not have understood
properly, but when I did a similar thing, it told me to right-click on
the message in the Problems pane, anc hoose the "regenerate html"
option!

Also, there's a Project -
Clean option which clears out the compiled stuff without deleting the
html templates :-)


 From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Michael Schmalle
Sent: 15 June 2006 12:50
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to recover from 'cleaning'
project?


Oh yeah,

You could also just copy in the swf's and html from another project
rename them and recompile.

I have found this method is not so 'stable' but most of the time works.

Peace, Mike

On 6/15/06, Michael Schmalle [EMAIL PROTECTED]
wrote:

  Hi,
  
This is what I do,
  
Rename your project, oldProj or something. 
  
Create a new project with the same name as your old one. If I were you
with this still in beta, rebuild your project if not to complicated. In
the new project, you then have new swf's and .html files.
  
You also could copy the files back into the old and rename it back.
  
But, when something like that happens to me, I am more than willing to
just start from scratch with a new project with the same name.
  
It only takes me about 1-2 minutes to rename, move and delete stuff and
it's back up and running.
  
If anybody knows a better way, I am all ears.
  
Peace, Mike
  
  
  On 6/15/06, Phil Marston 
[EMAIL PROTECTED] wrote:
  





Hi all,

Making a mess here! For some reason Flex Builder didn't seem to be 
incorporating changes I'd made to source files, so I figured there was 
some sort of caching issue (I don't really know how Eclipse works) so I

figured if I clear out all the compiled stuff and get FB to build from 
scratch that'd do it ... big mistake it's now refusing to build 
apparently because the html file to display the swf in is missing - my 
projects bin directory is empty!

What do I have to do?

:'(

-- 
__ 
Phil Marston 
Learning Technologist
Learning Technology Unit 
Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
[EMAIL PROTECTED]
Tel: +44(0)1224 273329 / +44(0)7798 723660 
http://www.abdn.ac.uk/diss/ltu/pmarston/
http://www.abdn.ac.uk/diss/ltu/
__

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]
or call 0800 027 1495







  
  
  
  
  
  

[flexcoders] Getting rid of rectangle on axis (FB2.3 charts)

2006-06-19 Thread sp0rarb3jd3r
Is there anyway to get rid of the little rectangle* that forms around
the vertical axis on the linecharts.
I can't seem to find the style that turns it off.
If that is possible, mind.

Y!

*It's the bit that is there to ensure you spot the tick-lines.






 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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/

* 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] [To Michael Schmalle] Rendered from dataProvider ?

2006-06-19 Thread Jean-Luc ESSER





One hack i'm using is on each creationComplete of 
the itemRenderer, i call a function where i test currentIndex to dataProvider 
length. If same, it means the last Item has been created and processed by the 
List.

Is that bad ?

JL



  - Original Message - 
  From: 
  Michael 
  Schmalle 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, June 19, 2006 4:03 PM
  Subject: Re: [flexcoders] [To Michael 
  Schmalle] Rendered from dataProvider ?
  
  
  Hi,Well I have done some testing and well, I see what you are 
  saying. There is no way to test the target or currentTarget because they point 
  to the List.I added that event listener to the LayoutManager's 
  instance, it came down to two calls. There has to be a way to know 
  this.I also checked the updateCompletePendingFlag of the List, this 
  offers no help either because after the event is broadcast, it switches it to 
  false again by the LayoutManager just after it loops through the complete 
  queue.For now, I am out of ideas, Adobe?Peace, Mike
  On 6/19/06, Michael 
  Schmalle [EMAIL PROTECTED] 
  wrote:
  JL,Have you 
test the event's currentTarget property for the actuall list?When 
the LayoutManager rolls through it's updateCompleteQueue, it goes backwards, 
children to parent.I would think you could check for the base 
components instance.If you find out that you cannot, I don't 
understand what is going on by looking at the LayoutManager. It seems pretty 
simple.Peace, MikePS show me some code so I can try what you 
are doing! :)

On 6/19/06, Jean-Luc 
ESSER [EMAIL PROTECTED]  wrote:

  
  
  
  
  
  
  Well i tried that, and it looks like it is 
  fired several times during the population of the List.
  So i have no way of knowing when it is fired 
  for the last time, that is when the last item has been rendered 
  !
  
  Or maybe i did notput the listener at 
  the correct place.
  I'll keep trying.
  
  Best,
  JL
  
  
  
  
  - 
  Original Message - 
  From: 
  Michael Schmalle 
  To: 
  flexcoders@yahoogroups.com 
  
  Sent: 
  Monday, June 19, 2006 3:25 PM 
  Subject: 
  Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
  
  
  
  
  Oh yeah,Add the listener right before you change the 
  dataProvider, remove it when the actual handler fires for the 
  UPDATE_COMPLETE event.Peace, Mike
  
  
  On 6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote: 
  
  
  
  Hi,Well, I am to to up to speed on the deep workings of the 
  ListBase and List *yet* but, changing the dataProvider is connected to 
  updateDisplayLit().That being said, I would say try;mx.events.FlexEvent.UPDATE_COMPLETE 
  "Dispatched when an object has had its commitProperties, measure, 
  and updateDisplayList called (if needed).. "Now looking at the 
  UIComponent, I am pretty sure that is it. BTW, thanks for this question 
  becasue that is a very important event!Ok, double on that, 
  LayoutManger says FlexEvent.UPDATE_COMPLETE ;-)
  
  
  Peace, Mike
  On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED]  
  wrote: 
  






Hi Mike,

Yes i mean an event that signifies 
everything has been drawn.
I mean if i have an image to show in the 
itemRenderers, i want to know when the data has been received, image has 
been loaded, itemRenderer has been renderered, and the List has finished 
sizing and showing all items.

Best,
JL




- 
Original Message - 
From: 
Michael Schmalle 
To: 
flexcoders@yahoogroups.com 
Sent: 
Monday, June 19, 2006 1:04 PM 
Subject: 
Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider 
?




Hi,Yeah I remeber that post tit was in relation to 
setting the height based on rows.I remember Manish said the 
rowHeight property and I said calculateHeight().You rquestion is 
alittle nebulus, do you mean an event that signifies everything has been 
drawn?Or measurements?Peace, Mike
On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED]  
wrote: 

  
  
  
  
  
  
  Michael, i saw one of your posts where 
  you said :
  " 
  Once you have established that the list has been rendered from the 
  dataProvider "
  
  I assume you mean when the List has 
  finished working with its dataProvider (including finished drawing its 
  itemRenderers with their data).
  If so, how would 

Re: [flexcoders] MovieClips in AS3

2006-06-19 Thread judah






to Adobe employees,

To quote that link to the blaze post,
We also decided to take this opportunity to do something that we've
never been able to do before. We're planning to release a very early
alpha build of BLAZE publicly to all Flash Professional 8 or Studio 8
customers that will allow Flash developers to use ActionScript 3.0 and
compile to Flash Player 8.5. We plan to release this public preview
alpha release of BLAZE in the Spring of 2006 when Flash Player 8.5 is
released. We're doing so in order to give developers who use the Flash
authoring tool a chance to start learning ActionScript 3.0, migrate
existing projects, and slowly transition to the new language.

I purchased or should I say upgraded to Studio 8 last month. I emailed
Adobe support about two weeks ago about getting an alpha of Blaze and I
never got a response. I could guess a number of legit reasons for not
getting a response, but I'd rather not guess. What is the status on
Blaze and can developers still get an alpha of it? Thanks

Judah


Hilary Bridel wrote:

  Ok,
  I did some more research.
  You cannot programmatically make AS3 movieclips.
  Ali Mills has a blog post with a workaround using
localconnection until Blaze
is available
  
  http://www.asserttrue.com/articles/2006/05/16/library-type-assets-in-actionscript-3-0-using-assets-created-with-current-releases-of-flash-authoring
  
  

  Thanks Ali...
  
  Hil
  
  --

  On 6/18/06, Hilary Bridel [EMAIL PROTECTED] wrote:
  

Weyert, that's correct.
If I cant do it with a flash 8 swf, how can I make a flash
9/AS3 movieclip so I can use it in Flex with gotoAndPlay etc.
The AS3 docos say that you can only manipulate AS3 movieclips.

Hil

--




  
  
  



-- 
"Always bear in mind that your own resolution to succeed is more important than any one thing."

"You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose." 

- Abraham Lincoln

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___




RE: [flexcoders] How to recover from 'cleaning' project?

2006-06-19 Thread Daniel Tuppeny





 it's 
like it's got a cached version of your last error free source file that it uses 
to compile from

Sounds like the Clean stuff is working fine, but if you're 
hitting Run with build errors and it's opening up an old version and pretending 
everything is ok, I'd be a little worried!

Every time I hit the Run button, it compiles, and halts if 
there are errors. Do you not get the same?




From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Phil MarstonSent: 19 June 2006 14:18To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] How to recover 
from 'cleaning' project?
Yeah the html-templates folder is untouched - what I'm beginning to 
discover is that if there are any errors in your code when you clean, then the 
project wont recompile - kind of obvious really! Trouble was that I 
thought is was compiling despite there being errors prior to cleaning - I'm now 
realising that it was compiling using a previous version even if you make some 
alterations to your source file and save, but still have errors - it's like it's 
got a cached version of your last error free source file that it uses to compile 
from.Maybe this is normal experience for developers using Flex, but it's 
not totally obvious caught me out through the "cleaning" process! 
doh!:-/Daniel Tuppeny wrote: 

  
  I'm sure that's the corect behaviour. Mine also 
  completely wipes the bin folder. The HTML files get copied back from the 
  html-template folder when I next build. If I delete that folder, then I get 
  compile errors and the rebuild option. You shouldn't get compile errors with 
  an empty bin folder, so sounds like a problem with compiling, rather than the 
  Clean option.
  
  I'm guessing there are still files in your html-templates 
  folder?
  
  
  From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
  On Behalf Of Phil MarstonSent: 15 June 2006 
  14:55To: flexcoders@yahoogroups.comSubject: 
  Re: [flexcoders] How to recover from 'cleaning' 
  project?Thanks Daniel,but there must be a 
  difference in behavior between your FlexBuilder and mine because thats where 
  the problem lays for me. When I selected Project - Clean... it 
  cleared everything out of the project bin including the html files the debug 
  files and everything! The damn thing wont recompile or rebuild - I get 
  no "regenerate html" option and there is no message in the Problems pane - it 
  just bombs with a "Launch Failed" modal dialog saying "File not found {the 
  path to /bin/project.html here}"I've been trying to create a whole new 
  project from scratch with different name, but the whole IDE seems to've given 
  up on running the code for this project . . . . 
  curses-under-breath/PhilDaniel Tuppeny wrote: 
  

I may not have understood properly, but when I did a 
similar thing, it told me to right-click on the message in the Problems 
pane, anc hoose the "regenerate html" option!

Also, there's a Project - Clean option which clears 
out the compiled stuff without deleting the html templates 
:-)


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Michael SchmalleSent: 15 June 2006 
12:50To: flexcoders@yahoogroups.comSubject: 
Re: [flexcoders] How to recover from 'cleaning' 
project?Oh yeah,You could also just copy in the 
swf's and html from another project rename them and recompile.I have 
found this method is not so 'stable' but most of the time 
works.Peace, Mike
On 6/15/06, Michael 
Schmalle [EMAIL PROTECTED] 
wrote: 

  Hi,This is what I do,Rename your project, oldProj or 
  something. Create a new project with the same name as your old 
  one. If I were you with this still in beta, rebuild your project if not to 
  complicated. In the new project, you then have new swf's and .html 
  files.You also could copy the files back into the old and rename 
  it back.But, when something like that happens to me, I am more 
  than willing to just start from scratch with a new project with the same 
  name.It only takes me about 1-2 minutes to rename, move and delete 
  stuff and it's back up and running.If anybody knows a better way, 
  I am all ears.Peace, Mike
  
  On 6/15/06, Phil 
  Marston  
  [EMAIL PROTECTED] wrote: 
  





Hi all,Making a mess here! For some reason Flex Builder 
didn't seem to be incorporating changes I'd made to source files, so 
I figured there was some sort of caching issue (I don't really know 
how Eclipse works) so I figured if I clear out all the compiled 
stuff and get FB to build from scratch that'd do it ... big mistake 
it's now refusing to build apparently because the html file to 
display the swf in is missing - my projects bin directory is 
empty!What do I have to do?:'(-- 

Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?

2006-06-19 Thread Michael Schmalle



I see, I also see yahoo is messing up again, I think yo might have got my last message.

I am adding this to my list of questions ;-)

I don't know the answer right now. I had tested this also.

Peace, MikeOn 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote:









  






Mike, here is what i do :

public function 
myTest():void{bookFormatMedium.addEventListener(FlexEvent.UPDATE_COMPLETE, 
myTest2);bookFormatMedium.dataProvider = 
myDataProvider;}public function 
myTest2(event:FlexEvent):void{bookFormatMedium.removeEventListener(FlexEvent.UPDATE_COMPLETE, 
myTest2, false);trace('myTestComplete 
'+event.currentTarget);}

And i invoke myTest on creationComplete of my 
TileList (or List) :

mx:TileList id=bookFormatMedium 
backgroundAlpha=0 textAlign=left 
horizontalScrollPolicy=offwidth=100% height=100% 
styleName=bookFormatMediumitemRenderer=com.lmg.view.global.book.BookFormatMediumItemRendereritemClick=changeFlowStates(panelState, 
BookVO(bookFormatMedium.selectedItem))creationComplete=myTest()/

My event is dispatched too soon (items are not 
fully drawn yet).
Also, invoking myTest() on creationComplete is 
wrong because next time my dataProvider changes, i won't be able to call 
myTest().

This is new for me, sorry if i misunderstood what 
you said !

Best,
JL




  - Original Message - 
  
From: 
  Michael 
  Schmalle 
  To: 
flexcoders@yahoogroups.com 
  Sent: Monday, June 19, 2006 3:39 PM

  Subject: Re: [flexcoders] [To Michael 
  Schmalle] Rendered from dataProvider ?
  
  
  JL,Have you test the event's currentTarget property for the actuall 
  list?When the LayoutManager rolls through it's updateCompleteQueue, it 
  goes backwards, children to parent.I would think you could check for 
  the base components instance.If you find out that you cannot, I don't 
  understand what is going on by looking at the LayoutManager. It seems pretty 
  simple.Peace, MikePS show me some code so I can try what you 
  are doing! :)
  On 6/19/06, Jean-Luc 
  ESSER [EMAIL PROTECTED] 
  wrote:
  





Well i tried that, and it looks like it is 
fired several times during the population of the List.
So i have no way of knowing when it is fired 
for the last time, that is when the last item has been rendered 
!

Or maybe i did notput the listener at the 
correct place.
I'll keep trying.

Best,
JL




- 
Original Message - 
From: 
Michael Schmalle 
To: 
flexcoders@yahoogroups.com 

Sent: 
Monday, June 19, 2006 3:25 PM 
Subject: 
Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?




Oh yeah,Add the listener 
right before you change the dataProvider, remove it when the actual handler 
fires for the UPDATE_COMPLETE event.Peace, Mike


On 
6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote:
 



Hi,Well, I am to to up to speed on the deep workings of the 
ListBase and List *yet* but, changing the dataProvider is connected to 
updateDisplayLit().That being said, I would say try;mx.events.FlexEvent.UPDATE_COMPLETE
 
Dispatched when an object has had its commitProperties, measure, 
and updateDisplayList called (if needed).. Now looking at the 
UIComponent, I am pretty sure that is it. BTW, thanks for this question 
becasue that is a very important event!Ok, double on that, 
LayoutManger says FlexEvent.UPDATE_COMPLETE ;-)


Peace, Mike
On 6/19/06, Jean-Luc 
ESSER [EMAIL PROTECTED]  wrote: 

  
  
  
  
  
  
  Hi Mike,
  
  Yes i mean an event that signifies everything 
  has been drawn.
  I mean if i have an image to show in the 
  itemRenderers, i want to know when the data has been received, image has 
  been loaded, itemRenderer has been renderered, and the List has finished 
  sizing and showing all items.
  
  Best,
  JL
  
  
  
  
  - 
  Original Message - 
  From: 
  Michael Schmalle 
  To: 
  flexcoders@yahoogroups.com 
  Sent: 
  Monday, June 19, 2006 1:04 PM 
  Subject: 
  Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
  
  
  
  
  Hi,Yeah I remeber that post tit was in relation to 
  setting the height based on rows.I remember Manish said the 
  rowHeight property and I said calculateHeight().You rquestion is 
  alittle nebulus, do you mean an event that signifies everything has been 
  drawn?Or measurements?Peace, Mike
  On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] 
 
  wrote: 
  






Michael, i saw one of your posts where you 
said :
 Once 
you have established that the list has been rendered from the 
dataProvider 

I 

Re: [flexcoders] how to assign itemRenderer w/ActionScript

2006-06-19 Thread Pan Troglodytes



itemRenderers ARE styles, the help just hasn't completely been updated yet.You were actually very close.myTile.setStyle(itemRenderer, new ClassFactory(myThumbnail));You may have to fully qualify it:
myTile.setStyle(itemRenderer, new ClassFactory(itemRenderers.myThumbnail));Now, as to how to manipulate it after this, I don't know. See my thread changing out pieSeries.itemRenderer at runtime where I'm asking the same thing.
On 6/19/06, keishichi2001 [EMAIL PROTECTED] wrote:









  



I've trying following code to assign custom renderer into itemRenderer
property on a TileList.

You'll see commented part, which works well.
However, I just want to try how i can do this by ActionScript.
Following code reports no error, but each cell is empty(actually
printed 'object Object').

Someone could help me out?

k


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns:comp=*
	creationComplete=init()

	mx:Script
		![CDATA[
			import itemRenderers.myThumbnail;
			import mx.collections.ArrayCollection;
			[Bindable]
			private var photoColl:ArrayCollection;
			
			private var mT:myThumbnail = new myThumbnail;
			
			private function init():void
			{
simpletest.send();

myTile.setStyle(itemRenderer, mT);
			}
		]]
	/mx:Script
	
	mx:Label id=foodName
		text=Watch here/

	mx:HTTPService id=simpletest
		url="">
		result=photoColl=new
ArrayCollection(simpletest.lastResult.list.food)/

	mx:TileList id=myTile
		dataProvider={photoColl}
		width=700
		rowHeight=170
		columnWidth=220/

!--	
	mx:TileList id=foodTile
		dataProvider={photoColl}
		itemRenderer=itemRenderers.myThumbnail
		width=700
		rowHeight=170
		columnWidth=220/
--

/mx:Application



  













-- --Jason

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?

2006-06-19 Thread Michael Schmalle



JL,

 Is that bad ?

No way man!, I was thinking along the same lines. Test the length and
when it finishes, it's finished, just didn't have enough time nor brain
power to try it :)

I will definitaly ask about this and some other things related to initialization at the summit. 

On a 'professional' level you shouldn't have to hack a major Complete
alogrithm like this. So there might actually be a correct way to do it.

Peace, Mike
On 6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote:
I see, I also see yahoo is messing up again, I think yo might have got my last message.

I am adding this to my list of questions ;-)

I don't know the answer right now. I had tested this also.

Peace, MikeOn 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED]
 wrote:









  






Mike, here is what i do :

public function 
myTest():void{bookFormatMedium.addEventListener(FlexEvent.UPDATE_COMPLETE, 
myTest2);bookFormatMedium.dataProvider = 
myDataProvider;}public function 
myTest2(event:FlexEvent):void{bookFormatMedium.removeEventListener(FlexEvent.UPDATE_COMPLETE, 
myTest2, false);trace('myTestComplete 
'+event.currentTarget);}

And i invoke myTest on creationComplete of my 
TileList (or List) :

mx:TileList id=bookFormatMedium 
backgroundAlpha=0 textAlign=left 
horizontalScrollPolicy=offwidth=100% height=100% 
styleName=bookFormatMediumitemRenderer=com.lmg.view.global.book.BookFormatMediumItemRendereritemClick=changeFlowStates(panelState, 
BookVO(bookFormatMedium.selectedItem))creationComplete=myTest()/

My event is dispatched too soon (items are not 
fully drawn yet).
Also, invoking myTest() on creationComplete is 
wrong because next time my dataProvider changes, i won't be able to call 
myTest().

This is new for me, sorry if i misunderstood what 
you said !

Best,
JL




  - Original Message - 
  

From: 
  Michael 
  Schmalle 
  To: 

flexcoders@yahoogroups.com 
  Sent: Monday, June 19, 2006 3:39 PM

  Subject: Re: [flexcoders] [To Michael 
  Schmalle] Rendered from dataProvider ?
  
  
  JL,Have you test the event's currentTarget property for the actuall 
  list?When the LayoutManager rolls through it's updateCompleteQueue, it 
  goes backwards, children to parent.I would think you could check for 
  the base components instance.If you find out that you cannot, I don't 
  understand what is going on by looking at the LayoutManager. It seems pretty 
  simple.Peace, MikePS show me some code so I can try what you 
  are doing! :)
  On 6/19/06, Jean-Luc 
  ESSER [EMAIL PROTECTED] 
  wrote:
  





Well i tried that, and it looks like it is 
fired several times during the population of the List.
So i have no way of knowing when it is fired 
for the last time, that is when the last item has been rendered 
!

Or maybe i did notput the listener at the 
correct place.
I'll keep trying.

Best,
JL




- 
Original Message - 
From: 
Michael Schmalle 
To: 
flexcoders@yahoogroups.com 

Sent: 
Monday, June 19, 2006 3:25 PM 
Subject: 
Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?




Oh yeah,Add the listener 
right before you change the dataProvider, remove it when the actual handler 
fires for the UPDATE_COMPLETE event.Peace, Mike


On 
6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote:

 



Hi,Well, I am to to up to speed on the deep workings of the 
ListBase and List *yet* but, changing the dataProvider is connected to 
updateDisplayLit().That being said, I would say try;mx.events.FlexEvent.UPDATE_COMPLETE
 
Dispatched when an object has had its commitProperties, measure, 
and updateDisplayList called (if needed).. Now looking at the 
UIComponent, I am pretty sure that is it. BTW, thanks for this question 
becasue that is a very important event!Ok, double on that, 
LayoutManger says FlexEvent.UPDATE_COMPLETE ;-)


Peace, Mike
On 6/19/06, Jean-Luc 
ESSER [EMAIL PROTECTED]  wrote: 

  
  
  
  
  
  
  Hi Mike,
  
  Yes i mean an event that signifies everything 
  has been drawn.
  I mean if i have an image to show in the 
  itemRenderers, i want to know when the data has been received, image has 
  been loaded, itemRenderer has been renderered, and the List has finished 
  sizing and showing all items.
  
  Best,
  JL
  
  
  
  
  - 
  Original Message - 
  From: 
  Michael Schmalle 
  To: 
  flexcoders@yahoogroups.com 
  Sent: 
  Monday, June 19, 2006 1:04 PM 
  Subject: 
  Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
  
  
  
  
  Hi,Yeah I remeber that post tit was in relation to 
  setting the height based on rows.I remember Manish said the 
  rowHeight property 

[flexcoders] Re: Flex2B3 - Resize effect problem

2006-06-19 Thread Tim Hoff



Hi,
I've noticed some interesting behavior with Beta3 like this as well. For now, you could use a work-around like this:
mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"mx:Script![CDATA[import mx.effects.*;
private function dothis():void{var resize1:Resize = new Resize(panel1);resize1.duration = 300;resize1.widthTo = (panel1.width == 0) ?300 : 0;resize1.play();if (panel1.width != 0){panel1.title = "";} else {panel1.title = "Hello World";}}]]/mx:Scriptmx:Panel id="panel1" title="HelloWorld" width="300"height="200"/mx:Button label="resize" click="dothis()"//mx:Application
-TH--- In flexcoders@yahoogroups.com, "bhaq1972" [EMAIL PROTECTED] wrote: hi  In my example i'm resizing a panel's width from 300 to 0 (and vice  versa). However i've got one issue. I sometimes see a ghost of the  panel's title still there. somekind of refresh issue? how do i  remove it. thanks  mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" mx:Script ![CDATA[ import mx.effects.*;  private function dothis():void { var resize1:Resize = new Resize(panel1); resize1.duration = 300; resize1.widthTo = (panel1.width == 0) ?  300 : 0; resize1.play(); } ]] /mx:Script mx:Panel id="panel1" title="HelloWorld" width="300"  height="200"/ mx:Button label="resize" click="dothis()"/ /mx:Application

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?

2006-06-19 Thread Jean-Luc ESSER





I got you message, yahoo must feal a little dizzy 
;)
How long is your list of questions ? 
:))
JL


  - Original Message - 
  From: 
  Michael 
  Schmalle 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, June 19, 2006 4:28 PM
  Subject: Re: [flexcoders] [To Michael 
  Schmalle] Rendered from dataProvider ?
  
  
  I see, I also see yahoo is messing up again, I think yo might have got my 
  last message.I am adding this to my list of questions ;-)I 
  don't know the answer right now. I had tested this also.Peace, 
  Mike
  On 6/19/06, Jean-Luc 
  ESSER [EMAIL PROTECTED] 
  wrote:
  





Mike, here is what i do :

public function 
myTest():void{bookFormatMedium.addEventListener(FlexEvent.UPDATE_COMPLETE, 
myTest2);bookFormatMedium.dataProvider = 
myDataProvider;}public function 
myTest2(event:FlexEvent):void{bookFormatMedium.removeEventListener(FlexEvent.UPDATE_COMPLETE, 
myTest2, false);trace('myTestComplete 
'+event.currentTarget);}

And i invoke myTest on creationComplete of my 
TileList (or List) :

mx:TileList id="bookFormatMedium" 
backgroundAlpha="0" textAlign="left" 
horizontalScrollPolicy="off"width="100%" height="100%" 
styleName="bookFormatMedium"itemRenderer="com.lmg.view.global.book.BookFormatMediumItemRenderer"itemClick="changeFlowStates(panelState, 
BookVO(bookFormatMedium.selectedItem))"creationComplete="myTest()"/

My event is dispatched too soon (items are not 
fully drawn yet).
Also, invoking myTest() on creationComplete is 
wrong because next time my dataProvider changes, i won't be able to call 
myTest().

This is new for me, sorry if i misunderstood 
what you said !

Best,
JL





- 
Original Message - 
From: 
Michael Schmalle 
To: 
flexcoders@yahoogroups.com 

Sent: 
Monday, June 19, 2006 3:39 PM 
Subject: 
Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?


JL,Have you test the event's currentTarget property for the 
actuall list?When the LayoutManager rolls through it's 
updateCompleteQueue, it goes backwards, children to parent.I would 
think you could check for the base components instance.If you find 
out that you cannot, I don't understand what is going on by looking at the 
LayoutManager. It seems pretty simple.Peace, MikePS show me 
some code so I can try what you are doing! :)
On 6/19/06, Jean-Luc 
ESSER [EMAIL PROTECTED] wrote: 

  
  
  
  
  
  
  Well i tried that, and it looks like it is 
  fired several times during the population of the List.
  So i have no way of knowing when it is fired 
  for the last time, that is when the last item has been rendered 
  !
  
  Or maybe i did notput the listener at 
  the correct place.
  I'll keep trying.
  
  Best,
  JL
  
  
  
  
  - 
  Original Message - 
  From: 
  Michael Schmalle 
  To: 
  flexcoders@yahoogroups.com 
  
  Sent: 
  Monday, June 19, 2006 3:25 PM 
  Subject: 
  Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
  
  
  
  
  Oh yeah,Add the listener right before you change the 
  dataProvider, remove it when the actual handler fires for the 
  UPDATE_COMPLETE event.Peace, Mike
  
  
  On 6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote: 
  
  
  
  Hi,Well, I am to to up to speed on the deep workings of the 
  ListBase and List *yet* but, changing the dataProvider is connected to 
  updateDisplayLit().That being said, I would say try;mx.events.FlexEvent.UPDATE_COMPLETE 
  "Dispatched when an object has had its 
  commitProperties, measure, and updateDisplayList called (if needed).. 
  "Now looking at the UIComponent, I am pretty sure that is it. BTW, 
  thanks for this question becasue that is a very important 
  event!Ok, double on that, LayoutManger says 
  FlexEvent.UPDATE_COMPLETE ;-)
  
  
  Peace, Mike
  On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED]  
  wrote: 
  






Hi Mike,

Yes i mean an event that signifies 
everything has been drawn.
I mean if i have an image to show in the 
itemRenderers, i want to know when the data has been received, image has 
been loaded, itemRenderer has been renderered, and the List has finished 
sizing and showing all items.

Best,
JL




- 
Original Message - 
From: 
Michael Schmalle 
To: 
flexcoders@yahoogroups.com 
Sent: 
Monday, June 19, 2006 1:04 PM 
Subject: 
Re: 

[flexcoders] toolTip for dataGrid headers?

2006-06-19 Thread djbrown_rotonews
I'm wanting to add toolTip for dataGrid headers, where a tool tip is 
displayed when hovering over a header of a data grid that displays 
more information about that particular column. It doesn't appear than 
an itemRollOverEvent is generated when rolling over a header, so 
what's the best way to do this?





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

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

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




RE: [flexcoders] how to assign itemRenderer w/ActionScript

2006-06-19 Thread Yaniv De Ridder










ItemRenderers are not styles, for DataGrid
, TileList ,  its a IFactory setter / getter 

I dont exactly know for Charts but
for a TileList you can do as simple as this : 



myTile.itemRenderer = new ClassFactory( myThumbnail );



Cheers,











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pan Troglodytes
Sent: Monday, June 19, 2006 3:33
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] how to
assign itemRenderer w/ActionScript











itemRenderers ARE styles, the help just hasn't
completely been updated yet.

You were actually very close.

myTile.setStyle(itemRenderer, new ClassFactory(myThumbnail));

You may have to fully qualify it: 

myTile.setStyle(itemRenderer, new
ClassFactory(itemRenderers.myThumbnail));

Now, as to how to manipulate it after this, I don't know. See my thread
changing out pieSeries.itemRenderer at runtime where I'm asking the
same thing. 



On 6/19/06, keishichi2001
[EMAIL PROTECTED]
wrote:











I've trying following
code to assign custom renderer into itemRenderer
property on a TileList.

You'll see commented part, which works well.
However, I just want to try how i can do this by ActionScript.
Following code reports no error, but each cell is empty(actually
printed 'object Object').

Someone could help me out?

k


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
xmlns:comp=*
creationComplete=init()

mx:Script
![CDATA[
import itemRenderers.myThumbnail;
import mx.collections.ArrayCollection;
[Bindable]
private var photoColl:ArrayCollection;

private var mT:myThumbnail = new myThumbnail;

private function init():void
{
simpletest.send();

myTile.setStyle(itemRenderer, mT);
}
]]
/mx:Script

mx:Label id=foodName
text=Watch here/

mx:HTTPService id=simpletest
url="">
result=photoColl=new
ArrayCollection(simpletest.lastResult.list.food)/

mx:TileList id=myTile
dataProvider={photoColl}
width=700
rowHeight=170
columnWidth=220/

!-- 
mx:TileList id=foodTile
dataProvider={photoColl}
itemRenderer=itemRenderers.myThumbnail
width=700
rowHeight=170
columnWidth=220/
--

/mx:Application

















-- 
--
Jason 






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___






Re: [flexcoders] how to assign itemRenderer w/ActionScript

2006-06-19 Thread Michael Schmalle



Hi,

Don't get them confused;

 itemRenderers ARE styles
Theoretically it is a property not a style. You may be able to set them
with setStyle() but, they are not styles of the ListBase.

Anytime you see this in a class file;

itemRenderer = new ClassFactory(ListItemRenderer);

Which is in the Constructor of List, it is a property.

and when you see this in a class

 public function get itemRenderer():IFactory
 {
 
 }

 /**
 * @private
 */
 public function set itemRenderer(value:IFactory):void
 {
 ...
 }

It is a property of that class not a style.

BTW, itemRenderer is not in either of the nonInheritingStyles or
inheritingStyles proto chain. So I really don't know how that is even
working.

It may just be a fluke because itemRenderer is a public property already defined on the ListBase.

Just to clear some things up :)

Peace, Mike


On 6/19/06, Pan Troglodytes [EMAIL PROTECTED] wrote:









  



itemRenderers ARE styles, the help just hasn't completely been updated yet.You were actually very close.myTile.setStyle(itemRenderer, new ClassFactory(myThumbnail));You may have to fully qualify it:
myTile.setStyle(itemRenderer, new ClassFactory(itemRenderers.myThumbnail));Now,
as to how to manipulate it after this, I don't know. See my
thread changing out pieSeries.itemRenderer at runtime where I'm
asking the same thing.
On 6/19/06, keishichi2001 
[EMAIL PROTECTED] wrote:









  



I've trying following code to assign custom renderer into itemRenderer
property on a TileList.

You'll see commented part, which works well.
However, I just want to try how i can do this by ActionScript.
Following code reports no error, but each cell is empty(actually
printed 'object Object').

Someone could help me out?

k


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns:comp=*
	creationComplete=init()

	mx:Script
		![CDATA[
			import itemRenderers.myThumbnail;
			import mx.collections.ArrayCollection;
			[Bindable]
			private var photoColl:ArrayCollection;
			
			private var mT:myThumbnail = new myThumbnail;
			
			private function init():void
			{
simpletest.send();

myTile.setStyle(itemRenderer, mT);
			}
		]]
	/mx:Script
	
	mx:Label id=foodName
		text=Watch here/

	mx:HTTPService id=simpletest
		url="">
		result=photoColl=new
ArrayCollection(simpletest.lastResult.list.food)/

	mx:TileList id=myTile
		dataProvider={photoColl}
		width=700
		rowHeight=170
		columnWidth=220/

!--	
	mx:TileList id=foodTile
		dataProvider={photoColl}
		itemRenderer=itemRenderers.myThumbnail
		width=700
		rowHeight=170
		columnWidth=220/
--

/mx:Application



  













-- --Jason

  













-- What goes up, does come down.

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



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

2006-06-19 Thread Michael Schmalle



Tim,

hehe nice, my idea was to set the titleBar.minWidth to 0.

Consequently it didn't work :)

Peace, MikeOn 6/19/06, Tim Hoff [EMAIL PROTECTED] wrote:









  



Hi,
I've noticed some interesting behavior with Beta3 like this as well. For now, you could use a work-around like this:
mx:Application xmlns:mx=http://www.adobe.com/2006/mxmlmx:Script![CDATA[
import mx.effects.*;
private function dothis():void{var resize1:Resize = new Resize(panel1);resize1.duration = 300;resize1.widthTo = (panel1.width == 0) ?300 : 0;resize1.play
();if (panel1.width != 0){panel1.title = ;} else {panel1.title = Hello World;}}]]/mx:Script
mx:Panel id=panel1 title=HelloWorld width=300height=200/mx:Button label=resize click=dothis()//mx:Application

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

  













-- What goes up, does come down.

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] how to assign itemRenderer w/ActionScript

2006-06-19 Thread Pan Troglodytes



Okay, that's not confusing at all. ;)For the Adobe folks: why the difference in the itemRenderers from component to component? Do you plan on standardising on doing it one way? I would hope the answer is yes, as it would sure make things a lot easier for the new folks.
On 6/19/06, Yaniv De Ridder [EMAIL PROTECTED] wrote:









  











ItemRenderers are not styles, for DataGrid
, TileList , … it's a IFactory setter / getter 

I don't exactly know for Charts but
for a TileList you can do as simple as this : 



myTile
.itemRenderer = new ClassFactory( myThumbnail 
);



Cheers,











From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Pan Troglodytes
Sent: Monday, June 19, 2006 3:33
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] how to
assign itemRenderer w/ActionScript











itemRenderers ARE styles, the help just hasn't
completely been updated yet.

You were actually very close.

myTile.setStyle(itemRenderer, new ClassFactory(myThumbnail));

You may have to fully qualify it: 

myTile.setStyle(itemRenderer, new
ClassFactory(itemRenderers.myThumbnail));

Now, as to how to manipulate it after this, I don't know. See my thread
changing out pieSeries.itemRenderer at runtime where I'm asking the
same thing. 



On 6/19/06, keishichi2001
[EMAIL PROTECTED]
wrote:












I've trying following
code to assign custom renderer into itemRenderer
property on a TileList.

You'll see commented part, which works well.
However, I just want to try how i can do this by ActionScript.
Following code reports no error, but each cell is empty(actually
printed 'object Object').

Someone could help me out?

k


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
xmlns:comp=*
creationComplete=init()

mx:Script
![CDATA[
import itemRenderers.myThumbnail;
import mx.collections.ArrayCollection;
[Bindable]
private var photoColl:ArrayCollection;

private var mT:myThumbnail = new myThumbnail;

private function init():void
{
simpletest.send();

myTile.setStyle(itemRenderer, mT);
}
]]
/mx:Script

mx:Label id=foodName
text=Watch here/

mx:HTTPService id=simpletest
url="">
result=photoColl=new
ArrayCollection(simpletest.lastResult.list.food)/

mx:TileList id=myTile
dataProvider={photoColl}
width=700
rowHeight=170
columnWidth=220/

!-- 
mx:TileList id=foodTile
dataProvider={photoColl}
itemRenderer=itemRenderers.myThumbnail
width=700
rowHeight=170
columnWidth=220/
--

/mx:Application

















-- 
--
Jason 










  













-- --Jason

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] Connection Debugging

2006-06-19 Thread Jeremy Lu




I use Charles and ServiceCapture all the time, they work with Flex2/AMF3 now.


Jeremy.

On 6/19/06, Bjorn Schultheiss 
[EMAIL PROTECTED] wrote:









  











In Flash Development I was using
ServiceCapture for my NetConnection Debugging.



What's the preferred NetConnection
debugger for Flex2?

In particular I'm using a
Coldfusion backend.



Has anyone managed to use ServiceCapture
with flex2?





Regards,



Bjorn Schultheiss

Senior Flash Developer



QDC Technologies 








  















  















__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] FDS Samples

2006-06-19 Thread hank williams



Oh thanks. I was going to ask about that. I hate the idea of modifying the server.xml file for an app specific thing.But I am not familiar with the context.xml file. What is the overall format of that file. Can I see a sample somewhere. Also, I presume that this *is* the META-INF in the application directory and not some global META-INF file, right?
Once I more fully understand I will re-post the steps with the new info.ThanksHankOn 6/19/06, Peter Farland 
[EMAIL PROTECTED] wrote:






My apologies, this was sitting in my outbox for over a day 
and only went out now. I see that you've already got this to 
work.

I agree that the docs could be better on this subject. 
Also, I've found for Tomcat 5.5 that modifying the Context in the 
/META-INF/context.xml file of the web application more 
convenient.


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Peter 
FarlandSent: Monday, June 19, 2006 9:46 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] FDS 
Samples



Are you running on Tomcat by any chance? If so,what 
version? For Tomcat you need to setup JOTM first as Data Services makes use of 
JTA (for transactions).


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of hank 
williamsSent: Sunday, June 18, 2006 3:20 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] FDS 
Samples


I just downloaded flex data services, installed, and tried to run the the 
sample apps.The flash UI part all works fine, but it cant connect to 
data. The error that comes in on the java console looks like 
this:[Flex] [DEBUG] Before invoke service: data-service 
incomingMessage: Flex Message (flex.data.messages.DataMessage) 
 operation = fill id = 
null clientId = 
5C535BF9-496C-1163-025E-E8915E76244B correlationId = 
 destination = contact messageId = 
43802177-0968-4AB3-9AB5-E8915E86D54E timestamp = 
1150658109140 timeToLive = 0 body = 
 [ 
 ] hdr(DSEndpoint) = my-rtmp 
Throwable in RtmpReader thread: java.lang.NoClassDefFoundError: 
javax/transaction/SystemExceptionjava.lang.NoClassDefFoundError: 
javax/transaction/SystemException at 
flex.data.DataService.serviceMessage 
(DataService.java:284) at 
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:565) 
at 
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:298) 
at flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage 
(AbstractRTMPServer.java:653) at 
flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:650) 
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask 
(ThreadPoolExecutor.java:643) at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668) 
at java.lang.Thread.run(Unknown Source)Obviously I have done 
something wrong from a setup perspective, but I am not sure what. Any 
input would be greatly appreciated.Hank






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] how to assign itemRenderer w/ActionScript

2006-06-19 Thread Pan Troglodytes



Okay, let me correct my statement:itemRenderers are sometimes styles and sometimes not. And when they are styles, they're not really.;)On 6/19/06, 
Michael Schmalle [EMAIL PROTECTED] wrote:









  



Hi,

Don't get them confused;

 itemRenderers ARE styles
Theoretically it is a property not a style. You may be able to set them
with setStyle() but, they are not styles of the ListBase.

Anytime you see this in a class file;

itemRenderer = new ClassFactory(ListItemRenderer);

Which is in the Constructor of List, it is a property.

and when you see this in a class

 public function get itemRenderer():IFactory
 {
 
 }

 /**
 * @private
 */
 public function set itemRenderer(value:IFactory):void
 {
 ...
 }

It is a property of that class not a style.

BTW, itemRenderer is not in either of the nonInheritingStyles or
inheritingStyles proto chain. So I really don't know how that is even
working.

It may just be a fluke because itemRenderer is a public property already defined on the ListBase.

Just to clear some things up :)

Peace, Mike


On 6/19/06, Pan Troglodytes 
[EMAIL PROTECTED] wrote:









  



itemRenderers ARE styles, the help just hasn't completely been updated yet.You were actually very close.myTile.setStyle(itemRenderer, new ClassFactory(myThumbnail));You may have to fully qualify it:
myTile.setStyle(itemRenderer, new ClassFactory(itemRenderers.myThumbnail));Now,
as to how to manipulate it after this, I don't know. See my
thread changing out pieSeries.itemRenderer at runtime where I'm
asking the same thing.
On 6/19/06, keishichi2001 

[EMAIL PROTECTED] wrote:









  



I've trying following code to assign custom renderer into itemRenderer
property on a TileList.

You'll see commented part, which works well.
However, I just want to try how i can do this by ActionScript.
Following code reports no error, but each cell is empty(actually
printed 'object Object').

Someone could help me out?

k


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns:comp=*
	creationComplete=init()

	mx:Script
		![CDATA[
			import itemRenderers.myThumbnail;
			import mx.collections.ArrayCollection;
			[Bindable]
			private var photoColl:ArrayCollection;
			
			private var mT:myThumbnail = new myThumbnail;
			
			private function init():void
			{
simpletest.send();

myTile.setStyle(itemRenderer, mT);
			}
		]]
	/mx:Script
	
	mx:Label id=foodName
		text=Watch here/

	mx:HTTPService id=simpletest
		url="">
		result=photoColl=new
ArrayCollection(simpletest.lastResult.list.food)/

	mx:TileList id=myTile
		dataProvider={photoColl}
		width=700
		rowHeight=170
		columnWidth=220/

!--	
	mx:TileList id=foodTile
		dataProvider={photoColl}
		itemRenderer=itemRenderers.myThumbnail
		width=700
		rowHeight=170
		columnWidth=220/
--

/mx:Application



  













-- --Jason

  













-- What goes up, does come down.

  













-- --Jason

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Re: Flex2B3 - Resize effect problem

2006-06-19 Thread bhaq1972
thanks for the workaround -TH. will have to do for now.
same problem seems to exist when using the Fade effect.

regards
-BH


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

 
 Hi,
 
 I've noticed some interesting behavior with Beta3 like this as 
well. 
 For now, you could use a work-around like this:
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
 mx:Script
 ![CDATA[
 import mx.effects.*;
 
 private function dothis():void
 {
 var resize1:Resize = new Resize(panel1);
 resize1.duration = 300;
 resize1.widthTo = (panel1.width == 0) ?
 300 : 0;
 resize1.play();
 if (panel1.width != 0){panel1.title = ;} else {panel1.title 
= Hello
 World;}
 }
 ]]
 /mx:Script
 mx:Panel id=panel1 title=HelloWorld width=300
 height=200/
 mx:Button label=resize click=dothis()/
 /mx:Application
 
 -TH
 
 --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:
 
  hi
 
  In my example i'm resizing a panel's width from 300 to 0 (and 
vice
  versa). However i've got one issue. I sometimes see a ghost of 
the
  panel's title still there. somekind of refresh issue? how do i
  remove it.
  thanks
 
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:Script
  ![CDATA[
  import mx.effects.*;
 
  private function dothis():void
  {
  var resize1:Resize = new Resize(panel1);
  resize1.duration = 300;
  resize1.widthTo = (panel1.width == 0) ?
  300 : 0;
  resize1.play();
  }
  ]]
  /mx:Script
  mx:Panel id=panel1 title=HelloWorld width=300
  height=200/
  mx:Button label=resize click=dothis()/
  /mx:Application
 








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

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

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





Re: [flexcoders] how to assign itemRenderer w/ActionScript

2006-06-19 Thread Michael Schmalle



itemRenderers are sometimes styles and sometimes not. And when they are styles, they're not really.

:)

That makes sense to a programmer... hehe

Peace, Mike

Actually I am glad this was brought up, something to figure out.On 6/19/06, Pan Troglodytes [EMAIL PROTECTED]
 wrote:








  



Okay, let me correct my statement:itemRenderers are sometimes styles and sometimes not. And when they are styles, they're not really.;)
On 6/19/06, 
Michael Schmalle [EMAIL PROTECTED] wrote:










  



Hi,

Don't get them confused;

 itemRenderers ARE styles
Theoretically it is a property not a style. You may be able to set them
with setStyle() but, they are not styles of the ListBase.

Anytime you see this in a class file;

itemRenderer = new ClassFactory(ListItemRenderer);

Which is in the Constructor of List, it is a property.

and when you see this in a class

 public function get itemRenderer():IFactory
 {
 
 }

 /**
 * @private
 */
 public function set itemRenderer(value:IFactory):void
 {
 ...
 }

It is a property of that class not a style.

BTW, itemRenderer is not in either of the nonInheritingStyles or
inheritingStyles proto chain. So I really don't know how that is even
working.

It may just be a fluke because itemRenderer is a public property already defined on the ListBase.

Just to clear some things up :)

Peace, Mike


On 6/19/06, Pan Troglodytes 

[EMAIL PROTECTED] wrote:









  



itemRenderers ARE styles, the help just hasn't completely been updated yet.You were actually very close.myTile.setStyle(itemRenderer, new ClassFactory(myThumbnail));You may have to fully qualify it:
myTile.setStyle(itemRenderer, new ClassFactory(itemRenderers.myThumbnail));Now,
as to how to manipulate it after this, I don't know. See my
thread changing out pieSeries.itemRenderer at runtime where I'm
asking the same thing.
On 6/19/06, keishichi2001 


[EMAIL PROTECTED] wrote:









  



I've trying following code to assign custom renderer into itemRenderer
property on a TileList.

You'll see commented part, which works well.
However, I just want to try how i can do this by ActionScript.
Following code reports no error, but each cell is empty(actually
printed 'object Object').

Someone could help me out?

k


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns:comp=*
	creationComplete=init()

	mx:Script
		![CDATA[
			import itemRenderers.myThumbnail;
			import mx.collections.ArrayCollection;
			[Bindable]
			private var photoColl:ArrayCollection;
			
			private var mT:myThumbnail = new myThumbnail;
			
			private function init():void
			{
simpletest.send();

myTile.setStyle(itemRenderer, mT);
			}
		]]
	/mx:Script
	
	mx:Label id=foodName
		text=Watch here/

	mx:HTTPService id=simpletest
		url="">
		result=photoColl=new
ArrayCollection(simpletest.lastResult.list.food)/

	mx:TileList id=myTile
		dataProvider={photoColl}
		width=700
		rowHeight=170
		columnWidth=220/

!--	
	mx:TileList id=foodTile
		dataProvider={photoColl}
		itemRenderer=itemRenderers.myThumbnail
		width=700
		rowHeight=170
		columnWidth=220/
--

/mx:Application



  













-- --Jason

  













-- What goes up, does come down.

  













-- --Jason

  













-- What goes up, does come down.

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Getting a DataGrid item renderer instance

2006-06-19 Thread flex8it
I have simple datagrid with 2 columns and 2 rows like this:

column 0   column 1
   -
image  textfield
image  textfield

Column 0 contains my ImageRenderer component.
Column 1 contains the DataGrid's default item renderer and editor: 
text, textfield.

First Problem:
How do I identify/get a reference to a particular instance of my 
ImageRenderer from, say, column[0], row[1]?

Second (related) Problem:
How do I get the ImageRender instance that corresponds to the row of 
the textfield that fires an event when edited?

I've been wrestling with this problem for days now, and I just can't 
seem to get a grasp on the communication/eventing infrastructure 
that's probably necessary to pull this off. Please help.

Thanks,
Bruce 






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

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

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





RE: [flexcoders] how to assign itemRenderer w/ActionScript

2006-06-19 Thread Daniel Tuppeny





It doesn't make sense to me, and I'm a programmer 
:-)

Why would ItemRenderers by styles on some objects, and not 
on others? It's just asking for confusion! :-/


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Michael 
SchmalleSent: 19 June 2006 16:30To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] how to assign 
itemRenderer w/ActionScript
itemRenderers are sometimes styles and sometimes not. And 
when they are styles, they're not really.:)That makes sense to a 
programmer... hehePeace, MikeActually I am glad this was brought 
up, something to figure out.
On 6/19/06, Pan 
Troglodytes [EMAIL PROTECTED]  
wrote:

  
  
  
  
  
  Okay, let me correct my statement:itemRenderers are sometimes 
  styles and sometimes not. And when they are styles, they're not 
  really.;)
  
  On 6/19/06, 
  Michael Schmalle [EMAIL PROTECTED] wrote:
  
  





Hi,Don't get them confused; itemRenderers ARE 
stylesTheoretically it is a property not a style. You may be able to 
set them with setStyle() but, they are not styles of the 
ListBase.Anytime you see this in a class file;itemRenderer = 
new ClassFactory(ListItemRenderer);Which is in the Constructor of 
List, it is a property.and when you see this in a 
class public function get 
itemRenderer():IFactory 
{  
} /** * 
@private */ public 
function set itemRenderer(value:IFactory):void 
{ ... }It is 
a property of that class not a style.BTW, itemRenderer is not in 
either of the nonInheritingStyles or inheritingStyles proto chain. So I 
really don't know how that is even working.It may just be a fluke 
because itemRenderer is a public property already defined on the 
ListBase.Just to clear some things up :)Peace, 
Mike

On 6/19/06, Pan 
Troglodytes  
[EMAIL PROTECTED] wrote:


  
  
  
  
  
  
  itemRenderers ARE styles, the help just hasn't completely been updated 
  yet.You were actually very 
  close.myTile.setStyle("itemRenderer", new 
  ClassFactory(myThumbnail));You may have to fully qualify it: 
  myTile.setStyle("itemRenderer", new 
  ClassFactory(itemRenderers.myThumbnail));Now, as to how to 
  manipulate it after this, I don't know. See my thread "changing out 
  pieSeries.itemRenderer at runtime" where I'm asking the same thing. 
  
  
  On 6/19/06, keishichi2001  
  [EMAIL PROTECTED] wrote:
  





I've trying following code to assign custom renderer into 
itemRendererproperty on a TileList.You'll see commented 
part, which works well.However, I just want to try how i can do this 
by ActionScript.Following code reports no error, but each cell is 
empty(actuallyprinted 'object Object').Someone could help me 
out?k?xml version="1.0" 
encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
xmlns:comp="*"creationComplete="init()"mx:Script![CDATA[import 
itemRenderers.myThumbnail;import 
mx.collections.ArrayCollection;[Bindable]private var 
photoColl:ArrayCollection;private var mT:myThumbnail = new 
myThumbnail;private function 
init():void{simpletest.send();myTile.setStyle("itemRenderer", 
mT);}]]/mx:Scriptmx:Label 
id="foodName"text="Watch here"/mx:HTTPService 
id="simpletest"url=""result="photoColl=newArrayCollection(simpletest.lastResult.list.food)"/mx:TileList 
id="myTile"dataProvider="{photoColl}"width="700"rowHeight="170"columnWidth="220"/!-- 
mx:TileList 
id="foodTile"dataProvider="{photoColl}"itemRenderer="itemRenderers.myThumbnail"width="700"rowHeight="170"columnWidth="220"/--/mx:Application
  
  -- --Jason 
  
-- What goes up, does come down. 

-- --Jason 
  -- What goes up, does come down.  [Inbound Mail Scanned by 
MessageLabs]

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS 

Re: [flexcoders] how to assign itemRenderer w/ActionScript

2006-06-19 Thread Tom Chiverton
On Monday 19 June 2006 16:25, Pan Troglodytes wrote:
 itemRenderers are sometimes styles

Where ?

-- 
Tom Chiverton



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.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards



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

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

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





Re: [flexcoders] how to assign itemRenderer w/ActionScript

2006-06-19 Thread Michael Schmalle



No,

its called J-O-K-E.

 It's just asking for confusion! :-/

Becasue there are differnet programmers and for some reason, best practices have not been set.

Also, read the docs and they clearly say if it's a style or not. As far
as why, I have no idea but, the docs can guide you through this
confusion.

Peace, Mike
On 6/19/06, Daniel Tuppeny [EMAIL PROTECTED] wrote:









  






It doesn't make sense to me, and I'm a programmer 
:-)

Why would ItemRenderers by styles on some objects, and not 
on others? It's just asking for confusion! :-/


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Michael 
SchmalleSent: 19 June 2006 16:30To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] how to assign 
itemRenderer w/ActionScript
itemRenderers are sometimes styles and sometimes not. And 
when they are styles, they're not really.:)That makes sense to a 
programmer... hehePeace, MikeActually I am glad this was brought 
up, something to figure out.
On 6/19/06, Pan 
Troglodytes [EMAIL PROTECTED]  
wrote:

  
  
  
  
  
  Okay, let me correct my statement:itemRenderers are sometimes 
  styles and sometimes not. And when they are styles, they're not 
  really.;)
  
  On 6/19/06, 
  Michael Schmalle [EMAIL PROTECTED] wrote:

  
  





Hi,Don't get them confused; itemRenderers ARE 
stylesTheoretically it is a property not a style. You may be able to 
set them with setStyle() but, they are not styles of the 
ListBase.Anytime you see this in a class file;itemRenderer = 
new ClassFactory(ListItemRenderer);Which is in the Constructor of 
List, it is a property.and when you see this in a 
class public function get 
itemRenderer():IFactory 
{  
} /** * 
@private */ public 
function set itemRenderer(value:IFactory):void 
{ ... }It is 
a property of that class not a style.BTW, itemRenderer is not in 
either of the nonInheritingStyles or inheritingStyles proto chain. So I 
really don't know how that is even working.It may just be a fluke 
because itemRenderer is a public property already defined on the 
ListBase.Just to clear some things up :)Peace, 
Mike

On 6/19/06, Pan 
Troglodytes  
[EMAIL PROTECTED] wrote:


  
  
  
  
  
  
  itemRenderers ARE styles, the help just hasn't completely been updated 
  yet.You were actually very 
  close.myTile.setStyle(itemRenderer, new 
  ClassFactory(myThumbnail));You may have to fully qualify it: 
  myTile.setStyle(itemRenderer, new 
  ClassFactory(itemRenderers.myThumbnail));Now, as to how to 
  manipulate it after this, I don't know. See my thread changing out 
  pieSeries.itemRenderer at runtime where I'm asking the same thing. 
  
  
  On 6/19/06, keishichi2001  
  [EMAIL PROTECTED] wrote:
  





I've trying following code to assign custom renderer into 
itemRendererproperty on a TileList.You'll see commented 
part, which works well.However, I just want to try how i can do this 
by ActionScript.Following code reports no error, but each cell is 
empty(actuallyprinted 'object Object').Someone could help me 
out?k?xml version=1.0 
encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 
xmlns:comp=*creationComplete=init()mx:Script![CDATA[import 
itemRenderers.myThumbnail;import 
mx.collections.ArrayCollection;[Bindable]private var 
photoColl:ArrayCollection;private var mT:myThumbnail = new 
myThumbnail;private function 
init():void{simpletest.send();myTile.setStyle(itemRenderer, 
mT);}]]/mx:Scriptmx:Label 
id=foodNametext=Watch here/mx:HTTPService 
id=simpletesturl="">result=photoColl=newArrayCollection(simpletest.lastResult.list.food)/mx:TileList 
id=myTiledataProvider={photoColl}width=700rowHeight=170columnWidth=220/!-- 
mx:TileList 
id=foodTiledataProvider={photoColl}itemRenderer=itemRenderers.myThumbnailwidth=700rowHeight=170columnWidth=220/--
/mx:Application
  
  -- --Jason 
  
-- What goes up, does come down. 

-- --Jason 
  -- What goes up, does come down.  
[Inbound Mail Scanned by 
MessageLabs]

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


  













-- What goes up, does come down.

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
 

RE: [flexcoders] FDS Samples

2006-06-19 Thread Peter Farland






Make sure you mention that the Transaction tag for 
a Context is for Tomcat 5.5 only(I believe JOTM config is more 
complicated in earlier versions of Tomcat). This new tag makes it very simple to 
configure transactions with JOTM:

Context 
reloadable="true"
 
Transaction factory="org.objectweb.jotm.UserTransactionFactory" 
jotm.timeout="60" /
/Context


Since I had just one Tomcat samples web application using 
FDS I copied the JOTM jar files to the /WEB-INF/lib directory, although I 
believe they can also be installed into 
/common/lib.

I don't have an example of the overall format of the 
context.xml file for Tomcat in general... but, yes, it's the web application 
directory's META-INF folder.

/samples/META-INF/context.xml
/samples/WEB-INF/lib/...






From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of hank 
williamsSent: Monday, June 19, 2006 11:22 AMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] FDS 
Samples


Oh thanks. I was going to ask about that. I hate the idea of modifying the 
server.xml file for an app specific thing.But I am not familiar with the 
context.xml file. What is the overall format of that file. Can I see a sample 
somewhere. Also, I presume that this *is* the META-INF in the application 
directory and not some global META-INF file, right? Once I more fully 
understand I will re-post the steps with the new 
info.ThanksHank
On 6/19/06, Peter 
Farland  [EMAIL PROTECTED] 
wrote:

  
  
  My 
  apologies, this was sitting in my outbox for over a day and only went out now. 
  I see that you've already got this to work.
  
  I agree 
  that the docs could be better on this subject. Also, I've found for Tomcat 5.5 
  that modifying the Context in the /META-INF/context.xml file of the 
  web application more convenient.
  
  
  From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Peter 
  FarlandSent: Monday, June 19, 2006 9:46 AMTo: flexcoders@yahoogroups.comSubject: RE: 
  [flexcoders] FDS Samples
  
  
  
  
  Are you 
  running on Tomcat by any chance? If so,what version? For Tomcat you need 
  to setup JOTM first as Data Services makes use of JTA (for 
  transactions).
  
  
  From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of hank 
  williamsSent: Sunday, June 18, 2006 3:20 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
  FDS Samples
  
  
  I just downloaded flex data services, installed, and tried to run the the 
  sample apps.The flash UI part all works fine, but it cant connect to 
  data. The error that comes in on the java console looks like 
  this:[Flex] [DEBUG] Before invoke service: data-service 
  incomingMessage: Flex Message (flex.data.messages.DataMessage) 
   operation = fill id = 
  null clientId = 
  5C535BF9-496C-1163-025E-E8915E76244B correlationId = 
   destination = contact messageId = 
  43802177-0968-4AB3-9AB5-E8915E86D54E timestamp = 
  1150658109140 timeToLive = 0 body 
  =  [ 
   ] hdr(DSEndpoint) = my-rtmp 
  Throwable in RtmpReader thread: java.lang.NoClassDefFoundError: 
  javax/transaction/SystemExceptionjava.lang.NoClassDefFoundError: 
  javax/transaction/SystemException at 
  flex.data.DataService.serviceMessage 
  (DataService.java:284) at 
  flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:565) 
  at 
  flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:298) 
  at flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage 
  (AbstractRTMPServer.java:653) at 
  flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:650) 
  at 
  edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask 
  (ThreadPoolExecutor.java:643) at 
  edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668) 
  at java.lang.Thread.run(Unknown Source)Obviously I have done 
  something wrong from a setup perspective, but I am not sure what. Any 
  input would be greatly appreciated.Hank
  
  
  

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] togglebuttonbar/buttonbar : embedding icons issue

2006-06-19 Thread leekuens
Hello all. Seems that the only way that I've been able to accomplish
embedding icons in a togglebuttonbar/buttonbar control is by doing the
following:

mx:ToggleButtonBar id=tbb iconField=icon width=300
textAlign=left direction=vertical
mx:Array
mx:Object label=Flash
icon=@Embed('/assets/picture.png')/
mx:Object label=Director
icon=@Embed('/assets/picture.png')/
/mx:Array
/mx:ToggleButtonBar

In the above example, we specify the dataprovider as an Array in the
mxml tags.

Now if we try doing this in combination with actionscript:

mx:Script
![CDATA[
private function dostuff() : void
{
var arritems : Array = new Array();
var item : Object = new Object();
item.label = Flash;
item.icon = @Embed('/assets/picture.png');
arritems.push( item );

item = new Object();
item.label = Director;
item.icon = Embed('/assets/picture.png');
arritems.push( item );
tbb.dataProvider = arritems;
}   
]]
/mx:Script

mx:ToggleButtonBar 
id=tbb 
iconField=icon 
 labelField=label
width=300 
creationComplete=dostuff() 
textAlign=left 
direction=vertical/

The icon dissappears. I'm wondering why there isn't an iconFuction tag
in the togglebuttonbar/buttonbar components. I've tried doing several
variations on the dataprovider and script and have not been able to
embed the icon with exception to how I've shown at the begginning of
this post. 

Is this a bug or is there a way to accomplish this in the method that
I'm attempting? Thanks folks :)






 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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/

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

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




Re: [flexcoders] how to assign itemRenderer w/ActionScript

2006-06-19 Thread Pan Troglodytes



Charts, for one. See the thread changing out pieSeries.itemRenderer at runtime.On 6/19/06, Tom Chiverton 
[EMAIL PROTECTED] wrote:On Monday 19 June 2006 16:25, Pan Troglodytes wrote:
 itemRenderers are sometimes stylesWhere ?--Tom ChivertonThis 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.
CONFIDENTIALITYThis 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.We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards
 Yahoo! Groups Sponsor ~--Check out the new improvements in Yahoo! Groups email.http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/
-- --Jason

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] how to assign itemRenderer w/ActionScript

2006-06-19 Thread Pan Troglodytes



Actually, the docs just confused me more. See the topic Creating an
item renderer and item editor. First, the example doesn't even work
as printed. There's a typo leaving off a closing quote and flash says
it doesn't know what RendererState is. Second, it doesn't mention that
this method isn't for all itemRenderers and you have to use setStyle
for others. In fact, I couldn't find a single example in the help that
explained using setStyle for itemRenderers.
Jeez, you'd think this was a beta or something ;)On 6/19/06, Michael Schmalle [EMAIL PROTECTED]
 wrote:








  



No,

its called J-O-K-E.

 It's just asking for confusion! :-/

Becasue there are differnet programmers and for some reason, best practices have not been set.

Also, read the docs and they clearly say if it's a style or not. As far
as why, I have no idea but, the docs can guide you through this
confusion.

Peace, Mike
On 6/19/06, Daniel Tuppeny 
[EMAIL PROTECTED] wrote:









  






It doesn't make sense to me, and I'm a programmer 
:-)

Why would ItemRenderers by styles on some objects, and not 
on others? It's just asking for confusion! :-/


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Michael 
SchmalleSent: 19 June 2006 16:30To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] how to assign 
itemRenderer w/ActionScript
itemRenderers are sometimes styles and sometimes not. And 
when they are styles, they're not really.:)That makes sense to a 
programmer... hehePeace, MikeActually I am glad this was brought 
up, something to figure out.
On 6/19/06, Pan 
Troglodytes [EMAIL PROTECTED]  
wrote:

  
  
  
  
  
  Okay, let me correct my statement:itemRenderers are sometimes 
  styles and sometimes not. And when they are styles, they're not 
  really.;)
  
  On 6/19/06, 
  Michael Schmalle [EMAIL PROTECTED] wrote:


  
  





Hi,Don't get them confused; itemRenderers ARE 
stylesTheoretically it is a property not a style. You may be able to 
set them with setStyle() but, they are not styles of the 
ListBase.Anytime you see this in a class file;itemRenderer = 
new ClassFactory(ListItemRenderer);Which is in the Constructor of 
List, it is a property.and when you see this in a 
class public function get 
itemRenderer():IFactory 
{  
} /** * 
@private */ public 
function set itemRenderer(value:IFactory):void 
{ ... }It is 
a property of that class not a style.BTW, itemRenderer is not in 
either of the nonInheritingStyles or inheritingStyles proto chain. So I 
really don't know how that is even working.It may just be a fluke 
because itemRenderer is a public property already defined on the 
ListBase.Just to clear some things up :)Peace, 
Mike

On 6/19/06, Pan 
Troglodytes  
[EMAIL PROTECTED] wrote:


  
  
  
  
  
  
  itemRenderers ARE styles, the help just hasn't completely been updated 
  yet.You were actually very 
  close.myTile.setStyle(itemRenderer, new 
  ClassFactory(myThumbnail));You may have to fully qualify it: 
  myTile.setStyle(itemRenderer, new 
  ClassFactory(itemRenderers.myThumbnail));Now, as to how to 
  manipulate it after this, I don't know. See my thread changing out 
  pieSeries.itemRenderer at runtime where I'm asking the same thing. 
  
  
  On 6/19/06, keishichi2001  
  [EMAIL PROTECTED] wrote:
  





I've trying following code to assign custom renderer into 
itemRendererproperty on a TileList.You'll see commented 
part, which works well.However, I just want to try how i can do this 
by ActionScript.Following code reports no error, but each cell is 
empty(actuallyprinted 'object Object').Someone could help me 
out?k?xml version=1.0 
encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml

 
xmlns:comp=*creationComplete=init()mx:Script![CDATA[import 
itemRenderers.myThumbnail;import 
mx.collections.ArrayCollection;[Bindable]private var 
photoColl:ArrayCollection;private var mT:myThumbnail = new 
myThumbnail;private function 
init():void{simpletest.send();myTile.setStyle(itemRenderer, 
mT);}]]/mx:Scriptmx:Label 
id=foodNametext=Watch here/mx:HTTPService 
id=simpletesturl="">result=photoColl=newArrayCollection(simpletest.lastResult.list.food)/mx:TileList 
id=myTiledataProvider={photoColl}width=700rowHeight=170columnWidth=220/!-- 
mx:TileList 
id=foodTiledataProvider={photoColl}itemRenderer=itemRenderers.myThumbnailwidth=700rowHeight=170columnWidth=220/--
/mx:Application
  
  -- --Jason 
  
-- What goes up, does come down. 

-- --Jason 
  -- What goes up, does come down.  

[Inbound Mail Scanned by 
MessageLabs]

Re: [flexcoders] How to recover from 'cleaning' project?

2006-06-19 Thread Phil Marston






Yeah it does halt . . . and a dialog pops up saying "Errors exist in
required project(s):projName. Continue launch? [Yes][No]" I didn't
take from that that it would build the project from old resources - to
me it's not continuing the launch emI/em initiated, but
fetching up some old stuff and why would I want that?!

Boils down to semantics I guess . . . .

:-/

Daniel Tuppeny wrote:

  
  
   it's like it's got a cached version of
your last error free source file that it uses to compile from
  
  Sounds like the Clean stuff is
working fine, but if you're hitting Run with build errors and it's
opening up an old version and pretending everything is ok, I'd be a
little worried!
  
  Every time I hit the Run button,
it compiles, and halts if there are errors. Do you not get the same?
  
  
  
  From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Phil Marston
  Sent: 19 June 2006 14:18
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] How to recover from 'cleaning'
project?
  
  
Yeah the html-templates folder is untouched - what I'm beginning to
discover is that if there are any errors in your code when you clean,
then the project wont recompile - kind of obvious really! Trouble was
that I thought is was compiling despite there being errors prior to
cleaning - I'm now realising that it was compiling using a previous
version even if you make some alterations to your source file and save,
but still have errors - it's like it's got a cached version of your
last error free source file that it uses to compile from.
  
Maybe this is normal experience for developers using Flex, but it's not
totally obvious caught me out through the "cleaning" process! doh!
  
:-/
  
Daniel Tuppeny wrote:
  

I'm sure that's the corect
behaviour. Mine also completely wipes the bin folder. The HTML files
get copied back from the html-template folder when I next build. If I
delete that folder, then I get compile errors and the rebuild option.
You shouldn't get compile errors with an empty bin folder, so sounds
like a problem with compiling, rather than the Clean option.

I'm guessing there are still
files in your html-templates folder?


 From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Phil Marston
Sent: 15 June 2006 14:55
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to recover from 'cleaning'
project?


Thanks Daniel,

but there must be a difference in behavior between your FlexBuilder and
mine because thats where the problem lays for me. When I selected
Project - Clean... it cleared everything out of the project bin
including the html files the debug files and everything! The damn
thing wont recompile or rebuild - I get no "regenerate html" option and
there is no message in the Problems pane - it just bombs with a "Launch
Failed" modal dialog saying "File not found {the path to
/bin/project.html here}"

I've been trying to create a whole new project from scratch with
different name, but the whole IDE seems to've given up on running the
code for this project . . . . curses-under-breath/

Phil

Daniel Tuppeny wrote:

  
  I may not have understood
properly, but when I did a similar thing, it told me to right-click on
the message in the Problems pane, anc hoose the "regenerate html"
option!
  
  Also, there's a Project -
Clean option which clears out the compiled stuff without deleting the
html templates :-)
  
  
   From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
  On Behalf Of Michael Schmalle
  Sent: 15 June 2006 12:50
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] How to recover from 'cleaning'
project?
  
  
Oh yeah,
  
You could also just copy in the swf's and html from another project
rename them and recompile.
  
I have found this method is not so 'stable' but most of the time works.
  
Peace, Mike
  
  On 6/15/06, Michael Schmalle [EMAIL PROTECTED]
wrote:
  
Hi,

This is what I do,

Rename your project, oldProj or something. 

Create a new project with the same name as your old one. If I were you
with this still in beta, rebuild your project if not to complicated. In
the new project, you then have new swf's and .html files.

You also could copy the files back into the old and rename it back.

But, when something like that happens to me, I am more than willing to
just start from scratch with a new project with the same name.

It only takes me about 1-2 minutes to rename, move and delete stuff and
it's back up and running.

If anybody knows a better way, I am all ears.

Peace, Mike


On 6/15/06, Phil Marston 
[EMAIL PROTECTED] wrote:

  
  
  
  
  
  Hi all,
  
Making a mess here! For some reason 

RE: [flexcoders] Re: changing out pieSeries.itemRenderer at runtime

2006-06-19 Thread Ely Greenfield








The ClassFactory class has a property called 
'properties.' This is a hash table (object) full of key/value pairs that 
get applied to instances generated by the ClassFactory as necessary. So in your 
case, your markup is saying 'create a PieCategoryWedgeRenderer, and when it gets 
created, assign an array of PieCategory objects to its categories property as 
needed'.

So you could do this:

var cf:ClassFactory = new 
ClassFactory(PieCategoryWedgeRenderer);
var tmp:Array = [];
var pc:PieCategory = new PieCategory();
pc.value = "Encouraged";
pc.color = 0x99ff99;
tmp.push(pc);
pc = new PieCategory();
pc.value = "Acceptable";
pc.color = 0xff;
tmp.push(pc);
...
cf.properties = { 
 categories: tmp;
}


Alternatively, you could just copy the whole 
PieCategoryWedgeRenderer tag and contents from your markup into a separate MXML 
(call it MyPCWedgeRenderer.mxml) file to create a pre-customized subclass. 
then:

var cf:ClassFactory = new 
ClassFactory(MyPCWedgeRenderer);

and you're done.


Ely.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of JasonSent: 
Saturday, June 17, 2006 9:39 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Re: changing out 
pieSeries.itemRenderer at runtime


Okay, good start. I was thrown off by the help topic"Flex 2.0 
Developer's Guide  Customizing the User Interface  Using Item Renderers 
and Item Editors  Creating an item renderer and item editor". It still 
uses the old non-setStyle method to set the itemRenderer.Now how do I 
build this in code: 
  mx:itemRenderer 
   
mx:Component   
  
nes:PieCategoryWedgeRenderer  

nes:categories   

nes:PieCategory value="Encouraged" color="#99FF99"/ nbs! 
p;
  nes:PieCategory value="Acceptable" 
color="#FF"/   

nes:PieCategory value="Risk" color="#99"/ 

  nes:PieCategory value="High Risk" 
color="#FF"/   
   
/nes:categories   
  
/nes:PieCategoryWedgeRenderer  
  /mx:Component 
  
/mx:itemRendererI've gotten this far:public var riskRenderer! :ClassFa ctory = new 
ClassFactory(nes.charts.dataRenderers.PieCategoryWedgeRenderer);Sadly, 
I'm lost after that. I can't figure out how to add the categories. 
Any tips?--- In flexcoders@yahoogroups.com, "Ely Greenfield" 
[EMAIL PROTECTED] wrote:   Item Renderer is a 
style. so you have to do this:   
ps.setStyle("itemRenderer", ... );   What do you pass in 
as the value?  1) Passing null doesn't work. You've overridden 
the style, so you need ot set a new value. The default value is the 
class mx.charts.renderers.WedgeItemRenderer.  2) 
itemRenderers are typed as IFactory. Meaning they need to be an object 
that implements the IFactory interface. Flex ships with a default 
IFactory that simply wraps a class, called ClassFactory. So you want to 
do this:  import mx.charts.rende! 
rers.WedgeItemRenderer;  ps.setStyle("itemRenderer", new 
ClassFactory(WedgeItemRenderer));  you'll probably have to 
import ClassFactory too...I don't remember what it's package is 
(probably mx.core), but you can find it in the AS doc reference. 
 Ely.    
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
On Behalf Of Jason Sent: Friday, June 16, 2006 4:19 PM 
To: flexcoders@yahoogroups.com Subject: [flexcoders] changing out 
pieSeries.itemRenderer at runtimeOkay, so 
I've made an itemRenderer for a pieSeries. But sometimes I want to turn 
it off. How might I go about that?  mx:PieSeries id="ps" 
field="time" labelPosition="insideWithCallout" labelFunction="getLabel" 
 dataProvider="{chartData}" insideLa! belSizeLimit="10" 
fontSize="10" ! mx:i temRenderer 
mx:Component nes:PieCategoryWedgeRenderer 
nes:categories nes:PieCategory va! lue="Encouraged" 
color="#99FF99"/ nes:PieCategory value="Acceptable" 
color="#FF"/ nes:PieCategory value="Risk" 
color="#99"/ nes:PieCategory value="High Risk" 
color="#FF"/ /nes:categories 
/nes:PieCategoryWedgeRenderer /mx:Component 
/mx:itemRen! derer /mx:PieSeries  
  /fontPieCategoryWedgeRenderer is a class I wrote that I 
mentioned in another thread. So now in some function in the applicatio! 
n, I want to say:  ps.itemRenderer = null; 
 or even  ps.itemRenderer.categories[0].value = 
"NewTitle";  I've read through all the help and can't figure out 
how I would actually do that. FB says it has no idea what 
"ps.itemRenderer" is referring to. So that kinda stumps 
me.
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software 

Re: [flexcoders] FDS Samples

2006-06-19 Thread hank williams



On 6/19/06, Peter Farland [EMAIL PROTECTED] wrote:








Make sure you mention that the Transaction tag for 
a Context is for Tomcat 5.5 only(I believe JOTM config is more 
complicated in earlier versions of Tomcat). This new tag makes it very simple to 
configure transactions with JOTM:
Context 
reloadable=true
 
Transaction factory=org.objectweb.jotm.UserTransactionFactory 
jotm.timeout=60 /
/ContextThis is funny. You are talking about this as though I already knew about the transaction tag. I didnt before, but I do now! This is much much nicer than using the Resource and ResourceParams tags. I will add this as an option.

Since I had just one Tomcat samples web application using 
FDS I copied the JOTM jar files to the /WEB-INF/lib directory, although I 
believe they can also be installed into 
/common/lib.

I don't have an example of the overall format of the 
context.xml file for Tomcat in general... but, yes, it's the web application 
directory's META-INF folder.It looks like the context.xml file may just have the context xml in it with no other header stuff or anything. I am going to check today.
Hank
/samples/META-INF/context.xml
/samples/WEB-INF/lib/...






From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of hank 
williamsSent: Monday, June 19, 2006 11:22 AMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] FDS 
Samples


Oh thanks. I was going to ask about that. I hate the idea of modifying the 
server.xml file for an app specific thing.But I am not familiar with the 
context.xml file. What is the overall format of that file. Can I see a sample 
somewhere. Also, I presume that this *is* the META-INF in the application 
directory and not some global META-INF file, right? Once I more fully 
understand I will re-post the steps with the new 
info.ThanksHank
On 6/19/06, Peter 
Farland  [EMAIL PROTECTED] 
wrote:

  
  
  My 
  apologies, this was sitting in my outbox for over a day and only went out now. 
  I see that you've already got this to work.
  
  I agree 
  that the docs could be better on this subject. Also, I've found for Tomcat 5.5 
  that modifying the Context in the /META-INF/context.xml file of the 
  web application more convenient.
  
  
  From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Peter 
  FarlandSent: Monday, June 19, 2006 9:46 AMTo: flexcoders@yahoogroups.com
Subject: RE: 
  [flexcoders] FDS Samples
  
  
  
  
  Are you 
  running on Tomcat by any chance? If so,what version? For Tomcat you need 
  to setup JOTM first as Data Services makes use of JTA (for 
  transactions).
  
  
  From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of hank 
  williamsSent: Sunday, June 18, 2006 3:20 PMTo: flexcoders@yahoogroups.com
Subject: [flexcoders] 
  FDS Samples
  
  
  I just downloaded flex data services, installed, and tried to run the the 
  sample apps.The flash UI part all works fine, but it cant connect to 
  data. The error that comes in on the java console looks like 
  this:[Flex] [DEBUG] Before invoke service: data-service 
  incomingMessage: Flex Message (flex.data.messages.DataMessage) 
   operation = fill id = 
  null clientId = 
  5C535BF9-496C-1163-025E-E8915E76244B correlationId = 
   destination = contact messageId = 
  43802177-0968-4AB3-9AB5-E8915E86D54E timestamp = 
  1150658109140 timeToLive = 0 body 
  =  [ 
   ] hdr(DSEndpoint) = my-rtmp 
  Throwable in RtmpReader thread: java.lang.NoClassDefFoundError: 
  javax/transaction/SystemExceptionjava.lang.NoClassDefFoundError: 
  javax/transaction/SystemException at 
  flex.data.DataService.serviceMessage 
  (DataService.java:284) at 
  flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:565) 
  at 
  flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:298) 
  at flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage 
  (AbstractRTMPServer.java:653) at 
  flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:650) 
  at 
  edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask 
  (ThreadPoolExecutor.java:643) at 
  edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668) 
  at java.lang.Thread.run(Unknown Source)Obviously I have done 
  something wrong from a setup perspective, but I am not sure what. Any 
  input would be greatly appreciated.Hank
  
  
  






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  

   

RE: [flexcoders] Getting rid of rectangle on axis (FB2.3 charts)

2006-06-19 Thread Ely Greenfield







Do you mean the axis itself? I'm not sure what rectangle 
you're referring to.

E.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
sp0rarb3jd3rSent: Monday, June 19, 2006 6:13 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Getting rid of 
rectangle on axis (FB2.3 charts)


Is there anyway to get rid of the little rectangle* that forms aroundthe 
vertical axis on the linecharts.I can't seem to find the style that turns it 
off.If that is possible, mind.Y!*It's the bit that is there 
to ensure you spot the tick-lines.
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Re: flex2gateway woes on UNIX

2006-06-19 Thread wlbagent
Flash Remoting is enabled...

--- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED]
wrote:

 In the cf admin page, you have a new option (after installing the
update) called flex integration.
 
 Check if your instance have it enabled (enable flash remoting
support option). 
 
  
 
  
 
 João Fernandes
 Dep. Informática - Área de Desenvolvimento
 Cofina media
 
 Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
 Tel (+351) 213 185 200 . Fax (+351) 213 540 370
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of wlbagent
 Sent: segunda-feira, 19 de Junho de 2006 12:14
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: flex2gateway woes on UNIX
 
  
 
 I'm not using apache, I'm using IPlanet (SunOne Web Server). However,
 I tried http://hostname:8500/flex2gateway and
 http://hostname:80/flex2gateway. Neither work.
 
 What do you mean by you may need to enable it first? CF is running
 and cfm pages are being processed.
 
 Thanks...
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Tom Chiverton tom.chiverton@
mailto:tom.chiverton@ 
 wrote:
 
  On Thursday 15 June 2006 21:49, wlbagent wrote:
   I ran across someone who appears to be having the same problem
but on
   LINUX using apache. He hasn't found a resolution yet, either.
  
  Had this at work yesterday.
  Try by passing apache and going straight to the ColdFusion server
 (you may 
  need to enable it first), so your URL is
http://host:8500:/flex2gateway
  
  -- 
  Tom Chiverton
  
  
  
  This email is sent for and on behalf of Halliwells LLP.
  
  Halliwells LLP is a limited liability partnership registered in
 England and Wales under registered number OC307980 whose registered
 office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
 office. Any reference to a partner in relation to Halliwells LLP means
 a member of Halliwells LLP. Regulated by the Law Society.
  
  CONFIDENTIALITY
  
  This email is intended only for the use of the addressee named above
 and may be confidential or legally privileged. If you are not the
 addressee you must not read it and must not use any information
 contained in nor copy it nor inform any person other than Halliwells
 LLP or the addressee of its existence or contents. If you have
 received this email in error please delete it and notify Halliwells
 LLP IT Department on 0870 365 8008.
  
  For more information about Halliwells LLP visit www.halliwells.com
http://www.halliwells.com .
  
  We are pleased to announce that Halliwells LLP has been voted AIM
 Lawyer of the Year at the 2005 Growth Company Awards
 








 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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/

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

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





RE: [flexcoders] How to recover from 'cleaning' project?

2006-06-19 Thread Daniel Tuppeny





I see. I took that dialog to mean similar to Visual 
Studio's, which is basically "I failed to build because your code is broken. 
Should I launch the last version?". I guess it's so you can get into your app as 
it was last built if you need to see something, but you've screwed the code up. 
It's not building from old files, it's just launching the last build (since it 
failed to overwrite the old one with the new one, because of the 
errors).

If you see that error, you should pretty much 
alwaysclick No, and check the problems :-)




From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Phil MarstonSent: 19 June 2006 16:54To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] How to recover 
from 'cleaning' project?
Yeah it does halt . . . and a dialog pops up saying "Errors exist in 
required project(s):projName. Continue launch? [Yes][No]" I didn't take 
from that that it would build the project from old resources - to me it's not 
continuing the launch emI/em initiated, but fetching up some old 
stuff and why would I want that?!Boils down to semantics I guess . . . 
.:-/Daniel Tuppeny wrote: 

  
   it's like it's got a cached version of your last error free source file 
  that it uses to compile from
  
  Sounds like the Clean stuff is working fine, but if 
  you're hitting Run with build errors and it's opening up an old version and 
  pretending everything is ok, I'd be a little worried!
  
  Every time I hit the Run button, it compiles, and halts 
  if there are errors. Do you not get the same?
  
  
  
  
  From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
  On Behalf Of Phil MarstonSent: 19 June 2006 
  14:18To: flexcoders@yahoogroups.comSubject: 
  Re: [flexcoders] How to recover from 'cleaning' 
  project?Yeah the html-templates folder is untouched - 
  what I'm beginning to discover is that if there are any errors in your code 
  when you clean, then the project wont recompile - kind of obvious 
  really! Trouble was that I thought is was compiling despite there being 
  errors prior to cleaning - I'm now realising that it was compiling using a 
  previous version even if you make some alterations to your source file and 
  save, but still have errors - it's like it's got a cached version of your last 
  error free source file that it uses to compile from.Maybe this is 
  normal experience for developers using Flex, but it's not totally obvious 
  caught me out through the "cleaning" process! doh!:-/Daniel 
  Tuppeny wrote: 
  

I'm sure that's the corect behaviour. Mine also 
completely wipes the bin folder. The HTML files get copied back from the 
html-template folder when I next build. If I delete that folder, then I get 
compile errors and the rebuild option. You shouldn't get compile errors with 
an empty bin folder, so sounds like a problem with compiling, rather than 
the Clean option.

I'm guessing there are still files in your 
html-templates folder?


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Phil MarstonSent: 15 June 2006 
14:55To: flexcoders@yahoogroups.comSubject: 
Re: [flexcoders] How to recover from 'cleaning' 
project?Thanks Daniel,but there must be a 
difference in behavior between your FlexBuilder and mine because thats where 
the problem lays for me. When I selected Project - Clean... it 
cleared everything out of the project bin including the html files the debug 
files and everything! The damn thing wont recompile or rebuild - I get 
no "regenerate html" option and there is no message in the Problems pane - 
it just bombs with a "Launch Failed" modal dialog saying "File not found 
{the path to /bin/project.html here}"I've been trying to create a 
whole new project from scratch with different name, but the whole IDE seems 
to've given up on running the code for this project . . . . 
curses-under-breath/PhilDaniel Tuppeny wrote: 

  
  I may not have understood properly, but when I did a 
  similar thing, it told me to right-click on the message in the Problems 
  pane, anc hoose the "regenerate html" option!
  
  Also, there's a Project - Clean option which 
  clears out the compiled stuff without deleting the html templates 
  :-)
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] 
  On Behalf Of Michael SchmalleSent: 15 June 2006 
  12:50To: flexcoders@yahoogroups.comSubject: 
  Re: [flexcoders] How to recover from 'cleaning' 
  project?Oh yeah,You could also just copy in 
  the swf's and html from another project rename them and 
  recompile.I have found this method is not so 'stable' but most of 
  the time works.Peace, Mike
  On 6/15/06, Michael 
  Schmalle [EMAIL PROTECTED] 
  wrote: 
  
Hi,This is what I do,Rename your project, oldProj 

[flexcoders] Re: Flex2B3 - Resize effect problem

2006-06-19 Thread Tim Hoff
Oh, it's ugly.  But, no need to spin your wheels on things that may 
already be fixed. :)

-TH

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

 Tim,
 
 hehe nice, my idea was to set the titleBar.minWidth to 0.
 
 Consequently it didn't work :)
 
 Peace, Mike
 
 On 6/19/06, Tim Hoff [EMAIL PROTECTED] wrote:
 
Hi,
 
  I've noticed some interesting behavior with Beta3 like this as 
well.  For
  now, you could use a work-around like this:
 
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:Script
  ![CDATA[
  import mx.effects.*;
 
  private function dothis():void
  {
  var resize1:Resize = new Resize(panel1);
  resize1.duration = 300;
  resize1.widthTo = (panel1.width == 0) ?
  300 : 0;
  resize1.play();
  if (panel1.width != 0){panel1.title = ;} else {panel1.title 
= Hello
  World;}
 
  }
  ]]
  /mx:Script
  mx:Panel id=panel1 title=HelloWorld width=300
  height=200/
  mx:Button label=resize click=dothis()/
  /mx:Application
 
  -TH
 
 
  --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:
  
   hi
  
   In my example i'm resizing a panel's width from 300 to 0 (and 
vice
   versa). However i've got one issue. I sometimes see a ghost of 
the
   panel's title still there. somekind of refresh issue? how do i
   remove it.
   thanks
  
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   mx:Script
   ![CDATA[
   import mx.effects.*;
  
   private function dothis():void
   {
   var resize1:Resize = new Resize(panel1);
   resize1.duration = 300;
   resize1.widthTo = (panel1.width == 0) ?
   300 : 0;
   resize1.play();
   }
   ]]
   /mx:Script
   mx:Panel id=panel1 title=HelloWorld width=300
   height=200/
   mx:Button label=resize click=dothis()/
   /mx:Application
  
 
   
 
 
 
 
 -- 
 What goes up, does come down.







 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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/

* 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: Flex2B3 - Resize effect problem

2006-06-19 Thread Michael Schmalle



  no need to spin your wheels on things that may 

already be fixed. :)

Yeah, and I was thinking of containers, UITextField and the Panel doesn't even care about the minWidth property anyway! 

Mental gymnastics I guess.

Your right, this is a blaring bug that has to be fixed by now.

Peace, MikeOn 6/19/06, Tim Hoff [EMAIL PROTECTED] wrote:









  



Oh, it's ugly.  But, no need to spin your wheels on things that may 
already be fixed. :)

-TH

--- In flexcoders@yahoogroups.com, Michael Schmalle 

[EMAIL PROTECTED] wrote:

 Tim,
 
 hehe nice, my idea was to set the titleBar.minWidth to 0.
 
 Consequently it didn't work :)
 
 Peace, Mike
 
 On 6/19/06, Tim Hoff [EMAIL PROTECTED] wrote:
 
Hi,
 
  I've noticed some interesting behavior with Beta3 like this as 
well.  For
  now, you could use a work-around like this:
 
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
  mx:Script
  ![CDATA[
  import mx.effects.*;
 
  private function dothis():void
  {
  var resize1:Resize = new Resize(panel1);
  resize1.duration = 300;
  resize1.widthTo = (panel1.width == 0) ?
  300 : 0;
  resize1.play();
  if (panel1.width != 0){panel1.title = ;} else {panel1.title 
= Hello
  World;}
 
  }
  ]]
  /mx:Script
  mx:Panel id=panel1 title=HelloWorld width=300
  height=200/
  mx:Button label=resize click=dothis()/
  /mx:Application
 
  -TH
 
 
  --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:
  
   hi
  
   In my example i'm resizing a panel's width from 300 to 0 (and 
vice
   versa). However i've got one issue. I sometimes see a ghost of 
the
   panel's title still there. somekind of refresh issue? how do i
   remove it.
   thanks
  
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
   mx:Script
   ![CDATA[
   import mx.effects.*;
  
   private function dothis():void
   {
   var resize1:Resize = new Resize(panel1);
   resize1.duration = 300;
   resize1.widthTo = (panel1.width == 0) ?
   300 : 0;
   resize1.play();
   }
   ]]
   /mx:Script
   mx:Panel id=panel1 title=HelloWorld width=300
   height=200/
   mx:Button label=resize click=dothis()/
   /mx:Application
  
 
   
 
 
 
 
 -- 
 What goes up, does come down.



  













-- What goes up, does come down.

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Re: togglebuttonbar/buttonbar : embedding icons issue

2006-06-19 Thread leekuens
Nevermind, I got it. You can do something like this:

mx:Script
![CDATA[
private function dostuff() : void
{
var arritems : Array = new Array();
var item : Object = new Object();
item.label = Flash;
item.icon = testWarning;
arritems.push( item );

item = new Object();
item.label = Director;
item.icon = testWarning;
arritems.push( item );
tbb.dataProvider = arritems;
}   

[Embed(source='/assets/picture.png')]
[Bindable]
public var testWarning : Class; 

]]
/mx:Script

mx:ToggleButtonBar 
id=tbb 
iconField=icon 
 labelField=label
width=300 
creationComplete=dostuff() 
textAlign=left 
direction=vertical/

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

 Hello all. Seems that the only way that I've been able to accomplish
 embedding icons in a togglebuttonbar/buttonbar control is by doing the
 following:
 
   mx:ToggleButtonBar id=tbb iconField=icon width=300
 textAlign=left direction=vertical
 mx:Array
 mx:Object label=Flash
 icon=@Embed('/assets/picture.png')/
 mx:Object label=Director
 icon=@Embed('/assets/picture.png')/
 /mx:Array
   /mx:ToggleButtonBar
 
 In the above example, we specify the dataprovider as an Array in the
 mxml tags.
 
 Now if we try doing this in combination with actionscript:
 
   mx:Script
   ![CDATA[
   private function dostuff() : void
   {
   var arritems : Array = new Array();
   var item : Object = new Object();
   item.label = Flash;
   item.icon = @Embed('/assets/picture.png');
   arritems.push( item );
   
   item = new Object();
   item.label = Director;
   item.icon = Embed('/assets/picture.png');
   arritems.push( item );
   tbb.dataProvider = arritems;
   }   
   ]]
   /mx:Script
   
   mx:ToggleButtonBar 
   id=tbb 
   iconField=icon 
labelField=label
   width=300 
   creationComplete=dostuff() 
   textAlign=left 
   direction=vertical/
 
 The icon dissappears. I'm wondering why there isn't an iconFuction tag
 in the togglebuttonbar/buttonbar components. I've tried doing several
 variations on the dataprovider and script and have not been able to
 embed the icon with exception to how I've shown at the begginning of
 this post. 
 
 Is this a bug or is there a way to accomplish this in the method that
 I'm attempting? Thanks folks :)







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

* 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] [To Michael Schmalle] Rendered from dataProvider ?

2006-06-19 Thread Jean-Luc ESSER





Mike,

Well i just tested it i came accross a problem 
:
I'm using a TileList and as you know, only a few 
items are rendered if you have a scroll, so we'll never get to match the length 
of the dataProvider...
So i guess i'll have to manually set the number of 
items which do not scroll or... do i have a property which returns the index of 
the first scrolled item ?

Hummm, let's check this...

JL


  - Original Message - 
  From: 
  Michael 
  Schmalle 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, June 19, 2006 4:36 PM
  Subject: Re: [flexcoders] [To Michael 
  Schmalle] Rendered from dataProvider ?
  
  
  JL, Is that bad ?No way 
  man!, I was thinking along the same lines. Test the length and when it 
  finishes, it's finished, just didn't have enough time nor brain power to try 
  it :)I will definitaly ask about this and some other things related to 
  initialization at the summit. On a 'professional' level you shouldn't 
  have to hack a major Complete alogrithm like this. So there might actually be 
  a correct way to do it.Peace, Mike
  On 6/19/06, Michael 
  Schmalle [EMAIL PROTECTED] 
  wrote:
  I see, I also see yahoo 
is messing up again, I think yo might have got my last message.I am 
adding this to my list of questions ;-)I don't know the answer right 
now. I had tested this also.
Peace, Mike
On 6/19/06, Jean-Luc 
ESSER [EMAIL PROTECTED]  wrote:

  
  
  
  
  
  
  Mike, here is what i do :
  
  public function 
  myTest():void{bookFormatMedium.addEventListener(FlexEvent.UPDATE_COMPLETE, 
  myTest2);bookFormatMedium.dataProvider = 
  myDataProvider;}public 
  function 
  myTest2(event:FlexEvent):void{bookFormatMedium.removeEventListener(FlexEvent.UPDATE_COMPLETE, 
  myTest2, false);trace('myTestComplete 
  '+event.currentTarget);}
  
  And i invoke myTest on creationComplete of my 
  TileList (or List) :
  
  mx:TileList id="bookFormatMedium" 
  backgroundAlpha="0" textAlign="left" 
  horizontalScrollPolicy="off"width="100%" height="100%" 
  styleName="bookFormatMedium"itemRenderer="com.lmg.view.global.book.BookFormatMediumItemRenderer"itemClick="changeFlowStates(panelState, 
  BookVO(bookFormatMedium.selectedItem))"creationComplete="myTest()"/
  
  My event is dispatched too soon (items are 
  not fully drawn yet).
  Also, invoking myTest() on creationComplete 
  is wrong because next time my dataProvider changes, i won't be able to 
  call myTest().
  
  This is new for me, sorry if i misunderstood 
  what you said !
  
  Best,
  JL
  
  
  
  
  
  - 
  Original Message - 
  From: 
  Michael Schmalle 
  To: 
  flexcoders@yahoogroups.com 
  
  Sent: 
  Monday, June 19, 2006 3:39 PM 
  Subject: 
  Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
  
  
  JL,Have you test the event's currentTarget property for the 
  actuall list?When the LayoutManager rolls through it's 
  updateCompleteQueue, it goes backwards, children to parent.I would 
  think you could check for the base components instance.If you find 
  out that you cannot, I don't understand what is going on by looking at the 
  LayoutManager. It seems pretty simple.Peace, MikePS show 
  me some code so I can try what you are doing! :)
  On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] 
  wrote: 
  






Well i tried that, and it looks like it is 
fired several times during the population of the List.
So i have no way of knowing when it is 
fired for the last time, that is when the last item has been rendered 
!

Or maybe i did notput the listener at 
the correct place.
I'll keep trying.

Best,
JL




- 
Original Message - 
From: 
Michael Schmalle 
To: 
flexcoders@yahoogroups.com 

Sent: 
Monday, June 19, 2006 3:25 PM 
Subject: 
Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider 
?




Oh yeah,Add the listener right before you change the 
dataProvider, remove it when the actual handler fires for the 
UPDATE_COMPLETE event.Peace, Mike


On 6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote: 




Hi,Well, I am to to up to speed on the deep workings of the 
ListBase and List *yet* but, changing the dataProvider is connected to 
updateDisplayLit().That being said, I would say try;mx.events.FlexEvent.UPDATE_COMPLETE 
"Dispatched when an object has had its 
commitProperties, measure, and 

[flexcoders] Internal error

2006-06-19 Thread Subba Chalamalasetty












Hi,



I am getting this error

An internal error occurred during Updating
Problems view:, java.lang.ClassCastException



Can somebody help me to resolve this errorI have no
idea about it.



Thanks

Subba








__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___





Re: [flexcoders] How to recover from 'cleaning' project?

2006-06-19 Thread John Grden



This worked for me just fine ;) Thanks for the help,JGOn 6/15/06, Michael Schmalle [EMAIL PROTECTED]
 wrote:








  



Hi,

This is what I do,

Rename your project, oldProj or something. 

Create a new project with the same name as your old one. If I were you
with this still in beta, rebuild your project if not to complicated. In
the new project, you then have new swf's and .html files.

You also could copy the files back into the old and rename it back.

But, when something like that happens to me, I am more than willing to
just start from scratch with a new project with the same name.

It only takes me about 1-2 minutes to rename, move and delete stuff and it's back up and running.

If anybody knows a better way, I am all ears.

Peace, MikeOn 6/15/06, Phil Marston 
[EMAIL PROTECTED] wrote:









  



Hi all,

Making a mess here!  For some reason Flex Builder didn't seem to be 
incorporating changes I'd made to source files, so I figured there was 
some sort of caching issue (I don't really know how Eclipse works) so I 
figured if I clear out all the compiled stuff and get FB to build from 
scratch that'd do it ... big mistake it's now refusing to build 
apparently because the html file to display the swf in is missing - my 
projects bin directory is empty!

What do I have to do?

:'(

-- 
__ 
Phil Marston 
Learning Technologist
Learning Technology Unit 
Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
[EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 723660 
http://www.abdn.ac.uk/diss/ltu/pmarston/
http://www.abdn.ac.uk/diss/ltu/
__

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]
or call 0800 027 1495


  













-- What goes up, does come down.

  













-- John Grden - Blitz

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] How to recover from 'cleaning' project?

2006-06-19 Thread John Grden



never mind. If I make a change in an mxml file (component) and save, it's not built. It *used* to work, but now it's not working and I have to clean everytime to get it to rebuild the app. I did the workaround with creating a new project and copying the files, but same issue exists.
On 6/19/06, John Grden [EMAIL PROTECTED] wrote:
This worked for me just fine ;) Thanks for the help,JGOn 6/15/06, Michael Schmalle 
[EMAIL PROTECTED]
 wrote:








  



Hi,

This is what I do,

Rename your project, oldProj or something. 

Create a new project with the same name as your old one. If I were you
with this still in beta, rebuild your project if not to complicated. In
the new project, you then have new swf's and .html files.

You also could copy the files back into the old and rename it back.

But, when something like that happens to me, I am more than willing to
just start from scratch with a new project with the same name.

It only takes me about 1-2 minutes to rename, move and delete stuff and it's back up and running.

If anybody knows a better way, I am all ears.

Peace, MikeOn 6/15/06, Phil Marston 

[EMAIL PROTECTED] wrote:









  



Hi all,

Making a mess here!  For some reason Flex Builder didn't seem to be 
incorporating changes I'd made to source files, so I figured there was 
some sort of caching issue (I don't really know how Eclipse works) so I 
figured if I clear out all the compiled stuff and get FB to build from 
scratch that'd do it ... big mistake it's now refusing to build 
apparently because the html file to display the swf in is missing - my 
projects bin directory is empty!

What do I have to do?

:'(

-- 
__ 
Phil Marston 
Learning Technologist
Learning Technology Unit 
Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
[EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 723660 
http://www.abdn.ac.uk/diss/ltu/pmarston/
http://www.abdn.ac.uk/diss/ltu/
__

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]
or call 0800 027 1495


  













-- What goes up, does come down.

  













-- John Grden - Blitz

-- John Grden - Blitz

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] Re: changing out pieSeries.itemRenderer at runtime

2006-06-19 Thread Pan Troglodytes



Ah, I thought it had something to do with properties, but the help only says it's Object, and it was set to null at runtime. But this is a bit more clear. I also figured you could do it by breaking it out, but I wanted to see how to manipulate it if I wanted to change it later.
I'm still running into a problem, though. Check out the example code at:http://three.fsphost.com/flex2/PieCategory/PieCategoryApp.html
When you click between the radio buttons, it changes the datasource and renderer like so: public var monthRenderer:ClassFactory = new ClassFactory(MonthRenderer);
 public var seasonRenderer:ClassFactory = new ClassFactory(SeasonRenderer);
  public function dataChange(e:Event):void {
 if (rg.selectedValue == Months) { switchChart.setStyle
(itemRenderer, monthRenderer); switchChart.dataProvider = dataSet;
 } else {
 switchChart.setStyle(itemRenderer, seasonRenderer);
 switchChart.dataProvider = dataSet2; }
 } import com.adobe.viewsource.ViewSource;
 public function initApp(e:Event):void { ViewSource.addMenuItem
(this, srcview/index.html); dataChange(e);
 }But the problem is that something sticks in the first renderer and isn't cleared out when you select the second one. Notice that the only colored slices are the ones after the three slices in the original array.
Any ideas on why that is?On 6/19/06, Ely Greenfield [EMAIL PROTECTED] wrote:









  









The ClassFactory class has a property called 
'properties.' This is a hash table (object) full of key/value pairs that 
get applied to instances generated by the ClassFactory as necessary. So in your 
case, your markup is saying 'create a PieCategoryWedgeRenderer, and when it gets 
created, assign an array of PieCategory objects to its categories property as 
needed'.

So you could do this:

var cf:ClassFactory = new 
ClassFactory(PieCategoryWedgeRenderer);
var tmp:Array = [];
var pc:PieCategory = new PieCategory();
pc.value = Encouraged;
pc.color = 0x99ff99;
tmp.push(pc);
pc = new PieCategory();
pc.value = Acceptable;
pc.color = 0xff;
tmp.push(pc);
...
cf.properties = { 
 categories: tmp;
}


Alternatively, you could just copy the whole 
PieCategoryWedgeRenderer tag and contents from your markup into a separate MXML 
(call it MyPCWedgeRenderer.mxml) file to create a pre-customized subclass. 
then:

var cf:ClassFactory = new 
ClassFactory(MyPCWedgeRenderer);

and you're done.


Ely.



From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Jason
Sent: 
Saturday, June 17, 2006 9:39 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Re: changing out 
pieSeries.itemRenderer at runtime


Okay, good start. I was thrown off by the help topicFlex 2.0 
Developer's Guide  Customizing the User Interface  Using Item Renderers 
and Item Editors  Creating an item renderer and item editor. It still 
uses the old non-setStyle method to set the itemRenderer.Now how do I 
build this in code: 
  mx:itemRenderer 
   
mx:Component   
  
nes:PieCategoryWedgeRenderer  

nes:categories   

nes:PieCategory value=Encouraged color=#99FF99/ nbs! 
p;
  nes:PieCategory value=Acceptable 
color=#FF/   

nes:PieCategory value=Risk color=#99/ 

  nes:PieCategory value=High Risk 
color=#FF/   
   
/nes:categories   
  
/nes:PieCategoryWedgeRenderer  
  /mx:Component 
  
/mx:itemRendererI've gotten this far:public var riskRenderer! :ClassFa ctory = new 
ClassFactory(nes.charts.dataRenderers.PieCategoryWedgeRenderer);Sadly, 
I'm lost after that. I can't figure out how to add the categories. 
Any tips?--- In flexcoders@yahoogroups.com, Ely Greenfield 
[EMAIL PROTECTED] wrote:   Item Renderer is a 
style. so you have to do this:   
ps.setStyle(itemRenderer, ... );   What do you pass in 
as the value?  1) Passing null doesn't work. You've overridden 
the style, so you need ot set a new value. The default value is the 
class mx.charts.renderers.WedgeItemRenderer.  2) 
itemRenderers are typed as IFactory. Meaning they need to be an object 
that implements the IFactory interface. Flex ships with a default 
IFactory that simply wraps a class, called ClassFactory. So you want to 
do this:  import mx.charts.rende! 
rers.WedgeItemRenderer;  ps.setStyle(itemRenderer, new 
ClassFactory(WedgeItemRenderer));  you'll probably have to 
import ClassFactory too...I don't remember what it's package is 
(probably mx.core), but you can find it in the AS doc reference. 
 Ely.    
 From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] 
On Behalf Of Jason Sent: Friday, June 16, 2006 4:19 PM 
To: flexcoders@yahoogroups.com Subject: [flexcoders] changing out 
pieSeries.itemRenderer at runtimeOkay, so 
I've made an itemRenderer for a pieSeries. But sometimes I want to turn 
it off. How might I go about that?  mx:PieSeries id=ps 
field=time labelPosition=insideWithCallout labelFunction=getLabel 
 dataProvider={chartData} insideLa! belSizeLimit=10 
fontSize=10 ! mx:i 

Re: [flexcoders] How to recover from 'cleaning' project?

2006-06-19 Thread Phil Marston






Perhaps that's a difference between someone coming to Flex Builder 2
from a traditional app development background and someone coming from a
Flash app development background (i.e. using the Flash IDE) ;-)

I know now and perhaps the archive of this thread will serve to help
others like me.

:-)

Daniel Tuppeny wrote:

  
  
  I see. I took that dialog to
mean similar to Visual Studio's, which is basically "I failed to build
because your code is broken. Should I launch the last version?". I
guess it's so you can get into your app as it was last built if you
need to see something, but you've screwed the code up. It's not
building from old files, it's just launching the last build (since it
failed to overwrite the old one with the new one, because of the
errors).
  
  If you see that error, you
should pretty much alwaysclick No, and check the problems :-)
  
  
  
  From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Phil Marston
  Sent: 19 June 2006 16:54
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] How to recover from 'cleaning'
project?
  
  
Yeah it does halt . . . and a dialog pops up saying "Errors exist in
required project(s):projName. Continue launch? [Yes][No]" I didn't
take from that that it would build the project from old resources - to
me it's not continuing the launch emI/em initiated, but
fetching up some old stuff and why would I want that?!
  
Boils down to semantics I guess . . . .
  
:-/
  
Daniel Tuppeny wrote:
  

 it's like it's got a cached version of
your last error free source file that it uses to compile from

Sounds like the Clean stuff is
working fine, but if you're hitting Run with build errors and it's
opening up an old version and pretending everything is ok, I'd be a
little worried!

Every time I hit the Run button,
it compiles, and halts if there are errors. Do you not get the same?


 
From:
flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Phil Marston
Sent: 19 June 2006 14:18
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to recover from 'cleaning'
project?


Yeah the html-templates folder is untouched - what I'm beginning to
discover is that if there are any errors in your code when you clean,
then the project wont recompile - kind of obvious really! Trouble was
that I thought is was compiling despite there being errors prior to
cleaning - I'm now realising that it was compiling using a previous
version even if you make some alterations to your source file and save,
but still have errors - it's like it's got a cached version of your
last error free source file that it uses to compile from.

Maybe this is normal experience for developers using Flex, but it's not
totally obvious caught me out through the "cleaning" process! doh!

:-/

Daniel Tuppeny wrote:

  
  I'm sure that's the corect
behaviour. Mine also completely wipes the bin folder. The HTML files
get copied back from the html-template folder when I next build. If I
delete that folder, then I get compile errors and the rebuild option.
You shouldn't get compile errors with an empty bin folder, so sounds
like a problem with compiling, rather than the Clean option.
  
  I'm guessing there are still
files in your html-templates folder?
  
  
   From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
  On Behalf Of Phil Marston
  Sent: 15 June 2006 14:55
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] How to recover from 'cleaning'
project?
  
  
Thanks Daniel,
  
but there must be a difference in behavior between your FlexBuilder and
mine because thats where the problem lays for me. When I selected
Project - Clean... it cleared everything out of the project bin
including the html files the debug files and everything! The damn
thing wont recompile or rebuild - I get no "regenerate html" option and
there is no message in the Problems pane - it just bombs with a "Launch
Failed" modal dialog saying "File not found {the path to
/bin/project.html here}"
  
I've been trying to create a whole new project from scratch with
different name, but the whole IDE seems to've given up on running the
code for this project . . . . curses-under-breath/
  
Phil
  
Daniel Tuppeny wrote:
  

I may not have understood
properly, but when I did a similar thing, it told me to right-click on
the message in the Problems pane, anc hoose the "regenerate html"
option!

Also, there's a Project -
Clean option which clears out the compiled stuff without deleting the
html templates :-)


 From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Michael Schmalle
Sent: 15 June 2006 12:50
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to recover from 'cleaning'

[flexcoders] RPC Error I cant figure out

2006-06-19 Thread Jeremy Rottman
I am working on a search screen for my app, and I have run into this
error that I can't figure out.

[RPC Fault faultString=Array of input arguments did not contain a
required parameter at position 3 faultCode=Client.Input
faultDetail=null]

I have check to make sure that I am passing a value from each of my
inputs, but I cant seem to figure out why I am still getting this error.

Here is my code.

as code.

//*START VENDOR NAME SEARCH
VALIDATION*

// DEFINE VARS FOR STORING VALIDATION OBJECTS
 private var vVenLastName:ValidationResultEvent;

// FUNCTION TO VALIDATE, IF VALID SEARCH FORM, IF NOT VALID SHOW ERRORS
 private function venNameSearchValidation(){
 vVenLastName = venLastNameV.validate();

 if (vVenLastName.type==ValidationResultEvent.INVALID){
 return;
 }
 else{
 SearchParties_Vendor_Search_Name(venFirstName.text,
venLastName.text, searchType.selectedItem.data);
 }
 }

//*END VENDOR NAME SEARCH
VALIDATION***


//*BEING VENDOR NAME SEARCH
*

// CALL VENDOR NAME SEARCH
 private function SearchParties_Vendor_Search_Name(firstName,
lastName, searchType){
 SearchParties.Vendor_Search(firstName, lastName,
searchType);
 }

// HANDLE THE RESULTS OF THE VENDOR NAME SEARCH
 private function
SearchParties_Vendor_Search_Result(result):void{
 currentState = 'venNameResults';
 venNameDG.dataProvider = result;
 }

// HANDLE THE ERRORS OF THE VENDOR NAME SEARCH
 private function
SearchParties_Vendor_Search_Fault(event:FaultEvent):void{
 Alert.show(ObjectUtil.toString(event.fault));
 }
//*END VENDOR NAME SEARCH ***


Here is my cfc code.

 cffunction name=Vendor_Search access=remote returntype=query
output=false 
 cfargument name=firstName required=no default= /
 cfargument name=lastName required=no default= /
 cfargument name=searchKey required=no default= /
 cfargument name=searchType required=yes /

 cfquery name=VendorSearchQry
datasource=#application.dsn#
 select
 fld_vendor_firstname, fld_vendor_lastname,
fld_vendor_fullname, fld_vendor_companyname, fld_vendor_workphone,
 fld_vendor_homephone, fld_vendor_mobilephone
,fld_vendor_fax, fld_vendor_UID

 from
 tbl_smartPanel_vendors

 where

 cfif arguments.searchType is name
 cfif arguments.firstName neq 
 fld_vendor_firstname like
'#arguments.firstName#%' and
 /cfif

 cfif arguments.lastName neq 
 fld_vendor_lastname like '#arguments.lastName#%'
 /cfif
 /cfif

 cfif arguments.searchType is phone
 fld_vendor_workphone like '#arguments.searchKey#%'
 or
 fld_vendor_homephone like '#arguments.searchKey#%'
 or
 fld_vendor_mobilephone like '#arguments.searchKey#%'
 /cfif

 cfif arguments.searchType is fax
 fld_vendor_fax like '#arguments.searchKey#%'
 /cfif

 cfif arguments.searchType is company
 fld_vendor_companyname like '#arguments.searchKey#%'
 /cfif
 /cfquery
 cfreturn VendorSearchQry /
 /cffunction









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

* 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: FDS Samples

2006-06-19 Thread hank williams



After chatting here with Peter, I made a few improvement for setting up JOTM in tomcat in order to use FDS.1. un gzip the file http://debian-sf.objectweb.org/projects/jotm
2. go to the lib directory in the resulting uncompressed folder3. place all the files in this folder in the $CATALINA_HOME/shared/lib directory except: a. log4j.jar b. commons-cli.jar c. jotm_iiop_stubs.jar
 NOTE: $CATALINA_HOME is just your tomcat folder.4. Create a new file called context.xml in :$CATALINA_HOME/webapps/your app name, in this case samples/META-INF5. Place the following in the file:
 Context path=/samples docBase=samples debug=0 reloadable=true crossContext=true !-- Description of the resource UserTransaction --
Resource name=UserTransaction auth=Container type=javax.transaction.UserTransaction /ResourceParams name=UserTransactionparameter
namefactory/namevalueorg.objectweb.jotm.UserTransactionFactory/value/parameterparameter name jotm.timeout/name
 value60/value /parameter/ResourceParams/ContextNOTE: In the first line above, the word samples listed twice, should
be whatever thename of your webapp is. Using samples allows you to
run the samples application that comes with FDS.or if you have Tomcat 5.5 or greater you may just place the following in the file:Context reloadable=true Transaction factory=
org.objectweb.jotm.UserTransactionFactory jotm.timeout=60 //ContextNOTE : I havent tried this yet because I am currently running tomcat 5.5 but Peter Farland says it works!
On 6/18/06, hank williams [EMAIL PROTECTED] wrote: I wrote up a little explanation that is much (I think) easier to understand that the instructions provided by adobe for installing JOTM (which is
 necessary for FDS)  1. un gzip the file http://debian-sf.objectweb.org/projects/jotm 2. go to the lib directory in the resulting uncompressed folder
 3. place all the files in this folder in the $CATALINA_HOME/shared/lib directory except:a. log4j.jar b. commons-cli.jarc. jotm_iiop_stubs.jarNOTE: $CATALINA_HOME is just your tomcat folder.
 4. Add the following XML to $CATALINA_HOME/conf/server.xml Context path=/samples docBase=samples debug=0 reloadable=true crossContext=true 
 !-- Description of the resource UserTransaction --  Resource name=UserTransaction auth=Container type=javax.transaction.UserTransaction
 /  ResourceParams name=UserTransaction  parameter  namefactory/name  valueorg.objectweb.jotm.UserTransactionFactory
/value  /parameter  parameter name jotm.timeout/name value60/value /parameter  /ResourceParams 
 /Context   NOTE: In the first line above, the word samples listed twice, should be whatever thename of your webapp is. Using samples allows you to run the
 samples application that comes with FDS.  On 6/18/06, hank williams [EMAIL PROTECTED] wrote:  Well, I figured out what the problem is.
On the wiki (but nowhere in the downloaded package) it says that FDS   on Tomcat requires the JOTM transaction manager.The wiki points to two articles by unrelated third parties that have
  different instructions for what is required to install. Then there are   some additional instructions directly in the wiki that seem to overlap  and contradict the instructions in the articles. The bottom line is
  this is no easy drop a war or jar in and your done kind of   installation - or if it is, then the instructions are even worse than  I thought.I would suggest that adobe make the effort to tighten up the
  documentation on this and maybe do some kind of an installer that   maybe even makes the necessary adjustments to the tomcat config file.  Just because someone programs in java doesnt mean they know all of the
  ins and outs of servlet container configurations. This, oh we will   leave the last few steps as an exercise for the reader is just one of  my personal pet peeves. Just because software is targeted at
  programmers and technical folks doesnt mean its ok to make it hard.   Adobe has, in general, done a good job with the client side. But, for  lots of people, this will be a bummer.
HankOn 6/18/06, hank williams  [EMAIL PROTECTED] wrote: I just downloaded flex data services, installed, and tried to run the
 the sample apps. The flash UI part all works fine, but it cant connect to data. The error that comes in on the java console looks like this: 
   [Flex] [DEBUG] Before invoke service: data-service   incomingMessage: Flex Message (flex.data.messages.DataMessage)   operation = fill   id = null 
   clientId = 5C535BF9-496C-1163-025E-E8915E76244B  correlationId =   destination = contact   messageId = 43802177-0968-4AB3-9AB5-E8915E86D54E
   timestamp = 1150658109140timeToLive = 0   body =   [ ]   hdr(DSEndpoint) = my-rtmp
 Throwable in RtmpReader thread: java.lang.NoClassDefFoundError : javax/transaction/SystemException   java.lang.NoClassDefFoundError: javax/transaction/SystemException
   at flex.data.DataService.serviceMessage (DataService.java:284)   at flex.messaging.MessageBroker.routeMessageToService 

[flexcoders] Re: Getting a DataGrid item renderer instance

2006-06-19 Thread flex8it
More specifically, here's what I'm trying to change the viewState in 
my itemRenderer when the DataGrid's textfield is edited. But in 
order to do that, I need to somehow get an instance reference to my 
renderer component. And nothing I've done seems to work...

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
xmlns:comp=components.* 
verticalAlign=top horizontalAlign=center 
layout=absolute

mx:Script
![CDATA[
import components.imgReset;
import mx.collections.ArrayCollection;
import mx.events.DataGridEvent;
import mx.controls.Alert;

[Bindable]
public var choices:ArrayCollection = choices = new 
ArrayCollection([
 {resetImage: images/reset.png, fieldName: Smalltown},
 {resetImage: images/reset.png, fieldName: Bigtown},
]);
  
private function changeRendererState(event:DataGridEvent) : void
{
// I can get the rowIndex and columnIndex for the renderer, 
// but I don't exactly how to use them to get to the 
renderer object...
Alert.show(event.rowIndex + ,  + (event.columnIndex - 1));

// I just want to get the renderer instance...
// First, there's a problem with my typecasting ??
// Second, there's no such thing as a row property on 
// the DataGrid, but I really want there to be...
var RendererInstance:imgReset = imgReset(this.myGrid.columns
[event.columnIndex-1].row[event.rowIndex].itemRenderer);

// Now I want to manipulate renderer instance 
properties/states...
RendererInstance.currentState = 'showReset';
}
]]
/mx:Script
mx:DataGrid id=myGrid 
editable=true 
dataProvider={choices} 
itemEditEnd=changeRendererState(event) 
mx:columns
mx:DataGridColumn dataField=resetImage 
headerRenderer=components.HeaderReset 
itemRenderer=components.imgReset/
mx:DataGridColumn dataField=fieldName 
editable=true width=230 
headerText=Field Name /
/mx:columns
/mx:DataGrid
 /mx:Application

I'd sure appreciate some help on this conundrum.

Many Thanks,
Bruce

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

 I have simple datagrid with 2 columns and 2 rows like this:
 
 column 0 column 1
  -
 imagetextfield
 imagetextfield
 
 Column 0 contains my ImageRenderer component.
 Column 1 contains the DataGrid's default item renderer and editor: 
 text, textfield.
 
 First Problem:
 How do I identify/get a reference to a particular instance of my 
 ImageRenderer from, say, column[0], row[1]?
 
 Second (related) Problem:
 How do I get the ImageRender instance that corresponds to the row 
of 
 the textfield that fires an event when edited?
 
 I've been wrestling with this problem for days now, and I just 
can't 
 seem to get a grasp on the communication/eventing infrastructure 
 that's probably necessary to pull this off. Please help.
 
 Thanks,
 Bruce








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

* 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: F2B3: Possible bugs with ComboBox ItemRenderer and ColorPicker

2006-06-19 Thread Gordon Smith











I wonder if there is additional overhead associated with declaring untyped special
type variables (*) compared to typed variables?

Yes, I believe there is; if the compiler
doesn't know anything about the type it can't optimize the generated code as
well. But there is no reason to use * here; you could declare var itm:Object
instead. The only reason to use * is when you need to store 'undefined' in
addition to 'null'.



However, there is definitely an overhead
associated with using dynamic classes like Ojbect. If you want the best performance,
don't use dtynamic Objects like { label: xxx, color: yyy }; instead declare a nondynamic
ColorPickerDataProviderItem class with 'label' and 'color' properties.



However, in this case I doubt you'll
actually be able to see any better performance because these objects don't get
accessed a huge number of times.



- Gordon











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tim Hoff
Sent: Sunday, June 18, 2006 1:41
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: F2B3:
Possible bugs with ComboBox ItemRenderer and ColorPicker











Thanks
for the great tips. The changes worked great. I wonder if there is
additional overhead associated with declaring untyped special type variables
(*) compared to typed variables?

I
couldn't get the color picker focus border to dissapear completely.
Nothing that I tried with the FocusManager worked. I'm probably just
doing it wrong. But, for now the sample is good enough to demonstrate the
ComboBox ItemRenderer concepts.

Thanks
again,
Tim Hoff

http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectID=447

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

 hi Tim,
 
 try this (solves yellow can't be selected problem):
 
 private function addColor(event:Event):void {
 cp.visible = false;
 //
 var itm:* = cp.dataProvider[ cp.selectedIndex ];
 Util.traceValue(itm);
 //
 colorArray.push({label:itm.label, color:itm.color});
 messageText.setStyle('color',itm.color);
 messageText.text = itm.label +  has been added to the
comboBox.;
 cbxColor.open();
 btnAddColor.setFocus();
 }
 
 things I changed:
 
 1. listen to! ColorPicker's close event, instead of
change event
 
 2. get the value from cp using selectedIndex instead of
selectedItem,
 this will ensure you get the right value out of the picker.
 
 regarding the focus around cp after it's set invisible, can't figure out
it,
 but in the past when I ran into this, I usually set focus to a textfield
off
 the stage or completely turn off the focus.







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___






Re: [flexcoders] How to recover from 'cleaning' project?

2006-06-19 Thread Michael Schmalle



John,

 I did the workaround with creating a new project and copying the files

What are you copying? 

trust me I ramed my head against the screen may times with this and found a way to do it?
Peace, Mike


On 6/19/06, Phil Marston [EMAIL PROTECTED] wrote:









  







Perhaps that's a difference between someone coming to Flex Builder 2
from a traditional app development background and someone coming from a
Flash app development background (i.e. using the Flash IDE) ;-)

I know now and perhaps the archive of this thread will serve to help
others like me.

:-)

Daniel Tuppeny wrote:

  
  
  I see. I took that dialog to
mean similar to Visual Studio's, which is basically I failed to build
because your code is broken. Should I launch the last version?. I
guess it's so you can get into your app as it was last built if you
need to see something, but you've screwed the code up. It's not
building from old files, it's just launching the last build (since it
failed to overwrite the old one with the new one, because of the
errors).
  
  If you see that error, you
should pretty much alwaysclick No, and check the problems :-)
  
  
  
  From:
flexcoders@yahoogroups.com [
mailto:flexcoders@yahoogroups.com] On
Behalf Of Phil Marston
  Sent: 19 June 2006 16:54
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] How to recover from 'cleaning'
project?
  
  
Yeah it does halt . . . and a dialog pops up saying Errors exist in
required project(s):projName. Continue launch? [Yes][No] I didn't
take from that that it would build the project from old resources - to
me it's not continuing the launch emI/em initiated, but
fetching up some old stuff and why would I want that?!
  
Boils down to semantics I guess . . . .
  
:-/
  
Daniel Tuppeny wrote:
  

 it's like it's got a cached version of
your last error free source file that it uses to compile from

Sounds like the Clean stuff is
working fine, but if you're hitting Run with build errors and it's
opening up an old version and pretending everything is ok, I'd be a
little worried!

Every time I hit the Run button,
it compiles, and halts if there are errors. Do you not get the same?


 
From:
flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Phil Marston
Sent: 19 June 2006 14:18
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to recover from 'cleaning'
project?


Yeah the html-templates folder is untouched - what I'm beginning to
discover is that if there are any errors in your code when you clean,
then the project wont recompile - kind of obvious really! Trouble was
that I thought is was compiling despite there being errors prior to
cleaning - I'm now realising that it was compiling using a previous
version even if you make some alterations to your source file and save,
but still have errors - it's like it's got a cached version of your
last error free source file that it uses to compile from.

Maybe this is normal experience for developers using Flex, but it's not
totally obvious caught me out through the cleaning process! doh!

:-/

Daniel Tuppeny wrote:

  
  I'm sure that's the corect
behaviour. Mine also completely wipes the bin folder. The HTML files
get copied back from the html-template folder when I next build. If I
delete that folder, then I get compile errors and the rebuild option.
You shouldn't get compile errors with an empty bin folder, so sounds
like a problem with compiling, rather than the Clean option.
  
  I'm guessing there are still
files in your html-templates folder?
  
  
   From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
  On Behalf Of Phil Marston
  Sent: 15 June 2006 14:55
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] How to recover from 'cleaning'
project?
  
  
Thanks Daniel,
  
but there must be a difference in behavior between your FlexBuilder and
mine because thats where the problem lays for me. When I selected
Project - Clean... it cleared everything out of the project bin
including the html files the debug files and everything! The damn
thing wont recompile or rebuild - I get no regenerate html option and
there is no message in the Problems pane - it just bombs with a Launch
Failed modal dialog saying File not found {the path to
/bin/project.html here}
  
I've been trying to create a whole new project from scratch with
different name, but the whole IDE seems to've given up on running the
code for this project . . . . curses-under-breath/
  
Phil
  
Daniel Tuppeny wrote:
  

I may not have understood
properly, but when I did a similar thing, it told me to right-click on
the message in the Problems pane, anc hoose the regenerate html
option!

Also, there's a Project -
Clean option which clears out the compiled stuff without deleting the
html templates 

RE: [flexcoders] RPC Error I cant figure out

2006-06-19 Thread João Fernandes
your method is asking for 4 parameters and you are only invoking with 3 of them.

if you want to skip the searchkey parameter try this:

private function SearchParties_Vendor_Search_Name(firstName,
lastName, searchType){
 SearchParties.Vendor_Search(firstName, lastName,,
searchType);
 }

HTH,

João Fernandes


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Jeremy Rottman
Sent: Mon 19-Jun-06 6:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RPC Error I cant figure out
 
I am working on a search screen for my app, and I have run into this
error that I can't figure out.

[RPC Fault faultString=Array of input arguments did not contain a
required parameter at position 3 faultCode=Client.Input
faultDetail=null]

I have check to make sure that I am passing a value from each of my
inputs, but I cant seem to figure out why I am still getting this error.

Here is my code.

as code.

//*START VENDOR NAME SEARCH
VALIDATION*

// DEFINE VARS FOR STORING VALIDATION OBJECTS
 private var vVenLastName:ValidationResultEvent;

// FUNCTION TO VALIDATE, IF VALID SEARCH FORM, IF NOT VALID SHOW ERRORS
 private function venNameSearchValidation(){
 vVenLastName = venLastNameV.validate();

 if (vVenLastName.type==ValidationResultEvent.INVALID){
 return;
 }
 else{
 SearchParties_Vendor_Search_Name(venFirstName.text,
venLastName.text, searchType.selectedItem.data);
 }
 }

//*END VENDOR NAME SEARCH
VALIDATION***


//*BEING VENDOR NAME SEARCH
*

// CALL VENDOR NAME SEARCH
 private function SearchParties_Vendor_Search_Name(firstName,
lastName, searchType){
 SearchParties.Vendor_Search(firstName, lastName,
searchType);
 }

// HANDLE THE RESULTS OF THE VENDOR NAME SEARCH
 private function
SearchParties_Vendor_Search_Result(result):void{
 currentState = 'venNameResults';
 venNameDG.dataProvider = result;
 }

// HANDLE THE ERRORS OF THE VENDOR NAME SEARCH
 private function
SearchParties_Vendor_Search_Fault(event:FaultEvent):void{
 Alert.show(ObjectUtil.toString(event.fault));
 }
//*END VENDOR NAME SEARCH ***


Here is my cfc code.

 cffunction name=Vendor_Search access=remote returntype=query
output=false 
 cfargument name=firstName required=no default= /
 cfargument name=lastName required=no default= /
 cfargument name=searchKey required=no default= /
 cfargument name=searchType required=yes /

 cfquery name=VendorSearchQry
datasource=#application.dsn#
 select
 fld_vendor_firstname, fld_vendor_lastname,
fld_vendor_fullname, fld_vendor_companyname, fld_vendor_workphone,
 fld_vendor_homephone, fld_vendor_mobilephone
,fld_vendor_fax, fld_vendor_UID

 from
 tbl_smartPanel_vendors

 where

 cfif arguments.searchType is name
 cfif arguments.firstName neq 
 fld_vendor_firstname like
'#arguments.firstName#%' and
 /cfif

 cfif arguments.lastName neq 
 fld_vendor_lastname like '#arguments.lastName#%'
 /cfif
 /cfif

 cfif arguments.searchType is phone
 fld_vendor_workphone like '#arguments.searchKey#%'
 or
 fld_vendor_homephone like '#arguments.searchKey#%'
 or
 fld_vendor_mobilephone like '#arguments.searchKey#%'
 /cfif

 cfif arguments.searchType is fax
 fld_vendor_fax like '#arguments.searchKey#%'
 /cfif

 cfif arguments.searchType is company
 fld_vendor_companyname like '#arguments.searchKey#%'
 /cfif
 /cfquery
 cfreturn VendorSearchQry /
 /cffunction










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

* 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/
 
winmail.dat

[flexcoders] bug in chart.itemDoubleClick/itemMouseUp?

2006-06-19 Thread Pan Troglodytes



Using the example given for the help topic Handling user interactions with charts works fine:?xml version=1.0?mx:Application xmlns:mx=
http://www.adobe.com/2006/mxmlmx:Script![CDATA[import mx.controls.Alert;import mx.charts.events.ChartItemEvent;[Bindable]public var dataSet:Object = [{Month: Jan, Expenses: 1500},
{Month: Feb, Expenses: 200},{Month: Mar, Expenses: 500}];public function myListener(e:ChartItemEvent):void {Alert.show(Chart data was clicked);
}]]/mx:Scriptmx:ColumnChart id=chart itemClick=myListener(event) dataProvider={dataSet}mx:horizontalAxis
mx:CategoryAxis dataProvider={dataSet} categoryField=Month//mx:horizontalAxismx:seriesmx:Arraymx:ColumnSeries yField=Expenses/
/mx:Array/mx:series/mx:ColumnChart/mx:Application
However, if you change itemClick to itemDoubleClick, it does not seem to work. Same goes for itemMouseUp.-- Jason

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] use of Number instead of int unit datatype????

2006-06-19 Thread Jignesh M. Dodiya
Few days back, Sho Kuwamoto from Adobe have written in his post that 
Number datatype is fast than using newly introduced int and uint 
datyatype for as-3

and some given the confirmation also regarding that


just want to confirm this that its really like that then why int and 
uint introduced in AS-3 if older Number datatype is faster

really confusing what to use

test results qwith codes highly appreacated

links

http://kuwamoto.org/2006/06/15/avoid-ints-in-actionscript/#more-81

http://www.gskinner.com/blog/archives/2006/06/types_in_as3_in.html  -
-- dont forget to check out the last comment here .its test result 
with code



regards, 

Jignesh Dodiya





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

* 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] Strategies for an MVC approach

2006-06-19 Thread Jesús Zazueta Montiel
Hello. Once again, I'd like to thank in advance for the time of those 
who can help me.

I've been learning the basics of Flex 1.5 and I got past remote object 
invocation
and debugging.

My interest now shifts towards applying design patterns in order to
build scalable and maintainable applications. For this (and for getting 
used to
flex in the first way) I have been reading Developing rich clients with 
macromedia flex.

As it seems that the authors visit this site (and since this seems to be 
the biggest flex community)
I thought it would make sense to ask for help about some of the concepts 
discussed in chapter
20 of the book.

Specifically, I am finding difficulties in understanding the controller 
class and command models
proposed by the authors in this chapter of the book. My biggest point of 
confusion is the use of
function attributes of the type:

class MyClass {
var myAttribute : Function;
}

inside controller classes.

Since I'm still trying to figure out their usefulness or the reason for 
which they exist in AS 2.0
... has someone else followed up a similar line of thought on this

Controller - Command - Business Delegate

approach to define how should a scalable application behave.

Or is there any simplified example of this strategy (or a different one 
altogether) that I could
be referred to?

Again, thanks for your time and help.


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

* 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] sortCompareFunction :: My Solution

2006-06-19 Thread Brendan Meutzner



Hi All,After coming across the difficulties surrounding the
current sortCompareFunction for the DataGrid, I've come up with a
solution that worked to solve my problem, and I thought might help
others.My particular issue was that I had two columns in my
DataGrid which were dynamically set (that is, the dataField value [a
month] was dynamically set based on a ComboBox setting). These two
columns would display data allowing a user to compare two months of
data. A third column used an itemRenderer to display a percentage
value which represented the difference between the first month's column
value, and the second month's column value. (see attached)

Because the information from the 3rd column was being calculated, when
I went to implement sorting for it, I had to look to the
sortCompareFunction. My solution is as follows:
I created a singleton class to hold my sort functionality, as well
as a few custom properties that I set on headerRelease of the dataGrid.

MyApp.mxml (excerpt)
---
import helpers.MySingletonSortClass;

mx:DataGrid headerRelease=setSortValues()
 mx:DataGridColumn dataField={month1Combo.selectedItem.data} /
 mx:DataGridColumn dataField={month2Combo.selectedItem.data} /
 mx:DataGridColumn itemRenderer=MyPercentageRendererClass sortCompareFunction=MySingletonSortClass.sortDifference /
/mx:DataGrid

private function setSortValues(event:Event):void
{
 MySingletonSortClass.sortColumn1 = event.target.columns[0].dataField;
 MySingletonSortClass.sortColumn2 = event.target.columsn[1].dataField;
}


MySingletonSortClass.as
---
package helpers
{
 public class MySingletonSortClass
 {
  private static var _sortInstance:MySingletonSortClass;

  public static var sortColumn1:String;
  public static var sortColumn2:String;
 
  public function MySingletonSortClass() 
  { 
   if (DataGridSortFunctions._sortInstance != null)
   {
throw new Error( Only one please ); 
   }  
  }

  public static function getInstance():MySingletonSortClass
  {
   if (_sortInstance == null)
   {
_sortInstance = new MySingletonSortClass();
   } 
   return _sortInstance;
  }
  
  //USAGE FUNCTIONALITY
  public static function sortDifference(obj1:Object, obj2:Object):Number
  {
   //I'm now able to access my dataGrid values through obj1[sortColumn1], etc...
   
  //do your sort comparison functionality here and return the usual -1, 0, 1
  }
 }
}


Because the headerRelease event gets fired before the custom sort
happens, I'm able to set the properties inside the singleton class
before the sort functionality takes place. Solved my problems, and I
hope this idea helps others.


Brendan



__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___

attachment: sortCompare1.jpg


[flexcoders] Re: Flex beta 3/CF and Datagrid not being populated

2006-06-19 Thread malik_robinson



Hi,
It is all working great now. I am using ColdFusion and once I used CAPS for the columnNames in the dataField="FIRSTNAME" as opposed to "firstname" it works beautifully. Thanks for all the tips as well. It really helps. I think once I get the foundation and the ability to do things that I have been doing in ColdFusion then I am well on my way. This stuff is really cool.
-Malik
--- In flexcoders@yahoogroups.com, "Tim Hoff" [EMAIL PROTECTED] wrote:  Hi Malik,  Glad to help. Here are a couple of answers to your questions.  What is "lastResult". Where does that come from and how would one know about this?  lastResult is the ActionScript object that is returned from an RPC call. The name was changed from result to lastResult to distinguish it from the result of an event. You can search the help docs for lastResult to learn more.  Any idea why I do not see any actual text in the grid? I tried firstname, FIRSTNAME, as I heard someone reference that I need to use CAPS, but either way I do not get values in the grid. But it does appear records are there as I move the mouse over, it highlights the *would be value*.  The field names of your lastResult object are case sensitive. They need to match the field names in your query exactly. In this case firstname and lastname.   I removed the "send()" and it still worked so I am not sure of the  reason for it? Is is a coding practice to use that, either way it  worked with and without the send() method call.  Yes, this is a common coding practice. It helps you and other programmers read the code quickly to see when the data service is being called.   How would you reference an array? Lets say I had a CFC that returned  like a 2D array?  Another common practice is to cast the lastResult from a service call to an ArrayCollection or an XMLListCollection. These objects can be easily accessed, manipulated (filter, sort...) and bound to list-based controls (DataGrid, Tree...). The members of the ArrayCollection can be accessed with dot notations like: contactsAC.phoneNumbers.homePhone. It is also common to use onResult and onFault event listener functions with RPC calls. But, let's take this one step at a time. See the example below.  ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml " layout="absolute" creationComplete="initApp()"  mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.utils.ArrayUtil; import mx.rpc.events.*;  public function initApp():void { // Force artists class to load artSvc.getArtists.send(); } ]] /mx:Script  mx:RemoteObject id="artSvc" destination="ColdFusion" source="myapp.cf.com.artists" showBusyCursor="true" /  mx:ArrayCollection id="artistsAC" source="mx.utils.ArrayUtil.toArray(artSvc.getArtists.lastResult)"/  mx:DataGrid id="dgArtists" dataProvider="{artistsAC}" x="177" y="65" mx:columns mx:DataGridColumn headerText="First Name" dataField="firstname"/ mx:DataGridColumn headerText="Last Name" dataField="lastname"/ /mx:columns /mx:DataGrid  /mx:Application  Hope that this helps, -TH  --- In flexcoders@yahoogroups.com, "malik_robinson" Malik_Robinson@ wrote:Hi,   Sweet it is working now. The "lastResult" worked. So that is  basically a reference to my query object?   Once I did that, just for tests I removed the :   public function initApp():void {  // Force artists class to load  artSvc.getArtists.send();  }   I removed the "send()" and it still worked so I am not sure of the  reason for it? Is is a coding practice to use that, either way it  worked with and without the send() method call.   How would you reference an array? Lets say I had a CFC that returned  like a 2D array?   I guess I really looking for more information on how a datagrid or tree  control or whatever it may be would handle things of different data  types like an array or a query object or whatever.   Thanks for the help! Highly appreciated!   -Malik  --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: Yeah, Sorry, use: artSvc.getArtists.lastResult for the dataProvider, without artists at the end. -TH --- In flexcoders@yahoogroups.com, "malik_robinson"   Malik_Robinson@ wrote:  Hi,   I ended up getting an error, I think it was due to the text"lastResult". Below is the error:   I am very curious to know if someone can try this simple example   and geta datagrid to populate via a query object from CF.   Error: Unknown Property 'artists'.at  mx.collections::ListCollectionView/http://www.adobe.com/2006/actionsc   rip\t/flash/proxy::getProperty()at mx.binding::PropertyWatcher/::updateProperty()at mx.binding::Watcher/mx.binding:Watcher::wrapUpdate()at mx.binding::PropertyWatcher/updateParent()at mx.binding::Watcher/updateChildren()at mx.binding::PropertyWatcher/::updateProperty()at mx.binding::Watcher/mx.binding:Watcher::wrapUpdate()at mx.binding::PropertyWatcher/eventHandler()at 

[flexcoders] Flex2b3 NetConnection.connect arguments

2006-06-19 Thread David Clark



Hi,Trying to connect from Flex to FMS2 using NetConnection passing an object argument. Any object type arguments seem to be ignored...I have existing Flash to FMS code that works something like this:
nc = new NetConnection();nc.connect(rtmp://localhost/ComponentTest, {name:test, data:foobar});on the server side you can then:application. obj){
 trace(obj); trace(obj.name);
 trace(obj.data);
etc...but now from Flex any arguments other than String or Number type get skipped over, I receive the arguments before them and ones after but not those ones, ie:connect(rtmp://localhost/ComponentTest, aaa, {bbb:bbb}, ccc);
with on the server sideonConnect(client, one, two, three){gives me>two = cccthree = undefinedI have tried other ways of delaring the object (just in case this particular one is not correct). Originally I was trying to pass an instance of a class that I created. That is wen I found tat I could not even pass a simple Object.
The docs still indicate that the arguments parameters can be of any type. Anyone else trying to use FMS with Flex and done this or seen this problem?Thanks.-- davidMany people die at twenty five and aren't buried until they are seventy five.
 - Benjamin Franklin

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] How to integrate Flash and Flex well done ?

2006-06-19 Thread roberto.rosenthal
Hi all, I just joined this group.. and so far I'm delited with Flex
but I wonder this...

I've spend so much time developing with Flash to aproach RIA that I
would like to know how can I integrate something done already with
Flash in Flex. Hopefully someone can help me do something like this:

a) I have a Flash movie that behaves like an aplication with it's own
buttons, actions, components, datagrids, etc.
b) I want to embed this application within a new Flex application and
have them talk to each other... meaning to trigger actions, bind
variables, etc.

If this approach is old-fashion.. what would be a new approach..
Program a component in Flash and compile it as a SWC ? or what ?

Thanks so much !





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

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

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




Re: [flexcoders] How to integrate Flash and Flex well done ?

2006-06-19 Thread Pan Troglodytes



Here's what the help says:Embedding SWF files for Flash Player 8 and earlier 
You can embed SWF files created for Flash Player 8 and earlier. When 
embedded, your Flex 2.0 application cannot interact with the embedded SWF file. 
That is, you cannot use ActionScript in a Flex 2.0 application to access the 
properties or methods of a SWF file created for Flash Player 8 or earlier.NOTE You can use the flash.net.LocalConnection class to communicate between a Flex 
2.0 application and a SWF file created for Flash Player 8 or earlier.This is from Flex 2.0 Developer's Guide  Flex Programming Topics  Embedding Assets  Embedding asset types.
On 6/19/06, roberto.rosenthal [EMAIL PROTECTED] wrote:









  



Hi all, I just joined this group.. and so far I'm delited with Flex
but I wonder this...

I've spend so much time developing with Flash to aproach RIA that I
would like to know how can I integrate something done already with
Flash in Flex. Hopefully someone can help me do something like this:

a) I have a Flash movie that behaves like an aplication with it's own
buttons, actions, components, datagrids, etc.
b) I want to embed this application within a new Flex application and
have them talk to each other... meaning to trigger actions, bind
variables, etc.

If this approach is old-fashion.. what would be a new approach..
Program a component in Flash and compile it as a SWC ? or what ?

Thanks so much !


  













-- Jason

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] Flex2b3 NetConnection.connect arguments

2006-06-19 Thread Peter Farland





Add the following line (where the ObjectEncoding class is in the 
flash.net package along with NetConnection):


nc.objectEncoding = 
ObjectEncoding.AMF0;

In 
ActionScript 3.0, the default object encoding for NetConnection is AMF 3, 
however FMS2 uses the legacy AMF 0.




From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of David 
ClarkSent: Monday, June 19, 2006 3:29 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Flex2b3 
NetConnection.connect arguments


Hi,Trying to connect from Flex to FMS2 using NetConnection passing an 
object argument. Any object type arguments seem to be ignored...I have 
existing Flash to FMS code that works something like this:nc = new 
NetConnection();nc.connect("rtmp://localhost/ComponentTest", {name:"test", 
data:"foobar"});on the server side you can 
then:application. obj){ 
 trace(obj); trace(obj.name); 
trace(obj.data);etc...but now from Flex any arguments other than 
String or Number type get skipped over, I receive the arguments before them and 
ones after but not those ones, 
ie:connect("rtmp://localhost/ComponentTest", "aaa", {bbb:"bbb"}, "ccc"); 
with on the server sideonConnect(client, one, two, 
three){gives metwo = "ccc"three = 
undefinedI have tried other ways of delaring the object (just in case 
this particular one is not correct). Originally I was trying to pass an instance 
of a class that I created. That is wen I found tat I could not even pass a 
simple Object. The docs still indicate that the arguments parameters can 
be of any type. Anyone else trying to use FMS with Flex and done this or seen 
this problem?Thanks.-- david"Many people 
die at twenty five and aren't buried until they are seventy five". - 
Benjamin Franklin 
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] bug in chart.itemDoubleClick/itemMouseUp?

2006-06-19 Thread Ely Greenfield







try setting the 'doubleClickEnabled' flag on the chart to 
true.

Ely.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Pan 
TroglodytesSent: Monday, June 19, 2006 11:24 AMTo: 
flexcodersSubject: [flexcoders] bug in 
chart.itemDoubleClick/itemMouseUp?


Using the example given for the help topic "Handling user interactions with 
charts" works fine:?xml version="1.0"?mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"mx:Script![CDATA[import mx.controls.Alert;import mx.charts.events.ChartItemEvent;[Bindable]public var dataSet:Object = [{Month: "Jan", Expenses: 1500},
{Month: "Feb", Expenses: 200},{Month: "Mar", Expenses: 500}];public function myListener(e:ChartItemEvent):void {Alert.show("Chart data was clicked");
}]]/mx:Scriptmx:ColumnChart id="chart" itemClick="myListener(event)" dataProvider="{dataSet}"mx:horizontalAxis
mx:CategoryAxis dataProvider="{dataSet}" categoryField="Month"//mx:horizontalAxismx:seriesmx:Arraymx:ColumnSeries yField="Expenses"/
/mx:Array/mx:series/mx:ColumnChart/mx:ApplicationHowever, 
if you change "itemClick" to "itemDoubleClick", it does not seem to work. 
Same goes for "itemMouseUp."-- Jason 

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] adding zoom effect to datagrid row

2006-06-19 Thread Pan Troglodytes



I'm having a real time trying to get a rolloverEffect to work on a datagrid. What I want is for the text to zoom a little bit when rolled over. Here's my code:
?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute mx:ArrayCollection id=dataSet
 mx:source mx:Objectmx:MonthJanuary/mx:Monthmx:Costs20/mx:Costs/mx:Object mx:Objectmx:MonthFebruary/mx:Monthmx:Costs60/mx:Costs/mx:Object
 mx:Objectmx:MonthMarch/mx:Monthmx:Costs90/mx:Costs/mx:Object /mx:source /mx:ArrayCollection mx:Zoom id=zoomIn zoomWidthTo=2 zoomHeightTo=2 /
 mx:Zoom id=zoomOut zoomWidthTo=1 zoomHeightTo=1 / mx:DataGrid id=grid dataProvider={dataSet} width=100% height=100%
 mx:columns mx:DataGridColumn mx:itemRenderer mx:Component mx:VBox mx:Text text=some text width=100% rollOverEffect=zoomIn rollOutEffect=zoomOut/
 /mx:VBox /mx:Component /mx:itemRenderer  /mx:DataGridColumn  mx:DataGridColumn dataField=Month/ mx:DataGridColumn dataField=Costs/
 /mx:columns /mx:DataGrid/mx:ApplicationBut the effect never happens. I've tried a lot of different variations with no luck.-- Jason


__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



  1   2   >