RE: [flexcoders] Re: Seriously, what is the 'right' way to do default styles?

2008-02-01 Thread Alex Harui
So it turns out that Flex ignores the skin size if it less than 12.  You
can ask the skin for its measuredWidth/Height and you'll get the right
number, but the measure() method ignores it.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Friday, January 25, 2008 7:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Seriously, what is the 'right' way to do
default styles?

 

It seems that Flex 2 does in fact autosize, but it has a minimum size
of 12 x 12 to do so. If you assign an image whose dimensions are
smaller than that as a skin, the button will be scaled up to 12 x 12
if you don't provide an explicit size. This holds true in Flex 2, HF 1
through 3. Flex 3 will autosize anything, all the way down to a 1 x 1
skin.

I was using the simple test app below and adjusting the size of
closeButton.png to test. Luckily, my skins are currently 10 x 10 and I
think resaving them as 12 x 12 should be OK. Interesting nonetheless.

Ben


http://www.adobe.com/2006/mxml
 "
layout="absolute"
creationComplete="init()">

Button
{
upSkin: Embed(source="closeButton.png");
overSkin: Embed(source="closeButton.png");
downSkin: Embed(source="closeButton.png");
disabledSkin: Embed(source="closeButton.png");
}







 



RE: [flexcoders] Re: container width > parent container's width when vertical scrollbar present

2008-02-01 Thread Alex Harui
I spend a couple of minutes on this.  The rules are that, when
verticalScrollPolicy="auto" (default), the verticalScrollBar is not
factored into the measurements and overlaps content, otherwise it would
cause the scrollbar ripple.  The simplest change to remove the
horizontal scrollbar is to set verticalScrollPolicy="on" on the outer
Canvas.  That way the verticalScrollBar is factored in.  Because the
widths are preset in this example, it is safe to do that since you know
the verticalScrolLBar has to be on.  

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dfalling
Sent: Thursday, January 31, 2008 1:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: container width > parent container's width
when vertical scrollbar present

 

Thanks, I can understand that case as I've seen the scroll bars ripple
down before. The only part about this that feels like a bug is how no
matter how wide you make the outer container, it's always just a
little bit too small to fit its contents. Any help is greatly
appreciated...my current hack of disabling horizontal scrolling and
adding padding is far from elegant.

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If you comb through the archives you'll see that this topic comes up
> once a month. It isn't really a bug and is what we consider to be the
> lesser of two evils. If we shrank content area when scrollbars
> appeared, what would shrink a child container and cause it to show
> scrollbars and all you'd see is a cascade of scrollbars. So we don't,
> and you get into this situation instead. I'll try to solve your test
> case this weekend.

 



RE: [flexcoders] Re: Array vs ArrayCollection

2008-02-01 Thread Alex Harui
The List classes wrap arrays because they expect change events, but the
set of DataGridColumn and many other things are Arrays, and sometimes it
is faster to work directly with the Array inside the ArrayCollection.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rmarples
Sent: Friday, February 01, 2008 10:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Array vs ArrayCollection

 

But don't most controls internally wrap the array set as a dataprovider
into an 
arraycollection?

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You should use Array anywhere you don't need binding or events that
> indicate changes to the array.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Teddy Setiawan
> Sent: Thursday, January 31, 2008 8:39 AM
> To: flexcoders@yahoogroups.com  
> Subject: RE: [flexcoders] Re: Array vs ArrayCollection
> 
> 
> 
> I have the same problem regarding slower performance using
> arraycollection in some iterating process.
> Then I change it to array , but I get another big problem..memory
> leak.
> 
> I use the array for small iterating process and using arraycollection
> for larga data.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> To: flexcoders@yahoogroups.com  
> From: [EMAIL PROTECTED]
> Date: Thu, 31 Jan 2008 16:18:46 +
> Subject: [flexcoders] Re: Array vs ArrayCollection
> 
> This is something I too wonder about from time to time. I notice
> alot
> of developers are using the ArrayCollection for data binding but
> I
> can't say with 100% confidence why one would be used in any
> specific
> problem domain opposed to a basic array. I guess if you find you
> want
> to use the functions exposed by the ICollectionView and IList
> interfaces the ArrayCollection is your tool. 
> 
> Anybody have any clear examples? 
> 
> Nick
> 
> --- In flexcoders@yahoogroups.com
 
>  > , "rmarples"  wrote:
> >
> > We have recently made some big performance gains in our
> product by
> replacing the use of 
> > ArrayCollections with Arrays in some data calculation
> algorithms. It
> appears that even 
> > iterating through an ArrayCollection is significantly slower
> than an
> Array. 
> > 
> > My question to you all is... what have you found to be the
> best
> place to use one of the other 
> > in your applications? 
> > 
> > Ryan
> >
> 
> 
> 
> 
> 
> 
> 
> Connect and share in new ways with Windows Live. Get it now!
>
 
> 2008>
>

 



[flexcoders] Re: Array vs ArrayCollection

2008-02-01 Thread rmarples
But don't most controls internally wrap the array set as a dataprovider into an 
arraycollection?

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You should use Array anywhere you don't need binding or events that
> indicate changes to the array.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Teddy Setiawan
> Sent: Thursday, January 31, 2008 8:39 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Re: Array vs ArrayCollection
> 
>  
> 
> I have the same problem regarding slower performance using
> arraycollection in some iterating process.
> Then I change it to array , but I get another big problem..memory
> leak.
> 
> I use the array for small iterating process and using arraycollection
> for larga data.
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
>   To: flexcoders@yahoogroups.com
>   From: [EMAIL PROTECTED]
>   Date: Thu, 31 Jan 2008 16:18:46 +
>   Subject: [flexcoders] Re: Array vs ArrayCollection
> 
>   This is something I too wonder about from time to time. I notice
> alot
>   of developers are using the ArrayCollection for data binding but
> I
>   can't say with 100% confidence why one would be used in any
> specific
>   problem domain opposed to a basic array. I guess if you find you
> want
>   to use the functions exposed by the ICollectionView and IList
>   interfaces the ArrayCollection is your tool. 
>   
>   Anybody have any clear examples? 
>   
>   Nick
>   
>   --- In flexcoders@yahoogroups.com
>  , "rmarples"  wrote:
>   >
>   > We have recently made some big performance gains in our
> product by
>   replacing the use of 
>   > ArrayCollections with Arrays in some data calculation
> algorithms. It
>   appears that even 
>   > iterating through an ArrayCollection is significantly slower
> than an
>   Array. 
>   > 
>   > My question to you all is... what have you found to be the
> best
>   place to use one of the other 
>   > in your applications? 
>   > 
>   > Ryan
>   >
>   
>   
> 
>  
> 
> 
> 
> Connect and share in new ways with Windows Live. Get it now!
>  2008>
>





Re: [flexcoders] Generic showPopupWindow function

2008-02-01 Thread shrikant.patil

hi
please refer the link below, u may get useful;

http://blog.flexexamples.com/2007/08/20/creating-custom-dialog-boxes-using-the-popupmanager-and-titlewindow-classes/



markgoldin_2000 wrote:
> 
> I am trying to create a generic showpoppup function:
> public function showPopupWindow(parent:DisplayObject, 
> WhatToShow:String):void
> {
> var helpWindow:TitleWindow =
> TitleWindow(PopUpManager.createPopUp(parent, WhatToShow, true));
> PopUpManager.centerPopUp(helpWindow);
> } 
> 
> But WhatToShow is a string and not taken by PopUpManager.createPopUp.
> How can I specify a class to show?
> 
> Thanks
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Generic-showPopupWindow-function-tp15236288p15240076.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] How to remove color in a round area?

2008-02-01 Thread Larry Zhang
 

Hi all,

  I'm now doing something with BitmapData class. Now I have a bitmap
data with many colors in it. I want to implement some function like Eraser
in photo processing tools. User can choose some area and click a button to
remove all the colors in that area (set all colors to transparent). The area
user choose is round, so it seems I can't use some inner function which all
of them require the area is Rect. Is there any way I can deal with such
problem?

  Thanks a lot.

 

 

==

Make Every Day Count

 

Larry Zhang

 



RE: [flexcoders] padding on tab navigator, but for the tabs only

2008-02-01 Thread Tracy Spratt
Check out the Flex Style Explorer, it is excellent for experimenting
with what can be done.

http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplo
rer.html

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dnk
Sent: Friday, February 01, 2008 6:56 PM
To: flexcoders list
Subject: [flexcoders] padding on tab navigator, but for the tabs only

 

Good day,

I have a tab navigator in use which I have my tabs on the right side.
Now my tab navigator is set to be 100% wide as i need. However with my
tabs aligned right, they hit the edge of my browser. I was hoping
there was a way to pad just the tabs themselves and not the container
itself is this possible?

dnk

 



[flexcoders] padding on tab navigator, but for the tabs only

2008-02-01 Thread dnk
Good day,

I have a tab navigator in use which I have my tabs on the right side.
Now my tab navigator is set to be 100% wide as i need. However with my
tabs aligned right, they hit the edge of my browser. I was hoping
there was a way to pad just the tabs themselves and not the container
itself is this possible?

dnk


Re: [flexcoders] flex to movie clip control

2008-02-01 Thread Gustavo Duenas
thanks tracy but this is actually how to communicate using a flex  
application with a swf loaded in a swfloader.


yes a movie clip with some frames, something like gotoandstop(), etc.

Regards


Gustavo



On Feb 1, 2008, at 6:10 PM, Tracy Spratt wrote:



Well, I don’t do flash, and wouldn’t know a movieclip if it bit me  
on the butt, but if you want to use SWFLoader and communicate  
between the parent app and the content swf, check out this example,  
which extends the example in the docs.
http://www.cflex.net/showfiledetails.cfm? 
ChannelID=1&Object=File&objectID=690




Tracy



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

Sent: Friday, February 01, 2008 4:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex to movie clip control



Does anyone know where I can find a simple info about flex
controlling a movie clip inside a embedded swf?

Regards

Gustavo








RE: [flexcoders] flex to movie clip control

2008-02-01 Thread Tracy Spratt
Well, I don't do flash, and wouldn't know a movieclip if it bit me on
the butt, but if you want to use SWFLoader and communicate between the
parent app and the content swf, check out this example, which extends
the example in the docs.
http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
D=690

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gustavo Duenas
Sent: Friday, February 01, 2008 4:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex to movie clip control

 

Does anyone know where I can find a simple info about flex 
controlling a movie clip inside a embedded swf?

Regards

Gustavo

 



RE: [flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-01 Thread Tracy Spratt
Yep, as I said earlier, don't do it like that.  This warning is one
reason.  It won't work if you call the rpc service again.  Use a result
handler.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Bueche
Sent: Friday, February 01, 2008 3:18 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Embedding String Variable in dataprovider
name

 

That worked!

 

I still get the following warning:

 

Data binding will not be able to detect changes when using square
bracket operator. For Array, please use ArrraCollection.getItemAt()
instead.

 

But it still works. 

 

brad

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of jer_ela
Sent: Friday, February 01, 2008 3:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Embedding String Variable in
dataprovider name

If you use the square brackets then you don't use the dot so it
should be:

dataProvider="{chartXML2.lastResult[month].day}"

--- In flexcoders@yahoogroups.com
 , Maciek Sakrejda <[EMAIL PROTECTED]>
wrote:
>
> I'm no e4xpert, but
> 
> dataProvider="{chartXML2.lastResult.[month].day}"
> 
> should do it.
> 
> -- 
> Maciek Sakrejda
> Truviso, Inc.
> http://www.truviso.com  
> 
> -Original Message-
> From: brad.bueche <[EMAIL PROTECTED]>
> Reply-To: flexcoders@yahoogroups.com
 
> To: flexcoders@yahoogroups.com
 
> Subject: [flexcoders] Embedding String Variable in
dataprovider name
> Date: Fri, 01 Feb 2008 15:40:25 -
> 
> Really what I need to be able to do is insert the variable
name in this:
> 
> dataProvider="{chartXML2.lastResult.month.day}"
> 
> I need to replace the "month" with a string variable name (i.e
public
> var monthName = "January";)
> 
> I also need to do the same for the categoryfield as it will
not let me
> do categoryfield=$String.
> 
> In PHP this is incredibly easy to do. You just say
blah=$string . In
> fact, in PHP you can embed variable names everywhere. Its very
> powerful. For instance, in php, for the dataprovider issue
above, i'd
> just do
> 
> dataProvider="{chartXML2.lastResult.$StringName.day}"
> 
> and it'd work just fine. Whats the syntax for doing this in
Flex?
>

 



[flexcoders] Re: Pack and unpack for flex

2008-02-01 Thread atlantageek
FYI
pack and unpack are functions found in Ruby perl and other similar
scripting languages.

--- In flexcoders@yahoogroups.com, "Atlanta Geek" <[EMAIL PROTECTED]> wrote:
>
> Anyone know of if there is an implementation of pack and unpack for
> flex.  Or if not pack and unpack then how can I map binary strings
> into a class.
> I need to reimplement a binary socket protocol in flex. This protocol
> is legacy stuff and I don't have the option of reimplementing it in
> AMF or something like that.
> 
> 
> -- 
> Stability is for the weak!!!
> Long live the next big thing.
>




[flexcoders] Pack and unpack for flex

2008-02-01 Thread atlantageek
Anyone know of if there is an implementation of pack and unpack for
flex.  Or if not pack and unpack then how can I map binary strings
into a class.
I need to reimplement a binary socket protocol in flex. This protocol
is legacy stuff and I don't have the option of reimplementing it in
AMF or something like that.

Any guidance would be appreciated.



RE: [flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-01 Thread Brad Bueche
That worked!
 
I still get the following warning:
 
Data binding will not be able to detect changes when using square
bracket operator. For Array, please use ArrraCollection.getItemAt()
instead.
 
But it still works. 
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jer_ela
Sent: Friday, February 01, 2008 3:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Embedding String Variable in dataprovider name



If you use the square brackets then you don't use the dot so it should
be:

dataProvider="{chartXML2.lastResult[month].day}"

--- In [EMAIL PROTECTED] 
ups.com, Maciek Sakrejda <[EMAIL PROTECTED]> wrote:
>
> I'm no e4xpert, but
> 
> dataProvider="{chartXML2.lastResult.[month].day}"
> 
> should do it.
> 
> -- 
> Maciek Sakrejda
> Truviso, Inc.
> http://www.truviso.  com
> 
> -Original Message-
> From: brad.bueche <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED] 
ups.com
> To: [EMAIL PROTECTED]  ups.com
> Subject: [flexcoders] Embedding String Variable in dataprovider name
> Date: Fri, 01 Feb 2008 15:40:25 -
> 
> Really what I need to be able to do is insert the variable name in
this:
> 
> dataProvider="{chartXML2.lastResult.month.day}"
> 
> I need to replace the "month" with a string variable name (i.e public
> var monthName = "January";)
> 
> I also need to do the same for the categoryfield as it will not let me
> do categoryfield=$String.
> 
> In PHP this is incredibly easy to do. You just say blah=$string . In
> fact, in PHP you can embed variable names everywhere. Its very
> powerful. For instance, in php, for the dataprovider issue above, i'd
> just do
> 
> dataProvider="{chartXML2.lastResult.$StringName.day}"
> 
> and it'd work just fine. Whats the syntax for doing this in Flex?
>



 



[flexcoders] Pack and unpack for flex

2008-02-01 Thread Atlanta Geek
Anyone know of if there is an implementation of pack and unpack for
flex.  Or if not pack and unpack then how can I map binary strings
into a class.
I need to reimplement a binary socket protocol in flex. This protocol
is legacy stuff and I don't have the option of reimplementing it in
AMF or something like that.


-- 
Stability is for the weak!!!
Long live the next big thing.


Re: [flexcoders] Flex App in Email

2008-02-01 Thread [p e r c e p t i c o n]
thanks much!

On Feb 1, 2008 11:14 AM, Nick Collins <[EMAIL PROTECTED]> wrote:

>   Bottom line, you can't.
>
> For security reasons, email clients a) do not allow javascript to be
> executed, and b) standalone clients (Outlook, Thunderbird, Mail, etc.) do
> not support browser plugins, so even using a normal EMBED of the swf won't
> work.
>
>
> On Feb 1, 2008 12:44 PM, [p e r c e p t i c o n] <[EMAIL PROTECTED]>
> wrote:
>
> >   Hi All,
> > Does anyone have experience embedding a flex app in an email?
> > all suggestions welcome...
> > thanks
> >
>
>  
>


