Re: [flexcoders] Problems Binding E4X to Datagrid after converting to Array Collection

2008-07-07 Thread Josh McDonald
You want to make it an ArrayCollection of typed objects along the lines of:

[Bindable]
public class NewsItem
{
public var newsId:Number;
public var newsDate:Date;
public var newsTitle:String;
}

And for each node in your xml you would

var tmp:NewsItem = new NewsItem();
tmp.newsId = xmlNode.newsId;
tmp.newsDate = myDateConversionFunction(xmlNode.mewsDate);
tmp.newsTitle = xmlNode.newsTitle;
myCollection.addItem(tmp);

-Josh

On Fri, Jul 4, 2008 at 9:50 PM, andrewhopkins888 
[EMAIL PROTECTED] wrote:

  I can load the arrayCollection data into a list, but cannot format the
 dataGrid.

 Do I have to format the columns in the datagrid to specific nodes.

 Any pointers in the right direction, from anyone will make my day.

 Main MXML file:

 http://www.flex4you.co.uk/e4x/application.xml

 XML File:

 http://www.flex4you.co.uk/e4x/news.xml



 Thanks [image: :)]
 




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Re: Caringorm Event

2008-07-07 Thread Tom Chiverton
I knew you were going to say that :-)

 What, you've foresaken ESP? :))

 -TH

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

 wrote:
  On Wednesday 02 Jul 2008, [EMAIL PROTECTED] wrote:
   hi every i facing problem while re-dispatching Caringorm event. i

 have

  ...
 
   problem here is code for my event class..
 
  You forgot to say what the problem was.
 
  --
  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 Halliwells LLP, 3 Hardman Square, Spinningfields,
 Manchester, M3 3EB. A list of members is available for inspection at the
 registered office. Any reference to a partner in relation to Halliwells
 LLP means a member of Halliwells LLP. Regulated by The Solicitors
 Regulation Authority.

  CONFIDENTIALITY
 
  This email is intended only for the use of the addressee named above

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

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



-- 
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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: RTE on DragManager when using Window component

2008-07-07 Thread Josef Gordon
I have found a solution!!!
I needed to use both DragManager and DragManagerImpl inside my Air
application. 
I found someone who rewrote SystemManager.as and DragManager.as in
mx.managers.

http://www.flexjunk.com/category/monkeypatch/



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

 Hi,
 Please help!!!
 
 I am running an Air project (mx:Application) under Windows XP. 
 I have the following piece of code on one of my components:
 
 DragManager.doDrag(this, dragSource,
 event,_dragableImage,-event.localX,-event.localY);  
 
 It works perfectly, but when i initiate in another component a Window
 class, i get a runtime exception.
 ArgumentError: Error #2004: One of the parameters is invalid.
   at flash.utils::ByteArray/writeObject()
   at flash.desktop::Clipboard/putSerialization()
   at flash.desktop::Clipboard/convertFlashFormat()
   at flash.desktop::Clipboard/setData()
   at

mx.managers::NativeDragManagerImpl/doDrag()[E:\dev\3.0.x\frameworks\projects\airframework\src\mx\managers\NativeDragManagerImpl.as:249]
   at

mx.managers::DragManager$/doDrag()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\DragManager.as:241]
   at

com.mailvision.components::DragableCanvas/doMouseMove()[E:\dev\projects\Maestro\src\com\mailvision\components\DragableCanvas.as:72]
 
 I followed the debugger trail and found out that when i use the Window
 class, when the application starts, it initiates the _impl class on
 DragManager with the NativeDragManagerImpl and not the DragManagerImpl
 as was without the Window class.
 
 Does anyone know what am i doing wrong here or is it a bug? I have
 searched for Jira issues but didn't find any.
 
 Thanks,
 Josef





Re: [flexcoders] What is best way to get data from MySQL database?

2008-07-07 Thread Alan
I' read the same about the speed also, but aparrently the new webORB  
3.0 has been made all fancy pants fast.  WebORB claims it is 300%  
faster.but I'm guessing that now it's as fast as AMFPHP.


Also the idea that a team of people are on it now.  AMFPHP has been at  
1.9 for something like a year? WHo knows if the guy who claimed to  
have taken it over will actually do anything.


FOr starting out, I'd go with the one that seems to have a more likely  
future.


Alan




On Jul 7, 2008, at 12:20 AM, dnk wrote:

Yeah it does look better to the new person.  Apparently amfphp is  
faster from what I have read on the net(but maybe this gap is  
closing?) for larger data sets.



I have found I can get an AMFPHP result with less code (from the  
tutorials I looked at).


But it is all preference. I don't use the code generators, so that  
is not a large factor for me).


d



On 6-Jul-08, at 6:57 PM, Alan wrote:

Thanks, I've been tinkering around with AMFPHP all yesterday some  
today.  I've checking out WebORB since this afternon.



So far I prefer WebORB.  Mostly cause I'm new and the documentation  
is insanely better.  Plus the service browser for WebORB is  
tremendously better, I can manger my MySQL database, generate  
codeand this is stuff I just got into in the last hour.










[flexcoders] TextInput as item renderer for ComboBox

2008-07-07 Thread chandruflex
How is mx.controls.TextInput control used as an item renderer for
mx.controls.ComboBox control?



Re: [flexcoders] tutorial video controls

2008-07-07 Thread Simon Bailey
I am unawar of the tutorial but if its a standard player using  
NetConnection and NetStream:


Either use ns.pause() or ns.togglePause() with ns being your instance  
of NetStream.


Cheers

Simon

newtriks.com

On 7 Jul 2008, at 05:33, [EMAIL PROTECTED] wrote:

In the tutorials that is on the first example links from Flex Builder 3,
I cannot find a way to pause the video. How do I pause, please ?





[flexcoders] displaying images in flex

2008-07-07 Thread nitishdhar

how to browse an image from the local system and display it in flex
-- 
View this message in context: 
http://www.nabble.com/displaying-images-in-flex-tp18310336p18310336.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] BlazeDS SOAP Basic authentication

2008-07-07 Thread Jeremy Anderson
Nevermind...I figured out that I need to set the remote credentials before
calling loadWsdl();

Now if I could just get the logout() function to behave.

--Jeremy

On Sat, Jul 5, 2008 at 4:04 PM, Jeremy Anderson [EMAIL PROTECTED]
wrote:

   I have a SOAP Web Service that I'm trying to connect to that requires
 Basic authentication. Here's the code that I'm calling in my .mxml
 application:

 private function callService():void {

 var xplannerSvc:WebService = new WebService();
 xplannerSvc.destination = xplanner;
 xplannerSvc.showBusyCursor = true;
 xplannerSvc.useProxy = true;

 xplannerSvc.getPerson.addEventListener(ResultEvent.RESULT, onResult);
 xplannerSvc.addEventListener(FaultEvent.FAULT,
 showFault);
 xplannerSvc.loadWSDL();
 xplannerSvc.setRemoteCredentials(jeremy, jeremy);
 xplannerSvc.getPerson(221);

 }

 and my destination in the proxy-config.xml:

 destination id=xplanner
 properties

 wsdlhttp://localhost:8080/xplanner/soap/XPlanner?wsdl/wsdl
 soaphttp://localhost:8080/xplanner/soap/XPlanner/soap
 /properties
 adapter ref=soap-proxy/
 /destination

 Whenever I call the callService() function, I get a HTTP 401
 unauthorized. If I specify the remote-username and remote-password
 in my proxy-config.xml it works as expected. Any ideas on how to get
 this to work?

 Regards,
 Jeremy

  



[flexcoders] Item renderers cause processor to max out

2008-07-07 Thread Tom McNeer
Hi,

I began asking about this problem last week and Alex Harui tried to help me.
But I did such a bad job of explaining my problem, I don't think he quite
understood the issue.

Also, I've done a lot more work over the weekend, stepping through the
debugger. And my problem is a bit different than I first thought, anyway.

My application allows users to create multiple sets of product
configurations. Within each configuration, there are multiple products, each
with a possibility of multiple options.

Thus, within a Configuration object, there is an itemAC that is a collection
of product objects. Within each Item/Product object, there is an optionArray
which holds Option objects. The optionArray cannot be an arrayCollection,
because the Product objects are VOs populated from a RemoteObject, and need
to match the signature of a matching object on the server.

When the user wishes to view the contents of a Configuration, the itemAC
(with its collection of Products) becomes the dataProvider of a DataGrid:

   mx:DataGrid dataProvider={config.itemAC} id=configProducts
variableRowHeight=true width=80% updateComplete=setGridHeight(event) 
mx:columns
mx:DataGridColumn dataField=quantity
headerText=Quantity /
mx:DataGridColumn dataField=category
headerText=Category /
mx:DataGridColumn dataField=name headerText=Product
wordWrap=true /
mx:DataGridColumn headerText=Options wordWrap=true
itemRenderer=views.OptionList /
/mx:columns
/mx:DataGrid

However - one cell within the DataGrid needs to display a list of options.
The user should see these options as a comma-delimited list, essentially,
not a Flex List element or anything like that. So I have created an
itemRenderer for the Options column which has a simple function that creates
the list from the optionArray in the Product which is represented by a row
in the DataGrid:

   public function setOptionList(options:Array):void{
optionList = ;
for (var i:int = 0;ioptions.length;i++){
if (options.length  1  i != 0){
optionList = optionList + ', ';
}
optionList += options[i].optionItem;
}
}

Since a user may be adding options to a product at any time, the option list
must update as an option is added.
I have tried providing the update in various ways. Currently, I am
overriding the set data function for the itemRenderer component:

override public function set data(value:Object):void{
if (value != null){
super.data = value;
setOptionList(value.options)
}
dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
}

The symptom of my problem is that once a few products are added, the
processor pegs and stays there.

My debugging walkthrough has led to find that as products are added (with or
without options), extra instances of the itemRenderer component seem to be
generated, and the setOptionList function (triggered by set data) is called
over and over.

On the first product added, (with an empty option array), two separate
instances of the itemRenderer component seem to be created. The
setOptionList function is called three times, showing two unique identifiers
for views.OptionList components. The function is called on the first
instance (a), then the second (b), then the first again: a,b,a.

When I add a second product (also with an empty option array, the
setOptionList function is called 14 times. I can see another instance of
views.OptionList (c). The setOptionList calls go:
b,b,a,a,b,c,b,c,a,a,b,c,a,a.

Adding a third product results in 22 calls to the function, on 4 instances.
The calls go: b,c,b,b,a,a,a,b,c,d,b,c,d,a,a,a,b,c,d,a,a,a.

Can anyone help me understand what's up with all this proliferation?


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] ComboBox Problems

2008-07-07 Thread hardaur55
Hey all.

Having a silly problem with 3 comboboxes and can't seem to find
anything very helpful via google.

I'm creating a user registration wizard with multiple pages that
contains a custom component.  The custom component is a date selection
component consisting of 3 combo boxes (month, day, year).  They are
all populated with simple arrays as the dataProvider.

Every thing works perfectly except. . .If you select your date (DOB in
this case) and go back to a previous page in the wizard when you
return to the page with the DOB control, the comboboxes are showing
the prompt again.  The selectedIndex/Item !IS! correct, it's just not
displaying the that correct value.  They're not being reinstantiated, etc.

I've tried firing off CHANGE and RENDER events on the comboboxes but
nothing (programatically) will force them to show the value they have
for selectedIndex that I've been able to find.

Anybody have any pointers on this one?  Seems silly to me that the
default behavior wouldn't be to always show the current selectedIndex
*shrug*.

Thanks!

Gerald




[flexcoders] Re: question for the sample code for BlazeDS?

2008-07-07 Thread markflex2007
Hi Fidel,

Thank you for help.

I have a question about the source code.why all the source code have 
to be zipped?Do I have to zip my code with the zipped file if I need 
develope a new application with BlazeDS?

Thanks a lot

Mark

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

 On Sat, Jul 5, 2008 at 2:17 AM, markflex2007 [EMAIL PROTECTED] 
wrote:
  Hi,
 
  I install BlazeDS turnkey.the samples work fine now.
 
  I see the sample web root is 
D:\blazeDS\tomcat\webapps\samples.but I
  only can see the swf and html files.
 
 Hi Mark,
 
 They are found under D:\blazeDS\tomcat\webapps\samples\WEB-INF\flex-
src.
 
 I have looked all over the folders until I found them. It just took 
a
 little bit of patience.
 
 Fidel.





Re: [flexcoders] FB3 standalone doesn't find Eclipse plugin

2008-07-07 Thread Tom Chiverton
On Friday 04 Jul 2008, maximecowez wrote:
 plugin for years on all flavors of Eclipse (Europe, Aptana, CFEclipse,
 PDT, ...). But the FB standalone version just won't use it.

Probably missing a dependency.

-- 
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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



Re: [flexcoders] Flex Builder Debug Issue

2008-07-07 Thread Tom Chiverton
On Thursday 03 Jul 2008, jonese wrote:
 Still looking for anyone who can help fix this issue

Firewall in the way ?


-- 
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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



Re: [flexcoders] SWFObject example

2008-07-07 Thread Tom Chiverton
On Thursday 03 Jul 2008, Richard Rodseth wrote:
 Can anyone please point me at a SWFObject 2 example wrapper with a
 header, footer, and Flex app that resizes to fill the browser window
 (except for the header/footer of course). No browser scrollbars.

They've got many on their site, alone with an AIR application to generate the 
wrapper for you.

-- 
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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



Re: [flexcoders] Have doubt on Remote Object

2008-07-07 Thread Tom Chiverton
On Saturday 05 Jul 2008, satishedara wrote:
 with out AMF can we use remote call to
 connect the java?

Yes, but not using AMF - you can connect to a normal web service, or make 
REST-type AJAX calls instead.

-- 
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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Channelset disconnectAll problem, urgent, thanks!

2008-07-07 Thread icykorpio
hello everyone,

i create a ChannelSet and add a AMFChannel to it. and attach to some 
remoteobjects.

when i'm making some requests from those remoteobject, i call 
disconnectAll to interrupt the process(because user can cancel it), but 
the problem is : after i call disconnectAll on ChannelSet, i can't make 
call again on those remoteobjects, simply doesn't work, remoteObjects 
don't send any thing out and no fault return.

