RE: [flexcoders] Your Opinion: Best way to Load Data to your components?

2008-07-07 Thread Tim Rowe
Absolutely.  Things like lookup values or enumerations which you might
have in a database, are going to be needed, but never updated, you can
bring down in one go and cache the result never needing to query it
again, rather than getting bits incrementally.  And then are we talking
using remoting, or data services, both of which handle updates very
differently (and then there's other solutions).

 

But for any other data you have to factor in how it's going to be
updated, how often the data will be interacted with by the user, how
much data you require (total and in each increment), and perhaps even
the load and usage of the server.  Pulling down 100KB of data might be
fine when you've only got a handful of people accessing a system, but
what about on a system getting 5,000 requests per minute?

 

There really is no single answer to this "how long is a piece of
string?" question.

 

--Tim Rowe



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Tuesday, 8 July 2008 3:16 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Your Opinion: Best way to Load Data to your
components?

 

It really depends on your application. I've some applications that poll
important lists, but if those lists get long, we'll need to put some
more thought into the way it works.

If it's a short list that's likely to change a lot, poll the whole
thing. If it's a long list, and there's unlikely to be many changes,
you'll need something more complicated like polling a "last updated"
time, or "fetch me the changes since X" sort of method, or even an XML
socket so your server can push change events through to the Flex app.
And that's just a few of no doubt many different ways to approach the
issue.

-Josh

On Tue, Jul 8, 2008 at 3:01 PM, Alan <[EMAIL PROTECTED]
 > wrote:

I'm building a large Flex app for the first time and I'm curious about
how often I should be sending queries to the remote database? Does any
one have some advice or general guidelines when to determine if
requesting small amounts out data based on user triggered events, or
to load a larger amount of data that is then manipulated locally?


Alan







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


   (Yahoo! ID required)

   mailto:[EMAIL PROTECTED]
 






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

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

 



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

2008-07-07 Thread max.bruchmann
Sure that's the way I do it also at the moment, I just thought it's
maybe cleaner if errors go to the fault handler.

thanks,
max



Re: [flexcoders] Your Opinion: Best way to Load Data to your components?

2008-07-07 Thread Josh McDonald
It really depends on your application. I've some applications that poll
important lists, but if those lists get long, we'll need to put some more
thought into the way it works.

If it's a short list that's likely to change a lot, poll the whole thing. If
it's a long list, and there's unlikely to be many changes, you'll need
something more complicated like polling a "last updated" time, or "fetch me
the changes since X" sort of method, or even an XML socket so your server
can push change events through to the Flex app. And that's just a few of no
doubt many different ways to approach the issue.

-Josh

On Tue, Jul 8, 2008 at 3:01 PM, Alan <[EMAIL PROTECTED]> wrote:

> I'm building a large Flex app for the first time and I'm curious about
> how often I should be sending queries to the remote database? Does any
> one have some advice or general guidelines when to determine if
> requesting small amounts out data based on user triggered events, or
> to load a larger amount of data that is then manipulated locally?
>
>
> Alan
>
>
>
>
>
> 
>
> --
> 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
>
>
>
>


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

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


[flexcoders] Your Opinion: Best way to Load Data to your components?

2008-07-07 Thread Alan
I'm building a large Flex app for the first time and I'm curious about  
how often I should be sending queries to the remote database? Does any  
one have some advice or general guidelines when to determine if  
requesting small amounts out data based on user triggered events, or  
to load a larger amount of data that is then manipulated locally?


Alan






[flexcoders] Retrieve the unique identifier (@foo) the way the debugger does?

2008-07-07 Thread Josh McDonald
Say I'm inspecting something in the debugger, I get this:

main.model.dao.NodeTOR (@1b1a9a51)

Is there a way for the flex app to retrieve this number (which I assume is a
timestamp or an encoded pointer or something) in order to use it as a unique
identifier?

-Josh

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

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


[flexcoders] A good Set implementation?

2008-07-07 Thread Josh McDonald
Is there a good implementation of a Set out there, or is everybody just
using Dictionary or Object with null values? Do I need custom toString()
methods for everything in that case?

-- 
"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: Retrieving XML data

2008-07-07 Thread Josh McDonald
That's all I've got, I was just typing it in off the top of my head. Post
your code that doesn't work, and I'll have a look.

-Josh

On Tue, Jul 8, 2008 at 2:00 PM, flexawesome <[EMAIL PROTECTED]> wrote:

> humm..it makes sense. but... how can I modify my code accordingly?
>
> seems doesn't work for me here, do you mind to post the code
> completely?
>
> :)
>
>
>
> --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > No worries mate. Assuming you're talking about an XMLList, this
> should do
> > it:
> >
> > for each (var node:* in myXMLList.image) {
> > myArray.push(node.toString());
> > }
> >
> > -Josh
> >
> > On Tue, Jul 8, 2008 at 1:45 PM, flexawesome <[EMAIL PROTECTED]> wrote:
> >
> > > hey Josh, may I get an array of strings containing the URLs ? :)
> > >
> > > Cheers
> > >
> > > --- In flexcoders@yahoogroups.com, "Josh McDonald" 
> wrote:
> > > >
> > > > That's not much of a description for your problem buddy :)
> > > >
> > > > Do you want to get an array of strings containing just the urls
> > > from an
> > > > XMLList? Or do you just want to drop those nodes from an XML
> > > document? We
> > > > need more info to be of any help.
> > > >
> > > > -Josh
> > > >
> > > > On Tue, Jul 8, 2008 at 1:34 PM, flexawesome 
> wrote:
> > > >
> > > > >  hey there, is there a way to get rid off the tag ( image)?
> > > humm, I got
> > > > > this...
> > > > > www.google.com/a.jpg
> > > > > www.msn.com/b.jpg
> > > > >
> > > > >
> > > > >
> > > > > http://www.privatepaste.com/f8hQrmzTyB
> > > > >
> > > > > Thank you
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > "Therefore, send not to know For whom the bell tolls. It tolls
> for
> > > thee."
> > > >
> > > > :: Josh 'G-Funk' McDonald
> > > > :: 0437 221 380 :: josh@
> > > >
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > 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
> > >
> > >
> > >
> > >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> >
>
>
>
> 
>
> --
> 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
>
>
>
>


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

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