RE: [flexcoders] Re: Need IF Logic for Chart Data Provider

2008-02-01 Thread Brad Bueche
Abyss,
 
I forgot to mention, that I am using e4x. 
 
I see ted's mention of that "@" syntax not sure what that is. I'll have
play around with it. 
 
Do you know where there is a good practical (cheat sheet) approach (as
opposed to a comp sci approach) to using E4X?
 
I've looked at amfphp but I dont understand any of the examples.  
 
Right now, I think xml via e4x is kind of cool. This is an internal app
on 100Mb connections, and I'm creating all the xml before hand so
performance is not bad.  
 
thanks for your time!
 
brad
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abyss Knight
Sent: Friday, February 01, 2008 3:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Need IF Logic for Chart Data Provider



One option would be to change the chart's viewable area, as in modify
the start of the axes to only show the data you want to show. This
would obviously put a strain on the client if there was far too much
data loaded into an ArrayCollection though.

The other option is to query the XML using e4x and use the result as
the data provider:
http://www.onflex. 
org/ted/2006/12/xmle4x-vs-amf.php

Hope that helps,
-- William

--- In [EMAIL PROTECTED] 
ups.com, "Brad Bueche" <[EMAIL PROTECTED]> wrote:
>
> The problem (in short):
> I need to be able to hook up my charts to dataproviders where
>  equals "January". And only pull that. I dont need it to
> read every month in the hierarchy. Or month_name is January and
day_name
> is '14'. In order to do this I need to do IF logic with the
dataprovider
> it seems to me. My other post occurred because in leiu of being able
> to do "IF month_name='January'. I have just gone in and changed the
> xml so that instead of   [...] it now says 
>  etc. That sort of defeats the data
> description aspect of XML (it seems to me). 
> 
> 
> The background (if you are interested):
> This problem has to do with me NOT wanting to write 100+ reports to
> generate 100+ separate xml files to access.
> 
> I need to track the metrics of several internal groups over the year
via
> charting. I want to drill down into individual months (by day) and --
> maybe, days by hour. I also want to track into the sub groups per
> month and per day-in-month for each of these groups as well.
> 
> The data is network event traffic and doing the queries live will just
> not work. Users wont use the slicing and dicing visualization affords
if
> they have to wait every time the click an item.
> 
> So, I know I can save myself a lot of reports by putting all the data
> into about 10 - 20 reports or so by using the XML as its supposed to
be
> used (i.e. describing the data). I need to be able to hook the data
> provider to only a sub-node in the xml hierarchy and not have it read
> everything at that level. I need it to read only has long as
> month_name=January or month_name=January AND day_name='15'.
>



 



[flexcoders] Generic showPopupWindow function

2008-02-01 Thread markgoldin_2000
I am trying to create a generic showpoppup function:
public function showPopupWindow(parent:DisplayObject, 
WhatToShow:String):void
{
var helpWindow:TitleWindow =
TitleWindow(PopUpManager.createPopUp(parent, WhatToShow, true));
PopUpManager.centerPopUp(helpWindow);
}   

But WhatToShow is a string and not taken by PopUpManager.createPopUp.
How can I specify a class to show?

Thanks



[flexcoders] flex to movie clip control

2008-02-01 Thread Gustavo Duenas
Does anyone know where I can find a simple info about flex  
controlling a movie clip inside a embedded swf?


Regards


Gustavo




RE: [flexcoders] how to create a file and then download

2008-02-01 Thread Seth Caldwell
Sort of a limitation in flex, but created because of browser security. So
its not really a limitation of flex, but a limitation of the web in general.

What you are trying to do is very easy, though, so I wouldn't worry. If you
must send the file back and forth, you always can. 

In fact, its so simple I've made you an example (click the link to see it in
action):

http://groupnetwork.com/tools/echoDownload.php?filename=test.txt
 &filedata=this is what goes
in the txt file

 



 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of coder3
Sent: Thursday, January 31, 2008 6:39 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how to create a file and then download

 


so basically i have to generate the file on server? 

currently my server returns an xml file via httpService. but i need a text
file for user to download. The best way is to create that (temp) text file
on my application and then download it. but sounds like it can't be done and
i have to call my server with the extra filtering parameters to make it
generate the text file.

isn't this one of the Flex limitations?

-c

Seth Caldwell-2 wrote:
> 
> You shouldn't have to save it on the server at all. You can return the
> data
> that was posted directly as a download. I would stray away from using a
> query string and use HTTP_POST instead.
> 
> Another thing you could do rather than send all the data to the server
> again
> would be to send parameters that specify what filtering the user did, and
> do
> that on the dataset on the server side, generate the file you want to have
> them download and send it.
> 
> 
> 
> Seth
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On
> Behalf Of coder3
> Sent: Thursday, January 31, 2008 5:03 PM
> To: flexcoders@yahoogroups.com  
> Subject: RE: [flexcoders] how to create a file and then download
> 
> 
> 
> 
> ok, if i send the data to the server, and server can generate it. for
> example,
> 
> my application is at http:/www.myapp.com/myapp, and i need to call
> "http://www.myserver.com/report.pl?myparameters"; so that it returns a text
> file, do i have to save it to the location where my application is and
> then
> download it?
> 
> thanks
> 
> -c
> 
> Tracy Spratt wrote:
>> 
>> Send the data to the server, generate the file there, pass back the
>> saved location, and download it.
>> 
>> Tracy
>> 
>> 
>> 
>> 
>> 
>> From: flexcoders@yahoogroups.com 

> [mailto:flexcoders@yahoogroups.com 
 ]
> On
>> Behalf Of coder3
>> Sent: Thursday, January 31, 2008 6:34 PM
>> To: flexcoders@yahoogroups.com 
 
>> Subject: [flexcoders] how to create a file and then download
>> 
>> 
>> 
>> 
>> Hi, 
>> I need to generate a file based on the current data on the page and then
>> download it. help?
>> 
>> the sample code i can find is to download an existing file from the same
>> directory as the SWF document. 
>> 
>> thanks!
>> 
>> c
>> -- 
>> View this message in context:
>> http://www.nabble.com/how-to-create-a-file-and-then-download-tp15217361p
>> 15217361.html
>> > p15217361.html> 
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>> 
>> 
>> 
>> 
>> 
> 
> -- 
> View this message in context:
>
http://www.nabble.com/how-to-create-a-file-and-then-download-tp15217361p1521
> 8596.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
> 
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/how-to-create-a-file-and-then-download-tp15217361p1521
9588.html
Sent from the FlexCoders mailing list archive at Nabble.com.

 



RE: [flexcoders] LCDS and log4J

2008-02-01 Thread Seth Hodgson
I think that the logging system in LCDS was originally put in to
explicitly avoid issues with using log4j in shared deployment
environments that the JRun team often ran into due to different web apps
or libraries bundling different, and apparently non-compatible, log4j
releases or configuration files. That may have only been an issue with
older releases of log4j, I'm not sure and don't know the details.

LCDS ships with two 'targets', one that outputs to System.out (which may
output to your container's log files if it redirects System.out) and the
other that logs using ServletContext.log() which will output to your
container's log files. 

Seth



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: Wednesday, January 30, 2008 12:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LCDS and log4J



Is there any way to log LCDS through log4j instead of my Tomcat
catalina.out? - Kevin



 


[flexcoders] Re: Flex running in Flash Lite 3 Developer edition

2008-02-01 Thread tomeuchre
--- In flexcoders@yahoogroups.com, "Guilherme Defreitas Juraszek" 
<[EMAIL PROTECTED]> wrote:
>
> Hi
> 
>  
> 
> Flex 3 runs in Flash Lite 3? 
> 
>  
> 
> I try to run the simple application in my N95 with Flash Player 3 
Developer
> and I receive the error "Not enough memory". If I know Flash Lite 3 
runs AS
> 2, not 3. This is the reason for de incompatibility?
> 
>  
> 
>  
> 
> Thanks
>
I thought I heard somewhere that the FlashLite3 can be coerced into  
it by having flash compile against Flex swcs (http://labs.qi-
ideas.com/2007/12/25/using-flex-compiled-code-within-flash). I just 
got an N95 8GB but don't have time to mess with it yet. If you find 
anything out post your info here please.
Thanks




Re: [flexcoders] RE: Flex, Thermo, Flash - Why Thermo? Make Flash & Flex Happy Together...

2008-02-01 Thread Jamie S
I don't think IDE is the issue (I use Textmate sometimes). Even MXML
compiles down to ActionScript. But try using any .as file from the
Flex Framework in Flash _or_ Flash Component .as file in Flex... You
are looking at nightmareish integration problems as the OP has found
out.

I like Flex a lot, I'm not trying to be a downer, but I see so much
potential and it's frustrating to think that we could have that
glorious future now if Adobe had been thinking about platform
integration from the start.

Jamie

On Feb 1, 2008 12:44 PM, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
> Well, to be fair to Adobe, they had a sweet deal when they could build
> Flexbuilder off the Eclipse sourcecode.  Eclipse was not built for Flash,
> AFAIK, it was built as a general code editor (mostly Java focused I think
> initially), and to get it more integrated with Flash, they probably did as
> much as they could given the time to get Flexbuilder 2 out the door.  I'm
> SURE they are working towards tighter integration with the Flash IDE and
> vice versa.  Just know that Flexbuilder 2/3 is a fairly young product, I
> don't think it's really fair to call the present "crappy", it's a great tool
> if you look at the big picture and where things are headed.  One of the
> things Adobe talked about at Max in Chicago when presenting Thermo is that
> it may (or may not) one day be part of Flexbuilder, it's not for certain it
> will be a stand-alone tool (but then, it's also not for certain it will ever
> be made public at all).
>
>
> Jason Merrill
> Bank of America
> GT&O L&LD Solutions Design & Development
> eTools & Multimedia
>
> Bank of America Flash Platform Developer Community
>
>
>
>
>
>  
>  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Clinton D. Judy
> Sent: Friday, February 01, 2008 3:29 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] RE: Flex, Thermo, Flash - Why Thermo? Make Flash &
> Flex Happy Together...
>
>
>
>
>
>
>
>
>
> Gosh, I'm in the same boat. I've been trying to figure out how to do this
> one application for a personal project, and it could honestly use a 50-50
> blend of Flash and Flex. I think it's weird that a third application has to
> come out to bridge Flash and Flex together. Why can't the two become
> slightly more like each other, to the point where I can just use Flex and AS
> for components and code, then use Flash to decide what those components are
> going to look like and where they're going to go? The future is glorious,
> but the present is crappy…
>
>
>
>
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Justin Winter
> Sent: Friday, February 01, 2008 3:22 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] RE: Flex, Thermo, Flash - Why Thermo? Make Flash &
> Flex Happy Together...
>
>
>
>
>
>
> Jaime,
>
> Nice to hear someone else feels similar to the way I do regarding this
> topic.
>
> I really don't want to come off on this thread as being unhappy with
> Flex or Flash. I LOVE flex, I love Flash, I love Actionscript 3.0, the
> guys and girls on the Flash & Flex teams are seriously my heroes.
>
> I'm sure this topic has cropped up in Adobe as I've heard it at
> several conferences and flex camps. I think it's a healthy discussion
> and probably the absolutely right forum to post this on as I don't
> know too many designers that hang out here.
>
> The bottom line is that this argument is nothing new. Designers have
> been trying to convince coders of how important design is for years
> and years.
>
> Coming from the design world myself, then going back to school for
> computer science, this topic was always a struggle for me to convince
> my fellow coders of how important it is to pay attention to designers.
> (A perfect example these days is Apple)
>
> I'm sure things will improve in future versions of both applications!
> Wish we could fast forward to Flex 5 and Flash CS5.
>
> Justin Winter
> Useflexmore.com
>
>
>
>  


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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


RE: [flexcoders] Invalid login with LCDS RemoteObject custom authentication

2008-02-01 Thread Seth Hodgson
Hi Rod,

What's the specific error you're hitting (either on the client or
recorded in your server logs)?

Have you tried defining your  at the top level in
services-config.xml, and then just referencing it from your destination?

Best,
Seth 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rod
Sent: Sunday, January 27, 2008 1:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Invalid login with LCDS RemoteObject custom
authentication



Hello
I'm trying to secure a service used with LCDS through a RemothObject 
but I always get an invalid login. Here is my config.

I'm using Tomcat 5.5.25 with a tomcat-users.xml like this :















In my remoting-config.xml :



services.SimpleService
application



Custom

sampleuser





In my context.xml






I've haded the flex-tomcat-common.jar in common/lib and flex-tomcat- 
server.jar in server/lib

Any idea ? Thanks


 


RE: [flexcoders] Proxying RMPTS in a DMZ

2008-02-01 Thread Seth Hodgson
There's no way to load balance both AMF (sticky HTTPS with cookies) and
direct RTMPS socket connections from a swf to the same backing
application server. 

I'd recommend sticking to all HTTPS communication between the client and
server or all RTMPS. There's nothing preventing the client from making
its remoting calls over the same RTMPS channel it's using for messaging
or data management.

We don't currently provide a solution for handling RTMP connection
authentication in the DMZ and then proxying back to the app server tier.
Existing customers use hardware load balancers (optionally including SSL
acceleration) configured to do straight TCP pass-through, in order to
round-robin RTMP/S connections back to their application server tier
with authentication happening there.

If that's not an option (RTMPS with TCP pass-through), you'll need to go
with HTTPS long-polling (with a recommended server wait of 1 minute)
through your redirector. If the redirector does like lots of
'longer-lived' HTTP connections, then you might be best off with simple
polling over HTTPS.

Best,
Seth



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh VanderBerg
Sent: Saturday, January 26, 2008 4:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Proxying RMPTS in a DMZ



I have a situation where I need to make a tomcat web server running
LCDS accessible on the internet. Our flex application talks to the
web server over https for Remote Object AMF requests, and over RMTPS
using the messaging protocol for push.

I don't want to put the web server in the DMZ, for security reasons,
so the most obvious solution is a reverse proxy in the DMZ. With a
previous flex app we've used the tomcat redirector, which works fine
for http based AMF requests, but it won't work for RMTPS, as this is a
persistent socket connection, with its own protocol that the tomcat
redirector doesn't understand.

I haven't been able to find much in the way of documentation on this
topic on the Adobe website. I did find mention of deploying another
Adobe enterprise app that uses RMTP using SSL accelerators in the DMZ,
but I am not sure this will work with flex.

I was wondering if anybody out there has successfully configured such
a solution to proxy AMF and RMTP request from a DMZ.



 


RE: [flexcoders] RE: Flex, Thermo, Flash - Why Thermo? Make Flash & Flex Happy Together...

2008-02-01 Thread Merrill, Jason
Well, to be fair to Adobe, they had a sweet deal when they could build
Flexbuilder off the Eclipse sourcecode.  Eclipse was not built for
Flash, AFAIK, it was built as a general code editor (mostly Java focused
I think initially), and to get it more integrated with Flash, they
probably did as much as they could given the time to get Flexbuilder 2
out the door.  I'm SURE they are working towards tighter integration
with the Flash IDE and vice versa.  Just know that Flexbuilder 2/3 is a
fairly young product, I don't think it's really fair to call the present
"crappy", it's a great tool if you look at the big picture and where
things are headed.  One of the things Adobe talked about at Max in
Chicago when presenting Thermo is that it may (or may not) one day be
part of Flexbuilder, it's not for certain it will be a stand-alone tool
(but then, it's also not for certain it will ever be made public at
all).
 

Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Clinton D. Judy
Sent: Friday, February 01, 2008 3:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] RE: Flex, Thermo, Flash - Why Thermo?
Make Flash & Flex Happy Together...