any suggestion?

regards
icykorpio





Re: [flexcoders] Item renderers cause processor to max out

2008-07-07 Thread Ralf Bokelberg
Hi Tom

Have you trid using a labelFunction instead of the item renderer?

Kind regards,
Ralf

On Mon, Jul 7, 2008 at 3:37 PM, Tom McNeer [EMAIL PROTECTED] wrote:
 Hi,

 I began asking about this problem last week and Alex Harui tried to help me.
 But I did such a bad job of explaining my problem, I don't think he quite
 understood the issue.

 Also, I've done a lot more work over the weekend, stepping through the
 debugger. And my problem is a bit different than I first thought, anyway.

 My application allows users to create multiple sets of product
 configurations. Within each configuration, there are multiple products, each
 with a possibility of multiple options.

 Thus, within a Configuration object, there is an itemAC that is a collection
 of product objects. Within each Item/Product object, there is an optionArray
 which holds Option objects. The optionArray cannot be an arrayCollection,
 because the Product objects are VOs populated from a RemoteObject, and need
 to match the signature of a matching object on the server.

 When the user wishes to view the contents of a Configuration, the itemAC
 (with its collection of Products) becomes the dataProvider of a DataGrid:

mx:DataGrid dataProvider={config.itemAC} id=configProducts
 variableRowHeight=true width=80% updateComplete=setGridHeight(event) 
 mx:columns
 mx:DataGridColumn dataField=quantity
 headerText=Quantity /
 mx:DataGridColumn dataField=category
 headerText=Category /
 mx:DataGridColumn dataField=name headerText=Product
 wordWrap=true /
 mx:DataGridColumn headerText=Options wordWrap=true
 itemRenderer=views.OptionList /
 /mx:columns
 /mx:DataGrid

 However - one cell within the DataGrid needs to display a list of options.
 The user should see these options as a comma-delimited list, essentially,
 not a Flex List element or anything like that. So I have created an
 itemRenderer for the Options column which has a simple function that creates
 the list from the optionArray in the Product which is represented by a row
 in the DataGrid:

public function setOptionList(options:Array):void{
 optionList = ;
 for (var i:int = 0;ioptions.length;i++){
 if (options.length  1  i != 0){
 optionList = optionList + ', ';
 }
 optionList += options[i].optionItem;
 }
 }

 Since a user may be adding options to a product at any time, the option list
 must update as an option is added.
 I have tried providing the update in various ways. Currently, I am
 overriding the set data function for the itemRenderer component:

 override public function set data(value:Object):void{
 if (value != null){
 super.data = value;
 setOptionList(value.options)
 }
 dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
 }

 The symptom of my problem is that once a few products are added, the
 processor pegs and stays there.

 My debugging walkthrough has led to find that as products are added (with or
 without options), extra instances of the itemRenderer component seem to be
 generated, and the setOptionList function (triggered by set data) is called
 over and over.

 On the first product added, (with an empty option array), two separate
 instances of the itemRenderer component seem to be created. The
 setOptionList function is called three times, showing two unique identifiers
 for views.OptionList components. The function is called on the first
 instance (a), then the second (b), then the first again: a,b,a.

 When I add a second product (also with an empty option array, the
 setOptionList function is called 14 times. I can see another instance of
 views.OptionList (c). The setOptionList calls go:
 b,b,a,a,b,c,b,c,a,a,b,c,a,a.

 Adding a third product results in 22 calls to the function, on 4 instances.
 The calls go: b,c,b,b,a,a,a,b,c,d,b,c,d,a,a,a,b,c,d,a,a,a.

 Can anyone help me understand what's up with all this proliferation?


 --
 Thanks,

 Tom

 Tom McNeer
 MediumCool
 http://www.mediumcool.com
 1735 Johnson Road NE
 Atlanta, GA 30306
 404.589.0560

 


Re: [flexcoders] Item renderers cause processor to max out

2008-07-07 Thread Tom McNeer
Hi Ralf,

Thanks for your reply.

On Mon, Jul 7, 2008 at 10:25 AM, Ralf Bokelberg [EMAIL PROTECTED]
wrote:

   Have you trid using a labelFunction instead of the item renderer?



I'm not sure how I could do that. Perhaps you could help me understand.
While the labelFunction could certainly render the text, an event still
needs to fire when the optionArray changes, in order to re-render the text
correctly.

Wouldn't it?

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Re: Caringorm Event

2008-07-07 Thread Tim Hoff
Too funny.

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

 I knew you were going to say that :-)

  What, you've foresaken ESP? :))
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@
 
  wrote:
   On Wednesday 02 Jul 2008, parjan@ wrote:
hi every i facing problem while re-dispatching Caringorm event.
i
 
  have
 
   ...
  
problem here is code for my event class..
  
   You forgot to say what the problem was.
  
   --
   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 Halliwells LLP, 3 Hardman Square,
Spinningfields,
  Manchester, M3 3EB. A list of members is available for inspection at
the
  registered office. Any reference to a partner in relation to
Halliwells
  LLP means a member of Halliwells LLP. Regulated by The Solicitors
  Regulation Authority.
 
   CONFIDENTIALITY
  
   This email is intended only for the use of the addressee named
above
 
  and may be confidential or legally privileged. If you are not the
  addressee you must not read it and must not use any information
  contained in nor copy it nor inform any person other than Halliwells
LLP
  or the addressee of its existence or contents. If you have received
this
  email in error please delete it and notify Halliwells LLP IT
Department
  on 0870 365 2500.
 
   For more information about Halliwells LLP visit
www.halliwells.com.



 --
 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 Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB. A list of members is available for inspection at the
registered office. Any reference to a partner in relation to Halliwells
LLP means a member of Halliwells LLP. Regulated by The Solicitors
Regulation Authority.

 CONFIDENTIALITY

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

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





[flexcoders] Re: Item renderers cause processor to max out

2008-07-07 Thread Tim Hoff

Hi Tom,

What are you doing with this event in set data?

dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));

It's a loop.

-TH

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

 Hi,

 I began asking about this problem last week and Alex Harui tried to
help me.
 But I did such a bad job of explaining my problem, I don't think he
quite
 understood the issue.

 Also, I've done a lot more work over the weekend, stepping through the
 debugger. And my problem is a bit different than I first thought,
anyway.

 My application allows users to create multiple sets of product
 configurations. Within each configuration, there are multiple
products, each
 with a possibility of multiple options.

 Thus, within a Configuration object, there is an itemAC that is a
collection
 of product objects. Within each Item/Product object, there is an
optionArray
 which holds Option objects. The optionArray cannot be an
arrayCollection,
 because the Product objects are VOs populated from a RemoteObject, and
need
 to match the signature of a matching object on the server.

 When the user wishes to view the contents of a Configuration, the
itemAC
 (with its collection of Products) becomes the dataProvider of a
DataGrid:

 mx:DataGrid dataProvider={config.itemAC} id=configProducts
 variableRowHeight=true width=80%
updateComplete=setGridHeight(event) 
 mx:columns
 mx:DataGridColumn dataField=quantity
 headerText=Quantity /
 mx:DataGridColumn dataField=category
 headerText=Category /
 mx:DataGridColumn dataField=name headerText=Product
 wordWrap=true /
 mx:DataGridColumn headerText=Options wordWrap=true
 itemRenderer=views.OptionList /
 /mx:columns
 /mx:DataGrid

 However - one cell within the DataGrid needs to display a list of
options.
 The user should see these options as a comma-delimited list,
essentially,
 not a Flex List element or anything like that. So I have created an
 itemRenderer for the Options column which has a simple function that
creates
 the list from the optionArray in the Product which is represented by a
row
 in the DataGrid:

 public function setOptionList(options:Array):void{
 optionList = ;
 for (var i:int = 0;ioptions.length;i++){
 if (options.length  1  i != 0){
 optionList = optionList + ', ';
 }
 optionList += options[i].optionItem;
 }
 }

 Since a user may be adding options to a product at any time, the
option list
 must update as an option is added.
 I have tried providing the update in various ways. Currently, I am
 overriding the set data function for the itemRenderer component:

 override public function set data(value:Object):void{
 if (value != null){
 super.data = value;
 setOptionList(value.options)
 }
 dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
 }

 The symptom of my problem is that once a few products are added, the
 processor pegs and stays there.

 My debugging walkthrough has led to find that as products are added
(with or
 without options), extra instances of the itemRenderer component seem
to be
 generated, and the setOptionList function (triggered by set data) is
called
 over and over.

 On the first product added, (with an empty option array), two separate
 instances of the itemRenderer component seem to be created. The
 setOptionList function is called three times, showing two unique
identifiers
 for views.OptionList components. The function is called on the first
 instance (a), then the second (b), then the first again: a,b,a.

 When I add a second product (also with an empty option array, the
 setOptionList function is called 14 times. I can see another instance
of
 views.OptionList (c). The setOptionList calls go:
 b,b,a,a,b,c,b,c,a,a,b,c,a,a.

 Adding a third product results in 22 calls to the function, on 4
instances.
 The calls go: b,c,b,b,a,a,a,b,c,d,b,c,d,a,a,a,b,c,d,a,a,a.

 Can anyone help me understand what's up with all this proliferation?


 --
 Thanks,

 Tom

 Tom McNeer
 MediumCool
 http://www.mediumcool.com
 1735 Johnson Road NE
 Atlanta, GA 30306
 404.589.0560





[flexcoders] Print Preview, figuring out just how to do it.

2008-07-07 Thread bredwards358
Thankfully, the basic printing functionality of Flex was all I needed
to print out the very basic looking reports I need for my application.
However, another requirement is adding Print Preview functionality. So
far in my experimentation I've managed to display what should be on
the report by opening up at least the first page in a window as seen
in this code:

private function printPreview():void
{
 var thePrintView:FormPrintView = new FormPrintView();
 var preWindow:Window = new Window();
 preWindow.title = Print Preview;
 preWindow.width = 800;
 preWindow.height = 600;
 preWindow.addChild(thePrintView);
 thePrintView.width = preWindow.width;
 thePrintView.height = preWindow.height;
 thePrintView.prodTotal = prodTotal;
 thePrintView.myDataGrid.dataProvider = myDataGrid.dataProvider;
 preWindow.open();
}

Very basic but is really only good for showing the first page though I
believe I can allow for the displaying of multiple pages if I can
figure that out. Then comes the task of getting rid of the lines in
the print data grid and sizing the window properly.

Now, I am aware of the marvelous looking FlexReport at
http://www.kemelyon.com/bts/, however I am at a loss as how to
install it so to speak (Meaning I have no idea what files and
components I need to copy over in order to use it).

Any hints or points in the right direction are very much welcome.
Thanks in advance,

Brian Ross Edwards
Tech-Connect LLC



Re: [flexcoders] Print Preview, figuring out just how to do it.

2008-07-07 Thread Tom Chiverton
On Monday 07 Jul 2008, bredwards358 wrote:
 Now, I am aware of the marvelous looking FlexReport at
 http://www.kemelyon.com/bts/, however I am at a loss as how to
 install it so to speak (Meaning I have no idea what files and
 components I need to copy over in order to use it).

Ummm, from http://www.kemelyon.com/bts/2008/02/02/flexreport-update-2/
 please checkout the sources using svn in 
googlecode[http://code.google.com/p/flexreport/]  ?

-- 
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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: Missing AsnDecoder Class - SOLVED

2008-07-07 Thread Geoffrey
I was missing the flex-messaging-req.jar.

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

 Odd, the AsnDecoder class isn't listed in the online LCDS Java API. 
 Maybe they didn't release this class.
 
 I can't seem to find any info about this class online.
 
 Jeeze, what the heck did I do?
 
 Geoff
 
 --- In flexcoders@yahoogroups.com, Geoffrey gtb104@ wrote:
 
  I seem to have the wrong version of the flex-messaging jar because
  when I start my server I get the spew below.  I looked at all the
  flex-messaging jars on my system and I don't see it anywhere.  All
  copies have the same manifest of:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Created-By: 1.5.0_11-b03 (Sun Microsystems Inc.)
Sealed: false
Implementation-Title: LiveCycle Data Services 2.5.1
Implementation-Version: 2.5.1.173666
Implementation-Vendor: Adobe Systems Inc.
  
  Any ideas?
  
  Jul 2, 2008 10:32:27 AM
org.apache.catalina.core.ApplicationContext log
  SEVERE: StandardWrapper.Throwable
  java.lang.NoClassDefFoundError: flex/messaging/license/AsnDecoder
  at
 flex.messaging.license.StandardLicense.init(StandardLicense.java:50)
  at
 

flex.messaging.license.LicenseServiceImpl.validateLicense(LicenseServiceImpl.java:250)
  at
 

flex.messaging.license.LicenseServiceImpl.init(LicenseServiceImpl.java:296)
  at
 

flex.messaging.MessageBrokerServlet.buildLicenseService(MessageBrokerServlet.java:274)
  at
 
flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:117)
  at
 

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
  at
 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
  at
 

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
  at
 

org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
  at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
  at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
  at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
  at
 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
  at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
  Jul 2, 2008 10:32:27 AM org.apache.catalina.core.StandardContext
  loadOnStartup
  SEVERE: Servlet /air-lcds threw load() exception
  java.lang.NoClassDefFoundError: flex/messaging/license/AsnDecoder
  at
 flex.messaging.license.StandardLicense.init(StandardLicense.java:50)
  at
 

flex.messaging.license.LicenseServiceImpl.validateLicense(LicenseServiceImpl.java:250)
  at
 

flex.messaging.license.LicenseServiceImpl.init(LicenseServiceImpl.java:296)
  at
 

flex.messaging.MessageBrokerServlet.buildLicenseService(MessageBrokerServlet.java:274)
  at
 
flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:117)
  at
 

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
  at
 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
  at
 

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
  at
 

org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
  at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
  at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
  at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
  at
 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
  at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
  Jul 2, 2008 10:32:27 AM 

Re: [flexcoders] Help: Project location problems - Newbie issue

2008-07-07 Thread Tom Chiverton
On Monday 30 Jun 2008, brucewhealton wrote:
   I then thought, ok, I need to select FileNewFlex Project
 This was not without problems as well.  I was not allowed to define
 the project using the same folder as before as it claimed that there
 was an overlap with an existing project.