[flexcoders] Re: Retrieving XML data

2008-07-07 Thread flexawesome
humm..it makes sense. but... how can I modify my code accordingly?

seems doesn't work for me here, do you mind to post the code 
completely?

:)



--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> No worries mate. Assuming you're talking about an XMLList, this 
should do
> it:
> 
> for each (var node:* in myXMLList.image) {
> myArray.push(node.toString());
> }
> 
> -Josh
> 
> On Tue, Jul 8, 2008 at 1:45 PM, flexawesome <[EMAIL PROTECTED]> wrote:
> 
> > hey Josh, may I get an array of strings containing the URLs ? :)
> >
> > Cheers
> >
> > --- In flexcoders@yahoogroups.com, "Josh McDonald"  
wrote:
> > >
> > > That's not much of a description for your problem buddy :)
> > >
> > > Do you want to get an array of strings containing just the urls
> > from an
> > > XMLList? Or do you just want to drop those nodes from an XML
> > document? We
> > > need more info to be of any help.
> > >
> > > -Josh
> > >
> > > On Tue, Jul 8, 2008 at 1:34 PM, flexawesome  
wrote:
> > >
> > > >  hey there, is there a way to get rid off the tag ( image)?
> > humm, I got
> > > > this...
> > > > www.google.com/a.jpg
> > > > www.msn.com/b.jpg
> > > >
> > > >
> > > >
> > > > http://www.privatepaste.com/f8hQrmzTyB
> > > >
> > > > Thank you
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > "Therefore, send not to know For whom the bell tolls. It tolls 
for
> > thee."
> > >
> > > :: Josh 'G-Funk' McDonald
> > > :: 0437 221 380 :: josh@
> > >
> >
> >
> >
> > 
> >
> > --
> > 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
> >
> >
> >
> >
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for 
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




[flexcoders] endpoint in mx:remoteobject

2008-07-07 Thread markflex2007
Hi,

I am confuse what endpoint used in mx:remoteobject. I confuse now.

Do I have to save swf/html and server code (like coldfusion) in same 
server when I use mx:remoteobject?

Thanks

Mark



Re: [flexcoders] Re: Retrieving XML data

2008-07-07 Thread Josh McDonald
No worries mate. Assuming you're talking about an XMLList, this should do
it:

for each (var node:* in myXMLList.image) {
myArray.push(node.toString());
}

-Josh