Gosh, I'm in the same boat. I've been trying to figure out how
to do this one application for a personal project, and it could honestly
use a 50-50 blend of Flash and Flex. I think it's weird that a third
application has to come out to bridge Flash and Flex together. Why can't
the two become slightly more like each other, to the point where I can
just use Flex and AS for components and code, then use Flash to decide
what those components are going to look like and where they're going to
go? The future is glorious, but the present is crappy...



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Justin Winter
Sent: Friday, February 01, 2008 3:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: Flex, Thermo, Flash - Why Thermo? Make
Flash & Flex Happy Together...



Jaime,

Nice to hear someone else feels similar to the way I do
regarding this
topic. 

I really don't want to come off on this thread as being unhappy
with
Flex or Flash. I LOVE flex, I love Flash, I love Actionscript
3.0, the
guys and girls on the Flash & Flex teams are seriously my
heroes.

I'm sure this topic has cropped up in Adobe as I've heard it at
several conferences and flex camps. I think it's a healthy
discussion
and probably the absolutely right forum to post this on as I
don't
know too many designers that hang out here. 

The bottom line is that this argument is nothing new. Designers
have
been trying to convince coders of how important design is for
years
and years. 

Coming from the design world myself, then going back to school
for
computer science, this topic was always a struggle for me to
convince
my fellow coders of how important it is to pay attention to
designers.
(A perfect example these days is Apple)

I'm sure things will improve in future versions of both
applications!
Wish we could fast forward to Flex 5 and Flash CS5. 

Justin Winter
Useflexmore.com





 



RE: [flexcoders] Re: How can I save XML path deep inside my XML data ?

2008-02-01 Thread Tracy Spratt
Here is another possibility.

 

Climb up the ancestor chain, saving the current node's childIndex() at
each point, maybe in a delimited string.  You chould then "replay" that
string, using .child(i) to retrace your path.

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Friday, February 01, 2008 3:21 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: How can I save XML path deep inside my XML
data ?

 

Yes, you will need to do something like this, save a reference.  On
problem is that you can't easily run-time parse a string representation
of an e4x expression.  Look in the archives, there are some techniques
that let you do it, but they are not simple.

 

Save a reference, that is probably the best way.

 

Another possibility: Find your node, then assign a special id attribute,
with a unique string id value.  Then use e4x to locate the node using
that string id.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jhonny Everson
Sent: Thursday, January 31, 2008 9:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How can I save XML path deep inside my XML
data ?

 

I guess you haven't explained very well yet. But let's present you some
approach that MAY be what you are looking. That's saving the reference.

var lastMatch:XML;

for (...){
   if( condition_matched){
lastMatch = (absolute path); //
myXml.books[0].book.covers.cover[2].items[2].data123 for example
break;
   }
}

then you can use lastMatch as a reference to that absolute path.




On Jan 31, 2008 10:18 PM, helihobby <[EMAIL PROTECTED]
 > wrote:

I mean, I would like to be able to get the same exact location in the
XML path every time I run my for loop and stop on some condition.

For example some sort of function that returns:



myXml.books[0].book.covers.cover[2].items[2].data123

if data123 is the value in my For Loop that I break on ( match on ) on
the XML in question.

Hope this helps,

Sean.



--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> What do you mean by "...save the absolute path..."? 
> 
> 
> 
> Save a reference?
> 
> 
> 
> Save a string representation of the ancestor chain?
> 
> 
> 
> What do you want to do?
> 
> 
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of helihobby
> Sent: Thursday, January 31, 2008 6:42 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] How can I save XML path deep inside my XML data
?
> 
> 
> 
> Hello,
> 
> I have a very large XML.
> 
> I have a function which reads the XML and finds something that I am
> looking for ( lets say data123 )
> 
> Once I find it I wish to save the absolute path to it ...
> Is that possible ?
> 
> For example:
> 
> I wish to save:
> 
> myXml.books[0].book.covers.cover[2].items[2].data123
> 
> However I can not build the above statement since the XML is dynamic.
> I wish for the function to return the absolute path of the item after
> I find it ...
> 
> Thanks in advance,
> 
> Sean.
>




-- 
Jhonny Everson 

 



RE: [flexcoders] RE: Flex, Thermo, Flash - Why Thermo? Make Flash & Flex Happy Together...

2008-02-01 Thread Clinton D. Judy
Gosh, I'm in the same boat. I've been trying to figure out how to do
this one application for a personal project, and it could honestly use a
50-50 blend of Flash and Flex. I think it's weird that a third
application has to come out to bridge Flash and Flex together. Why can't
the two become slightly more like each other, to the point where I can
just use Flex and AS for components and code, then use Flash to decide
what those components are going to look like and where they're going to
go? The future is glorious, but the present is crappy...

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Justin Winter
Sent: Friday, February 01, 2008 3:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: Flex, Thermo, Flash - Why Thermo? Make Flash &
Flex Happy Together...

 

Jaime,

Nice to hear someone else feels similar to the way I do regarding this
topic. 

I really don't want to come off on this thread as being unhappy with
Flex or Flash. I LOVE flex, I love Flash, I love Actionscript 3.0, the
guys and girls on the Flash & Flex teams are seriously my heroes.

I'm sure this topic has cropped up in Adobe as I've heard it at
several conferences and flex camps. I think it's a healthy discussion
and probably the absolutely right forum to post this on as I don't
know too many designers that hang out here. 

The bottom line is that this argument is nothing new. Designers have
been trying to convince coders of how important design is for years
and years. 

Coming from the design world myself, then going back to school for
computer science, this topic was always a struggle for me to convince
my fellow coders of how important it is to pay attention to designers.
(A perfect example these days is Apple)

I'm sure things will improve in future versions of both applications!
Wish we could fast forward to Flex 5 and Flash CS5. 

Justin Winter
Useflexmore.com

 



RE: [flexcoders] Embedding String Variable in dataprovider name

2008-02-01 Thread Tracy Spratt
When you use bracket notation, it replaces the left "dot.  Try:

chartXML2.lastResult[month].day

 

However, this is going to be hard to debug.  I'd advise binding to an
instance variable, and assigning the xmllist to that var in a result
handler.

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Bueche
Sent: Friday, February 01, 2008 1:32 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Embedding String Variable in dataprovider name

 

Maciek,

 

Thanks for the quick reply.

 

That generates the following errors:

 