Move the files aside, create the project in Builder, copy the files back.

Or use the 'import project' menu item.

-- 
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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Binding for Dynamic Datagrid

2008-07-07 Thread limhy0306
Hi,

I've created a custom Dynamic Datagrid component. I would like to 
ask, how can I bind data to this DG?

My codes:

// Data to the datagrid. This data is dynamically changing.
[Bindable]
public var myData:ArrayCollection();

public var myDG:MyDG;

// Called when creationComplete
private function init()
{
   myDG = new MyDG();
   myDG.createDataGrid();   // Create the datagrid
   myDG.dataProvider = myData;  //Would this bind the data?
   this.addChild(myDG);
}


I've noticed that when myData changed, myDG is not updated. In fact, 
the set data() function of the ItemRenderer used in myDG is not 
being called when I call myData.refresh().

Is it the problem that I am not binding myDG correctly?


Thank you.





Re: [flexcoders] Flex Builder Debug Issue

2008-07-07 Thread jonese
I'm running this all from localhost

windows XP Pro, built in IIS.

jonese
http://www.jonese.us
http://twitter.com/jonese


On Mon, Jul 7, 2008 at 10:06 AM, Tom Chiverton
[EMAIL PROTECTED] wrote:
 On Thursday 03 Jul 2008, jonese wrote:
 Still looking for anyone who can help fix this issue

 Firewall in the way ?


 --
 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 
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
 of members is available for inspection at the registered office. Any 
 reference to a partner in relation to Halliwells LLP means a member of 
 Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

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

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

 

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






[flexcoders] Setting HTTP headers on mx.controls.Image?

2008-07-07 Thread Robert Csiki

Is it possible to set HTTP headers (e.g.  a cookie) when requesting a
JPG from the network with an mx.controls.Image?

Thanks, Robert



Re: [flexcoders] Flex Builder Debug Issue

2008-07-07 Thread jonese
i've also uninstalled in reinstalled flex builder today. still no joy.
next i'll uninstall flash players, flex builder and let flex builder
install the player and see if that works

jonese
http://www.jonese.us
http://twitter.com/jonese


On Mon, Jul 7, 2008 at 11:23 AM, jonese [EMAIL PROTECTED] wrote:
 I'm running this all from localhost

 windows XP Pro, built in IIS.

 jonese
 http://www.jonese.us
 http://twitter.com/jonese


 On Mon, Jul 7, 2008 at 10:06 AM, Tom Chiverton
 [EMAIL PROTECTED] wrote:
 On Thursday 03 Jul 2008, jonese wrote:
 Still looking for anyone who can help fix this issue

 Firewall in the way ?


 --
 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 
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A 
 list of members is available for inspection at the registered office. Any 
 reference to a partner in relation to Halliwells LLP means a member of 
 Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

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

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

 

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







Re: [flexcoders] Flex Builder Debug Issue

2008-07-07 Thread Tom Chiverton
On Monday 07 Jul 2008, jonese wrote:
 I'm running this all from localhost

Doesn't stop a software firewall from getting in the way.

-- 
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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: Print Preview, figuring out just how to do it.

2008-07-07 Thread bredwards358
Of course, Subversion, I haven't used that since my last Java class
back in school, I just need to figure out how to use it again. :P That
should help quite a bit once I get it downloaded and figure out what
component goes where. Thanks.

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

 On Monday 07 Jul 2008, bredwards358 wrote:
  Now, I am aware of the marvelous looking FlexReport at
  http://www.kemelyon.com/bts/, however I am at a loss as how to
  install it so to speak (Meaning I have no idea what files and
  components I need to copy over in order to use it).
 
 Ummm, from http://www.kemelyon.com/bts/2008/02/02/flexreport-update-2/
  please checkout the sources using svn in 
 googlecode[http://code.google.com/p/flexreport/]  ?
 
 -- 
 Tom Chiverton
 




[flexcoders] BlazeDS application to AIR?

2008-07-07 Thread markflex2007
Hi,

I have a Flex/BlazeDS/Webservice application.Do you think if it is
possible I can convert it to Air application .Thanks.

Do you have a reference URL so I can follow the steps.I am so new for
AIR.Thanks

Mark



Re: [flexcoders] Have doubt on Remote Object

2008-07-07 Thread Fidel Viegas
On Mon, Jul 7, 2008 at 3:20 PM, Tom Chiverton
[EMAIL PROTECTED] wrote:
 On Saturday 05 Jul 2008, satishedara wrote:
 with out AMF can we use remote call to
 connect the java?

 Yes, but not using AMF - you can connect to a normal web service, or make
 REST-type AJAX calls instead.

Or use the Hessian protocol, which are binary web services. Here is
the link: http://hessian.caucho.com/

Fidel.


Re: [flexcoders] Re: Item renderers cause processor to max out

2008-07-07 Thread Tom McNeer
Hi Tim,

Thanks for the reply.

On Mon, Jul 7, 2008 at 10:54 AM, Tim Hoff [EMAIL PROTECTED] wrote:

What are you doing with this event in set data?

 dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));

 It's a loop.








You're absolutely correct, of course. Unfortunately, my error was NOT
dispatching that event, but rather including that line in the code I sent in
my post.

In the actual code, that line is commented out (it came from an earlier
attempt). Yet I still seem to be generating a loop somewhere.

Thanks for catching it though. It made the post even more confusing.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


Re: [flexcoders] Binding for Dynamic Datagrid

2008-07-07 Thread Simon Bailey

myDG.dataProvider={ myData }

On 7 Jul 2008, at 16:26, limhy0306 wrote:

Hi,

I've created a custom Dynamic Datagrid component. I would like to
ask, how can I bind data to this DG?

My codes:

// Data to the datagrid. This data is dynamically changing.
[Bindable]
public var myData:ArrayCollection();

public var myDG:MyDG;

// Called when creationComplete
private function init()
{
myDG = new MyDG();
myDG.createDataGrid(); // Create the datagrid
myDG.dataProvider = myData; //Would this bind the data?
this.addChild(myDG);
}

I've noticed that when myData changed, myDG is not updated. In fact,
the set data() function of the ItemRenderer used in myDG is not
being called when I call myData.refresh().

Is it the problem that I am not binding myDG correctly?

Thank you.






Re: [flexcoders] Passing value's from C to Actionscript?

2008-07-07 Thread Tom Chiverton
On Friday 04 Jul 2008, Flex Frenzy wrote:
 Any resources on passing values from C to Flex/Air?

Where is the C program running, and where is the Flex/AIR client running ?
If the same machine, you could use a shared folder, or a simple socket server.

-- 
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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



Re: [flexcoders] Automatically granting local trust in Flex Builder 3

2008-07-07 Thread Tom Chiverton
On Thursday 03 Jul 2008, Stephen Downs wrote:
 I thought Flex Builder 3 was supposed to automatically grant local
 trust to all swfs when debugging. That's what I'm trying to do, but
 I'm finding that all swfs are by default set to the local-with-network
 sandbox.

I just add '--use-network=false' to the compiler arguments.

-- 
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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: Item renderers cause processor to max out

2008-07-07 Thread Tim Hoff

Ok, that makes sense.  One other thing that might be contributing is:

updateComplete=setGridHeight(event)

You might want to try:

valueCommit=setGridHeight(event)

instead.  Good luck Tom,

-TH

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

 Hi Tim,

 Thanks for the reply.

 On Mon, Jul 7, 2008 at 10:54 AM, Tim Hoff [EMAIL PROTECTED] wrote:

  What are you doing with this event in set data?
 
  dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
 
  It's a loop.
 







 You're absolutely correct, of course. Unfortunately, my error was NOT
 dispatching that event, but rather including that line in the code I
sent in
 my post.

 In the actual code, that line is commented out (it came from an
earlier
 attempt). Yet I still seem to be generating a loop somewhere.

 Thanks for catching it though. It made the post even more confusing.

 --
 Thanks,

 Tom

 Tom McNeer
 MediumCool
 http://www.mediumcool.com
 1735 Johnson Road NE
 Atlanta, GA 30306
 404.589.0560





RE: [flexcoders] ComboBox Problems

2008-07-07 Thread Alex Harui
How are you verifying that selectedIndex is correct?  I assume the
dropdowns still contain the correct arrays?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hardaur55
Sent: Monday, July 07, 2008 6:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox Problems

 

Hey all.

Having a silly problem with 3 comboboxes and can't seem to find
anything very helpful via google.

I'm creating a user registration wizard with multiple pages that
contains a custom component. The custom component is a date selection
component consisting of 3 combo boxes (month, day, year). They are
all populated with simple arrays as the dataProvider.

Every thing works perfectly except. . .If you select your date (DOB in
this case) and go back to a previous page in the wizard when you
return to the page with the DOB control, the comboboxes are showing
the prompt again. The selectedIndex/Item !IS! correct, it's just not
displaying the that correct value. They're not being reinstantiated,
etc.

I've tried firing off CHANGE and RENDER events on the comboboxes but
nothing (programatically) will force them to show the value they have
for selectedIndex that I've been able to find.

Anybody have any pointers on this one? Seems silly to me that the
default behavior wouldn't be to always show the current selectedIndex
*shrug*.

Thanks!

Gerald

 



Re: [flexcoders] Flex Builder Debug Issue

2008-07-07 Thread Sherif Abdou
ESET anti-virus/NOD 32 blocks out the flash port. if you have it then it will 
not work.



- Original Message 
From: jonese [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, July 7, 2008 10:23:31 AM
Subject: Re: [flexcoders] Flex Builder Debug Issue


I'm running this all from localhost

windows XP Pro, built in IIS.

jonese
http://www.jonese. us
http://twitter. com/jonese

On Mon, Jul 7, 2008 at 10:06 AM, Tom Chiverton
tom.chiverton@ halliwells. com wrote:
 On Thursday 03 Jul 2008, jonese wrote:
 Still looking for anyone who can help fix this issue

 Firewall in the way ?


 --
 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 
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
 of members is available for inspection at the registered office. Any 
 reference to a partner in relation to Halliwells LLP means a member of 
 Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

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

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

  - - --

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







  

RE: [flexcoders] displaying images in flex

2008-07-07 Thread Alex Harui
Use AIR?  Flash can't get to the local file system other than to upload
a file to your server.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nitishdhar
Sent: Sunday, July 06, 2008 11:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] displaying images in flex

 


how to browse an image from the local system and display it in flex
-- 
View this message in context:
http://www.nabble.com/displaying-images-in-flex-tp18310336p18310336.html
http://www.nabble.com/displaying-images-in-flex-tp18310336p18310336.htm
l 
Sent from the FlexCoders mailing list archive at Nabble.com.

 



RE: [flexcoders] TextInput as item renderer for ComboBox

2008-07-07 Thread Alex Harui
It is only in the display field.  It is not the renderer for the
dropdown.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of chandruflex
Sent: Sunday, July 06, 2008 10:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TextInput as item renderer for ComboBox

 

How is mx.controls.TextInput control used as an item renderer for
mx.controls.ComboBox control?

 



[flexcoders] Question: need flex to read text files on another server and display in textArea

2008-07-07 Thread Body Works Studio
Hello All,

I need to make a pop up that will display the contents of a text file.
I want to use a text Area as the file is read only. What is the best
way to get Flex to access and read the file on the other server. The
file contents are currently ascii text files.

Any help would be much appreciated.

Thanks for your time

Jeff



RE: [flexcoders] Re: Problem Adding Custom Event Listeners in a component?

2008-07-07 Thread Alex Harui
In general, you have to be listening to the object that is dispatching.
If you use bubble or capture, you can listen to parents if they are
display objects.

 

3 siblings would need to know about each other and listen to each other.
Having them register with a central object that dispatches on their
behalf or they dispatch from might be better.  That's how
RadioButton/RadioButtonGroup work.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pbrendanc
Sent: Sunday, July 06, 2008 4:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problem Adding Custom Event Listeners in a
component?

 

I think I need some additional clarification here as I'm not sure why
this is not OK- (I expect the button to respond to the custom event
regardless of who dispatched this event).

Imagine 3 buttons in a grid: B1, B2,B3. Clicking on any button and
updates the appearance (e.g. label color) of the other 2 buttons (i.e.
everyone else but the clicked button). Do this w/out any hard coding 
the names in click events etc. - each button gets a list of dependent
btn ID's - if you are on the list update yourself, otherwise ignore.