On Tue, Jul 8, 2008 at 1:45 PM, flexawesome <[EMAIL PROTECTED]> wrote:

> hey Josh, may I get an array of strings containing the URLs ? :)
>
> Cheers
>
> --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > That's not much of a description for your problem buddy :)
> >
> > Do you want to get an array of strings containing just the urls
> from an
> > XMLList? Or do you just want to drop those nodes from an XML
> document? We
> > need more info to be of any help.
> >
> > -Josh
> >
> > On Tue, Jul 8, 2008 at 1:34 PM, flexawesome <[EMAIL PROTECTED]> wrote:
> >
> > >  hey there, is there a way to get rid off the tag ( image)?
> humm, I got
> > > this...
> > > www.google.com/a.jpg
> > > www.msn.com/b.jpg
> > >
> > >
> > >
> > > http://www.privatepaste.com/f8hQrmzTyB
> > >
> > > Thank you
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> >
>
>
>
> 
>
> --
> 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
>
>
>
>


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

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


[flexcoders] Re: Retrieving XML data

2008-07-07 Thread flexawesome
hey Josh, may I get an array of strings containing the URLs ? :)

Cheers

--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> That's not much of a description for your problem buddy :)
> 
> Do you want to get an array of strings containing just the urls 
from an
> XMLList? Or do you just want to drop those nodes from an XML 
document? We
> need more info to be of any help.
> 
> -Josh
> 
> On Tue, Jul 8, 2008 at 1:34 PM, flexawesome <[EMAIL PROTECTED]> wrote:
> 
> >  hey there, is there a way to get rid off the tag ( image)?  
humm, I got
> > this...
> > www.google.com/a.jpg
> > www.msn.com/b.jpg
> >
> >
> >
> > http://www.privatepaste.com/f8hQrmzTyB
> >
> > Thank you
> >
> >
> >
> >
> > 
> >
> 
> 
> 
> -- 
> "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] Retrieving XML data

2008-07-07 Thread Josh McDonald
That's not much of a description for your problem buddy :)

Do you want to get an array of strings containing just the urls from an
XMLList? Or do you just want to drop those nodes from an XML document? We
need more info to be of any help.

-Josh

On Tue, Jul 8, 2008 at 1:34 PM, flexawesome <[EMAIL PROTECTED]> wrote:

>  hey there, is there a way to get rid off the tag ( image)?  humm, I got
> this...
> www.google.com/a.jpg
> www.msn.com/b.jpg
>
>
>
> http://www.privatepaste.com/f8hQrmzTyB
>
> Thank you
>
>
>
>
> 
>



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

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


[flexcoders] Retrieving XML data

2008-07-07 Thread flexawesome

hey there, is there a way to get rid off the tag ( image)?  humm, I got
this...
www.google.com/a.jpg
www.msn.com/b.jpg


http://www.privatepaste.com/f8hQrmzTyB


Thank you







[flexcoders] AdvancedDataGrid rowCount

2008-07-07 Thread Amy
Hi, all;

I open all the nodes on my ADG when it is created.  I'd like to make 
sure there are enough rows to show all the items without scroll bars.  
If I bind rowCount to myADG.dataProvider.length, it gives me enough 
rows to show the _closed_ nodes.  I also tried 
myADG.dataProvideropenNodes().length, but that wasn't anywhere close.  
Is there a simple way to do this, or do I have to write a function that 
goes through and counts?

TIA;

Amy



Re: [flexcoders] Question for ?

2008-07-07 Thread Douglas Knudsen
yes, you can have a swf loaded from server A connect to server B via
RemoteObject.  Have to play with the config files some and a
crossdomain file.  Should be able to search these archives for how.

DK

On Mon, Jul 7, 2008 at 1:33 PM, markflex2007 <[EMAIL PROTECTED]> wrote:
> 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  to
> do the backend access.
>
> But I can save swf/html and backend code in different server when I use
> web service.
>
> Thanks
>
> Mark
>
> 



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


Re: [flexcoders] width doesn't affect scaleX ?

2008-07-07 Thread Josh McDonald
Definitely. I was just pointing out why they're different ;-)

On Tue, Jul 8, 2008 at 10:07 AM, Radley <[EMAIL PROTECTED]> wrote:

>
>
> Thanks for your help, but I think doing my own scaling is easier:
>
> if (image.width > Application.application.width)
> {
>   image.width   = Application.application.width;
>   image.height  = Math.round((image.width / origWidth) * origHeight);
> }
>
> -radley
>
>
>
> On Jul 7, 2008, at 4:27 PM, Josh McDonald wrote:
>
> The width and height is part of the Flex Image component, whereas the
> scalex is part of Flash's internal stuff for everything. You could subclass
> Image and add other child components because it extends UIComponent, and
> then when you set width and height the Image component would scale the
> image, but your other children would not (automatically at least). But if
> you achieve the size change using scaleX, the entire thing would scale.
>
> Hope that clears it up :)
>
> -Josh
>
> On Tue, Jul 8, 2008 at 9:23 AM, Radley <[EMAIL PROTECTED]> wrote:
>
>>
>>
>> If change the width of a flex Image component, the scaleX remains 1:
>>
>> (image starting size: 1920x1200)
>>
>>
>> CODE:
>>
>> if (image.width > Application.application.width)
>> {
>>   trace("\rimage.scaleX = " + image.scaleX);
>>   trace("image.width = " + image.width);
>>
>>   image.width = Application.application.width;
>>
>>   trace("\rimage.scaleX = " + image.scaleX);
>>   trace("image.width = " + image.width);
>>
>>   image.scaleY  = image.scaleX;
>> }
>>
>> trace("\rimage.scaleX = " + image.scaleX);
>> trace("image.scaleY = " + image.scaleY);
>> trace("image: (" + image.width+ ", " +image.height+ ")");
>>
>>
>> RESULT:
>>
>> image.scaleX = 1
>> image.width = 1920
>>
>> image.scaleX = 1
>> image.width = 1025
>>
>> image.scaleX = 1
>> image.scaleY = 1
>> image: (1025, 1200)
>>
>>
>> Is the Image component missing scaleX & scaleY properties? Or is there
>> some special event that has to happen for scale to recognize a change
>> in width/height???
>>
>>
>> thnx
>>
>>
>> -radley
>>
>>
>>
>>
>> --
>> Radley Marx
>> www.radleymarx.com
>> [EMAIL PROTECTED]
>>
>> --
>>
>>
>>
>>
>>
>> 
>>
>> --
>> 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
>>
>>
>>
>>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>
>
> 
>



-- 
"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] width doesn't affect scaleX ?

2008-07-07 Thread Radley



Thanks for your help, but I think doing my own scaling is easier:

if (image.width > Application.application.width)
{
  image.width   = Application.application.width;
  image.height  = Math.round((image.width / origWidth) * origHeight);
}

-radley



On Jul 7, 2008, at 4:27 PM, Josh McDonald wrote:

The width and height is part of the Flex Image component, whereas  
the scalex is part of Flash's internal stuff for everything. You  
could subclass Image and add other child components because it  
extends UIComponent, and then when you set width and height the  
Image component would scale the image, but your other children would  
not (automatically at least). But if you achieve the size change  
using scaleX, the entire thing would scale.


Hope that clears it up :)

-Josh


On Tue, Jul 8, 2008 at 9:23 AM, Radley <[EMAIL PROTECTED]> wrote:


If change the width of a flex Image component, the scaleX remains 1:

(image starting size: 1920x1200)


CODE:

if (image.width > Application.application.width)
{
  trace("\rimage.scaleX = " + image.scaleX);
  trace("image.width = " + image.width);

  image.width = Application.application.width;

  trace("\rimage.scaleX = " + image.scaleX);
  trace("image.width = " + image.width);

  image.scaleY  = image.scaleX;
}

trace("\rimage.scaleX = " + image.scaleX);
trace("image.scaleY = " + image.scaleY);
trace("image: (" + image.width+ ", " +image.height+ ")");


RESULT:

image.scaleX = 1
image.width = 1920

image.scaleX = 1
image.width = 1025

image.scaleX = 1
image.scaleY = 1
image: (1025, 1200)


Is the Image component missing scaleX & scaleY properties? Or is there
some special event that has to happen for scale to recognize a change
in width/height???


thnx


-radley



--
Radley Marx
www.radleymarx.com
[EMAIL PROTECTED]
--







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







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


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






[flexcoders] Cancelling a list change event using an Alert popup

2008-07-07 Thread djohnson29
I have a list of items and a corresponding form to edit values based
on what the user has selected.