Syntax error: expecting rightparen before rightbrace. [Generated code
(use -keep to save):

1084: Syntax error: expecting identifier before leftbracket

1084: Syntax error: expecting rightparen before destination

 

I put a right paren before it just to see what would happen.  It got rid
of the errors! but it still didnt work :(

 

I was able to get categoryfield and title to accept the  ="{StringName}"
syntax though.   I even tried to replace the entire  dataprovider entry
with a stringname, like so:

 

dataprovider="{stringName]"

 

but that did not work either. 

 

There is a larger problem that led me down this path.  But I'll open
that in another thread as it would still be really cool to figure if I
could do what we are talking about in this thread.

 

brad

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Maciek Sakrejda
Sent: Friday, February 01, 2008 12:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Embedding String Variable in
dataprovider name

I'm no e4xpert, but

dataProvider="{chartXML2.lastResult.[month].day}"

should do it.

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com  

-Original Message-
From: brad.bueche <[EMAIL PROTECTED]  >
Reply-To: flexcoders@yahoogroups.com
 
To: flexcoders@yahoogroups.com
 
Subject: [flexcoders] Embedding String Variable in dataprovider
name
Date: Fri, 01 Feb 2008 15:40:25 -

Really what I need to be able to do is insert the variable name
in this:

dataProvider="{chartXML2.lastResult.month.day}"

I need to replace the "month" with a string variable name (i.e
public
var monthName = "January";)

I also need to do the same for the categoryfield as it will not
let me
do categoryfield=$String.

In PHP this is incredibly easy to do. You just say blah=$string
. In
fact, in PHP you can embed variable names everywhere. Its very
powerful. For instance, in php, for the dataprovider issue
above, i'd
just do

dataProvider="{chartXML2.lastResult.$StringName.day}"

and it'd work just fine. Whats the syntax for doing this in
Flex? 

 



[flexcoders] RE: Flex, Thermo, Flash - Why Thermo? Make Flash & Flex Happy Together...

2008-02-01 Thread Justin Winter
Jaime,

Nice to hear someone else feels similar to the way I do regarding this
topic. 

I really don't want to come off on this thread as being unhappy with
Flex or Flash. I LOVE flex, I love Flash, I love Actionscript 3.0, the
guys and girls on the Flash & Flex teams are seriously my heroes.

I'm sure this topic has cropped up in Adobe as I've heard it at
several conferences and flex camps. I think it's a healthy discussion
and probably the absolutely right forum to post this on as I don't
know too many designers that hang out here. 

The bottom line is that this argument is nothing new. Designers have
been trying to convince coders of how important design is for years
and years. 

Coming from the design world myself, then going back to school for
computer science, this topic was always a struggle for me to convince
my fellow coders of how important it is to pay attention to designers.
(A perfect example these days is Apple)

I'm sure things will improve in future versions of both applications!
Wish we could fast forward to Flex 5 and Flash CS5. 

Justin Winter
Useflexmore.com




RE: [flexcoders] Set dataProvider method stops at midpoint?

2008-02-01 Thread Merrill, Jason
ah getStackTrace- thanks Alex.  Only been digging aroundin AS3 since
Dec. Need to do some more reading in the help docs on the Error class.
 

Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 




RE: [flexcoders] Re: How can I save XML path deep inside my XML data ?

2008-02-01 Thread Tracy Spratt
Yes, you will need to do something like this, save a reference.  On
problem is that you can't easily run-time parse a string representation
of an e4x expression.  Look in the archives, there are some techniques
that let you do it, but they are not simple.

 

Save a reference, that is probably the best way.

 

Another possibility: Find your node, then assign a special id attribute,
with a unique string id value.  Then use e4x to locate the node using
that string id.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jhonny Everson
Sent: Thursday, January 31, 2008 9:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How can I save XML path deep inside my XML
data ?

 

I guess you haven't explained very well yet. But let's present you some
approach that MAY be what you are looking. That's saving the reference.

var lastMatch:XML;

for (...){
   if( condition_matched){
lastMatch = (absolute path); //
myXml.books[0].book.covers.cover[2].items[2].data123 for example
break;
   }
}

then you can use lastMatch as a reference to that absolute path.



On Jan 31, 2008 10:18 PM, helihobby <[EMAIL PROTECTED]
 > wrote:

I mean, I would like to be able to get the same exact location in the
XML path every time I run my for loop and stop on some condition.

For example some sort of function that returns:



myXml.books[0].book.covers.cover[2].items[2].data123

if data123 is the value in my For Loop that I break on ( match on ) on
the XML in question.

Hope this helps,

Sean.



--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> What do you mean by "...save the absolute path..."? 
> 
> 
> 
> Save a reference?
> 
> 
> 
> Save a string representation of the ancestor chain?
> 
> 
> 
> What do you want to do?
> 
> 
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of helihobby
> Sent: Thursday, January 31, 2008 6:42 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] How can I save XML path deep inside my XML data
?
> 
> 
> 
> Hello,
> 
> I have a very large XML.
> 
> I have a function which reads the XML and finds something that I am
> looking for ( lets say data123 )
> 
> Once I find it I wish to save the absolute path to it ...
> Is that possible ?
> 
> For example:
> 
> I wish to save:
> 
> myXml.books[0].book.covers.cover[2].items[2].data123
> 
> However I can not build the above statement since the XML is dynamic.
> I wish for the function to return the absolute path of the item after
> I find it ...
> 
> Thanks in advance,
> 
> Sean.
>




-- 
Jhonny Everson 

 



[flexcoders] Re: Need IF Logic for Chart Data Provider

2008-02-01 Thread Abyss Knight
One option would be to change the chart's viewable area, as in modify
the start of the axes to only show the data you want to show. This
would obviously put a strain on the client if there was far too much
data loaded into an ArrayCollection though.

The other option is to query the XML using e4x and use the result as
the data provider:
http://www.onflex.org/ted/2006/12/xmle4x-vs-amf.php


Hope that helps,
-- William

--- In flexcoders@yahoogroups.com, "Brad Bueche" <[EMAIL PROTECTED]> wrote:
>
> The problem (in short):
> I need to be able to hook up my charts to dataproviders where
>  equals "January". And only pull that.  I dont need it to
> read every month in the hierarchy. Or month_name is January and day_name
> is '14'. In order to do this I need to do IF logic with the dataprovider
> it seems to me.   My other post occurred because in leiu of being able
> to do  "IF month_name='January'.  I have just gone in and changed the
> xml so that instead of   [...]  it now says 
>  etc. That sort of defeats the data
> description aspect of XML (it seems to me).  
>  
>  
> The background (if you are interested):
> This problem has to do with me NOT wanting to write 100+ reports to
> generate 100+ separate xml files to access.
>  
> I need to track the metrics of several internal groups over the year via
> charting.  I want to drill down into individual months (by day) and --
> maybe, days by hour.   I also want to track into the sub groups per
> month and per day-in-month for each of these groups as well.
>  
> The data is network event traffic and doing the queries live will just
> not work. Users wont use the slicing and dicing visualization affords if
> they have to wait every time the click an item.
>  
> So, I know I can save myself a lot of reports by putting all the data
> into about 10 - 20 reports or so by using the XML as its supposed to be
> used (i.e. describing the data).  I need to be able to hook the data
> provider to only a sub-node in the xml hierarchy and not have it read
> everything at that level. I need it to read only has long as
> month_name=January or month_name=January AND day_name='15'.
>




RE: [flexcoders] Set dataProvider method stops at midpoint?

2008-02-01 Thread Alex Harui
e.getStackTrace().  It will show you the line number that died.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Merrill, Jason
Sent: Friday, February 01, 2008 11:57 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Set dataProvider method stops at midpoint?

 

When you say, "dump the stacktrace from the error", do you mean what I'm
doing here or something different?  Here is what I'm doing:

 

   try
   {
_myClass = new MyClass(this, _dp);
   }
   catch (e:Error)
   {
trace("A code error occured. "+e.message);
   }

 

Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 

 

 

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Friday, February 01, 2008 2:38 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Set dataProvider method stops at
midpoint?

I usually put a try/catch around the suspected line and dump the
stacktrace from the error.






From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Friday, February 01, 2008 11:25 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Set dataProvider method stops at
midpoint?

Thanks Alex, Jim, I'm sprinkling around some try/catch
statements and I'll try debugging this a little further.  Seems
something in my class is getting a null value somewhere, so that's a
start anyway.  

Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 






size=2 width="100%" align=center tabIndex=-1> 

From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Hayes
Sent: Friday, February 01, 2008 1:34 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Set dataProvider method stops
at midpoint?

That's making sense for me now, a few days ago I made a
*very* stupid mistake and saw exactly the same symptoms as you, Jason.
Again, a simple bare bones test showed everything working exactly as
expected, yet the flow of execution in the application itself stopped
dead with no error raised. Stepping in the debugger last saw it
disappearing somewhere(?) into the binding code ... Whilst totally
confused at the time, luckily I did spot my obvious error whilst
scratching my head and looking at the method in question ...
Thanks Alex, that does help me understand why.

-Original Message-
From: flexcoders@yahoogroups.com
  on behalf of Alex Harui
Sent: Fri 01/02/2008 18:11
To: flexcoders@yahoogroups.com
 
Subject: RE: [flexcoders] Set dataProvider method stops
at midpoint?

Don't forget Jason, we're all new to AS3, no matter how
much time you
spent with AS2. In AS3, if some outer method in your
call stack has a
try/catch handler (which binding does), then if
something in the "new
MyClass" line throws an error, you'll see exactly what
you described.



From: flexcoders@yahoogroups.com

[mailto:flexcoders@yahoogroups.com 
] On
Behalf Of Merrill, Jason
Sent: Friday, February 01, 2008 8:21 AM
To: flexcoders@yahoogroups.com
 
Subject: [flexcoders] Set dataProvider method stops at
midpoint?

I'm somewhat new to Flex, but NOT new to Actionscript,
and this is the
oddest and one of the most frustrating things I have
ever had to debug.
I'm sure it's just me not understanding how Flex,
components, and
databinding works, but I'm at a loss. The core of my
question is: What
could cause a method to stop executing completely in the
middle and not
have the debugger complain of any errors? I have
verified this happens
in my application through trace statements, but have not
been able to
reproduce it with simple test cases which mimics the
same structure (as
far as I can tell).

I have an actionscript-written component that extends
UIC

[flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-01 Thread jer_ela
If you use the square brackets then you don't use the dot so it should be:

dataProvider="{chartXML2.lastResult[month].day}"

--- In flexcoders@yahoogroups.com, Maciek Sakrejda <[EMAIL PROTECTED]> wrote:
>
> I'm no e4xpert, but
> 
> dataProvider="{chartXML2.lastResult.[month].day}"
> 
> should do it.
> 
> -- 
> Maciek Sakrejda
> Truviso, Inc.
> http://www.truviso.com
> 
> -Original Message-
> From: brad.bueche <[EMAIL PROTECTED]>
> Reply-To: flexcoders@yahoogroups.com
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Embedding String Variable in dataprovider name
> Date: Fri, 01 Feb 2008 15:40:25 -
> 
> Really what I need to be able to do is insert the variable name in this:
> 
> dataProvider="{chartXML2.lastResult.month.day}"
> 
> I need to replace the "month" with a string variable name (i.e public
> var monthName = "January";)
> 
> I also need to do the same for the categoryfield as it will not let me
> do categoryfield=$String.
> 
> In PHP this is incredibly easy to do. You just say blah=$string . In
> fact, in PHP you can embed variable names everywhere. Its very
> powerful. For instance, in php, for the dataprovider issue above, i'd
> just do
> 
> dataProvider="{chartXML2.lastResult.$StringName.day}"
> 
> and it'd work just fine. Whats the syntax for doing this in Flex?
>




RE: [flexcoders] Set dataProvider method stops at midpoint?

2008-02-01 Thread Merrill, Jason
When you say, "dump the stacktrace from the error", do you mean what I'm
doing here or something different?  Here is what I'm doing:
 
   try
   {
_myClass = new MyClass(this, _dp);
   }
   catch (e:Error)
   {
trace("A code error occured. "+e.message);
   }
 

Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Friday, February 01, 2008 2:38 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Set dataProvider method stops at
midpoint?





I usually put a try/catch around the suspected line and dump the
stacktrace from the error.







From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Friday, February 01, 2008 11:25 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Set dataProvider method stops at
midpoint?



Thanks Alex, Jim, I'm sprinkling around some try/catch
statements and I'll try debugging this a little further.  Seems
something in my class is getting a null value somewhere, so that's a
start anyway.  



Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Hayes
Sent: Friday, February 01, 2008 1:34 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Set dataProvider method stops
at midpoint?

That's making sense for me now, a few days ago I made a
*very* stupid mistake and saw exactly the same symptoms as you, Jason.
Again, a simple bare bones test showed everything working exactly as
expected, yet the flow of execution in the application itself stopped
dead with no error raised. Stepping in the debugger last saw it
disappearing somewhere(?) into the binding code ... Whilst totally
confused at the time, luckily I did spot my obvious error whilst
scratching my head and looking at the method in question ...
Thanks Alex, that does help me understand why.

-Original Message-
From: flexcoders@yahoogroups.com
  on behalf of Alex Harui
Sent: Fri 01/02/2008 18:11
To: flexcoders@yahoogroups.com
 
Subject: RE: [flexcoders] Set dataProvider method stops
at midpoint?

Don't forget Jason, we're all new to AS3, no matter how
much time you
spent with AS2. In AS3, if some outer method in your
call stack has a
try/catch handler (which binding does), then if
something in the "new
MyClass" line throws an error, you'll see exactly what
you described.



From: flexcoders@yahoogroups.com

[mailto:flexcoders@yahoogroups.com 
] On
Behalf Of Merrill, Jason
Sent: Friday, February 01, 2008 8:21 AM
To: flexcoders@yahoogroups.com
 
Subject: [flexcoders] Set dataProvider method stops at
midpoint?

I'm somewhat new to Flex, but NOT new to Actionscript,
and this is the
oddest and one of the most frustrating things I have
ever had to debug.
I'm sure it's just me not understanding how Flex,
components, and
databinding works, but I'm at a loss. The core of my
question is: What
could cause a method to stop executing completely in the
middle and not
have the debugger complain of any errors? I have
verified this happens
in my application through trace statements, but have not
been able to
reproduce it with simple test cases which mimics the
same structure (as
far as I can tell).

I have an actionscript-written component that extends
UIComponent. In
the main app, I have some dummy data put into an
ArrayCollection which
is in an init() function, which is fired upon the Flex
app's
creationComplete event (see sample code at the bottom of
this post). In
the component which extends UIComponent and overwrites
some met

[flexcoders] Re: [flexcomponents] autoresize text area as a itemrenderer

2008-02-01 Thread Manish Jethani
On 2/1/08, learner <[EMAIL PROTECTED]> wrote:

>  thanks Manish,
> But in which function shall i do that??
> In measure(), in updateDisplayList () or commitProperty().
> and . also the height of the textArea should affect the row height in
> list...
> so i also need to dosomething like this
>
> this.height = messageTxt.heigt+messageTxt.y

If you want your item renderer to affect the height of the row, all
you have to do is set the correct measuredHeight in your measure()
implementation. Note that you have to set your measuredHeight, not
your height! Flex components don't set their own width/height: that's
a rule. You set your measuredWidth and measuredHeight and let the
parent decide how it wants to size you.

Now, to compute your measuredHeight, you need to use the
measuredHeight of the TextArea object. TextArea objects don't measure
their size based on their contents -- it's always a certain default
size. So you'll have to extend TextArea to create a CustomTextArea,
override measure(), and do something like what Text does (see Text.as
from the framework source). If you look in the archives, there should
be examples of this already.

Manish


RE: [flexcoders] Set dataProvider method stops at midpoint?

2008-02-01 Thread Alex Harui
I usually put a try/catch around the suspected line and dump the
stacktrace from the error.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Merrill, Jason
Sent: Friday, February 01, 2008 11:25 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Set dataProvider method stops at midpoint?

 

Thanks Alex, Jim, I'm sprinkling around some try/catch statements and
I'll try debugging this a little further.  Seems something in my class
is getting a null value somewhere, so that's a start anyway.  

 

Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 

 

 

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Hayes
Sent: Friday, February 01, 2008 1:34 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Set dataProvider method stops at
midpoint?

That's making sense for me now, a few days ago I made a *very*
stupid mistake and saw exactly the same symptoms as you, Jason. Again, a
simple bare bones test showed everything working exactly as expected,
yet the flow of execution in the application itself stopped dead with no
error raised. Stepping in the debugger last saw it disappearing
somewhere(?) into the binding code ... Whilst totally confused at the
time, luckily I did spot my obvious error whilst scratching my head and
looking at the method in question ...
Thanks Alex, that does help me understand why.

-Original Message-
From: flexcoders@yahoogroups.com
  on behalf of Alex Harui
Sent: Fri 01/02/2008 18:11
To: flexcoders@yahoogroups.com
 
Subject: RE: [flexcoders] Set dataProvider method stops at
midpoint?

Don't forget Jason, we're all new to AS3, no matter how much
time you
spent with AS2. In AS3, if some outer method in your call stack
has a
try/catch handler (which binding does), then if something in the
"new
MyClass" line throws an error, you'll see exactly what you
described.



From: flexcoders@yahoogroups.com

[mailto:flexcoders@yahoogroups.com 
] On
Behalf Of Merrill, Jason
Sent: Friday, February 01, 2008 8:21 AM
To: flexcoders@yahoogroups.com
 
Subject: [flexcoders] Set dataProvider method stops at midpoint?

I'm somewhat new to Flex, but NOT new to Actionscript, and this
is the
oddest and one of the most frustrating things I have ever had to
debug.
I'm sure it's just me not understanding how Flex, components,
and
databinding works, but I'm at a loss. The core of my question
is: What
could cause a method to stop executing completely in the middle
and not
have the debugger complain of any errors? I have verified this
happens
in my application through trace statements, but have not been
able to
reproduce it with simple test cases which mimics the same
structure (as
far as I can tell).

I have an actionscript-written component that extends
UIComponent. In
the main app, I have some dummy data put into an ArrayCollection
which
is in an init() function, which is fired upon the Flex app's
creationComplete event (see sample code at the bottom of this
post). In
the component which extends UIComponent and overwrites some
methods
(code snippet below), I have a set dataProvider function which
takes in
the data from the dataProvider parameter for the component in
MXML, but
it seems to hang up halfway through. The method sets the
dataProvider
data to a private variable, and then creates an instance of
another
class:

//snippet

[Bindable]
private var _dataProvider:ArrayCollection;

public function set dataProvider(_dp:ArrayCollection):void
{
_dataProvider = _dp;
trace("this traces fine, and data received.");
_myClass = new MyClass(this, _dp); //why would this stop the
method?
trace("This never traces!");
addChild(_myClass);
} 

The first trace works fine, the second never traces, and I don't
get any
debugger or console messages (Flexbuilder 2)! So I thought,
maybe there
was some code in my "MyClass" (not the real name, but keeping it
simple
here) which extends sprite which is not working right - but I've
searched through MyClass and the other class it uses, and all
the data
comes through fine, it's constructor fires

RE: [flexcoders] RemoteObject call...No Result Handler: performance question

2008-02-01 Thread Seth Hodgson
When you invoke a RemoteObject, it's going to send a request via HTTP to
your server which will do some processing. Regardless of whether your
server returns a result or not, an HTTP response must be returned to the
browser/player. That'll be parsed by the browser networking stack,
passed into the player, and from there will make its way back to your
RemoteObject as a ResultEvent. 

As far as your Flex client is concerned, you're effectively turning your
invocation into a fire-and-forget operation by not registering a result
handler. There's practically no overhead in the player when you don't
register a result handler. All your overhead will be spent in the
network roundtrip and in the TCP and HTTP stacks on the client and
server. The HTTP protocol requires that a response is returned for every
request, so as you're looking to tune your app just keep that in mind.

Best,
Seth



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Sammons
Sent: Thursday, January 31, 2008 10:18 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RemoteObject call...No Result Handler:
performance question



Does anyone know who or a team I could forward this question to at Adobe

that might be
able to answer this? 

Tom Sammons wrote:
>
> Hi everyone,
>
> I know I don't have to handle a remote object call results simply by
not
> defining the method's result event.
>
> Why would I want to do this? Because I just want to record some action
> data in the database, and I don't need to do anything on completion of
> the call.
>
> My question is this, though:
>
> If I don't define the result event, does Flex look for it anyway? That
> is to say, do I incur any overhead even though I don't want to do
> anything with a result?
> Using ServiceCapture, I can see that if the RO method returns data to
> the caller, it is passed back in the response header. But did the Flex
> client actually receive it?
> And if it did, what did it do? Did deserialization (or anything else)
> occur? (The minimum I can return would be a null, and I've confirmed
> that.) It also seems to improve overall performance if I remove the
> busy cursor and fault event.
>
> Basically, I just want to do something like shipping off a thread for
> recording actions or whatever, but not have to worry about the impact.
> If these RO calls were frequent enough, what kind of impact would they
> incur (client side)? I thought about saving a number of records/items
> and shipping them off in a single shot, but the idea is to collect
> metrics, and I don't really care for the idea of losing data just
> because the user left the application without logging off (ie, a
> bookmark or something).
>
> Thanks for any and all input!
>
> Tom
> Software Engineering Institute/CMU
> Pittsburgh, PA
>
> 


 


[flexcoders] Flex running in Flash Lite 3 Developer edition

2008-02-01 Thread Guilherme Defreitas Juraszek
Hi

 

Flex 3 runs in Flash Lite 3? 

 

I try to run the simple application in my N95 with Flash Player 3 Developer
and I receive the error "Not enough memory". If I know Flash Lite 3 runs AS
2, not 3. This is the reason for de incompatibility?

 

 

Thanks

 



RE: [flexcoders] Set dataProvider method stops at midpoint?

2008-02-01 Thread Merrill, Jason
Thanks Alex, Jim, I'm sprinkling around some try/catch statements and
I'll try debugging this a little further.  Seems something in my class
is getting a null value somewhere, so that's a start anyway.  
 

Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Hayes
Sent: Friday, February 01, 2008 1:34 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Set dataProvider method stops at
midpoint?



That's making sense for me now, a few days ago I made a *very*
stupid mistake and saw exactly the same symptoms as you, Jason. Again, a
simple bare bones test showed everything working exactly as expected,
yet the flow of execution in the application itself stopped dead with no
error raised. Stepping in the debugger last saw it disappearing
somewhere(?) into the binding code ... Whilst totally confused at the
time, luckily I did spot my obvious error whilst scratching my head and
looking at the method in question ...
Thanks Alex, that does help me understand why.

-Original Message-
From: flexcoders@yahoogroups.com
  on behalf of Alex Harui
Sent: Fri 01/02/2008 18:11
To: flexcoders@yahoogroups.com
 
Subject: RE: [flexcoders] Set dataProvider method stops at
midpoint?

Don't forget Jason, we're all new to AS3, no matter how much
time you
spent with AS2. In AS3, if some outer method in your call stack
has a
try/catch handler (which binding does), then if something in the
"new
MyClass" line throws an error, you'll see exactly what you
described.



From: flexcoders@yahoogroups.com

[mailto:flexcoders@yahoogroups.com 
] On
Behalf Of Merrill, Jason
Sent: Friday, February 01, 2008 8:21 AM
To: flexcoders@yahoogroups.com
 
Subject: [flexcoders] Set dataProvider method stops at midpoint?

I'm somewhat new to Flex, but NOT new to Actionscript, and this
is the
oddest and one of the most frustrating things I have ever had to
debug.
I'm sure it's just me not understanding how Flex, components,
and
databinding works, but I'm at a loss. The core of my question
is: What
could cause a method to stop executing completely in the middle
and not
have the debugger complain of any errors? I have verified this
happens
in my application through trace statements, but have not been
able to
reproduce it with simple test cases which mimics the same
structure (as
far as I can tell).

I have an actionscript-written component that extends
UIComponent. In
the main app, I have some dummy data put into an ArrayCollection
which
is in an init() function, which is fired upon the Flex app's
creationComplete event (see sample code at the bottom of this
post). In
the component which extends UIComponent and overwrites some
methods
(code snippet below), I have a set dataProvider function which
takes in
the data from the dataProvider parameter for the component in
MXML, but
it seems to hang up halfway through. The method sets the
dataProvider
data to a private variable, and then creates an instance of
another
class:

//snippet

[Bindable]
private var _dataProvider:ArrayCollection;

public function set dataProvider(_dp:ArrayCollection):void
{
_dataProvider = _dp;
trace("this traces fine, and data received.");
_myClass = new MyClass(this, _dp); //why would this stop the
method?
trace("This never traces!");
addChild(_myClass);
} 

The first trace works fine, the second never traces, and I don't
get any
debugger or console messages (Flexbuilder 2)! So I thought,
maybe there
was some code in my "MyClass" (not the real name, but keeping it
simple
here) which extends sprite which is not working right - but I've
searched through MyClass and the other class it uses, and all
the data
comes through fine, it's constructor fires, and so does the
constructor
of the other class it imports. I spent most of yesterday trying
to
debug this and I'm turning to the list now. Here is the main app
MXML
(the segment of the component is above):

//snippet

http://www.adobe.com/2006/mxml
 


RE: [flexcoders]

2008-02-01 Thread Seth Hodgson
For auto-synchronized data sets across multiple Flex clients, it's
simplest to use the Data Management Service in LiveCycle Data Services
in auto-sync mode. There's nothing else out there that provides that
functionality out of the box.

If you're OK with just doing CRUD style interactions with your server
via RemoteObject and using messaging to broadcast notifications of
changes out to other clients, you could do this with BlazeDS. In terms
of pushing notifications to other clients, BlazeDS offers a number of
options including simple polling, long-polling and streaming over HTTP
in a manner that's not application server specific.

There's an overview of the available channels and when you'd want to use
what here:
http://www.dcooper.org/blog/client/index.cfm?mode=entry&entry=8E1439AD-4
E22-1671-58710DD528E9C2E7

Best,
Seth 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Guilherme Defreitas Juraszek
Sent: Friday, February 01, 2008 10:03 AM
To: flexcoders@yahoogroups.com
Subject: RES: [flexcoders]



Thanks Maciek

RTMP not is implemented in BlazeDS right? I Will study more about
blazeds to understand it.

Thanks 

De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em
nome de Maciek Sakrejda
Enviada em: sexta-feira, 1 de fevereiro de 2008 15:25
Para: flexcoders@yahoogroups.com
Assunto: Re: [flexcoders]

Unfortunately, your only other option is magic. Well, technically, you
could reimplement a subset of RTMP by having User2 make a URLStream
request to the server, have the server keep the connection open and push
data as it gets changes from User1, and retrieve this on User2's machine
by listening to ProgressEvent.PROGRESS events fired by the stream as
data comes in. This is no small undertaking, though, and runs into a
couple of ugly issues.

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com  

-Original Message-
From: Guilherme Defreitas Juraszek <[EMAIL PROTECTED]
 >
Reply-To: flexcoders@yahoogroups.com
 
To: flexcoders@yahoogroups.com  
Subject: [flexcoders]
Date: Fri, 1 Feb 2008 09:08:25 -0200

Hey guys

My name is Guilherme and i`m from Brasil. I`m new in flex world but I
have a little question. 

Sorry about my English, its not good J

How I can make a auto refresh of data when this data is modified without
using RMTP or calling a function to retrieve de data. For example

cid:image002.png@01C864B0.31F1A1C0
 

Obs: Technology = Flex + BlazeDS over JBOSS + Java

Tks

Guilherme

 


Re: [flexcoders] Flex App in Email

2008-02-01 Thread Nick Collins
Your best bet is to have an email that looks nice and links to your Flex app
online that will be viewed in the browser.

On Feb 1, 2008 1:14 PM, Nick Collins <[EMAIL PROTECTED]> wrote:

> Bottom line, you can't.
>
> For security reasons, email clients a) do not allow javascript to be
> executed, and b) standalone clients (Outlook, Thunderbird, Mail, etc.) do
> not support browser plugins, so even using a normal EMBED of the swf won't
> work.
>
>
> On Feb 1, 2008 12:44 PM, [p e r c e p t i c o n] <[EMAIL PROTECTED]>
> wrote:
>
> >   Hi All,
> > Does anyone have experience embedding a flex app in an email?
> > all suggestions welcome...
> > thanks
> >  
> >
>
>