What I need to do here is to have the containing (parent??) form
intercept (override?) the button click event, perform some preprocessing
(e.g. build a list) and forward this list by dispatching a custom event
. (In the example below you can see that clicking a button affects
other buttons.

Where I'm stuck is on how best to setup the listeners ,and intercept
the parent button click event. Per my previous message the custom
handler on the button is never triggered.

(Maybe I'm missing the wood for the tree's here - however it's a good
exercise that will solidify my understanding of the Flex event model)

TIA,
Patrick

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

 Hard to say from the code snippets, but it looks like your button is
 listening for addItemEvent on itself, but it is the app that is
 dispatching



 

 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
]
On
 Behalf Of pbrendanc
 Sent: Sunday, July 06, 2008 2:28 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Problem Adding Custom Event Listeners in a
 component?



 I have a custom button on which I want to listen to some custom
 events. For some reason in the following code my custom events are
 never heard/triggered.

 1)In the button's constructor I added the listeners as follows:

 // Custom Class Code
 public class testButton extends Button
 {
 //constructor
 public function testButton {
 addEventListener (MouseEvent.MOUSE_OVER, handleMouseOver);
 // custom event
 addEventListener(addItemEvent, handleAddItemEvent);
 }
 public function handleMouseOver (event:MouseEvent):void {
 // display as a tooltip
 this.toolTip = Say Cheese;

 public function handleAddItemEvent():void {
 // display as a tooltip
 Alert.show (testButton Event: Add Item Event);

 2) Parent Form Code (app.mxml)

 mx:Metadata
 [Event(name=addItemEvent, type = flash.events.Event)]
 /mx:Metadata

 // Code in test button to dispatch custom event
 //
 private function triggerEventHandler():void {
 //Alert.show (Broadcast Event);
 dispatchEvent(new Event(addItemEvent,true));
 }

 This looks like it should work, but only the MouseOver event is ever
 fired - am I missing something obvious?

 TIA
 Patrick


 



RE: [flexcoders] Trick button into rendering mouseover/mouseout states

2008-07-07 Thread Alex Harui
Skin the way you normally do, but set the alpha=0

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dennis Falling
Sent: Sunday, July 06, 2008 12:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Trick button into rendering mouseover/mouseout
states

 

Over an alpha background though just setting their colors won't do it.
I've done skins, but when I want a skin with basically nothing visible,
would that be any different from what I've made?

On Sat, Jul 5, 2008 at 7:25 PM, Alan [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Could you just set the btn color and border to the same color as your
background? Also, have you tried the Photoshop btn skin scripts.  Makes
it real easy to change the btnin fact, id use that...

 

There's a demo on adobe.com to use it, but its so easy you dont really
even need it.

 

https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins
https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins 

 

Alan

 

 

 

 

On Jul 5, 2008, at 8:19 PM, Dennis Falling wrote:





What's the best way to create a border-less button?  I'm trying to pull
it off with flexlib's enhanced button skin but it appears to be ignoring
the font-family I set.  Basically I just want a button that has text and
an icon and these will change color on mouseover.  No border/backgrounds
should ever be visible.

http://dl.getdropbox.com/u/15760/replay.png
http://dl.getdropbox.com/u/15760/replay.png 

 

 

 



[flexcoders] Re: FB3 standalone doesn't find Eclipse plugin

2008-07-07 Thread maximecowez
What a comment of just 4 words can do...
It turns out FB standalone only partially implements JDT (Java
Developer Tools), so I downloaded the libs and there's my VSS plugin.

Thanks Tom
Max

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

 On Friday 04 Jul 2008, maximecowez wrote:
  plugin for years on all flavors of Eclipse (Europe, Aptana, CFEclipse,
  PDT, ...). But the FB standalone version just won't use it.
 
 Probably missing a dependency.
 
 -- 
 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 Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] Variable scope

2008-07-07 Thread markgoldin_2000
I am having some strange (for me) results when I run my program. Here 
are some parts of the code:

My DG declaraton. Note ContextMenuSelected.
public class TrainReceivingGrid extends destinationGrid
{
[Bindable]
private var cm:ContextMenu;
private var lastRollOverIndex:int;
public var addToPlan:Boolean = true;
public var ContextMenuSelected:Boolean = false;
public function TrainReceivingGrid()
{
super();
var cmi1:ContextMenuItem = new ContextMenuItem
(Add to Train Plan);
cmi1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, 
contextMenuHandler);
var cmi2:ContextMenuItem = new ContextMenuItem
(Remove from Train Plan);
cmi2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, 
contextMenuHandler);
cm = new ContextMenu();
cm.hideBuiltInItems();
cm.customItems = [cmi1, cmi2];
cm.addEventListener
(ContextMenuEvent.MENU_SELECT, contextMenuSelectHandler);
contextMenu = cm;
..
private function contextMenuHandler(e:ContextMenuEvent):void
{
if (e.currentTarget.caption == Remove from Train 
Plan)
addToPlan = false;
else
{
addToPlan = true;
}
ContextMenuSelected = true;
var ScrollTrains:HBox = HBox(parent.parent);
var train:VBox = new VBox();
for (var y:int=0;yScrollTrains.getChildren
().length;y++)
{
var train = VBox
(ScrollTrains.getChildAt(y));
DataGrid(train.getChildAt
(3)).selectedIndex = selectedIndex;
DataGrid(train.getChildAt
(3)).dataProvider[selectedIndex].trainplan = addToPlan;
}
}
In the code above I have set ContextMenuSelected = true.

But in here:
override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth, 
unscaledHeight);
var grid1:DataGrid = DataGrid(DataGridListData
(listData).owner);
if (grid1.name.indexOf(TrainReceivingGrid) !
= -1)
//  TrainReceivingGrid
(grid1).ContextMenuSelected)
if (grid1.isItemSelected(data))
{
g = graphics;
if (data.trainplan == true)
{
g.clear();
g.beginFill(0xCC0033);
g.drawRect(0, 0, 
unscaledWidth, unscaledHeight + 1);
g.endFill();
}
else
{
//if 
(TrainReceivingGrid(grid1).addToPlan == false)
{
g.clear();
}   
}
}   
}
ContextMenuSelected is going to be true for one grid only. Or, in 
another words, for one iteration of the FOR loop in 
contextMenuHandler function.

Any idea, why? Hopefully my sample makes any sence.

Thanks for help.



[flexcoders] flex2gateway Error

2008-07-07 Thread Sherif Abdou
I have been trying to fix this error for almost 12 hours, now the problem is 
everything works fine on my own computer but when I move it to a live server i 
get
Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 
'http://mysitename.com/flex2gateway/cfamfpolling'. Now when i go to 
http://mysitename.com/flex2gateway/ I get a 404 error which is not suppose to 
happen. I have Coldfusion Remoting turned on. I am using ColdFusion 8.0.1, 
Apache 2.2,Red Hat Linux. Is this a Flex problem or a Coldfusion Problem and if 
so does anyone know how to fix it. Thanks.


  

[flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-07 Thread Tim Hoff

Doesn't work if you want to keep the button icons visible.  Wouldn't
this also affect embedded fonts?

-TH

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

 Skin the way you normally do, but set the alpha=0



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of Dennis Falling
 Sent: Sunday, July 06, 2008 12:43 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Trick button into rendering
mouseover/mouseout
 states



 Over an alpha background though just setting their colors won't do it.
 I've done skins, but when I want a skin with basically nothing
visible,
 would that be any different from what I've made?

 On Sat, Jul 5, 2008 at 7:25 PM, Alan [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote:

 Could you just set the btn color and border to the same color as your
 background? Also, have you tried the Photoshop btn skin scripts. Makes
 it real easy to change the btnin fact, id use that...



 There's a demo on adobe.com to use it, but its so easy you dont really
 even need it.



 https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins
 https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins



 Alan









 On Jul 5, 2008, at 8:19 PM, Dennis Falling wrote:





 What's the best way to create a border-less button? I'm trying to pull
 it off with flexlib's enhanced button skin but it appears to be
ignoring
 the font-family I set. Basically I just want a button that has text
and
 an icon and these will change color on mouseover. No
border/backgrounds
 should ever be visible.

 http://dl.getdropbox.com/u/15760/replay.png
 http://dl.getdropbox.com/u/15760/replay.png






Re: [flexcoders] Re: Item renderers cause processor to max out

2008-07-07 Thread Tom McNeer
Hi Tim,

Thanks again for your help. But ...

On Mon, Jul 7, 2008 at 12:03 PM, Tim Hoff [EMAIL PROTECTED] wrote:

   Ok, that makes sense.  One other thing that might be contributing is:

 updateComplete=setGridHeight(event)

 You might want to try:

 valueCommit=setGridHeight(event)










I removed any call to setGridHeight completely, but the loop persists.

Any other thoughts? Anyone?



-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Creating a hyperlink mailto in advanced data grid

2008-07-07 Thread Adrian Williams

Hi All,

   I am using an advanced data grid to display a variety of data, one 
of which is a users email address.  I'd like to be able to set it up so 
that for any given row in the report, the email addresses are actually 
hyperlinks to open a mailto: that address.  How do I do this?


Thanks,
Adrian


Re: [flexcoders] SWFObject example

2008-07-07 Thread Richard Rodseth
Hi Tom

None that I've found, that include a header and footer area outside of
the 100% SWF. I guess this is somewhat off-topic, and I've joined the
SWFObject mailing list, where I got the following advice:


- when your top header and footer do need to be in HTML, you should
use JavaScript (fixed positioning doesn't work in IE 6 and lower, I
believe) to determine your available Flash viewport height, and scale
the div that a 100%-100% embedded Flash movie is in accordingly, using
the same principles as: http://hossgifford.com/resizer/


But I thought this must be a pretty common scenario for Flex
developers who would understand why I want to get the hell back to my
happy Flex world and away from browser incompatibility hell :)

- Richard


On Mon, Jul 7, 2008 at 7:19 AM, Tom Chiverton
[EMAIL PROTECTED] wrote:
 On Thursday 03 Jul 2008, Richard Rodseth wrote:
 Can anyone please point me at a SWFObject 2 example wrapper with a
 header, footer, and Flex app that resizes to fill the browser window
 (except for the header/footer of course). No browser scrollbars.

 They've got many on their site, alone with an AIR application to generate the
 wrapper for you.

 --
 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 
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
 of members is available for inspection at the registered office. Any 
 reference to a partner in relation to Halliwells LLP means a member of 
 Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

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

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

 

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






RE: [flexcoders] Re: Item renderers cause processor to max out

2008-07-07 Thread Tracy Spratt
If you are just displaying a comma delimited list in a non-editable
cell, then labelFunction is the way to go.

 

If you *use the dataProvider API* to update the item, it will cause the
labelFunction to run and re-display the new values.

 

Also, if you find the loop and stay with the itemRenderer, use the set
data() method to store your data in a variable and call
invalidatePropdrties(), then do the work in commitProperties().  Set
data() gets called often, but commitProperties is optimized.

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Hoff
Sent: Monday, July 07, 2008 12:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Item renderers cause processor to max out

 

Ok, that makes sense.  One other thing that might be contributing is:

updateComplete=setGridHeight(event) 

You might want to try:

valueCommit=setGridHeight(event) 

instead.  Good luck Tom,

-TH

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

 Hi Tim,
 
 Thanks for the reply.
 
 On Mon, Jul 7, 2008 at 10:54 AM, Tim Hoff [EMAIL PROTECTED] wrote:
 
  What are you doing with this event in set data?
 
  dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
 
  It's a loop.
 
 
 
 
 
 
 
 
 You're absolutely correct, of course. Unfortunately, my error was NOT
 dispatching that event, but rather including that line in the code I
sent in
 my post.
 
 In the actual code, that line is commented out (it came from an
earlier
 attempt). Yet I still seem to be generating a loop somewhere.
 
 Thanks for catching it though. It made the post even more confusing.
 
 -- 
 Thanks,
 
 Tom
 
 Tom McNeer
 MediumCool
 http://www.mediumcool.com
 1735 Johnson Road NE
 Atlanta, GA 30306
 404.589.0560


 



Re: [flexcoders] flex2gateway Error

2008-07-07 Thread João Fernandes

Sherif,

can you try to point it directly to the cfserver port instead apache 
port 80? http://mysitename.
com:{CFServerPortNumber}/flex2gateway/cfamfpolling and see if it throws 
the same error?

--

João Fernandes

http://www.onflexwithcf.org
http://www.riapt.org
Portugal Adobe User Group (http://aug.riapt.org)



Re: [flexcoders] flex2gateway Error

2008-07-07 Thread Sherif Abdou
How do I know what the CFServerPortNumber is? THanks



- Original Message 
From: João Fernandes [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, July 7, 2008 12:11:19 PM
Subject: Re: [flexcoders] flex2gateway Error


Sherif,

can you try to point it directly to the cfserver port instead apache
port 80? http://mysitename. 
com:{CFServerPortNu mber}/flex2gatew ay /cfamfpolling and
see if it throws the same error? 

-- 

João Fernandes

http://www.onflexwi thcf.org
http://www.riapt. org
Portugal Adobe User Group (http://aug.riapt. org)



  

RE: [flexcoders] Creating a hyperlink mailto in advanced data grid

2008-07-07 Thread Tracy Spratt
There are several ways to do this.  One way is to create an itemRenderer
using htmlText. htmlText can include an a href= / tag.  You can have
the click dispatch a bubbling TextEvent, and in the handler, access the
dataProvider item via the event.currentTarget property, and use the url
to build your mailto url, and navigateToURL to laouch the browser.

 

There will be examples of all of this if you look a bit.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Adrian Williams
Sent: Monday, July 07, 2008 1:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Creating a hyperlink mailto in advanced data grid

 

Hi All,

I am using an advanced data grid to display a variety of data, one
of which is a users email address.  I'd like to be able to set it up so
that for any given row in the report, the email addresses are actually
hyperlinks to open a mailto: that address.  How do I do this?

Thanks,
Adrian

 



RE: [flexcoders] ComboBox Problems

2008-07-07 Thread Tracy Spratt
Implement the wizard using a ViewStack.  The control states will not
change when you navigate around.

 

Or just set the comboBox selectedIndex on show or some other event.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hardaur55
Sent: Monday, July 07, 2008 9:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox Problems

 

Hey all.

Having a silly problem with 3 comboboxes and can't seem to find
anything very helpful via google.

I'm creating a user registration wizard with multiple pages that
contains a custom component. The custom component is a date selection
component consisting of 3 combo boxes (month, day, year). They are
all populated with simple arrays as the dataProvider.

Every thing works perfectly except. . .If you select your date (DOB in
this case) and go back to a previous page in the wizard when you
return to the page with the DOB control, the comboboxes are showing
the prompt again. The selectedIndex/Item !IS! correct, it's just not
displaying the that correct value. They're not being reinstantiated,
etc.

I've tried firing off CHANGE and RENDER events on the comboboxes but
nothing (programatically) will force them to show the value they have
for selectedIndex that I've been able to find.

Anybody have any pointers on this one? Seems silly to me that the
default behavior wouldn't be to always show the current selectedIndex
*shrug*.

Thanks!

Gerald

 



RE: [flexcoders] Re: Data binding in item renderers

2008-07-07 Thread Tracy Spratt
Also, you must use the dataProvider API to update the item, in order for
the collection to dispatch the events necessary to update the UI.  There
is also an itemUpdated() method, and several other techniques for
causing the UI to refresh.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Sunday, July 06, 2008 11:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Data binding in item renderers

 

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

 Hi,
 
 I use custom item renderer in hierarchical advanced datagrid. In the
 item renderer, I need some data from the parent node, so in children
 property of dataprovider I set an attribute id which refers to the
 id of parent node. In the item renderer I just loop the original
 dataprovider and find the node with specified id (given through
 children property).
 
 Now the question is, how to resolve data binding? When I change some
 data in original dataprovider, the item renderer does not show
 immediately the changes, only after parent node is collapsed and
 expanded again.


You can cast HierarchicalData to HierarchicalCollectionView for the 
purposes of being able to use getParentIteem().

What are you doing in the itemRenderer that is supposed to be showing 
the change?

 



RE: [flexcoders] Re: Translate HTTPService

2008-07-07 Thread Tracy Spratt
Loop over the item in your data, and in the loop, create a new value
object, assign the property values from your current data item, and push
the value object onto an Array.  After the loop, wrap the Array in an
ArrayCollection.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jovialrandor
Sent: Sunday, July 06, 2008 9:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Translate HTTPService

 

I want to convert the data I get back from an HTTPService into name/
value pairs as listed in the object below.

eg. 

HTTPService returns

[a, john, analyst ]
[b, mary, programmer ]
[c, jane, director ...]

convert to 

a:john
b:mary
c:jane

Let me know if i need to clarify futher.

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

 On Sun, Jul 6, 2008 at 8:51 PM, jovialrandor [EMAIL PROTECTED] 
wrote:
  I have an HTTPService call that returns values.
 
  How do I convert to the following object format?
 
  private var inputTable2:Object =
  {
 
  Nevada:John Smith,
  Northern California:Jane Smith,
  Southern California:Al Gore,
  France:Europe,
  USA:workss
 
  };
 
 Hi Jovial,
 
 You have to be clear on what you want to do when you ask questions
 here. What exactly are you trying to do? You want to convert the 
above
 to what exactly? Are you trying to send those as parameters to your
 HTTPService?
 
 You have to be more clear on what you are trying to achieve so that
 people here will be able to help you.
 
 Fidel.


 



Re: [flexcoders] flex2gateway Error

2008-07-07 Thread Sherif Abdou
Actually, I tried it and no i still get a 404 page Error and it doesnt connect.



- Original Message 
From: Sherif Abdou [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, July 7, 2008 12:14:03 PM
Subject: Re: [flexcoders] flex2gateway Error


How do I know what the CFServerPortNumber is? THanks



- Original Message 
From: João Fernandes joaopedromartinsfer [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Monday, July 7, 2008 12:11:19 PM
Subject: Re: [flexcoders] flex2gateway Error


Sherif,

can you try to point it directly to the cfserver port instead apache
port 80? http://mysitename. 
com:{CFServerPortNu mber}/flex2gatew ay /cfamfpolling and
see if it throws the same error? 

-- 

João Fernandes

http://www.onflexwi thcf.org
http://www.riapt. org
Portugal Adobe User Group (http://aug.riapt. org)




  

RE: [flexcoders] I am looking for flex property file?

2008-07-07 Thread Tracy Spratt
I set site/instance specific values using the html wrapper to pass
values into the flex app using flashvars.  So a single, compiled
application can service many instances.

 

I also believe however, that a db connection string should not be
compiled into the client app, especially if it includes
username/password.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Hayes
Sent: Friday, July 04, 2008 2:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] I am looking for flex property file?

 

Check out Localizing Flex Applications in the documentation, it should
tell you all you need to know.
Although, the resource files do get compiled into the application (as I
understand it, anyone who knows otherwise please do correct me), 
so maybe it's not quite what you need in this instance. 
I'm not entirely sure that a database connection string is best placed
in the client either, for that matter!

-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
on behalf of Hasan Maqbool
Sent: Fri 04/07/2008 07:28
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ;
[EMAIL PROTECTED] mailto:singlepoint%40gmail.com 
Subject: [flexcoders] I am looking for flex property file?

Hey techies,
Actually, I need to set some global urls which are subject to change.
So, I
can't hard code them in the application. I want to get these urls from
some
property file just like the standard procedure in other frameworks like
.net. But I can't find any property file for flex yet. Let me tell you
the
exact problem,
I have some database connection string, and obviously I can't put it in
the
code as it is subject to change. So, how can I manage my database
connection
string. I am using flex as front end and my backend is ruby on rails. My
DAL
(Data access layer is tatally xml based). Can anybody tell me how to
incarporate this connection string in a global project property file and
then retrieve that string from action script?

Thanks in advance.

-- 
Muhammad Hasan Maqbool
Software Engineer
Techlogix Pakistan (Pvt) Limited
+92-321-6690881

__
This communication is from Primal Pictures Ltd., a company registered in
England and Wales with registration No. 02622298 and registered office:
4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W
5PA, UK. VAT registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read,
copied and used only by the intended recipient. If you have received it
in error, please contact the sender immediately by return e-mail or by
telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not
disclose its contents to any person.
This email has been scanned for Primal Pictures by the MessageLabs Email
Security System.
__

 



[flexcoders] Re: Item renderers cause processor to max out

2008-07-07 Thread Amy
--- In flexcoders@yahoogroups.com, Tom McNeer [EMAIL PROTECTED] wrote:

 Hi Tim,
 
 Thanks again for your help. But ...
 
 On Mon, Jul 7, 2008 at 12:03 PM, Tim Hoff [EMAIL PROTECTED] wrote:
 
Ok, that makes sense.  One other thing that might be 
contributing is:
 
  updateComplete=setGridHeight(event)
 
  You might want to try:
 
  valueCommit=setGridHeight(event)
 
 
 
 
 
 
 
 
 
 
 I removed any call to setGridHeight completely, but the loop 
persists.
 
 Any other thoughts? Anyone?


I know this isn't going to be popular advice, but my experience is 
that the List Base controls do a lot of stuff under the covers that 
is only documented in about 4 peoples' heads.  Unless you're dealing 
with huge data sets, you may find that switching to a repeater saves 
you a lot of headaches.  I have a rule that if I ask on here for 3 
days with no solution, I switch to a repeater, since I am typically 
not working with large data sets.

I think that some of the extra calls you're getting to your function 
are the invisible controls that get built for scrolling purposes.

HTH;

Amy



[flexcoders] loading attributes in a flex custom tag

2008-07-07 Thread Fernando Wermus
Hi all!
 I have a custom component made by myself. I have to asign the values
from the tag's attributes to some object when they are being created in the
constructor custom component time. The problem is that Flex doesn't load the
attributes when it calls the the constructor and therefore I cant
constructor the component. I hope you understand.

Thanks!

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus
http://mientretiempo.blogspot.com/


RE: [flexcoders] How to trigger the faulthandler of a httpservice

2008-07-07 Thread Tracy Spratt
Return invalid xml.

 

But, why would you want that?  Save the fault handler for exceptions you
cannot control, like network failure.

 

I wrap all of my data in a consistently formatted status node, that
contains any exception data I need on the client.  The result handlers
look at the status attribute and respond accordingly.  I return this
status node for all calls, and it is especially useful for calls that
update the back-end,but do not need to return any special data.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of max.bruchmann
Sent: Friday, July 04, 2008 9:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to trigger the faulthandler of a httpservice

 

Hi,
Is it possible to trigger the fault handler of httpservice from the
server. 
I'm using php on the backend and in case some database connection
error occurs I want to send this to the fault handler.
Is this possible or should I use the resulthandler with some if else
statement

thanks in advance
cheers
max

 



RE: [flexcoders] Datagrid - Connect to multiple tables

2008-07-07 Thread Tracy Spratt
How far have you gotten?  Are you successfully displaying the values
from a single table?  Are you using one of the RPC protocols?  Which?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of cox.blair
Sent: Friday, July 04, 2008 6:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid - Connect to multiple tables

 

I can't seem to find information on having a datagrid connect to
multiple tables. Ultimately I would like to be able to use multiple
select statements. Is it possible? Could you point me in the direction
of some samples?

Thanks,

 



[flexcoders] Question for mx:RemoteObject?

2008-07-07 Thread markflex2007
Hi,

I just want to make sure if I have to save swf/html (created by Flex) 
and backed end code in same web server when I use mx:RemoteObject to 
do the backend access.

But I can save swf/html and backend code in different server when I use 
web service.

Thanks

Mark



RE: [flexcoders] loading attributes in a flex custom tag

2008-07-07 Thread Tracy Spratt
Don't set them in the constructor, implement them as public properties.
If variables, make the [Bindable], or use getter/setter methods for full
control.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Fernando Wermus
Sent: Monday, July 07, 2008 1:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] loading attributes in a flex custom tag

 

Hi all!

 I have a custom component made by myself. I have to asign the
values from the tag's attributes to some object when they are being
created in the constructor custom component time. The problem is that
Flex doesn't load the attributes when it calls the the constructor and
therefore I cant constructor the component. I hope you understand.

 

Thanks!

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus
http://www.linkedin.com/in/fernandowermus 
http://mientretiempo.blogspot.com/ http://mientretiempo.blogspot.com/


 



Re: [flexcoders] Flex Builder Debug Issue

2008-07-07 Thread jonese
we have symantec anti virus running on our corporate network and it
has been running like this from day one.

I've completely blown away my eclipse 3.3.x installation. downloaded a
new copy of eclipse 3.3.2 and installed that. Then re-ran the FB3
installer.

everything installs fine. code runs fine will talk to my CF Server
etc. BUT the debugging will not connect.

is there something maybe in IIS that could have gotten messed up

jonese
http://www.jonese.us
http://twitter.com/jonese


On Mon, Jul 7, 2008 at 12:23 PM, Sherif Abdou [EMAIL PROTECTED] wrote:
 ESET anti-virus/NOD 32 blocks out the flash port. if you have it then it
 will not work.


[flexcoders] rails gateway

2008-07-07 Thread [p e r c e p t i c o n]
Hi Folks,
is there a remoting gateway for Rails or django?
you know like amfphp...etc...

thanks
percy


[flexcoders] Re: Problem Adding Custom Event Listeners in a component?

2008-07-07 Thread pbrendanc
Thx - I think I get it now - the  default dispatcher works only for 
parents /child relationships of graphics objects only. If objects are
external (e.g. siblings, non visual  etc.) a custom dispatcher than
maintains a list of related components via some registration mechanism
is required. I assume the best place to perform such registration  would
be in the  constructor of my custom class. (I assume this is how
Cairngorm and other frameworks are managing inter  object/component
communication).

Thx for setting me straight here. FWIW this is part of a game board demo
I'm putting together and it could be the basis for a useful
demo/tutorial on to share with others - any suggestions on where to post
this type of example (I don't currently maintain a web site or blog).?

Thx again
Patrick

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

 In general, you have to be listening to the object that is
dispatching.
 If you use bubble or capture, you can listen to parents if they are
 display objects.



 3 siblings would need to know about each other and listen to each
other.
 Having them register with a central object that dispatches on their
 behalf or they dispatch from might be better.  That's how
 RadioButton/RadioButtonGroup work.



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of pbrendanc
 Sent: Sunday, July 06, 2008 4:29 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Problem Adding Custom Event Listeners in a
 component?



 I think I need some additional clarification here as I'm not sure why
 this is not OK- (I expect the button to respond to the custom event
 regardless of who dispatched this event).

 Imagine 3 buttons in a grid: B1, B2,B3. Clicking on any button and
 updates the appearance (e.g. label color) of the other 2 buttons (i.e.
 everyone else but the clicked button). Do this w/out any hard coding
 the names in click events etc. - each button gets a list of dependent
 btn ID's - if you are on the list update yourself, otherwise ignore.

 What I need to do here is to have the containing (parent??) form
 intercept (override?) the button click event, perform some
preprocessing
 (e.g. build a list) and forward this list by dispatching a custom
event
 . (In the example below you can see that clicking a button affects
 other buttons.

 Where I'm stuck is on how best to setup the listeners ,and intercept
 the parent button click event. Per my previous message the custom
 handler on the button is never triggered.

 (Maybe I'm missing the wood for the tree's here - however it's a good
 exercise that will solidify my understanding of the Flex event model)

 TIA,
 Patrick

 --- [EMAIL PROTECTED]
mailto:Inflexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  Hard to say from the code snippets, but it looks like your button is
  listening for addItemEvent on itself, but it is the app that is
  dispatching
 
 
 
  
 
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 ]
 On
  Behalf Of pbrendanc
  Sent: Sunday, July 06, 2008 2:28 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Problem Adding Custom Event Listeners in a
  component?
 
 
 
  I have a custom button on which I want to listen to some custom
  events. For some reason in the following code my custom events are
  never heard/triggered.
 
  1)In the button's constructor I added the listeners as follows:
 
  // Custom Class Code
  public class testButton extends Button
  {
  //constructor
  public function testButton {
  addEventListener (MouseEvent.MOUSE_OVER, handleMouseOver);
  // custom event
  addEventListener(addItemEvent, handleAddItemEvent);
  }
  public function handleMouseOver (event:MouseEvent):void {
  // display as a tooltip
  this.toolTip = Say Cheese;
 
  public function handleAddItemEvent():void {
  // display as a tooltip
  Alert.show (testButton Event: Add Item Event);
 
  2) Parent Form Code (app.mxml)
 
  mx:Metadata
  [Event(name=addItemEvent, type = flash.events.Event)]
  /mx:Metadata
 
  // Code in test button to dispatch custom event
  //
  private function triggerEventHandler():void {
  //Alert.show (Broadcast Event);
  dispatchEvent(new Event(addItemEvent,true));
  }
 
  This looks like it should work, but only the MouseOver event is ever
  fired - am I missing something obvious?
 
  TIA
  Patrick
 





Re: [flexcoders] flex2gateway Error

2008-07-07 Thread João Fernandes
check if in your web.xml ( under {cfusionInstance}/WEB-INF/ ) you have 
the flex2gateway mapping listed

!-- Flash Remoting/Flex mapping --
servlet-mapping id=coldfusion_mapping_0
servlet-nameMessageBrokerServlet/servlet-name
url-pattern/flex2gateway/*/url-pattern
/servlet-mapping

-- 

João Fernandes

http://www.onflexwithcf.org
http://www.riapt.org
Portugal Adobe User Group (http://aug.riapt.org)



Re: [flexcoders] What is best way to get data from MySQL database?

2008-07-07 Thread dnk

On 6-Jul-08, at 9:30 PM, Alan wrote:

 I' read the same about the speed also, but aparrently the new webORB  
 3.0 has been made all fancy pants fast.  WebORB claims it is 300%  
 faster.but I'm guessing that now it's as fast as AMFPHP.


 Also the idea that a team of people are on it now.  AMFPHP has been  
 at 1.9 for something like a year? WHo knows if the guy who claimed  
 to have taken it over will actually do anything.

 FOr starting out, I'd go with the one that seems to have a more  
 likely future.

 Alan


Yeah this kind of debate has been going on for some time (speed). So  
it depends which article you read (I read that weborb had moved much  
closer, but had not yet surpassed it). So I really have no idea which  
is correct. Wade (the gentleman who took it over) had been off the  
radar for some time (I believe he is involved with the Essential  
Guide to Open Source Flash book which is where he has been busy), but  
I noticed he posted on his blog about amfphp recently. 
(http://www.wadearnold.com/blog/ 
).

Again, all preference.

d




RE: [flexcoders] rails gateway

2008-07-07 Thread Lukas Ruebbelke
WebORB

 

http://www.themidnightcoders.com/weborb/rubyonrails/

 

I use the .NET version and it is fantastic.  

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [p e r c e p t i c o n]
Sent: Monday, July 07, 2008 11:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] rails gateway

 

Hi Folks,
is there a remoting gateway for Rails or django?
you know like amfphp...etc...

thanks
percy

 



RE: [flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-07 Thread Alex Harui
Interesting.  It should work because the icon and text is not a child of
the skin.  Maybe I don't understand what he wants or what you tried.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Hoff
Sent: Monday, July 07, 2008 10:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Trick button into rendering mouseover/mouseout
states

 


Doesn't work if you want to keep the button icons visible. Wouldn't
this also affect embedded fonts?

-TH

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

 Skin the way you normally do, but set the alpha=0



 

 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
]
On
 Behalf Of Dennis Falling
 Sent: Sunday, July 06, 2008 12:43 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: Re: [flexcoders] Trick button into rendering
mouseover/mouseout
 states



 Over an alpha background though just setting their colors won't do it.
 I've done skins, but when I want a skin with basically nothing
visible,
 would that be any different from what I've made?

 On Sat, Jul 5, 2008 at 7:25 PM, Alan [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote:

 Could you just set the btn color and border to the same color as your
 background? Also, have you tried the Photoshop btn skin scripts. Makes
 it real easy to change the btnin fact, id use that...



 There's a demo on adobe.com to use it, but its so easy you dont really
 even need it.



 https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins
https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins 
 https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins
https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins 



 Alan









 On Jul 5, 2008, at 8:19 PM, Dennis Falling wrote:





 What's the best way to create a border-less button? I'm trying to pull
 it off with flexlib's enhanced button skin but it appears to be
ignoring
 the font-family I set. Basically I just want a button that has text
and
 an icon and these will change color on mouseover. No
border/backgrounds
 should ever be visible.

 http://dl.getdropbox.com/u/15760/replay.png
http://dl.getdropbox.com/u/15760/replay.png 
 http://dl.getdropbox.com/u/15760/replay.png
http://dl.getdropbox.com/u/15760/replay.png 


 



Re: [flexcoders] flex2gateway Error

2008-07-07 Thread Sherif Abdou
Yes I Do. 



- Original Message 
From: João Fernandes [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, July 7, 2008 1:33:26 PM
Subject: Re: [flexcoders] flex2gateway Error


check if in your web.xml ( under {cfusionInstance} /WEB-INF/ ) you have 
the flex2gateway mapping listed

!-- Flash Remoting/Flex mapping --
servlet-mapping id=coldfusion_ mapping_0 
servlet-name MessageBrokerSer vlet/servlet- name
url-pattern /flex2gateway/ */url-pattern
/servlet-mapping

-- 

João Fernandes

http://www.onflexwi thcf.org
http://www.riapt. org
Portugal Adobe User Group (http://aug.riapt. org)




  

[flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-07 Thread nathanpdaniel
I'm not sure but what's the difference between a link button and what 
you're trying to accomplish?  It seems to me what you're looking for 
would be easily accomplished with a little CSS  the LinkButton 
component rather than reskinning the Button component.  

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

 Interesting.  It should work because the icon and text is not a 
child of
 the skin.  Maybe I don't understand what he wants or what you tried.
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Tim Hoff
 Sent: Monday, July 07, 2008 10:02 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Trick button into rendering 
mouseover/mouseout
 states
 
  
 
 
 Doesn't work if you want to keep the button icons visible. Wouldn't
 this also affect embedded fonts?
 
 -TH
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  Skin the way you normally do, but set the alpha=0
 
 
 
  
 
  From: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 ]
 On
  Behalf Of Dennis Falling
  Sent: Sunday, July 06, 2008 12:43 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com 
  Subject: Re: [flexcoders] Trick button into rendering
 mouseover/mouseout
  states
 
 
 
  Over an alpha background though just setting their colors won't 
do it.
  I've done skins, but when I want a skin with basically nothing
 visible,
  would that be any different from what I've made?
 
  On Sat, Jul 5, 2008 at 7:25 PM, Alan ultraky@
  mailto:ultraky@  wrote:
 
  Could you just set the btn color and border to the same color as 
your
  background? Also, have you tried the Photoshop btn skin scripts. 
Makes
  it real easy to change the btnin fact, id use that...
 
 
 
  There's a demo on adobe.com to use it, but its so easy you dont 
really
  even need it.
 
 
 
  https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins
 https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%
5Fskins 
  https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%
5Fskins
 https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%
5Fskins 
 
 
 
  Alan
 
 
 
 
 
 
 
 
 
  On Jul 5, 2008, at 8:19 PM, Dennis Falling wrote:
 
 
 
 
 
  What's the best way to create a border-less button? I'm trying to 
pull
  it off with flexlib's enhanced button skin but it appears to be
 ignoring
  the font-family I set. Basically I just want a button that has 
text
 and
  an icon and these will change color on mouseover. No
 border/backgrounds
  should ever be visible.
 
  http://dl.getdropbox.com/u/15760/replay.png
 http://dl.getdropbox.com/u/15760/replay.png 
  http://dl.getdropbox.com/u/15760/replay.png
 http://dl.getdropbox.com/u/15760/replay.png 
 





[flexcoders] Starting Builder problem

2008-07-07 Thread markgoldin_2000
I am starting Flex Bulder 3 and it's not going. It says: Loading 
project . and a progress bar is not moving. I have waitind for a 
very long time. Anything I can do to rcover from that?

Thanks



Re: [flexcoders] flex2gateway Error

2008-07-07 Thread Sherif Abdou
Do you think PHP is blocking it?



- Original Message 
From: Sherif Abdou [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, July 7, 2008 2:04:31 PM
Subject: Re: [flexcoders] flex2gateway Error


Yes I Do. 



- Original Message 
From: João Fernandes joaopedromartinsfer [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Monday, July 7, 2008 1:33:26 PM
Subject: Re: [flexcoders] flex2gateway Error


check if in your web.xml ( under {cfusionInstance} /WEB-INF/ ) you have 
the flex2gateway mapping listed

!-- Flash Remoting/Flex mapping --
servlet-mapping id=coldfusion_ mapping_0 
servlet-name MessageBrokerSer vlet/servlet- name
url-pattern /flex2gateway/ */url-pattern
/servlet-mapping

-- 

João Fernandes

http://www.onflexwi thcf.org
http://www.riapt. org
Portugal Adobe User Group (http://aug.riapt. org)





  

[flexcoders] Internet Explorer cannot display the webpage

2008-07-07 Thread chuck.searisen
Hi,

When viewing a webpage in IE, I got a pop-up from IE saying something
about Intranet settings, I clicked Yes.  Ever since then I've been
unable to run Flex applications from Flex Builder.

I'm using IE7 and Vista, normally no problems, but I've searched the
internet for any fix and cannot find one that relates to Flex.

I have a stable connection and can display the page with no problems
using Firefox.  But, since Flex Builder defaults to IE (at least I
haven't found a way to change that) I need to get that working, or
clicking run/debug from Flex is permanently broken.



Re: [flexcoders] Flex Builder Debug Issue --- RESOLVED

2008-07-07 Thread jonese
OK the problem was in my browser. I found a closed bug on adobe's bug
tracker talking about how some plugins like greasemonky and FF3 can
cause issues becuase of a bug in FF3. (should be fixed in 3.01).

I didn't have greasemonkey installed so i shut off all my plugins and
tried it again. It worked without issue. So i slowly began turning the
plugins back on and found the culprit for me was the google toolbar.
Great FF3 is fixed.

Did the same thing in IE and the culprit there was the google gears
plugin NOT the google toolbar (interesting)..

I commented on the resolved ticket but who knows if anyone will
actually see that.

Here's the adobe ticket if your interested:
http://bugs.adobe.com/jira/browse/FB-13064

Thanks to all who chimed in and helped out. Guess I'm not joining the
circus today!

jonese
http://www.jonese.us
http://twitter.com/jonese


On Mon, Jul 7, 2008 at 1:38 PM, jonese [EMAIL PROTECTED] wrote:
 we have symantec anti virus running on our corporate network and it
 has been running like this from day one.

 I've completely blown away my eclipse 3.3.x installation. downloaded a
 new copy of eclipse 3.3.2 and installed that. Then re-ran the FB3
 installer.

 everything installs fine. code runs fine will talk to my CF Server
 etc. BUT the debugging will not connect.

 is there something maybe in IIS that could have gotten messed up

 jonese
 http://www.jonese.us
 http://twitter.com/jonese


 On Mon, Jul 7, 2008 at 12:23 PM, Sherif Abdou [EMAIL PROTECTED] wrote:
 ESET anti-virus/NOD 32 blocks out the flash port. if you have it then it
 will not work.



Re: [flexcoders] Re: Item renderers cause processor to max out

2008-07-07 Thread Tom McNeer
To both Tracy and Amy,

Thanks a lot for your advice.

Tracy, I'm pretty new to Flex, so I need to ask you for a little
clarification:

On Mon, Jul 7, 2008 at 1:22 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

 If you **use the dataProvider API** to update the item, it will cause the
 labelFunction to run and re-display the new values.




When you say use the dataProvider API, I assume you mean to use the API of
the arrayCollection which is the dataProvider of the DataGrid, yes?

So after I push the new object into the options array, which is within an
item object, which is within the itemAC ArrayCollection in the
Configuration object, I refresh the itemAC. That would allow the collection
to re-read the contained item objects and their contents, including the
options array(s). The labelFunction would also run, displaying the values.

Is that correct? I'm working on that now, but I'd appreciate your
confirmation (or correction).

Amy -- I guess I'd have to go through much of the same steps in a Repeater
as I'm doing now, but I take your point. Automagic actions are always a
little mysterious.




-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-07 Thread Tim Hoff

Maybe I misunderstood.  You were probably saying, set the skin's alpha
to 0; not the button's alpha.  He just wants the button's icons and
label to show (with rollover changes); no background or border.  Because
the button control is a bit more complicated to programatically skin
than other controls, I was just recommending to use a transparent image
for the skins.  That's the easiest way that I've found.

-TH

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

 Interesting. It should work because the icon and text is not a child
of
 the skin. Maybe I don't understand what he wants or what you tried.



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of Tim Hoff
 Sent: Monday, July 07, 2008 10:02 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Trick button into rendering
mouseover/mouseout
 states




 Doesn't work if you want to keep the button icons visible. Wouldn't
 this also affect embedded fonts?

 -TH

 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  Skin the way you normally do, but set the alpha=0
 
 
 
  
 
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 ]
 On
  Behalf Of Dennis Falling
  Sent: Sunday, July 06, 2008 12:43 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  Subject: Re: [flexcoders] Trick button into rendering
 mouseover/mouseout
  states
 
 
 
  Over an alpha background though just setting their colors won't do
it.
  I've done skins, but when I want a skin with basically nothing
 visible,
  would that be any different from what I've made?
 
  On Sat, Jul 5, 2008 at 7:25 PM, Alan ultraky@
  mailto:ultraky@  wrote:
 
  Could you just set the btn color and border to the same color as
your
  background? Also, have you tried the Photoshop btn skin scripts.
Makes
  it real easy to change the btnin fact, id use that...
 
 
 
  There's a demo on adobe.com to use it, but its so easy you dont
really
  even need it.
 
 
 
  https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins
 https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins
  https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins
 https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins 
 
 
 
  Alan
 
 
 
 
 
 
 
 
 
  On Jul 5, 2008, at 8:19 PM, Dennis Falling wrote:
 
 
 
 
 
  What's the best way to create a border-less button? I'm trying to
pull
  it off with flexlib's enhanced button skin but it appears to be
 ignoring
  the font-family I set. Basically I just want a button that has text
 and
  an icon and these will change color on mouseover. No
 border/backgrounds
  should ever be visible.
 
  http://dl.getdropbox.com/u/15760/replay.png
 http://dl.getdropbox.com/u/15760/replay.png
  http://dl.getdropbox.com/u/15760/replay.png
 http://dl.getdropbox.com/u/15760/replay.png 
 






Re: [flexcoders] loading attributes in a flex custom tag

2008-07-07 Thread Fernando Wermus
What about the order? Flex loads randomly the attributes. I have one called
autoplay that if it is set in true play a song, but first I need Flex sets
the url attribute. How can I manage this?

Thnks

On Mon, Jul 7, 2008 at 10:50 AM, Tracy Spratt [EMAIL PROTECTED] wrote:

Don't set them in the constructor, implement them as public
 properties.  If variables, make the [Bindable], or use getter/setter methods
 for full control.



 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Fernando Wermus
 *Sent:* Monday, July 07, 2008 1:30 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] loading attributes in a flex custom tag



 Hi all!

  I have a custom component made by myself. I have to asign the values
 from the tag's attributes to some object when they are being created in the
 constructor custom component time. The problem is that Flex doesn't load the
 attributes when it calls the the constructor and therefore I cant
 constructor the component. I hope you understand.



 Thanks!

 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus
 http://mientretiempo.blogspot.com/

 




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus
http://mientretiempo.blogspot.com/


RE: [flexcoders] loading attributes in a flex custom tag

2008-07-07 Thread Tracy Spratt
That would be a good candidate for a setter funcion.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Fernando Wermus
Sent: Monday, July 07, 2008 3:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] loading attributes in a flex custom tag

 

What about the order? Flex loads randomly the attributes. I have one
called autoplay that if it is set in true play a song, but first I need
Flex sets the url attribute. How can I manage this?

 

Thnks

On Mon, Jul 7, 2008 at 10:50 AM, Tracy Spratt [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Don't set them in the constructor, implement them as public properties.
If variables, make the [Bindable], or use getter/setter methods for full
control.

 

Tracy

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Fernando Wermus
Sent: Monday, July 07, 2008 1:30 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] loading attributes in a flex custom tag

 

Hi all!

 I have a custom component made by myself. I have to asign the
values from the tag's attributes to some object when they are being
created in the constructor custom component time. The problem is that
Flex doesn't load the attributes when it calls the the constructor and
therefore I cant constructor the component. I hope you understand.

 

Thanks!

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus
http://www.linkedin.com/in/fernandowermus 
http://mientretiempo.blogspot.com/ http://mientretiempo.blogspot.com/





-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus
http://www.linkedin.com/in/fernandowermus 
http://mientretiempo.blogspot.com/ http://mientretiempo.blogspot.com/


 



RE: [flexcoders] Re: Item renderers cause processor to max out

2008-07-07 Thread Tracy Spratt
Do not operate on the underlying Array.  Use the ArrayCollection API,
specifically addItem().  No refreshing is necessary.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom McNeer
Sent: Monday, July 07, 2008 2:10 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Item renderers cause processor to max out

 

To both Tracy and Amy,

Thanks a lot for your advice. 

Tracy, I'm pretty new to Flex, so I need to ask you for a little
clarification:

On Mon, Jul 7, 2008 at 1:22 PM, Tracy Spratt [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

If you *use the dataProvider API* to update the item, it will cause the
labelFunction to run and re-display the new values.




When you say use the dataProvider API, I assume you mean to use the
API of the arrayCollection which is the dataProvider of the DataGrid,
yes?

So after I push the new object into the options array, which is within
an item object, which is within the itemAC ArrayCollection in the
Configuration object, I refresh the itemAC. That would allow the
collection to re-read the contained item objects and their contents,
including the options array(s). The labelFunction would also run,
displaying the values.

Is that correct? I'm working on that now, but I'd appreciate your
confirmation (or correction).

Amy -- I guess I'd have to go through much of the same steps in a
Repeater as I'm doing now, but I take your point. Automagic actions
are always a little mysterious.





-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com http://www.mediumcool.com 
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560 

 



[flexcoders] Re: Starting Builder problem

2008-07-07 Thread markgoldin_2000
It finally started. But now when I try to export Release version I am 
getting an error but no reason. Details show this:

  Encountered errors or warnings while building project 
accidents.mxml.
accidents.mxml: variable 'i' has no type declaration.
accidents.mxml: Duplicate variable definition.
accidents.mxml: Duplicate variable definition.
accidents.mxml: Duplicate variable definition.
accidents.mxml: return value for function 'anonymous' has no type 
declaration.
accidents.mxml: Duplicate variable definition.
  Encountered errors or warnings while building project MainYard.mxml.
MainYard.mxml: variable 'i' has no type declaration.
MainYard.mxml: return value for function 'createNextDataGrid' has 
no type declaration.
MainYard.mxml: Access of undefined property mx.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: variable 'train' has no type declaration.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: return value for function 'anonymous' has no type 
declaration.
MainYard.mxml: Duplicate variable definition.

I dont see any real error though.

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

 I am starting Flex Bulder 3 and it's not going. It says: Loading 
 project . and a progress bar is not moving. I have waitind for 
a 
 very long time. Anything I can do to rcover from that?
 
 Thanks





Re: [flexcoders] loading attributes in a flex custom tag

2008-07-07 Thread Fernando Wermus
I make it work overrading this function, but I don' t know why this is the
convenient way.


updateDisplayList

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

*if*(*this*._autoPlay  *this*.source!=*null*){

*this*.play();

}

}
If autoplay is true and source has the info, then play the music.





On Mon, Jul 7, 2008 at 12:54 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

That would be a good candidate for a setter funcion.

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Fernando Wermus
 *Sent:* Monday, July 07, 2008 3:26 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] loading attributes in a flex custom tag



 What about the order? Flex loads randomly the attributes. I have one called
 autoplay that if it is set in true play a song, but first I need Flex sets
 the url attribute. How can I manage this?



 Thnks

 On Mon, Jul 7, 2008 at 10:50 AM, Tracy Spratt [EMAIL PROTECTED]
 wrote:

 Don't set them in the constructor, implement them as public properties.  If
 variables, make the [Bindable], or use getter/setter methods for full
 control.



 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Fernando Wermus
 *Sent:* Monday, July 07, 2008 1:30 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] loading attributes in a flex custom tag



 Hi all!

  I have a custom component made by myself. I have to asign the values
 from the tag's attributes to some object when they are being created in the
 constructor custom component time. The problem is that Flex doesn't load the
 attributes when it calls the the constructor and therefore I cant
 constructor the component. I hope you understand.



 Thanks!

 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus
 http://mientretiempo.blogspot.com/




 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus
 http://mientretiempo.blogspot.com/

 




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus
http://mientretiempo.blogspot.com/


Re: [flexcoders] Re: Starting Builder problem

2008-07-07 Thread Willy Ci
are u importing flex 1.5 project?
that is maybe why.

Willy

--
maybe today is a good day to write some code,
hold on, late me take a nap first ... Zzzz

Q: How do you spell google?
A: Why don't you google it?
--


On Mon, Jul 7, 2008 at 3:46 PM, markgoldin_2000
[EMAIL PROTECTED] wrote:
 It finally started. But now when I try to export Release version I am
 getting an error but no reason. Details show this:

 Encountered errors or warnings while building project
 accidents.mxml.
 accidents.mxml: variable 'i' has no type declaration.
 accidents.mxml: Duplicate variable definition.
 accidents.mxml: Duplicate variable definition.
 accidents.mxml: Duplicate variable definition.
 accidents.mxml: return value for function 'anonymous' has no type
 declaration.
 accidents.mxml: Duplicate variable definition.
 Encountered errors or warnings while building project MainYard.mxml.
 MainYard.mxml: variable 'i' has no type declaration.
 MainYard.mxml: return value for function 'createNextDataGrid' has
 no type declaration.
 MainYard.mxml: Access of undefined property mx.
 MainYard.mxml: Duplicate variable definition.
 MainYard.mxml: Duplicate variable definition.
 MainYard.mxml: Duplicate variable definition.
 MainYard.mxml: Duplicate variable definition.
 MainYard.mxml: Duplicate variable definition.
 MainYard.mxml: Duplicate variable definition.
 MainYard.mxml: variable 'train' has no type declaration.
 MainYard.mxml: Duplicate variable definition.
 MainYard.mxml: Duplicate variable definition.
 MainYard.mxml: Duplicate variable definition.
 MainYard.mxml: return value for function 'anonymous' has no type
 declaration.
 MainYard.mxml: Duplicate variable definition.

 I dont see any real error though.

 --- In flexcoders@yahoogroups.com, markgoldin_2000

 [EMAIL PROTECTED] wrote:

 I am starting Flex Bulder 3 and it's not going. It says: Loading
 project . and a progress bar is not moving. I have waitind for
 a
 very long time. Anything I can do to rcover from that?

 Thanks


 


Re: [flexcoders] Internet Explorer cannot display the webpage

2008-07-07 Thread Willy Ci
are you using FB3?
I would try reinstall the flash player debug first,

you can change the browser default to FF.
go to preferences, under general - Web Browser, select the browser
you like to use,


Willy

--
maybe today is a good day to write some code,
hold on, late me take a nap first ... Zzzz

Q: How do you spell google?
A: Why don't you google it?
--


On Mon, Jul 7, 2008 at 2:47 PM, chuck.searisen [EMAIL PROTECTED] wrote:
 Hi,

 When viewing a webpage in IE, I got a pop-up from IE saying something
 about Intranet settings, I clicked Yes. Ever since then I've been
 unable to run Flex applications from Flex Builder.

 I'm using IE7 and Vista, normally no problems, but I've searched the
 internet for any fix and cannot find one that relates to Flex.

 I have a stable connection and can display the page with no problems
 using Firefox. But, since Flex Builder defaults to IE (at least I
 haven't found a way to change that) I need to get that working, or
 clicking run/debug from Flex is permanently broken.

 


Re: [flexcoders] Re: Item renderers cause processor to max out

2008-07-07 Thread Tom McNeer
Tracy,

On Mon, Jul 7, 2008 at 3:56 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

Do not operate on the underlying Array.  Use the ArrayCollection API,
 specifically addItem().  No refreshing is necessary.





But the problem is that I'm not adding an item to the ArrayCollection.

I'm adding an item (option) to an Array *within* an item in the
ArrayCollection.

The ArrayCollection contains Products. Within each Product is an
optionArray. So when I'm adding to the optionArray, the Collection is not
aware of a change. And I can't make the optionArray an AC on its own,
because of VO mapping issues with server objects.

That's why I was suggesting a refresh(), or perhaps an updateItem(). Am I
missing something?




-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


Re: [flexcoders] flex2gateway Error

2008-07-07 Thread João Fernandes
If you try to make your app to load directly from the ColdFusion 
instance instead of Apache, PHP wouldn't be able to interfere in the 
process.
Check server logs to see if there was any problem to load the 
MessageBrokerServlet.


-- 

João Fernandes

http://www.onflexwithcf.org
http://www.riapt.org
Portugal Adobe User Group (http://aug.riapt.org)



[flexcoders] Hiding items in Tree

2008-07-07 Thread twcrone70
I have a tree that renders a two level hierarchy (e.g. State/City). 
Each state has a collection of cities.  State and city have a boolean
flag 'visible'.  Without modifying the collection directly, can I
somehow make is so that states/cities with 'visible=false' do not show
in the tree at all?  When I set the label/icon or whole thing's
visible attribute to false, I end up with a 'blank' node/leaf.

Thanks,

- Todd



Re: [flexcoders] Re: Starting Builder problem

2008-07-07 Thread Enjoy Jake
These probably are just warnings. When you export a release version it likes to 
show you any warnings, even if there aren't any errors. Check the filesystem to 
see if your release version SWF really is getting created. If it is, then you 
have nothing to worry about. However, you should get rid of all those warnings. 
It'll make the code easier to read and you'll be less likely to make mistakes.


- Original Message 
From: markgoldin_2000 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, July 7, 2008 12:46:19 PM
Subject: [flexcoders] Re: Starting Builder problem


It finally started. But now when I try to export Release version I am 
getting an error but no reason. Details show this:

Encountered errors or warnings while building project 
accidents.mxml.
accidents.mxml: variable 'i' has no type declaration.
accidents.mxml: Duplicate variable definition.
accidents.mxml: Duplicate variable definition.
accidents.mxml: Duplicate variable definition.
accidents.mxml: return value for function 'anonymous' has no type 
declaration.
accidents.mxml: Duplicate variable definition.
Encountered errors or warnings while building project MainYard.mxml.
MainYard.mxml: variable 'i' has no type declaration.
MainYard.mxml: return value for function 'createNextDataGrid ' has 
no type declaration.
MainYard.mxml: Access of undefined property mx.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: variable 'train' has no type declaration.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: Duplicate variable definition.
MainYard.mxml: return value for function 'anonymous' has no type 
declaration.
MainYard.mxml: Duplicate variable definition.

I dont see any real error though.

--- In [EMAIL PROTECTED] ups.com, markgoldin_ 2000 
markgoldin_ [EMAIL PROTECTED] wrote:

 I am starting Flex Bulder 3 and it's not going. It says: Loading 
 project . and a progress bar is not moving. I have waitind for 
a 
 very long time. Anything I can do to rcover from that?
 
 Thanks





  

Re: [flexcoders] flex2gateway Error

2008-07-07 Thread Sherif Abdou
No it is loaded it says MessageBrokerServlet:init



- Original Message 
From: João Fernandes [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, July 7, 2008 3:07:28 PM
Subject: Re: [flexcoders] flex2gateway Error


If you try to make your app to load directly from the ColdFusion 
instance instead of Apache, PHP wouldn't be able to interfere in the 
process.
Check server logs to see if there was any problem to load the 
MessageBrokerServle t.

-- 

João Fernandes

http://www.onflexwi thcf.org
http://www.riapt. org
Portugal Adobe User Group (http://aug.riapt. org)




  

[flexcoders] Re: Starting Builder problem

2008-07-07 Thread markgoldin_2000
No, this is not a warning. The release version is not created and 
here is from the Log:
!ENTRY org.eclipse.core.resources 4 1 2008-07-07 15:19:40.093
!MESSAGE Internal Error
!STACK 0
java.lang.IllegalArgumentException: Element not found: /BRC/bin-
release4/test.
at 
org.eclipse.core.internal.watson.ElementTree.elementNotFound
(ElementTree.java:255)
at org.eclipse.core.internal.watson.ElementTree.createElement
(ElementTree.java:183)
at 
org.eclipse.core.internal.resources.Workspace.createResource
(Workspace.java:857)
at 
org.eclipse.core.internal.resources.Workspace.createResource
(Workspace.java:814)
at 
org.eclipse.core.internal.localstore.RefreshLocalVisitor.createResourc
e(RefreshLocalVisitor.java:82)
at 
org.eclipse.core.internal.localstore.RefreshLocalAliasVisitor.createRe
source(RefreshLocalAliasVisitor.java:37)
at 
org.eclipse.core.internal.localstore.RefreshLocalVisitor.synchronizeEx
istence(RefreshLocalVisitor.java:218)
at 
org.eclipse.core.internal.localstore.RefreshLocalVisitor.visit
(RefreshLocalVisitor.java:290)
at org.eclipse.core.internal.localstore.UnifiedTree.accept
(UnifiedTree.java:99)
at 
org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh
Resource(FileSystemResourceManager.java:730)
at 
org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh
(FileSystemResourceManager.java:714)
at org.eclipse.core.internal.resources.Resource.refreshLocal
(Resource.java:1420)
at org.eclipse.core.internal.resources.Resource.createLink
(Resource.java:614)
at org.eclipse.core.internal.resources.Resource.createLink
(Resource.java:569)
at 
com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder$1.run
(Unknown Source)
at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1797)
at com.adobe.flexbuilder.project.FlexWorkspaceRunner.run
(Unknown Source)
at 
com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.createOut
putFolder(Unknown Source)
at 
com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.checkOutp
utFolder(Unknown Source)
at 
com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.bui
ldItem(Unknown Source)
at 
com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.bui
ld(Unknown Source)
at 
com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.build
(Unknown Source)
at 
com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.doRelease
Build(Unknown Source)
at 
com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersion
Manager$1.execute(ExportReleaseVersionManager.java:195)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run
(WorkspaceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1797)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:113)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread
(ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run
(ModalContext.java:313)
at org.eclipse.jface.wizard.WizardDialog.run
(WizardDialog.java:934)
at 
com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersion
Manager.doExport(ExportReleaseVersionManager.java:271)
at 
com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVers
ionWizard.doBuild(ExportReleaseVersionWizard.java:145)
at 
com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVers
ionWizard.performFinish(ExportReleaseVersionWizard.java:102)
at org.eclipse.jface.wizard.WizardDialog.finishPressed
(WizardDialog.java:742)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed
(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected
(Dialog.java:616)
at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent
(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents
(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop
(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at 
com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersion
Action$1.run(ExportReleaseVersionAction.java:97)
at 
com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersion
Action.run(ExportReleaseVersionAction.java:103)
at 
com.adobe.flexbuilder.standalone.actions.ExportReleaseVersionAction.ru
n(ExportReleaseVersionAction.java:34)
at org.eclipse.jface.action.Action.runWithEvent
(Action.java:498)
at 

Re: [flexcoders] Creating a hyperlink mailto in advanced data grid

2008-07-07 Thread Adrian Williams

Tracy,

   Thanks for the help!!  I have some additional questions on this.  I 
am very new to flex/as and am stuck on a couple items.


   I found some examples on how to setup the renderer and have 
implemented this.  I created a function to create the actual mailto 
string and have hit these snags:


   Here is the code for the function:

   private function convertEmailToMailto(emailAddy:String):String
   {
   var mailtoEmailAddy:String ;
   mailtoEmailAddy = 'a href=mailto:' + emailAddy + '' 
+ emailAddy + '/a';

   return mailtoEmailAddy;
   }

   And here is the renderer code:

   mx:itemRenderer
   mx:Component
   mx:Text 
htmlText={convertEmailToMailto(data.emailAddress)}/

   /mx:Component
   /mx:itemRenderer 

   The first problem I have is that I am getting call to possibly 
undefined method convertEmailToMailto error and am not sure what the 
problem is. 

   The next is that I am confused about the bubbling.I am assuming 
I will need to add a 'click=' in the mx:Text line and I see in the 
properties for TextEvent to do a TextEvent:LINK but I am not having a 
lot of luck seeing how to implement this.


   Help?

Thanks,
Adrian  


Tracy Spratt wrote:


There are several ways to do this.  One way is to create an 
itemRenderer using htmlText. htmlText can include an a href= / 
tag.  You can have the click dispatch a bubbling TextEvent, and in the 
handler, access the dataProvider item via the event.currentTarget 
property, and use the url to build your mailto url, and navigateToURL 
to laouch the browser.


 


There will be examples of all of this if you look a bit.

 


Tracy

 




*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Adrian Williams

*Sent:* Monday, July 07, 2008 1:04 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Creating a hyperlink mailto in advanced data grid

 


Hi All,

I am using an advanced data grid to display a variety of data, one 
of which is a users email address.  I'd like to be able to set it up 
so that for any given row in the report, the email addresses are 
actually hyperlinks to open a mailto: that address.  How do I do this?


Thanks,
Adrian

 


[flexcoders] text style prop not applied to checkboxes?

2008-07-07 Thread blc187
does the textRollOverColor style get applied for the text on checkboxes?

I'm styling my checkbox and I can get the label text to change color 
with 
checkbox.setStyle(color, 0xff00ff) 
but not with 
checkbox.setStyle(textRollOverColor, 0x00ff00)

Anyone using it successfully anywhere else?




RE: [flexcoders] loading attributes in a flex custom tag

2008-07-07 Thread Gordon Smith
You normally override commitProperties() when you want to be able to set
properties in any order and do something later after you know all their
values. To ensure that commitProperties() gets called, call
invalidateProperties() in the property setters.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Fernando Wermus
Sent: Monday, July 07, 2008 12:50 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] loading attributes in a flex custom tag

 

I make it work overrading this function, but I don' t know why this is
the convenient way.

 

updateDisplayList

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

if(this._autoPlay  this.source!=null){ 

this.play(); 

}

}

If autoplay is true and source has the info, then play the music. 

 

 



 

On Mon, Jul 7, 2008 at 12:54 PM, Tracy Spratt [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

That would be a good candidate for a setter funcion.

Tracy

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Fernando Wermus
Sent: Monday, July 07, 2008 3:26 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] loading attributes in a flex custom tag

 

What about the order? Flex loads randomly the attributes. I have one
called autoplay that if it is set in true play a song, but first I need
Flex sets the url attribute. How can I manage this?

 

Thnks

On Mon, Jul 7, 2008 at 10:50 AM, Tracy Spratt [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Don't set them in the constructor, implement them as public properties.
If variables, make the [Bindable], or use getter/setter methods for full
control.

 

Tracy

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Fernando Wermus
Sent: Monday, July 07, 2008 1:30 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] loading attributes in a flex custom tag

 

Hi all!

 I have a custom component made by myself. I have to asign the
values from the tag's attributes to some object when they are being
created in the constructor custom component time. The problem is that
Flex doesn't load the attributes when it calls the the constructor and
therefore I cant constructor the component. I hope you understand.

 

Thanks!

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus
http://www.linkedin.com/in/fernandowermus 
http://mientretiempo.blogspot.com/ http://mientretiempo.blogspot.com/





-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus
http://www.linkedin.com/in/fernandowermus 
http://mientretiempo.blogspot.com/ http://mientretiempo.blogspot.com/





-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus
http://www.linkedin.com/in/fernandowermus 
http://mientretiempo.blogspot.com/ http://mientretiempo.blogspot.com/


 



RE: [flexcoders] Re: Starting Builder problem

2008-07-07 Thread Jim Hayes
Have you tried starting flexbuilder with the -clean argument?
If often sorts out mysterious errors on startup (I believe it cleans 
up/rebuilds the workspace, but I'm no expert).


-Original Message-
From: flexcoders@yahoogroups.com on behalf of markgoldin_2000
Sent: Mon 07/07/2008 21:23
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Starting Builder problem
 
No, this is not a warning. The release version is not created and 
here is from the Log:
!ENTRY org.eclipse.core.resources 4 1 2008-07-07 15:19:40.093
!MESSAGE Internal Error
!STACK 0
java.lang.IllegalArgumentException: Element not found: /BRC/bin-
release4/test.
at 
org.eclipse.core.internal.watson.ElementTree.elementNotFound
(ElementTree.java:255)
at org.eclipse.core.internal.watson.ElementTree.createElement
(ElementTree.java:183)
at 
org.eclipse.core.internal.resources.Workspace.createResource
(Workspace.java:857)
at 
org.eclipse.core.internal.resources.Workspace.createResource
(Workspace.java:814)
at 
org.eclipse.core.internal.localstore.RefreshLocalVisitor.createResourc
e(RefreshLocalVisitor.java:82)
at 
org.eclipse.core.internal.localstore.RefreshLocalAliasVisitor.createRe
source(RefreshLocalAliasVisitor.java:37)
at 
org.eclipse.core.internal.localstore.RefreshLocalVisitor.synchronizeEx
istence(RefreshLocalVisitor.java:218)
at 
org.eclipse.core.internal.localstore.RefreshLocalVisitor.visit
(RefreshLocalVisitor.java:290)
at org.eclipse.core.internal.localstore.UnifiedTree.accept
(UnifiedTree.java:99)
at 
org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh
Resource(FileSystemResourceManager.java:730)
at 
org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh
(FileSystemResourceManager.java:714)
at org.eclipse.core.internal.resources.Resource.refreshLocal
(Resource.java:1420)
at org.eclipse.core.internal.resources.Resource.createLink
(Resource.java:614)
at org.eclipse.core.internal.resources.Resource.createLink
(Resource.java:569)
at 
com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder$1.run
(Unknown Source)
at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1797)
at com.adobe.flexbuilder.project.FlexWorkspaceRunner.run
(Unknown Source)
at 
com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.createOut
putFolder(Unknown Source)
at 
com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.checkOutp
utFolder(Unknown Source)
at 
com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.bui
ldItem(Unknown Source)
at 
com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.bui
ld(Unknown Source)
at 
com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.build
(Unknown Source)
at 
com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.doRelease
Build(Unknown Source)
at 
com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersion
Manager$1.execute(ExportReleaseVersionManager.java:195)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run
(WorkspaceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1797)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:113)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread
(ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run
(ModalContext.java:313)
at org.eclipse.jface.wizard.WizardDialog.run
(WizardDialog.java:934)
at 
com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersion
Manager.doExport(ExportReleaseVersionManager.java:271)
at 
com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVers
ionWizard.doBuild(ExportReleaseVersionWizard.java:145)
at 
com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVers
ionWizard.performFinish(ExportReleaseVersionWizard.java:102)
at org.eclipse.jface.wizard.WizardDialog.finishPressed
(WizardDialog.java:742)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed
(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected
(Dialog.java:616)
at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent
(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents
(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop
(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at 
com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersion
Action$1.run(ExportReleaseVersionAction.java:97)
at 

Re: [flexcoders] text style prop not applied to checkboxes?

2008-07-07 Thread Enjoy Jake
change:

checkbox.setStyle( textRollOverCol or, 0x00ff00)

to either:

checkbox.setStyle( textRollOverCol or, 0x00ff00)

or

checkbox.setStyle( textRollOverCol or, #00ff00)



You don't need the quotes if you're sending the color as a hexidecimal uint.




- Original Message 
From: blc187 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, July 7, 2008 1:39:00 PM
Subject: [flexcoders] text style prop not applied to checkboxes?


does the textRollOverColor style get applied for the text on checkboxes?

I'm styling my checkbox and I can get the label text to change color 
with 
checkbox.setStyle( color, 0xff00ff) 
but not with 
checkbox.setStyle( textRollOverCol or, 0x00ff00)

Anyone using it successfully anywhere else?




  

RE: [flexcoders] Item renderers cause processor to max out

2008-07-07 Thread Alex Harui
We don't know how your renderer is set up, but here are some things to
consider:

 

-a variableRowHeight renderer needs to measure() correctly right after
the data property is set.  Depending on what component is doing
word-wrapping, the measurements may be fluctuating causing the DG to
re-render and recycle renderers and re-set their data properties and do
more measurements until the measurements converge.  Make sure the
word-wrapping component's width is tied to the column's width.  This is
a common error you'll see from my responses to past threads.

-you can see if there are multiple rendering passes by setting a
breakpoint on makeRowsAndColumns.  It should get hit once or twice when
the dataProvider changes, but not more than that.

-I'd juse array.join() to make your displayable string.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom McNeer
Sent: Monday, July 07, 2008 6:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Item renderers cause processor to max out

 

Hi, 

I began asking about this problem last week and Alex Harui tried to help
me. But I did such a bad job of explaining my problem, I don't think he
quite understood the issue.

Also, I've done a lot more work over the weekend, stepping through the
debugger. And my problem is a bit different than I first thought,
anyway.

My application allows users to create multiple sets of product
configurations. Within each configuration, there are multiple products,
each with a possibility of multiple options.

Thus, within a Configuration object, there is an itemAC that is a
collection of product objects. Within each Item/Product object, there is
an optionArray which holds Option objects. The optionArray cannot be an
arrayCollection, because the Product objects are VOs populated from a
RemoteObject, and need to match the signature of a matching object on
the server.

When the user wishes to view the contents of a Configuration, the itemAC
(with its collection of Products) becomes the dataProvider of a
DataGrid:

   mx:DataGrid dataProvider={config.itemAC} id=configProducts
variableRowHeight=true width=80%
updateComplete=setGridHeight(event) 
mx:columns
mx:DataGridColumn dataField=quantity
headerText=Quantity /
mx:DataGridColumn dataField=category
headerText=Category /
mx:DataGridColumn dataField=name headerText=Product
wordWrap=true /
mx:DataGridColumn headerText=Options wordWrap=true
itemRenderer=views.OptionList /
/mx:columns
/mx:DataGrid

However - one cell within the DataGrid needs to display a list of
options. The user should see these options as a comma-delimited list,
essentially, not a Flex List element or anything like that. So I have
created an itemRenderer for the Options column which has a simple
function that creates the list from the optionArray in the Product which
is represented by a row in the DataGrid:

   public function setOptionList(options:Array):void{
optionList = ;
for (var i:int = 0;ioptions.length;i++){
if (options.length  1  i != 0){
optionList = optionList + ', ';
}
optionList += options[i].optionItem;
}
}

Since a user may be adding options to a product at any time, the option
list must update as an option is added.
I have tried providing the update in various ways. Currently, I am
overriding the set data function for the itemRenderer component:

override public function set data(value:Object):void{
if (value != null){
super.data = value;
setOptionList(value.options)
}
dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
}

The symptom of my problem is that once a few products are added, the
processor pegs and stays there.

My debugging walkthrough has led to find that as products are added
(with or without options), extra instances of the itemRenderer component
seem to be generated, and the setOptionList function (triggered by set
data) is called over and over.

On the first product added, (with an empty option array), two separate
instances of the itemRenderer component seem to be created. The
setOptionList function is called three times, showing two unique
identifiers for views.OptionList components. The function is called on
the first instance (a), then the second (b), then the first again:
a,b,a.

When I add a second product (also with an empty option array, the
setOptionList function is called 14 times. I can see another instance of
views.OptionList (c). The setOptionList calls go:
b,b,a,a,b,c,b,c,a,a,b,c,a,a.

Adding a third product results in 22 calls to the function, on 4
instances. The calls go: b,c,b,b,a,a,a,b,c,d,b,c,d,a,a,a,b,c,d,a,a,a.

Can anyone help me understand what's 

  1   2   >