If the user selects another by clicking the grid, I want to provide an
Alert popup if they have not saved their changes.  If the user clicks
OK, then the selection takes place as normal, but if they click
cancel, I want to cancel the change event and have the editor stay on
the selected item.

I can get the event to cancel by declaring an event handler for
MouseDown in the creationComplete event, and then having the following
lines in the MouseDown handler:

event.stopImmediatePropagation();
event.stopPropagation();
event.preventDefault();

The problem is that I can only successfully cancel the event
propogation from within this method.

If I want to have an alert box with an OK and Cancel button, how do I
achieve this?

I have tried calling an Alert handler and using a class event variable
to store the event that is received by the MouseDown handler, but
if I try to cancel the event from within the Alert handler, nothing
happens - I think it is too late at that point.

Can someone provide me with an example of how to cancel event
propogation on a grid click or other similar event based on the user's
selection from an Alert prompt?

Thanks!



Re: [flexcoders] ant build chart

2008-07-07 Thread coder3

the error is "Unable to resolve a class for ResourceBundle: charts."

so it seems that the chart jar is missing. where can i get it? 

thanks

C.


coder3 wrote:
> 
> 
> Now I use ant to build my flex application on unix machine. i copied the
> flex sdk from my window to unix and the ant build is working except one
> case. if the flex contains chart, the build will fail. 
> 
> i guest it's because the flex sdk doesn't have the chart jar? where can i
> get it for the unix/linux machine? 
> 
> thanks
> 
> Code
> 

-- 
View this message in context: 
http://www.nabble.com/ant-build-chart-tp18329126p18329181.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] ant build chart

2008-07-07 Thread coder3


Now I use ant to build my flex application on unix machine. i copied the
flex sdk from my window to unix and the ant build is working except one
case. if the flex contains chart, the build will fail. 

i guest it's because the flex sdk doesn't have the chart jar? where can i
get it for the unix/linux machine? 

thanks

Code
-- 
View this message in context: 
http://www.nabble.com/ant-build-chart-tp18329126p18329126.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] width doesn't affect scaleX ?

2008-07-07 Thread Josh McDonald
The width and height is part of the Flex Image component, whereas the scalex
is part of Flash's internal stuff for everything. You could subclass Image
and add other child components because it extends UIComponent, and then when
you set width and height the Image component would scale the image, but your
other children would not (automatically at least). But if you achieve the
size change using scaleX, the entire thing would scale.

Hope that clears it up :)

-Josh

On Tue, Jul 8, 2008 at 9:23 AM, Radley <[EMAIL PROTECTED]> wrote:

>
>
> If change the width of a flex Image component, the scaleX remains 1:
>
> (image starting size: 1920x1200)
>
>
> CODE:
>
> if (image.width > Application.application.width)
> {
>   trace("\rimage.scaleX = " + image.scaleX);
>   trace("image.width = " + image.width);
>
>   image.width = Application.application.width;
>
>   trace("\rimage.scaleX = " + image.scaleX);
>   trace("image.width = " + image.width);
>
>   image.scaleY  = image.scaleX;
> }
>
> trace("\rimage.scaleX = " + image.scaleX);
> trace("image.scaleY = " + image.scaleY);
> trace("image: (" + image.width+ ", " +image.height+ ")");
>
>
> RESULT:
>
> image.scaleX = 1
> image.width = 1920
>
> image.scaleX = 1
> image.width = 1025
>
> image.scaleX = 1
> image.scaleY = 1
> image: (1025, 1200)
>
>
> Is the Image component missing scaleX & scaleY properties? Or is there
> some special event that has to happen for scale to recognize a change
> in width/height???
>
>
> thnx
>
>
> -radley
>
>
>
>
> --
> Radley Marx
> www.radleymarx.com
> [EMAIL PROTECTED]
>
> --
>
>
>
>
>
> 
>
> --
> 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
>
>
>
>


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

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


[flexcoders] width doesn't affect scaleX ?

2008-07-07 Thread Radley


If change the width of a flex Image component, the scaleX remains 1:

(image starting size: 1920x1200)


CODE:

if (image.width > Application.application.width)
{
   trace("\rimage.scaleX = " + image.scaleX);
   trace("image.width = " + image.width);

   image.width = Application.application.width;

   trace("\rimage.scaleX = " + image.scaleX);
   trace("image.width = " + image.width);

   image.scaleY  = image.scaleX;
}