Re: [flexcoders] Flex App in Email

2008-02-01 Thread Nick Collins
Bottom line, you can't.

For security reasons, email clients a) do not allow javascript to be
executed, and b) standalone clients (Outlook, Thunderbird, Mail, etc.) do
not support browser plugins, so even using a normal EMBED of the swf won't
work.

On Feb 1, 2008 12:44 PM, [p e r c e p t i c o n] <[EMAIL PROTECTED]>
wrote:

>   Hi All,
> Does anyone have experience embedding a flex app in an email?
> all suggestions welcome...
> thanks
>  
>


Re: [flexcoders] Menu icons not displayedMore info

2008-02-01 Thread D Unit

So after playing around with this mxml, I've found that if I place the mxml
for the menubar within the main application mxml tag, then everything works.
However, if I put the menubar mxml in a separate file and include it within
the application mxml, then the sub-menu icons are not displayed. Is this a
Flex bug, or am I missing something?


D Unit wrote:
> 
> I am having a tough time getting icons to display within a drop down Menu
> on a Menubar.
> 
> I have a menu bar with the following MXML:
> 
>  xmlns:mx="http://www.adobe.com/2006/mxml";
> labelField="@label"
> iconField="@icon"
> width="100%">
> 
> 
> 
> 
> ..
> 
> 'configure16' is an embedded image:
> 
> [Embed(source="../assets/icons_16/configure.png")]
> public static const configure16:Class;
> 
> The icon is displayed correctly on the MenuBar (Application item), but it
> is not displayed at all on the drop down menu (Options item). How can I
> get an icon to display next to an entry on a drop down menu? 
> 

-- 
View this message in context: 
http://www.nabble.com/Menu-icons-not-displayed-tp15214090p15231873.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: RES: [flexcoders]

2008-02-01 Thread Jhonny Everson
You can use Red5 with sharedObjects.

-- 
Jhonny Everson


Re: [flexcoders] Re: Flex buttons and screen readers

2008-02-01 Thread Matt Morgan-May
I wouldn¹t recommend testing with Narrator. I¹ve never encountered a single
Narrator user. We do the bulk of our testing on JAWS and Window-Eyes. In the
US, JAWS has the majority share of the screen reader market, and we support
Flex 2 on JAWS 6 and up.

If you¹re testing with JAWS, you will need to install the JAWS scripts for
Flex:

http://www.adobe.com/macromedia/accessibility/features/flex/jaws.html

Hope this helps.

m

On 2/1/08 2:24 AM, "moogster31" <[EMAIL PROTECTED]> wrote:

>  
>  
>  
> 
> The screen readers that have been run over the site are WindowsEyes
> and Narrator - both of which have encountered some problems with
> reading all elements on the screen.
> 
> I have spoken to our QA here and they are going to try to get a copy
> of JAWS to test with.
> 
> thanks
> 
> --- In flexcoders@yahoogroups.com  ,
> "Merrill, Jason"
> <[EMAIL PROTECTED]> wrote:
>> >
>> > Tabindex has nothing to do with the screen reader - tab index refers to
>> > the tabbing between objects with your keyboard (an acessibility issue
>> > for sure).The mask could be throwing it off, not sure what
>> > Screenreader software you are using.  I know in the Flash IDE it helps
>> > to use dynamic text fields instead of static ones.
>> >  
>> > We just had a big discussion on the Flash_Tiger list on Yahoo about Jaws
>> > screenreader and Flash - search for "Flash and JAWS".
>> >  
>> > 
>> > Jason Merrill 
>> > Bank of America
>> > GT&O L&LD Solutions Design & Development
>> > eTools & Multimedia
>> > 
>> > Bank of America Flash Platform Developer Community
>> > 
>> > 
>> > 
>> >  
>> > 
>> > 
>> > 
>> > 
>> > From: flexcoders@yahoogroups.com 
>> > [mailto:flexcoders@yahoogroups.com  ]
>> On Behalf Of moogster31
>> > Sent: Thursday, January 31, 2008 1:34 PM
>> > To: flexcoders@yahoogroups.com 
>> > Subject: [flexcoders] Flex buttons and screen readers
>> > 
>> > 
>> > 
>> > Hi
>> > 
>> > I have built an application with buttons behind a mask. The
>> > buttons
>> > have all the usual accessibility tags on them (name, tabEnabled,
>> > tabIndex) but the screen reader is not reading them out.
>> > 
>> > The only difference between these buttons and other buttons in
>> > the
>> > application is that these are behind a mask.
>> > 
>> > Has any one come across this before and if so - how did you
>> > solve it?
>> > 
>> > thanks
>> > 
>> > kt
>> >
> 
>  
> 




[flexcoders] Need IF Logic for Chart Data Provider

2008-02-01 Thread Brad Bueche
The problem (in short):
I need to be able to hook up my charts to dataproviders where
 equals "January". And only pull that.  I dont need it to
read every month in the hierarchy. Or month_name is January and day_name
is '14'. In order to do this I need to do IF logic with the dataprovider
it seems to me.   My other post occurred because in leiu of being able
to do  "IF month_name='January'.  I have just gone in and changed the
xml so that instead of   [...]  it now says 
 etc. That sort of defeats the data
description aspect of XML (it seems to me).  
 
 
The background (if you are interested):
This problem has to do with me NOT wanting to write 100+ reports to
generate 100+ separate xml files to access.
 
I need to track the metrics of several internal groups over the year via
charting.  I want to drill down into individual months (by day) and --
maybe, days by hour.   I also want to track into the sub groups per
month and per day-in-month for each of these groups as well.
 
The data is network event traffic and doing the queries live will just
not work. Users wont use the slicing and dicing visualization affords if
they have to wait every time the click an item.
 
So, I know I can save myself a lot of reports by putting all the data
into about 10 - 20 reports or so by using the XML as its supposed to be
used (i.e. describing the data).  I need to be able to hook the data
provider to only a sub-node in the xml hierarchy and not have it read
everything at that level. I need it to read only has long as
month_name=January or month_name=January AND day_name='15'.


RE: [flexcoders] Embedding String Variable in dataprovider name

2008-02-01 Thread Maciek Sakrejda
Ah, you're right. Sorry, I thought that would work. Try 

datProvider="{chartXML2.lastResult.child(month).day}"
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Brad Bueche <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Embedding String Variable in dataprovider name
Date: Fri, 1 Feb 2008 13:32:14 -0500

Maciek,
 
Thanks for the quick reply.
 
That generates the following errors:
 
Syntax error: expecting rightparen before rightbrace. [Generated code
(use -keep to save):
1084: Syntax error: expecting identifier before leftbracket
1084: Syntax error: expecting rightparen before destination
 
I put a right paren before it just to see what would happen.  It got rid
of the errors! but it still didnt work :(
 
I was able to get categoryfield and title to accept the  ="{StringName}"
syntax though.   I even tried to replace the entire  dataprovider entry
with a stringname, like so:
 
dataprovider="{stringName]"
 
but that did not work either. 
 
There is a larger problem that led me down this path.  But I'll open
that in another thread as it would still be really cool to figure if I
could do what we are talking about in this thread.
 
brad

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Maciek Sakrejda
Sent: Friday, February 01, 2008 12:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Embedding String Variable in
dataprovider name


I'm no e4xpert, but

dataProvider="{chartXML2.lastResult.[month].day}"

should do it.

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: brad.bueche <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Embedding String Variable in dataprovider
name
Date: Fri, 01 Feb 2008 15:40:25 -

Really what I need to be able to do is insert the variable name
in this:

dataProvider="{chartXML2.lastResult.month.day}"

I need to replace the "month" with a string variable name (i.e
public
var monthName = "January";)

I also need to do the same for the categoryfield as it will not
let me
do categoryfield=$String.

In PHP this is incredibly easy to do. You just say blah=
$string . In
fact, in PHP you can embed variable names everywhere. Its very
powerful. For instance, in php, for the dataprovider issue
above, i'd
just do

dataProvider="{chartXML2.lastResult.$StringName.day}"

and it'd work just fine. Whats the syntax for doing this in
Flex? 






 




[flexcoders] Flex App in Email

2008-02-01 Thread [p e r c e p t i c o n]
Hi All,
Does anyone have experience embedding a flex app in an email?
all suggestions welcome...
thanks


RE: [flexcoders] Set dataProvider method stops at midpoint?

2008-02-01 Thread Jim Hayes
That's making sense for me now, a few days ago I made a *very* stupid mistake 
and saw exactly the same symptoms as you, Jason. Again, a simple bare bones 
test showed everything working exactly as expected, yet the flow of execution 
in the application itself stopped dead with no error raised. Stepping in the 
debugger last saw it disappearing somewhere(?) into the binding code ... Whilst 
totally confused at the time, luckily I did spot my obvious error whilst 
scratching my head and looking at the method in question ...
Thanks Alex, that does help me understand why.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Alex Harui
Sent: Fri 01/02/2008 18:11
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Set dataProvider method stops at midpoint?
 
Don't forget Jason, we're all new to AS3, no matter how much time you
spent with AS2.  In AS3, if some outer method in your call stack has a
try/catch handler (which binding does), then if something in the "new
MyClass" line throws an error, you'll see exactly what you described.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Merrill, Jason
Sent: Friday, February 01, 2008 8:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Set dataProvider method stops at midpoint?

 

I'm somewhat new to Flex, but NOT new to Actionscript, and this is the
oddest and one of the most frustrating things I have ever had to debug.
I'm sure it's just me not understanding how Flex, components, and
databinding works, but I'm at a loss.  The core of my question is:  What
could cause a method to stop executing completely in the middle and not
have the debugger complain of any errors?  I have verified this happens
in my application through trace statements, but have not been able to
reproduce it with simple test cases which mimics the same structure (as
far as I can tell).

 

I have an actionscript-written component that extends UIComponent.  In
the main app, I have some dummy data put into an ArrayCollection which
is in an init() function, which is fired upon the Flex app's
creationComplete event (see sample code at the bottom of this post). In
the component which extends UIComponent and overwrites some methods
(code snippet below), I have a set dataProvider function which takes in
the data from the dataProvider parameter for the component in MXML, but
it seems to hang up halfway through.  The method sets the dataProvider
data to a private variable, and then creates an instance of another
class:

 

//snippet

  [Bindable]
  private var _dataProvider:ArrayCollection;

 

  public function set dataProvider(_dp:ArrayCollection):void
  {
   _dataProvider = _dp;
   trace("this traces fine, and data received.");
   _myClass = new MyClass(this, _dp); //why would this stop the method?
   trace("This never traces!");
   addChild(_myClass);
  } 

 

The first trace works fine, the second never traces, and I don't get any
debugger or console messages (Flexbuilder 2)!  So I thought, maybe there
was some code in my "MyClass" (not the real name, but keeping it simple
here) which extends sprite which is not working right - but I've
searched through MyClass and the other class it uses, and all the data
comes through fine, it's constructor fires, and so does the constructor
of the other class it imports.  I spent most of yesterday trying to
debug this and I'm turning to the list now.  Here is the main app MXML
(the segment of the component is above):

 

 

//snippet

http://www.adobe.com/2006/mxml
 " xmlns:c="components.*"
 layout="absolute" 
 applicationComplete="init()" >

 
  

RE: [flexcoders] Embedding String Variable in dataprovider name

2008-02-01 Thread Brad Bueche
Maciek,
 
Thanks for the quick reply.
 
That generates the following errors:
 
Syntax error: expecting rightparen before rightbrace. [Generated code
(use -keep to save):
1084: Syntax error: expecting identifier before leftbracket
1084: Syntax error: expecting rightparen before destination
 
I put a right paren before it just to see what would happen.  It got rid
of the errors! but it still didnt work :(
 
I was able to get categoryfield and title to accept the  ="{StringName}"
syntax though.   I even tried to replace the entire  dataprovider entry
with a stringname, like so:
 
dataprovider="{stringName]"
 
but that did not work either. 
 
There is a larger problem that led me down this path.  But I'll open
that in another thread as it would still be really cool to figure if I
could do what we are talking about in this thread.
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Maciek Sakrejda
Sent: Friday, February 01, 2008 12:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Embedding String Variable in dataprovider name



I'm no e4xpert, but

dataProvider="{chartXML2.lastResult.[month].day}"

should do it.

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.  com

-Original Message-
From: brad.bueche <[EMAIL PROTECTED]  com>
Reply-To: [EMAIL PROTECTED] 
ups.com
To: [EMAIL PROTECTED]  ups.com
Subject: [flexcoders] Embedding String Variable in dataprovider name
Date: Fri, 01 Feb 2008 15:40:25 -

Really what I need to be able to do is insert the variable name in this:

dataProvider="{chartXML2.lastResult.month.day}"

I need to replace the "month" with a string variable name (i.e public
var monthName = "January";)

I also need to do the same for the categoryfield as it will not let me
do categoryfield=$String.

In PHP this is incredibly easy to do. You just say blah=$string . In
fact, in PHP you can embed variable names everywhere. Its very
powerful. For instance, in php, for the dataprovider issue above, i'd
just do

dataProvider="{chartXML2.lastResult.$StringName.day}"

and it'd work just fine. Whats the syntax for doing this in Flex? 



 



Re: [flexcoders] Flex buttons and screen readers

2008-02-01 Thread Matt Morgan-May
Just so I have this right, other objects in the app are reading correctly,
except for buttons behind the mask?

Thanks,
Matt May
Accessibility Engineer


On 1/31/08 10:33 AM, "moogster31" <[EMAIL PROTECTED]> wrote:
> 
> Hi
> 
> I have built an application with buttons behind a mask.  The buttons
> have all the usual accessibility tags on them (name, tabEnabled,
> tabIndex) but the screen reader is not reading them out.
> 
> The only difference between these buttons and other buttons in the
> application is that these are behind a mask.
> 
> Has any one come across this before and if so - how did you solve it?
> 
> thanks
> 
> kt
> 
 


Re: RES: [flexcoders]

2008-02-01 Thread Maciek Sakrejda
Right, I believe that's not implemented. Alternately, you could take a
look at Granite Data Services, which just released 1.0 and does provide
a data push implementation, although I haven't used it and I  don't know
how compatible this is with RTMP. We are using GDS for AMF at Truviso,
and that has worked fine for us.

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Guilherme Defreitas Juraszek <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: RES: [flexcoders]
Date: Fri, 1 Feb 2008 16:02:47 -0200

Thanks Maciek

 

RTMP not is implemented in BlazeDS right? I Will study more about
blazeds to understand it.

 

Thanks 

 

De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em
nome de Maciek Sakrejda
Enviada em: sexta-feira, 1 de fevereiro de 2008 15:25
Para: flexcoders@yahoogroups.com
Assunto: Re: [flexcoders]


 

Unfortunately, your only other option is magic. Well, technically, you
could reimplement a subset of RTMP by having User2 make a URLStream
request to the server, have the server keep the connection open and push
data as it gets changes from User1, and retrieve this on User2's machine
by listening to ProgressEvent.PROGRESS events fired by the stream as
data comes in. This is no small undertaking, though, and runs into a
couple of ugly issues.

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Guilherme Defreitas Juraszek <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
Date: Fri, 1 Feb 2008 09:08:25 -0200

Hey guys

My name is Guilherme and i`m from Brasil. I`m new in flex world but I
have a little question. 

Sorry about my English, its not good J

How I can make a auto refresh of data when this data is modified without
using RMTP or calling a function to retrieve de data. For example

cid:image002.png@01C864B0.31F1A1C0

Obs: Technology = Flex + BlazeDS over JBOSS + Java

Tks

Guilherme


 




RE: [flexcoders] Set dataProvider method stops at midpoint?

2008-02-01 Thread Alex Harui
Don't forget Jason, we're all new to AS3, no matter how much time you
spent with AS2.  In AS3, if some outer method in your call stack has a
try/catch handler (which binding does), then if something in the "new
MyClass" line throws an error, you'll see exactly what you described.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Merrill, Jason
Sent: Friday, February 01, 2008 8:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Set dataProvider method stops at midpoint?

 

I'm somewhat new to Flex, but NOT new to Actionscript, and this is the
oddest and one of the most frustrating things I have ever had to debug.
I'm sure it's just me not understanding how Flex, components, and
databinding works, but I'm at a loss.  The core of my question is:  What
could cause a method to stop executing completely in the middle and not
have the debugger complain of any errors?  I have verified this happens
in my application through trace statements, but have not been able to
reproduce it with simple test cases which mimics the same structure (as
far as I can tell).

 

I have an actionscript-written component that extends UIComponent.  In
the main app, I have some dummy data put into an ArrayCollection which
is in an init() function, which is fired upon the Flex app's
creationComplete event (see sample code at the bottom of this post). In
the component which extends UIComponent and overwrites some methods
(code snippet below), I have a set dataProvider function which takes in
the data from the dataProvider parameter for the component in MXML, but
it seems to hang up halfway through.  The method sets the dataProvider
data to a private variable, and then creates an instance of another
class:

 

//snippet

  [Bindable]
  private var _dataProvider:ArrayCollection;

 

  public function set dataProvider(_dp:ArrayCollection):void
  {
   _dataProvider = _dp;
   trace("this traces fine, and data received.");
   _myClass = new MyClass(this, _dp); //why would this stop the method?
   trace("This never traces!");
   addChild(_myClass);
  } 

 

The first trace works fine, the second never traces, and I don't get any
debugger or console messages (Flexbuilder 2)!  So I thought, maybe there
was some code in my "MyClass" (not the real name, but keeping it simple
here) which extends sprite which is not working right - but I've
searched through MyClass and the other class it uses, and all the data
comes through fine, it's constructor fires, and so does the constructor
of the other class it imports.  I spent most of yesterday trying to
debug this and I'm turning to the list now.  Here is the main app MXML
(the segment of the component is above):

 

 

//snippet

http://www.adobe.com/2006/mxml
 " xmlns:c="components.*"
 layout="absolute" 
 applicationComplete="init()" >

 
  

[flexcoders] Adding you tube's flv

2008-02-01 Thread Guillermo Villasana
Is it possible to load into a flex app, an flv from you tube? if so is 
there an example or something I can see?
Thanks
Terius


RES: [flexcoders]

2008-02-01 Thread Guilherme Defreitas Juraszek
Thanks Maciek

 

RTMP not is implemented in BlazeDS right? I Will study more about blazeds to
understand it.

 

Thanks 

 

De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome
de Maciek Sakrejda
Enviada em: sexta-feira, 1 de fevereiro de 2008 15:25
Para: flexcoders@yahoogroups.com
Assunto: Re: [flexcoders]

 

Unfortunately, your only other option is magic. Well, technically, you
could reimplement a subset of RTMP by having User2 make a URLStream
request to the server, have the server keep the connection open and push
data as it gets changes from User1, and retrieve this on User2's machine
by listening to ProgressEvent.PROGRESS events fired by the stream as
data comes in. This is no small undertaking, though, and runs into a
couple of ugly issues.

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Guilherme Defreitas Juraszek <[EMAIL PROTECTED]
 >
Reply-To: flexcoders@yahoogroups.com  
To: flexcoders@yahoogroups.com  
Subject: [flexcoders]
Date: Fri, 1 Feb 2008 09:08:25 -0200

Hey guys

My name is Guilherme and i`m from Brasil. I`m new in flex world but I
have a little question. 

Sorry about my English, its not good J

How I can make a auto refresh of data when this data is modified without
using RMTP or calling a function to retrieve de data. For example

cid:image002.png@01C864B0.31F1A1C0 


Obs: Technology = Flex + BlazeDS over JBOSS + Java

Tks

Guilherme

 



Re: [flexcoders] Embedding String Variable in dataprovider name

2008-02-01 Thread Maciek Sakrejda
I'm no e4xpert, but

dataProvider="{chartXML2.lastResult.[month].day}"

should do it.

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: brad.bueche <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Embedding String Variable in dataprovider name
Date: Fri, 01 Feb 2008 15:40:25 -

Really what I need to be able to do is insert the variable name in this:

dataProvider="{chartXML2.lastResult.month.day}"

I need to replace the "month" with a string variable name (i.e public
var monthName = "January";)

I also need to do the same for the categoryfield as it will not let me
do categoryfield=$String.

In PHP this is incredibly easy to do. You just say blah=$string . In
fact, in PHP you can embed variable names everywhere. Its very
powerful. For instance, in php, for the dataprovider issue above, i'd
just do

dataProvider="{chartXML2.lastResult.$StringName.day}"

and it'd work just fine. Whats the syntax for doing this in Flex? 




 




Re: [flexcoders]

2008-02-01 Thread Maciek Sakrejda
Unfortunately, your only other option is magic. Well, technically, you
could reimplement a subset of RTMP by having User2 make a URLStream
request to the server, have the server keep the connection open and push
data as it gets changes from User1, and retrieve this on User2's machine
by listening to ProgressEvent.PROGRESS events fired by the stream as
data comes in. This is no small undertaking, though, and runs into a
couple of ugly issues.

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Guilherme Defreitas Juraszek <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
Date: Fri, 1 Feb 2008 09:08:25 -0200

Hey guys

 

My name is Guilherme and i`m from Brasil. I`m new in flex world but I
have a little question. 

Sorry about my English, its not good J

 

How I can make a auto refresh of data when this data is modified without
using RMTP  or calling a function to retrieve de data. For example

 

cid:image002.png@01C864B0.31F1A1C0

 

Obs: Technology = Flex + BlazeDS over JBOSS + Java

 

 

Tks

Guilherme

 


 




[flexcoders] RPC call

2008-02-01 Thread madhavipdm
Hello,

I created a FlexProject name Test1 and created jave src under it now 
created java file in the javascr folder, crated WEB-INF under Test1 
and saved my .class file to Test1/WEB-INF/classes dir  and stored 
remotingconfig.xml in Test1/WEB-INF/flex and deployed my class file.
now I have creted a Test1.mxml which calls the method in java using 
rpc, I am getting the following error

 [RPC Fault faultString="[MessagingError message='Unknown 
destination 'testc'.']" faultCode="InvokeFailed" 
faultDetail="Couldn't establish a connection to 'testc'"]

remoting-config.xml










MyTest
application




my File structure

Test1(FlexProject)
--javasrc
  --MyTest.java

--WEB-INF
  --flex
--remoting-config.xml
  --classes
--MyTest.class
--Test1.mxml

can any one help me
Thanks




[flexcoders] Set dataProvider method stops at midpoint?

2008-02-01 Thread Merrill, Jason
I'm somewhat new to Flex, but NOT new to Actionscript, and this is the
oddest and one of the most frustrating things I have ever had to debug.
I'm sure it's just me not understanding how Flex, components, and
databinding works, but I'm at a loss.  The core of my question is:  What
could cause a method to stop executing completely in the middle and not
have the debugger complain of any errors?  I have verified this happens
in my application through trace statements, but have not been able to
reproduce it with simple test cases which mimics the same structure (as
far as I can tell).
 
I have an actionscript-written component that extends UIComponent.  In
the main app, I have some dummy data put into an ArrayCollection which
is in an init() function, which is fired upon the Flex app's
creationComplete event (see sample code at the bottom of this post). In
the component which extends UIComponent and overwrites some methods
(code snippet below), I have a set dataProvider function which takes in
the data from the dataProvider parameter for the component in MXML, but
it seems to hang up halfway through.  The method sets the dataProvider
data to a private variable, and then creates an instance of another
class:
 
//snippet
  [Bindable]
  private var _dataProvider:ArrayCollection;
 
  public function set dataProvider(_dp:ArrayCollection):void
  {
   _dataProvider = _dp;
   trace("this traces fine, and data received.");
   _myClass = new MyClass(this, _dp); //why would this stop the method?
   trace("This never traces!");
   addChild(_myClass);
  } 
 
The first trace works fine, the second never traces, and I don't get any
debugger or console messages (Flexbuilder 2)!  So I thought, maybe there
was some code in my "MyClass" (not the real name, but keeping it simple
here) which extends sprite which is not working right - but I've
searched through MyClass and the other class it uses, and all the data
comes through fine, it's constructor fires, and so does the constructor
of the other class it imports.  I spent most of yesterday trying to
debug this and I'm turning to the list now.  Here is the main app MXML
(the segment of the component is above):
 
 
//snippet
http://www.adobe.com/2006/mxml
 " xmlns:c="components.*"
 layout="absolute" 
 applicationComplete="init()" >
 
  

[flexcoders] Re: [flexcomponents] autoresize text area as a itemrenderer

2008-02-01 Thread learner
thanks Manish,
But in which function shall i do that??
In measure(), in updateDisplayList () or commitProperty().
and . also the height of the textArea should affect the row height in
list...
so i also need to dosomething like this

this.height = messageTxt.heigt+messageTxt.y

how can i achieve this... are there any samples like this.. in sample given
by Alex i could not find anything which addresses this problem.

On Feb 1, 2008 6:52 PM, Manish Jethani <[EMAIL PROTECTED]> wrote:

>   On 2/1/08, learner <[EMAIL PROTECTED] >
> wrote:
>
> > I want to have my list variable row height ...precisely the height of
> the row should the height of the text displayed in it..
> >
> > I have my item rendere like this ..it has image to show and textArea
> which will have html text to display in it...
>
> [snip]
>
> > messageTxt = new TextArea();
>
> > override protected function measure():void{
> > trace("measure for message box " + msgObject.message)
> > super.measure();
> > messageTxt.x = 55;
> > messageTxt.width = this.width - 55 - timeStamp.width;
> > // should i set the height of the messageTxt here as messageTxt.height =
> messageTxt.textHeight but it does not work correctly..
> > }
>
> Try calling messageTxt.validateNow() before accessing the height. The
> TextArea object needs to remeasure its height based on the width
> you've set.
>
> Manish
>  
>


RE: [flexcoders] Menu icons not displayed

2008-02-01 Thread D Unit

That was just a copy-paste error. I'm using Flex 3 Beta 2.


Joan Lafferty wrote:
> 
> You are missing a quotation mark in your dataProvider:
> 
> mailto:[EMAIL PROTECTED] On
> Behalf Of D Unit
> Sent: Thursday, January 31, 2008 12:30 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Menu icons not displayed
> 
>  
> 
> 
> I am having a tough time getting icons to display within a drop down
> Menu on
> a Menubar.
> 
> I have a menu bar with the following MXML:
> 
>  xmlns:mx="http://www.adobe.com/2006/mxml
>  "
> labelField="@label"
> iconField="@icon"
> width="100%">
> 
> 
> 
> 
> ..
> 
> 'configure16' is an embedded image:
> 
> [Embed(source="../assets/icons_16/configure.png")]
> public static const configure16:Class;
> 
> The icon is displayed correctly on the MenuBar (Application item), but
> it is
> not displayed at all on the drop down menu (Options item). How can I get
> an
> icon to display next to an entry on a drop down menu? 
> -- 
> View this message in context:
> http://www.nabble.com/Menu-icons-not-displayed-tp15214090p15214090.html
> > 
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
>  
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Menu-icons-not-displayed-tp15214090p15229139.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Re: Flex buttons and screen readers

2008-02-01 Thread Merrill, Jason
>>I have spoken to our QA here and they are going to try to get a copy
>>of JAWS to test with.
 
Freedown Scientific provides a trial version for free - you can download
and test with that.
 

Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of moogster31
Sent: Friday, February 01, 2008 5:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex buttons and screen readers



The screen readers that have been run over the site are
WindowsEyes
and Narrator - both of which have encountered some problems with
reading all elements on the screen.

I have spoken to our QA here and they are going to try to get a
copy
of JAWS to test with.

thanks

--- In flexcoders@yahoogroups.com
 , "Merrill, Jason"
<[EMAIL PROTECTED]> wrote:
>
> Tabindex has nothing to do with the screen reader - tab index
refers to
> the tabbing between objects with your keyboard (an
acessibility issue
> for sure). The mask could be throwing it off, not sure what
> Screenreader software you are using. I know in the Flash IDE
it helps
> to use dynamic text fields instead of static ones.
> 
> We just had a big discussion on the Flash_Tiger list on Yahoo
about Jaws
> screenreader and Flash - search for "Flash and JAWS". 
> 
> 
> Jason Merrill 
> Bank of America 
> GT&O L&LD Solutions Design & Development 
> eTools & Multimedia 
> 
> Bank of America Flash Platform Developer Community 
> 
> 
> 
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com
 
> [mailto:flexcoders@yahoogroups.com
 ] On Behalf Of moogster31
> Sent: Thursday, January 31, 2008 1:34 PM
> To: flexcoders@yahoogroups.com
 
> Subject: [flexcoders] Flex buttons and screen readers
> 
> 
> 
> Hi
> 
> I have built an application with buttons behind a mask. The
> buttons
> have all the usual accessibility tags on them (name,
tabEnabled,
> tabIndex) but the screen reader is not reading them out. 
> 
> The only difference between these buttons and other buttons in
> the
> application is that these are behind a mask.
> 
> Has any one come across this before and if so - how did you
> solve it?
> 
> thanks
> 
> kt
>



 



RE: [flexcoders] I don't get it!!! what is this problem

2008-02-01 Thread Mike Krotscheck
You're trying to apply an effect to a state, rather than to the object
that should be modified by the effect. Use _either_ transitions _or_
states.

State Method:


http://www.adobe.com/2006/mxml";
layout="absolute">




























Transition Method


http://www.adobe.com/2006/mxml";
layout="absolute">


































Michael Krotscheck
Senior Developer

RESOURCE INTERACTIVE
www.resource.com
[EMAIL PROTECTED]

We support privacy and confidentiality. Please delete this email if it was 
received in error.

What's new ::
Capitalize on the social web | The Open Brand, a new book by Kelly Mooney and 
Dr. Nita Rollins, available March 2008 | www.theopenbrand.com


 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gustavo Duenas
Sent: Friday, February 01, 2008 10:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] I don't get it!!! what is this problem



I have this code: 


http://www.adobe.com/2006/mxml
 " layout="absolute">




































//according the book is ok for transitions but in my flex builder 2 it
gives me an error over and over again


it seems that the flex is taking the names of the states as undefined
propertieserror 1020 







Some one could help me out .




Gustavo A. Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS
904.  265 0330 - 904. 386 7958
www.leftandrightsolutions.com
Jacksonville - Florida






 


[flexcoders] Embedding String Variable in dataprovider name

2008-02-01 Thread brad.bueche
Really what I need to be able to do is insert the variable name in this:

dataProvider="{chartXML2.lastResult.month.day}"

I need to replace the "month" with a string variable name (i.e public
var monthName = "January";)

I also need to do the same for the categoryfield as it will not let me
do categoryfield=$String.

In PHP this is incredibly easy to do. You just say blah=$string . In
fact, in PHP you can embed variable names everywhere. Its very
powerful. For instance, in php, for the dataprovider issue above, i'd
just do

dataProvider="{chartXML2.lastResult.$StringName.day}"

and it'd work just fine. Whats the syntax for doing this in Flex? 



[flexcoders] I don't get it!!! what is this problem

2008-02-01 Thread Gustavo Duenas

I have this code:


http://www.adobe.com/2006/mxml";  
layout="absolute">




















	click="currentState='b1'"/>
	click="currentState='b2'"/>
	title="panel1" id="panel1">











//according the book is ok for transitions but in my flex builder 2  
it gives me an error over and over again


it seems that the flex is taking the names of the states as undefined  
propertieserror 1020





Some one could help me out .



Gustavo A. Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS
904.  265 0330 - 904. 386 7958
www.leftandrightsolutions.com
Jacksonville - Florida






RE: [flexcoders] Getting events from non-visual components created in actionscript?

2008-02-01 Thread Merrill, Jason
>>Yeah I've looked at Cairngorm, but I don't like my chances of getting
approval to use it, even though it's a tiny company we've got a
committee to approve tech stuff already... *sigh*
 
Cairngorm is just a free class library (Adobe sanctioned), it's just
Actionscript code - you can modify it to your hearts content or follow
the pattern.  It's just a collection of design patterns to make your
life easier, that's all.
 

Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 



[flexcoders] TabNaviigator tabBar index doesn't update on selectedIndex change

2008-02-01 Thread Battershall, Jeff
I'm using Flex 3 Beta 3.  I have a TabNavigator component where the
children are created dynamically from a Repeater.  When the dataProvider
of the repeater changes, the tab labels update accordingly, EXCEPT the
tabBar index of the component doesn't visually update.  I would just set
myTabNav.tabBar.selectedIndex = whatever, except that the tabBar is a
protected member.

I can work around this by extending the component (I think) but I
shouldn't have to do this - perhaps I'm missing something on how to best
approach it.

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


Re: [flexcoders] RemoteObject call...No Result Handler: performance question

2008-02-01 Thread Tom Chiverton
On Thursday 31 Jan 2008, Tom Sammons wrote:
> Does anyone know who or a team I could forward this question to at Adobe
> that might be
> able to answer this?

I would have though rigging up your own test using Timer and a for loop would 
suffice.


-- 
Tom Chiverton
Helping to interactively extend B2C information
on: http://thefalken.livejournal.com



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
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.com 
Yahoo! Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] SoundEffectInstance Bug on Resume in Flex 2

2008-02-01 Thread chrycheng
SoundEffectInstance resumes incorrectly the second and subsequent
times.  The resume position is computed by the resume method as:
resumePosition += pausedPosition.  This is correct only if
resumePosition is 0 (i.e., the first time resume is invoked).  The
right formula is resumePosition = pausedPosition.

FYI.  In case anyone comes looking.  Also, Adobe doesn't seem to be
aware of this bug. Couldn't find any reports in their public bug tracker.




RE: [flexcoders] Adobe Flex Application not working on Citrix

2008-02-01 Thread Clinton D. Judy
A program I developed here is accessed at work through Citrix. We don't
use Linux though. We had a problem with most of the servers because
Flash wasn't installing correctly (users were trying to automatically
install it). That would be the first thing you should check, is that as
an administrator, do they all have the latest version of Flash 9? If
not, you may need to uninstall Flash from the system completely
(including taking out all registry keys, etc), booting into the server
in safe mode, then installing Flash 9. When we did that here, it began
working fine.

 

Good luck!

 

-  Clinton

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sameerb4k
Sent: Friday, February 01, 2008 4:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Adobe Flex Application not working on Citrix

 

Hi,

I have developed application in flex using modules which works fine on 
windows system but when we try to run it from thin clients based on 
Linux using citrix it fails. Only the application grey canvas displays 
no modules loads.

Please help!!!

Thanks in advance for support..

Thanks,
Sameer

 



[flexcoders] Ctrl-c on firefox

2008-02-01 Thread kenkc007
Hi all,

I'm having an issue running a flex application in firefox. Left ctrl-c
is not copying text. Right ctrl-c works perfectly. This does not
happen on IE. I'm running firefox 2.0.0.11 so I don't think it is
anything to do with the old ctrl-c bug. On top of this, it only
happens when I'm in a flex application - it works everywhere else in
firefox just fine.

Has anybody else seen this and have a solution?

Cheers.



Re: [flexcoders] Adobe Flex Application not working on Citrix

2008-02-01 Thread Osvaldo Aufiero
Have you checked the flash player version on the thin clients?

On Feb 1, 2008 6:32 AM, sameerb4k <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have developed application in flex using modules which works fine on
> windows system but when we try to run it from thin clients based on
> Linux using citrix it fails. Only the application grey canvas displays
> no modules loads.
>
> Please help!!!
>
> Thanks in advance for support..
>
> Thanks,
> Sameer
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


[flexcoders]

2008-02-01 Thread Guilherme Defreitas Juraszek
Hey guys

 

My name is Guilherme and i`m from Brasil. I`m new in flex world but I have a
little question. 

Sorry about my English, its not good J

 

How I can make a auto refresh of data when this data is modified without
using RMTP  or calling a function to retrieve de data. For example

 

cid:image002.png@01C864B0.31F1A1C0

 

Obs: Technology = Flex + BlazeDS over JBOSS + Java

 

 

Tks

Guilherme

 

<>

[flexcoders] Adobe Flex Application not working on Citrix

2008-02-01 Thread sameerb4k
Hi,

I have developed application in flex using modules which works fine on 
windows system but when we try to run it from thin clients based on 
Linux using citrix it fails. Only the application grey canvas displays 
no modules loads.

Please help!!!

Thanks in advance for support..

Thanks,
Sameer




[flexcoders] Re: Flex buttons and screen readers

2008-02-01 Thread moogster31
The screen readers that have been run over the site are WindowsEyes
and Narrator - both of which have encountered some problems with
reading all elements on the screen.

I have spoken to our QA here and they are going to try to get a copy
of JAWS to test with.

thanks


--- In flexcoders@yahoogroups.com, "Merrill, Jason"
<[EMAIL PROTECTED]> wrote:
>
> Tabindex has nothing to do with the screen reader - tab index refers to
> the tabbing between objects with your keyboard (an acessibility issue
> for sure).The mask could be throwing it off, not sure what
> Screenreader software you are using.  I know in the Flash IDE it helps
> to use dynamic text fields instead of static ones.
>  
> We just had a big discussion on the Flash_Tiger list on Yahoo about Jaws
> screenreader and Flash - search for "Flash and JAWS".  
>  
> 
> Jason Merrill 
> Bank of America 
> GT&O L&LD Solutions Design & Development 
> eTools & Multimedia 
> 
> Bank of America Flash Platform Developer Community 
> 
> 
> 
>  
> 
> 
> 
> 
>   From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of moogster31
>   Sent: Thursday, January 31, 2008 1:34 PM
>   To: flexcoders@yahoogroups.com
>   Subject: [flexcoders] Flex buttons and screen readers
>   
>   
> 
>   Hi
>   
>   I have built an application with buttons behind a mask. The
> buttons
>   have all the usual accessibility tags on them (name, tabEnabled,
>   tabIndex) but the screen reader is not reading them out. 
>   
>   The only difference between these buttons and other buttons in
> the
>   application is that these are behind a mask.
>   
>   Has any one come across this before and if so - how did you
> solve it?
>   
>   thanks
>   
>   kt
>




RE: [flexcoders] Referencing components from custom controls

2008-02-01 Thread Randy Martin
I'm assuming that your main.mxml contains your  tag, so try
this:
 
package mycontrol.container-s
{
import mx.controls.-Alert;
import flash.display.-DisplayObject;
import flash.events.-Event;
import flash.events.-MouseEvent;
import flash.events.-TimerEvent;
import flash.utils.-Timer; 
import mx.core.Application;
.
.
.
public function doSomething(-):void {
Application.application.imgNewMessage.-visible=false;
}

}

HTH,
Randy


   _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nocturnal_world
Sent: Friday, February 01, 2008 7:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Referencing components from custom controls



Hello,

I'm a noob in flex. I have no training on it but I try to learn it as 
much as I could.

I think my problem is simple to you guys.

I have this in my main.mxml code



Now, if I reference it in an action script file like so...

imgNewMessage.-visible=false;

it works fine.

But if I try to do that in a custom control, like this

package mycontrol.container-s
{
import mx.controls.-Alert;
import flash.display.-DisplayObject;
import flash.events.-Event;
import flash.events.-MouseEvent;
import flash.events.-TimerEvent;
import flash.utils.-Timer; 
.
.
.
public function doSomething(-):void {
imgNewMessage.-visible=false;
}

}

I'm getting an error. Its like it does'nt know imgNewMessage.

How can I reference it? I thought components are accessible globally.

Hope you guys can help.

Thanks in advance.



 


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.516 / Virus Database: 269.19.18/1254 - Release Date: 1/31/2008
8:30 PM
 


[flexcoders] Re: family tree in flex

2008-02-01 Thread andrewwestberg
Check out Mark Shepherd's SpringGraph component

http://mark-shepherd.com/blog/springgraph-flex-component/

-Andrew

--- In flexcoders@yahoogroups.com, ravi mishra <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
>   Can anybody of you please give me an idea of how to create Family
tree component in Flex?
>
>   You can see  the family tree I am talking about on
www.thebrain.com. This comes at the header of this website.
>
>   I just want to know, how we can create the same component on Flex.
>
>   Any idea??
>
>   -Ravi
> 
>
> -
>  Forgot the famous last words? Access your message archive online.
Click here.
>




[flexcoders] Referencing components from custom controls

2008-02-01 Thread nocturnal_world
Hello,

I'm a noob in flex. I have no training on it but I try to learn it as 
much as I could.

I think my problem is simple to you guys.

I have this in my main.mxml code



Now, if I reference it in an action script file like so...

imgNewMessage.visible=false;

it works fine.

But if I try to do that in a custom control, like this

package mycontrol.containers
{
import mx.controls.Alert;
import flash.display.DisplayObject;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.TimerEvent;
import flash.utils.Timer; 
.
.
.
public function doSomething():void {
imgNewMessage.visible=false;
}

}


I'm getting an error. Its like it does'nt know imgNewMessage.

How can I reference it? I thought components are accessible globally.

Hope you guys can help.

Thanks in advance.





[flexcoders] Customizing DateCooser/DateField Component

2008-02-01 Thread Varun Shetty
Hi,

Is it possible to customize DateCooser/DateField component in flex to a
calendar component similar to *kayak.com* or many other such sites that
would display two month for a date selection..

well i saw the properties/methods of datefield ... and it certainly didnt
look possible.
I had to hack into the component by duplicating the component and copying
some of the framework files to my flex project folder.

towrds the end I could do it... but then .. i am worried about the default
accessibliity features given by flex and many more things they would have
done to get this component to perfection.. me jus hacking and getting it to
look like a calendar i want .. would screw up a whole lot of features and i
would never have the time to spend on a single component to test it like
adobe does.

so again... am i missing something.. is there a way to get the default
DateChoose/DateField component to look like the calendar component in
kayak.com...

regards,
Varun Shetty


Re: [flexcoders] Getting events from non-visual components created in actionscript?

2008-02-01 Thread Manish Jethani
On 2/1/08, Josh McDonald <[EMAIL PROTECTED]> wrote:

> Yeah I've looked at Cairngorm, but I don't like my chances of getting 
> approval to use it, even though it's a tiny company we've got a committee to 
> approve tech stuff already... *sigh*

You don't have to use Cairngorm, you can just see what it  does and
mimic it in your application.

I would use a global event dispatcher object that everyone dispatches
events off and that the application listens to.

 public class GlobalEventDispatcher extends EventDispatcher {
public static const instance:GlobalEventDispatcher = new
GlobalEventDispatcher();
 }

 // dispatching
 var e:MyEvent = new MyEvent(MyEvent.MY_EVENT);
 e.relatedObject = this;

 var d:GlobalEventDispatcher = GlobalEventDispatcher.instance;
 d.dispatchEvent(e);

 // listening
 var d:GlobalEventDispatcher = GlobalEventDispatcher.instance;
 d.addEventListener(MyEvent.MY_EVENT, myEventHandler);

 function myEventHandler(event:MyEvent) {
   var sourceObject:* = event.relatedObject;
   ...
 }

Manish


[flexcoders] Re: How does a PopUp Window know when it has been added

2008-02-01 Thread reflexactions
Forget it, figured it out 
--- In flexcoders@yahoogroups.com, "reflexactions" <[EMAIL PROTECTED]> 
wrote:
>
> If a window is shown by PopUpManager.addPopUp() how does it know when 
> it has been added given that this window maybe be pop'd up many times 
> during the life of the application?
> 
> The initialize function is only called by the parent the first time 
> after that it is skipped
> 
> Thoughts?
>




[flexcoders] Fwd: autoresize text area as a itemrenderer

2008-02-01 Thread learner
Hi all,
I want to have my list variable row height ...precisely the height of the
row should the  height of the text displayed in it..

I have my item rendere like this  ..it has image to show and textArea which
will have html text to display in it...


public class MessageBox extends Canvas
{
override public function set data(value:Object):void{
this.msgObject = value as MessageObject;
avatarHolder.visible = false;
memberName.visible = false;
showUserImageAndName();
setMessage();
invalidateProperties();
}

override protected function createChildren():void {
avatarHolder = new ImageHolder();
avatarHolder.x=0;
avatarHolder.y=0;
avatarHolder.height = 35;
avatarHolder.width = 35;
addChild(avatarHolder);


messageTxt = new TextArea();

addChild(messageTxt);


}

  override protected function measure():void{
trace("measure for message box " + msgObject.message)
super.measure();
messageTxt.x = 55;
messageTxt.width = this.width - 55 - timeStamp.width;
// should i set the height of the messageTxt here  as
messageTxt.height = messageTxt.textHeight but it does not work
correctly..
  }

}



Please please help

Regards
PS


[flexcoders] How does a PopUp Window know when it has been added

2008-02-01 Thread reflexactions
If a window is shown by PopUpManager.addPopUp() how does it know when 
it has been added given that this window maybe be pop'd up many times 
during the life of the application?

The initialize function is only called by the parent the first time 
after that it is skipped

Thoughts?




[flexcoders] Re: Flex compiler: missing SWF for modules without any error?

2008-02-01 Thread Cosma
Found some workarounds:

 - create a new flex application, copy and paste the source of the
module's mxml (changing top level tags from  to
) and build.. errors should now be appears.

 - export a release version using Project -> Export Release Build,