trace("\rimage.scaleX = " + image.scaleX);
trace("image.scaleY = " + image.scaleY);
trace("image: (" + image.width+ ", " +image.height+ ")");


RESULT:

image.scaleX = 1
image.width = 1920

image.scaleX = 1
image.width = 1025

image.scaleX = 1
image.scaleY = 1
image: (1025, 1200)


Is the Image component missing scaleX & scaleY properties? Or is there  
some special event that has to happen for scale to recognize a change  
in width/height???


thnx


-radley



--
Radley Marx
www.radleymarx.com
[EMAIL PROTECTED]
--






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

2008-07-07 Thread Rick Winscot
Using compiler switches to manage trust can become cumbersome... I'd
recommend using the Global Security Settings Panel and add your Flex
workspace folder to the Global Security Settings permission list.

http://www.macromedia.com/support/documentation/en/flashplayer/help/settings
_manager04.html 

This is a one-time 'set it and forget-it' (a la Ron Popeil) deal.

Rick Winscot



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Monday, July 07, 2008 12:02 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Automatically granting local trust in Flex Builder
3

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







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

2008-07-07 Thread Tracy Spratt
Oops, yeah, I remember that now.  

 

Well then, you could use setItemAt(), which would do the job, or use
itemUpdated(). Or is it updateItem()...  anyway, that will refresh the
UI, including running the labelFunction.

 

Tracy

 



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

 

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 

 



[flexcoders] Re: AdvancedDataGrid grouping with different depths

2008-07-07 Thread rueter007
Anyone have an idea on this problem? Thanks in advance.

--- In flexcoders@yahoogroups.com, "rueter007" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I have the following dataprovider for an ADG.
> 
>   [Bindable]
>   private var dpFlat:ArrayCollection = new 
> ArrayCollection([
> {Region:"Southwest", State:"Arizona", Title:"Barbara 
> Jennings",
> Actual:38865, Estimate:4}, 
> {Region:"Southwest", State:"Arizona", Title:"Dana 
> Binn",
> Actual:29885, Estimate:3},  
> {Region:"Southwest", State:"Central California", 
> Title:"Joe
> Smith", Actual:29134, Estimate:3},  
> {Region:"Southwest", State:"Nevada", Title:"Bethany 
> Pittman",
> Actual:52888, Estimate:45000},  
> {Region:"East", State:"Northern California", 
> Title:"Lauren
> Ipsum", Actual:38805, Estimate:4},
> {Region:"East", State:"Northern California", 
> Title:"T.R. Smith",
> Actual:55498, Estimate:4},  
> {Region:"West", State:"Southern California", 
> Title:"Alice Treu",
> Actual:44985, Estimate:45000}, 
> {Region:"West", State:"Southern California", 
> Title:"Jane Grove",
> Actual:44913, Estimate:45000},
> {State:"Idaho", Title:"Lauren Ipsum", Actual:38805,
Estimate:4},
> {Title:"ABD PST", Actual:38805, Estimate:4}
> 
>   ]);
> 
> 
> I defined the grouping as follows.
> 
> 
> 
> 
> 
> 
>   
> 
>   
>operation="SUM"/>
>operation="SUM"/>
>   
> 
>
> 
> 
>   
> 
>   
>operation="SUM"/>
>operation="SUM"/>
>   
> 
>
> 
> 
> 
> 
> 
> 
> The problem is with the last two rows in the dataprovider. ADG forces
> all of them to be at the same depth and adds 'Not Available' tree
> nodes instead of placing the rows without the open/close icons at the
> top level. Is it
> possible to disable grouping when not necessary? This is a common
> requirement and I believe there should be a way to get this working.
> 
> thanks,
> venkat
>




[flexcoders] Re: Internet Explorer cannot display the webpage

2008-07-07 Thread Ryan Moore
This isn't a Flex-specific issue. It sounds like you clicked "block
unsafe content." IE asks if you want to do this when you load Flash (or
many other things) from a url on your local filesystem.
(C:\...whatever), and then I guess it remembers that preference.

 

I don't know exactly where to turn that off, but googling "block unsafe
content" and your version of IE should find the answer.



[flexcoders] ViewStack init images problem

2008-07-07 Thread doubleyoucue
Hello,
I'm having a problem with initializing my ViewStack that contains 2
image files on application startup; I'll try my best to explain:
I'm using a ViewStack to hold 2 boxes that each contain a large image
that I'm using for a background. I switch between these images using 2
blur transitions, ideally:
bgImage1->blurOut, blurIn->bgImage2

However, this doesn't work properly the very first time the
application switches between images:
bgImage1->blurOut, [bgImage2-full], blurIn->bgImage2

Though after the first time it works as intended.
I'm trying to get rid of the 'background image #2' flash I'm getting
in between by blur transition.
I've set the ViewStacks creationPolicy to "all", but that has had no
effect.
Any help would be appreciated, thanks!
Billy



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:

   








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;i 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] 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] 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 
co

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]
 > wrote:

That would be a good candidate for a setter funcion.

Tracy

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
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:flexcoders@yahoogroups.com  ]
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/ 


 



[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] 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 = '' 
+ emailAddy + '';

   return mailtoEmailAddy;
   }

   And here is the renderer code:

   
   
   htmlText="{convertEmailToMailto(data.emailAddress)}"/>

   


   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  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  
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] 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 
org.eclipse.jface.action.ActionContributionItem.handleWid

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)




  

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




  

[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] 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)



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


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

 



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


[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

> , "Alex Harui" aharui@ wrote:
> >
> > Skin the way you normally do, but set the alpha=0
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com

> [mailto:flexcoders@yahoogroups.com

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





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


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


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



 MessageBrokerSer vlet
 /flex2gateway/ *


-- 

João Fernandes

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





  

[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



[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 
> , "Alex Harui"  wrote:
> >
> > Skin the way you normally do, but set the alpha=0
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ]
> 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 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
>  
> >   >
> >
> >
> >
> > 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
>  
> >   >
> >
>




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



 MessageBrokerSer vlet
 /flex2gateway/ *


-- 

João Fernandes

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




  

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 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Skin the way you normally do, but set the alpha=0
>
>
>
> 
>
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
]
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]
>  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
 
>  >
>
>
>
> 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
 
>  >
>

 



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



MessageBrokerServlet
/flex2gateway/*


-- 

João Fernandes

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



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

> , "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@yahoogroups.com

> ]
> On
> > Behalf Of pbrendanc
> > Sent: Sunday, July 06, 2008 2:28 AM
> > To: flexcoders@yahoogroups.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)
> >
> > 
> > [Event(name="addItemEvent", type = "flash.events.Event")]
> > 
> >
> > // 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
> >
>




[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


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.


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://mientretiempo.blogspot.com/ 


 



[flexcoders] Question for ?

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

 



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

 



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


[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



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 
on behalf of Hasan Maqbool
Sent: Fri 04/07/2008 07:28
To: flexcoders@yahoogroups.com  ;
[EMAIL PROTECTED]  
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.
__

 



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 
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] 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 
, "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] 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 
, "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] 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] 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  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] 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] 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] 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] 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
>
>
>
>


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





[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] 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;y

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




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

 

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
 

 

 

 



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] 
, "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@yahoogroups.com 
]
On
> Behalf Of pbrendanc
> Sent: Sunday, July 06, 2008 2:28 AM
> To: flexcoders@yahoogroups.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)
>
> 
> [Event(name="addItemEvent", type = "flash.events.Event")]
> 
>
> // 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
>

 



[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] 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?

 



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
 
Sent from the FlexCoders mailing list archive at Nabble.com.

 



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

 



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



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






[flexcoders] BlazeDS connect and disconnect issues

2008-07-07 Thread bbloggs96
I am using messaging within Blaze, and my application needs a fallback
solution if the Blaze server is disabled for any reason. My fallback
is to do application polling via HTTPService to get the required data.
I have got that side working.

When I do my testing to simulate the Blaze server being disabled, I
stop the web server, and my application successfully falls back to get
the data on a polling mechanism with a 15 seconds interval from a
database via HTTPService. It works. Just after I do a polling loop I
initiate a subscribe to the consumer service. I have an event listener
on the consumer ChannelEvent.CONNECT that when fired will stop the
application polling.

Trouble is that even though the subscribe is called the connection is
never established.

1. Should I be able to re-connect after the server hosting Blaze stops
and then starts again.

2. What is the best way to simulate a disabling of the Blaze server
for testing puposes.

Andrew



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


[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



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




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/



  1   2   >