error shoud be displayed in the detailed wiew, but only the module
they belong to will be reported.. you have to search your source files
by yourself.

-Cosma

--- In flexcoders@yahoogroups.com, "Cosma" <[EMAIL PROTECTED]> wrote:
>
> Ok, there actually was an error in the implementation of the interface
> methods.. but I think the compiler is supposed to explain what methods
> are missing.. is this a common issue or something with my setup?
> 
> BTW, I'm using the Flex Builder 3 Beta 3 (190133) as a plugin on
> Eclipse 3.3.1.1 M20071023-1652.
> 
> - Cosma
>




Re: [flexcoders] VideoDisplay over RTMP - Not possible?

2008-02-01 Thread YOGESH JADHAV
U don't need to start from scrath , i hv once seen such component developed
on net. Google may help.

On Feb 1, 2008 3:59 PM, YOGESH JADHAV <[EMAIL PROTECTED]> wrote:

> exactly, VideoDisplay Sucks, use Video Object and add it to panel ( if u
> want same looks of videodisplay )
>
>
> On Feb 1, 2008 3:13 PM, polestar11 <[EMAIL PROTECTED]> wrote:
>
> >   Hi
> >
> > I've run into a seemingly common problem of setting videoDisplay
> > source to an rtmp stream. I get the following exception as soon as the
> > video-display's play is triggered:
> > ArgumentError: Error #2126: NetConnection object must be connected.
> > at flash.net::NetStream/construct()
> > at flash.net::NetStream()
> > at
> >
> > VideoPlayerNetStream()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\controls\videoClasses\VideoPlayer.as:2882]
> >
> > I found the following URL that refers to a race condition:
> >
> > http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/
> >
> > I tried their monkey patch, but was still not able to get around the
> > problem. Tracing through the Flex code I found a very interesting
> > snippet of code in NCManagerConnectClient.onBWDone which invokes an
> > onConnected method passing a net-connection object that is not
> > actually connected. This continues to the VideoPlayer.ncConnected
> > method which tries to connect the stream on the net-connection object
> > that is not actually connected.
> >
> > Possible Solution: Dont use VideoDisplay for RTMP, build your own?
> >
> > Cheers
> > tracy
> >
> >  
> >
>
>
>
> --
>
>
> Regards,
> Yogesh




-- 


Regards,
Yogesh


Re: [flexcoders] VideoDisplay over RTMP - Not possible?

2008-02-01 Thread YOGESH JADHAV
exactly, VideoDisplay Sucks, use Video Object and add it to panel ( if u
want same looks of videodisplay )

On Feb 1, 2008 3:13 PM, polestar11 <[EMAIL PROTECTED]> wrote:

>   Hi
>
> I've run into a seemingly common problem of setting videoDisplay
> source to an rtmp stream. I get the following exception as soon as the
> video-display's play is triggered:
> ArgumentError: Error #2126: NetConnection object must be connected.
> at flash.net::NetStream/construct()
> at flash.net::NetStream()
> at
>
> VideoPlayerNetStream()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\controls\videoClasses\VideoPlayer.as:2882]
>
> I found the following URL that refers to a race condition:
> http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/
>
> I tried their monkey patch, but was still not able to get around the
> problem. Tracing through the Flex code I found a very interesting
> snippet of code in NCManagerConnectClient.onBWDone which invokes an
> onConnected method passing a net-connection object that is not
> actually connected. This continues to the VideoPlayer.ncConnected
> method which tries to connect the stream on the net-connection object
> that is not actually connected.
>
> Possible Solution: Dont use VideoDisplay for RTMP, build your own?
>
> Cheers
> tracy
>
>  
>



-- 


Regards,
Yogesh


Re: [flexcomponents] RE: [flexcoders] update complete of list component

2008-02-01 Thread learner
got it...
I changed my code and checked if the lenght of the dataprovider is greater
than 0
but thats a kinda of hack which i did not like :(

On Feb 1, 2008 12:37 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>updateComplete will be called several times during the lifetime of a
> List.  Your code will have to handle that fact.  If MemberBox invalidates
> the List you'll get more than one updateComplete
>
>
>  --
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *learner
> *Sent:* Thursday, January 31, 2008 9:02 PM
> *To:* [EMAIL PROTECTED]
> *Cc:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcomponents] RE: [flexcoders] update complete of list
> component
>
>
>
> I am setting the data provider only once ..
> they way i have created list is something like this  :
>
>
> vList = new List();
> vList.itemRenderer = new ClassFactory(MemberBox);
> vList.visible = false;
> vList.addEventListener(FlexEvent.UPDATE_COMPLETE,showList);
>addChild(vList);
>var watcherSetter:ChangeWatcher = 
> BindingUtils.bindSetter(setDataProviderList,
> this, "dataProvider");
>
> ---
>
> private function setDataProviderList(value:ArrayCollection):void{
>
> trace("setting dataProvioder");
> vList.dataProvider = value;
> invalidateSize();
>}
>
>
> private function showList(event:FlexEvent):void {
> trace("update complete of member list")
> //vList.visible = true;
> //callSpinner.visible = false;
>}
>
>
>
>
>  The function showList gets called twice... where as the trace "setting
> data Provider"  gets displayed only once... please help
>
>
>
>
> 
>
> On Fri, Feb 1, 2008 at 12:42 AM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> Updatecomplete should work. Depending on when you set the dataprovider it
> might get fired more than once.
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *learner
> *Sent:* Thursday, January 31, 2008 4:02 AM
> *To:* [EMAIL PROTECTED]; flexcoders@yahoogroups.com
> *Subject:* [flexcoders] update complete of list component
>
>
>
> Hi all,
> Is there any way in which we can find out the list has shown all the rows
> in visible area..
> I tried to use updateComplete event but..it did not help me much...
>
> Regards
> PS
>
>
>
>  
>


[flexcoders] VideoDisplay over RTMP - Not possible?

2008-02-01 Thread polestar11
Hi 

I've run into a seemingly common problem of setting videoDisplay
source to an rtmp stream. I get the following exception as soon as the
video-display's play is triggered:
ArgumentError: Error #2126: NetConnection object must be connected.
at flash.net::NetStream/construct()
at flash.net::NetStream()
at
VideoPlayerNetStream()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\controls\videoClasses\VideoPlayer.as:2882]

I found the following URL that refers to a race condition:
http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/

I tried their monkey patch, but was still not able to get around the
problem. Tracing through the Flex code I found a very interesting
snippet of code in NCManagerConnectClient.onBWDone which invokes an
onConnected method passing a net-connection object that is not
actually connected. This continues to the VideoPlayer.ncConnected
method which tries to connect the stream on the net-connection object
that is not actually connected.

Possible Solution: Dont use VideoDisplay for RTMP, build your own?

Cheers
tracy






Re: [flexcoders] Re: Streaming Video in Flex using Windows 2003 Server

2008-02-01 Thread YOGESH JADHAV
ya u can use video display , but if your using fms/rtmp combination it is
better to use Video object then attach netstream to it. It will give more
control to functionality / interactivity and offcourse errors.
It is good idea to control the played video  form FMS server side using
streams instead of using client side logic. For streams part u can refer to
this
http://www.adobe.com/devnet/flashmediaserver/articles/learning_fms2_excerpt/learning_fms2_ch09.pdf

On Feb 1, 2008 1:17 PM, greg h <[EMAIL PROTECTED]> wrote:

>   Hi Don,
>
> In a Flex/AIR app, the simplest way to do load video is using the
> component 
>
> You can just copy the example in the docs here:
>
> http://livedocs.adobe.com/labs/flex3/langref/mx/controls/VideoDisplay.html#includeExamplesSummary
>
> Note that as written, the doc example is for a progressive download via
> http.  Specifically note the value being passed on the source= property:
> source="assets/phone.flv"
> Since no protocol is specified in this example, http is implied by the
> relative reference to the flv file.  (This same, simple component also
> supports streaming.  If the flv was being streamed the protocol RMTP would
> need to be included in the URI passed to the source= property.)
>
> If you copy the example in the docs into your project, you will need the
> absolute path to the example flv file.  So just replace the URI passed to
> the source= property to the following:
> source="
> http://examples.adobe.com/flex2/inproduct/sdk/explorer/controls/assets/phone.flv
> "
>
> Of course, you can also specify any valid URI to any valid flv (including
> your own ;-)
>
> Please post back if you have any follow-up questions.
>
>hth,
>
>g
>  
>



-- 


Regards,
Yogesh


RE: [flexcoders] Re: Chart Bug? Setting a backgroundElement bitmap at runtime

2008-02-01 Thread Sunil Bannur
Not sure, whether you are setting the width and height of the image you
are loading dynamically.
Also pushing it in to the backgroundelements array would not work, it
should be assigned like this
 
chart.backgroundelements = AnArray;
 
Thanks
-Sunil



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of EddieBerman
Sent: Friday, February 01, 2008 9:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Chart Bug? Setting a backgroundElement bitmap
at runtime



Let me just clarify the specific bit of code that I assumed would 
work, but isn't. At runtime, way after creationComplete(), I create 
an mx:Image object, load a .jpg into it from my local file system, 
and then push it onto the backgroundElements array. I've also tried 
simply setting it as the sole member of that backgroundElements 
array. The only thing I know for certain is that when I test the .jpg 
loading by adding that mx:Image to the canvas, it displays correctly. 

Since I'm not having success, I'm wondering if this is a chart bug. 
Or - if there's another (or rather, a correct) way to accomplish this 
goal. I couldn't find any mention of this method in the Flex LiveDocs.

Thanks again.

--- In flexcoders@yahoogroups.com 
, "EddieBerman" 
<[EMAIL PROTECTED]> wrote:
>
> Flex 3 newbie here with a problem I can't seem to solve by myself. 
> 
> I've been unable to set a backgroundElement bitmap with an image 
> loaded at runtime. 
> 
> I can accomplish it without problem using either:
> 
> 1) an mx:Image with a predefined @Embed source property within 
> mx:backgroundElements tags (as is well documented)
> 
> and/or
> 
> 2) AS3 code to explicitly push an Embed'd image (also well 
> documented).
> 
> But - I can't seem to set an image that I load at runtime. I load 
the 
> image and (to test it) display it in an mx:Image object that I 
create 
> at the same time. Then, either I don't know exactly what type of 
> object to push into the backgroundElements array, or Flex doesn't 
> support this. I've tried using bitmaps, images, etc, but nothing 
> seems to work. I also can't find any documentation for this method.
> 
> Can anyone point me to either a reference, or suggest a way to 
> accomplish this? 
> Much appreciated.
> -Eddie
>



 


Re: [flexcoders] Re: Streaming Video in Flex using Windows 2003 Server

2008-02-01 Thread greg h
Hi Don,

In a Flex/AIR app, the simplest way to do load video is using the component


You can just copy the example in the docs here:
http://livedocs.adobe.com/labs/flex3/langref/mx/controls/VideoDisplay.html#includeExamplesSummary

Note that as written, the doc example is for a progressive download via
http.  Specifically note the value being passed on the source= property:
source="assets/phone.flv"
Since no protocol is specified in this example, http is implied by the
relative reference to the flv file.  (This same, simple component also
supports streaming.  If the flv was being streamed the protocol RMTP would
need to be included in the URI passed to the source= property.)

If you copy the example in the docs into your project, you will need the
absolute path to the example flv file.  So just replace the URI passed to
the source= property to the following:
source="
http://examples.adobe.com/flex2/inproduct/sdk/explorer/controls/assets/phone.flv
"

Of course, you can also specify any valid URI to any valid flv (including
your own ;-)

Please post back if you have any follow-up questions.

   hth,

   g


[flexcoders] Re: Can't seem to receive events when using custom components

2008-02-01 Thread ehsiao_bea
--- In flexcoders@yahoogroups.com, "Joe Beuckman" <[EMAIL PROTECTED]> wrote:
>
> "To listen for an event during all phases of the event flow, you
must call
> addEventListener() twice, once with the use_capture parameter set to
true,
> and again with use_capture set to false."
> 
>
http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=0469.html
>

Joe,

Thanks for the information.  But I do not want to handle the events in
the custom component (MDIPanel); I was hoping the Panel class (which
the custom component extends from) will handle the events for me.  Or
do I need to somehow peculate these events to the parent class?

For example, I want to use resource bundle to change the label text in
this custom component.  This works in regular components but not in
this custom component.  Same thing also happened to the datagrid
control in this customer components where somehow the dataprovider did
not work.  If I move the datagrid to a regular component, everything
works.

Any thoughts?

Thanks,
Eric 



[flexcoders] Re: Chart Bug? Setting a backgroundElement bitmap at runtime

2008-02-01 Thread EddieBerman
Let me just clarify the specific bit of code that I assumed would 
work, but isn't. At runtime, way after creationComplete(), I create 
an mx:Image object, load a .jpg into it from my local file system, 
and then push it onto the backgroundElements array. I've also tried 
simply setting it as the sole member of that backgroundElements 
array. The only thing I know for certain is that when I test the .jpg 
loading by adding that mx:Image to the canvas, it displays correctly. 

Since I'm not having success, I'm wondering if this is a chart bug. 
Or - if there's another (or rather, a correct) way to accomplish this 
goal. I couldn't find any mention of this method in the Flex LiveDocs.

Thanks again.

--- In flexcoders@yahoogroups.com, "EddieBerman" 
<[EMAIL PROTECTED]> wrote:
>
> Flex 3 newbie here with a problem I can't seem to solve by myself. 
> 
> I've been unable to set a backgroundElement bitmap with an image 
> loaded at runtime. 
> 
> I can accomplish it without problem using either:
> 
> 1) an mx:Image with a predefined @Embed source property within 
> mx:backgroundElements tags   (as is well documented)
> 
>   and/or
> 
> 2) AS3 code to explicitly push an Embed'd image (also well 
> documented).
> 
> But - I can't seem to set an image that I load at runtime. I load 
the 
> image and (to test it) display it in an mx:Image object that I 
create 
> at the same time. Then, either I don't know exactly what type of 
> object to push into the backgroundElements array, or Flex doesn't 
> support this. I've tried using bitmaps, images, etc, but nothing 
> seems to work.  I also can't find any documentation for this method.
> 
> Can anyone point me to either a reference, or suggest a way to 
> accomplish this? 
> Much appreciated.
> -Eddie
>