RE: [flexcoders] Subobjects null within Assembler when updating to LCDS 2.6

2008-11-25 Thread Jeff Vroom
Can you send me the client and server debug logs for this case?Since they 
are probably big, feel free to send them to me at [EMAIL PROTECTED]   I can't 
think of any changes that would have caused this.Everything should be 
backwards compatible though you might try 2.6.1 (now available for public 
download) as there was one bug in particular I fixed that might have cause this.

Jeff

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
taze170171
Sent: Tuesday, November 25, 2008 7:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Subobjects null within Assembler when updating to LCDS 2.6


Hello!

We have justed updated our application from LCDS 2.5.1 to LCDS 2.6.

If we now update an object, referenced subobjects which are sent from
the AIR Client to the server, are null when the objects arrive at the
Assembler. When createItem is called the subobjects are sent to the
assembler. We use managed associations to the subobjects.

The problem only occurs if the main object has been created just
before. If an already existing object gets updated everything works
fine.

The problem does not occur if we use the LCDS 2.6 jar files together
with the fds.swc from version 2.5.1.

Do have to adapt a special config entry when updating to LCDS 2.6 or
do we have to set another property within data-management-config.xml,
so that subobjects are always sent to the Assembler?

Thanks in advance,
Taze

<><>

Re: [flexcoders] Re: Architecture question using Move Effect and Events

2008-11-25 Thread Jules Suggate
This is a good solution -- I was going to suggest that in the
handleMouseRollOver function you can check currentTarget to see if
it's an instance of UITextField, Label or whatever, thus waiting until
the event has bubbled to the grandparent. But that requires hardcoding
the types into an if(..) statement, not ideal. In fact, hardly
different from the event.target.parent.parent code you had originally.

Yours sounds like the way to go.

On Wed, Nov 26, 2008 at 14:37, devenhariyani <[EMAIL PROTECTED]> wrote:
> Wow..you all have been very helpful! Thank you so much for your
> support. In the end I did not use the mouseChildren property, because
> I needed the child components to receive mouseover and mouseOut events.
>
> But, I did create a framework that fixed all of my event troubles, and
> below are some of the things I did. I hope it helps someone in the future:
>
> 1. I created a new custom Event class called MyCustomEvent. I then
> have the base compoenent listen specifically for this custom event,
> and whenever any of the children components receive a mouseover or
> mouseout event they dispatch a new MyCustomEvent which the parent
> class receives and is able to perform special effects such as stopping
> the move effect, zooming, etc. When creating the MyCustomEvent, the
> key was that I needed bubble set to "true" so that the event bubbles.
> The code is:
>
> public class MyEvent extends Event
> {
> public static const FREEZE:String = "matrixFreeze";
> public static const RESUME:String = "matrixResume";
>
> public function MyEvent(type:String, bubbles:Boolean=true,
> cancelable:Boolean=false)
> {
> super(type, bubbles, cancelable);
> }
>
> }
>
> 2. Whenever I am listening for events, I make sure that I am using
> currentTarget as opposed to target. before I was using target
> property to access activeEffects on the parent object, and this was
> giving me exceptions. That is because in my situation, target was the
> UITextField and the currentTarget was in fact the MyCustomMXML obj I
> was trying to access.
>
> HTH someone out,
> Deven
>
> --- In flexcoders@yahoogroups.com, "devenhariyani" <[EMAIL PROTECTED]>
> wrote:
>>
>> I apologize if the context of my question is not fully clear, and I
>> greatly appreciate you taking the time to respond. However, your
>> assumption is not correct.
>>
>> The way the applciation is working so that there is actually 30, 40 or
>> even more instances of the custom MXML components rendered on the
>> canvas at any given point. this is all determined at runtime, and
>> each instance of MyCustomMXMLComponent is moving across the canvas
>> with its very own instance of a Move Effect.
>>
>> To clarify the question:
>> My custom mxml component is called: MyCustomMXMLComponent.mxml it has
>> a Label and a Text Area inside of it. When a user does a mouse
>> rollover on the Label I want the MyCustomMXMLComponent to stop moving
>> and other actions to happen.
>>
>> I am unable to catch events inside of the MyCustomMXMLComponent.mxml
>> object, the code i use is:
>>
>> var instance:MyCustomMXMLComponent = new MyCustomMXMLComponent();
>> instance.addEventListner(MouseEvent.ROLL_OVER, handleMouseRollOver);
>>
>>
>> The problem is that when a user moves a mouse over the
>> MyCustomMXMLComponent a UITextField catches the event so when i have
>> the below code in the event handler it fails:
>>
>> //find the MoveInstance and pause
>> for(var i:int = 0; i < event.target.activeEffects.length; i++) {
>> if(event.target.activeEffects[i].className == 'MoveInstance')
>> event.target.activeEffects[i].pause();
>> }
>>
>> Why is the UITextField which is inside of the Label catchign the event
>> when I did not register an eventhandler for it to do anything??
>>
>> Is there a better way to catch the event so that the
>> MyCustomMXMLComponent can handle the event to stop the Move Effect???
>>
>> Thank you.
>>
>>
>>
>> --- In flexcoders@yahoogroups.com, Chet Haase  wrote:
>> >
>> >
>> > I'm not sure I understand the whole context, but if I'm right that
>> there's just one of these custom components per app, and therefore one
>> Move effect running on it at any given time, isn't it easier to just
>> cache an instance to the effect itself and pause() it directly when
>> you get the rollover event?
>> >
>> > Chet.
>> >
>> >
>> >
>> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
>> On Behalf Of devenhariyani
>> > Sent: Friday, November 21, 2008 1:01 PM
>> > To: flexcoders@yahoogroups.com
>> > Subject: [flexcoders] Re: Architecture question using Move Effect
>> and Events
>> >
>> >
>> > below is the code that i am using. maybe this will help you see
>> what i'm trying to do, and help how i should be properly stopping the
>> Move Effect for UI components which are dynamically created at
>> runtime. Thanks!
>> >
>> > public function initApp:void() {
>> >
>> > //for each element in an ArrayCollection which was retrieved from a
>> HTTPService
>> >
>> > //get the element, create a new custom M

Re: [flexcoders] Best browser for debugging on Mac OSX?

2008-11-25 Thread Bjorn Schultheiss
Any performance increase with Opera?

Debugging for me has also become painfully slow.

Could it have to do with the FB 3.0.2 upgrade?


On Wed, Nov 26, 2008 at 1:14 PM, Guy Morton <[EMAIL PROTECTED]> wrote:

>   I find Camino a lot slower than Firefox, and it's probably an even worse
> memory hog.
>
> I'm going to try Opera for a while.
>
>
> On 26/11/2008, at 11:11 AM, Bjorn Schultheiss wrote:
>
> Camino is supposed to be pretty fast.
>
> Its a little bit more difficult to set up your proxies but it is possible.
>
> I was using Camino but I currently use Firefox.
>
> On Wed, Nov 26, 2008 at 10:45 AM, Guy Morton <[EMAIL PROTECTED]> wrote:
>
>> Anyone got a recommendation?
>>
>> I've been using Firefox, but it seems to bloat memory-wise the longer
>> it runs - often consuming >500Mb after a while. As FB3 also is a
>> memory hog, this makes it hard to run on a 2Gb machine.
>>
>> All I really need it a lightweight browser that can load the Flash
>> plugin.
>>
>> Guy
>>
>
>
>
>  


[flexcoders] Re: Problems with mouseChildren not blocking unwanted Mouse Events on Canvas

2008-11-25 Thread devenhariyani
btw, i also tried stopImmediatePropagation() and that didn't work
either for my situation, but i just figured it out!!!

set mouseEnabled = false and the new component will not cause
conflicts with the mouse events.

--deven
--- In flexcoders@yahoogroups.com, "devenhariyani" <[EMAIL PROTECTED]>
wrote:
>
> Hello,
> 
> I have an application with the following structure:
> 
> 
>|->CustomXMLComponent_1
>  |->Label
>  |->TextArea
>   ...
>|->CustomXMLComponent_n
>  |->Label
>  |->TextArea
> 
> 
> When a user performs a mouse rollover on the  Label field for any of
> the CustomMXMLComponents, there is a child canvas with a TextArea that
> is added to the base application, and this new canvas has fancy blur
> and zoom effects applied to it when it appears on the screen.
> 
> When the user performs a rollout from the Label than the child canvas
> that was added will blur and fade out.  Sounds simple, right?
> 
> The problem is that if a user is performing a mouse rollover on a
> coordinate where the new child canvas will appear than complete chaos
> breaks out because the dynamically added Canvas child causes
> conflicting mouse rollover/rollout effects which cause multiple mouse
> rollover/out events are fired on the Label and multiple new child
> canvases are created and I end up with windows everywhere.
> 
> I have tried setting mouseChildren=false before  and after adding the
> child Canvas element to the Application Canvas, but this didn't solve
> my problem, when the canvas with zoom, blur effect comes on the screen
> somehow it is still affecting the mouse events for the current elements.
> 
> btw, i read an older post that spoke about creating a "transparent
> shield" on the application to stop listening to certain events.  how
> would one do this?  
> 
> my application size is for a widget (300x300) so my space is rather
> limited and is there a better way for me to keep all these different
> events that are firing in order??
> 
> Thanks!
> 
> --Deven
>




[flexcoders] Problems with mouseChildren not blocking unwanted Mouse Events on Canvas

2008-11-25 Thread devenhariyani
Hello,

I have an application with the following structure:


   |->CustomXMLComponent_1
 |->Label
 |->TextArea
  ...
   |->CustomXMLComponent_n
 |->Label
 |->TextArea


When a user performs a mouse rollover on the  Label field for any of
the CustomMXMLComponents, there is a child canvas with a TextArea that
is added to the base application, and this new canvas has fancy blur
and zoom effects applied to it when it appears on the screen.

When the user performs a rollout from the Label than the child canvas
that was added will blur and fade out.  Sounds simple, right?

The problem is that if a user is performing a mouse rollover on a
coordinate where the new child canvas will appear than complete chaos
breaks out because the dynamically added Canvas child causes
conflicting mouse rollover/rollout effects which cause multiple mouse
rollover/out events are fired on the Label and multiple new child
canvases are created and I end up with windows everywhere.

I have tried setting mouseChildren=false before  and after adding the
child Canvas element to the Application Canvas, but this didn't solve
my problem, when the canvas with zoom, blur effect comes on the screen
somehow it is still affecting the mouse events for the current elements.

btw, i read an older post that spoke about creating a "transparent
shield" on the application to stop listening to certain events.  how
would one do this?  

my application size is for a widget (300x300) so my space is rather
limited and is there a better way for me to keep all these different
events that are firing in order??

Thanks!

--Deven 



Re: [flexcoders] Memory leaks in Flex SDK

2008-11-25 Thread Guy Morton
I'll second that. I've found the profiler hard to rely upon. Running  
my app in a browser alongside WSMonitor seems more convincing to me,  
but that might be because it gives me the answer I expect & want (ie,  
no leaks).


Guy


On 26/11/2008, at 3:08 PM, Alex Harui wrote:



SDK-18076 hasn’t got enough votes to go to engineering for  
investigation.  Most of the time, we find a bug in the user app.   
Every once in a while we find something we missed, but it isn’t  
SWFLoader, it is some control somewhere that doesn’t clean up.   
AFAIK, several folks are happily deployed using SWFLoader or  
ModuleLoader.




Most recently, we learned that some SWFs don’t fully unload their  
debug info, invalidating the profilers results.  I always advise  
using the profiler to eliminate the odds of there actually being a  
leak, but then, export your swfs for release builds and use a  
release player and see what happens.




-Alex



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

Sent: Tuesday, November 25, 2008 1:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Memory leaks in Flex SDK



Hi all,

I know this is a "multennial" subject, but I just checked Adobe's JIRA
and found three confirmed memory leaks in the Flex SDK :(

They are:
+ Memory leak in SWFLoader: https://bugs.adobe.com/jira/browse/SDK-18076
+ BindingUtils don't use weak event listeners, creating potential
memory leaks: https://bugs.adobe.com/jira/browse/SDK-14891
+ Flash Components break GC in FLex (while loaded at runtime):
https://bugs.adobe.com/jira/browse/SDK-13612

AFAIK, a well modularised application has to make use of SWFLoader for
dynamic linking, so that's a big worry as my app is designed to run
continuously in the background.

The second two are slated to be fixed in Flex Gumbo (not really
imminent but somewhat reassuring), however Adobe are particularly
quiet about the SWFLoader problem.

Anyone know of any workaround for these issues (esp. SWFLoader)?

Cheers,
Jules








RE: [flexcoders] Memory leaks in Flex SDK

2008-11-25 Thread Alex Harui
SDK-18076 hasn't got enough votes to go to engineering for investigation.  Most 
of the time, we find a bug in the user app.  Every once in a while we find 
something we missed, but it isn't SWFLoader, it is some control somewhere that 
doesn't clean up.  AFAIK, several folks are happily deployed using SWFLoader or 
ModuleLoader.

Most recently, we learned that some SWFs don't fully unload their debug info, 
invalidating the profilers results.  I always advise using the profiler to 
eliminate the odds of there actually being a leak, but then, export your swfs 
for release builds and use a release player and see what happens.

-Alex

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jules 
Suggate
Sent: Tuesday, November 25, 2008 1:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Memory leaks in Flex SDK


Hi all,

I know this is a "multennial" subject, but I just checked Adobe's JIRA
and found three confirmed memory leaks in the Flex SDK :(

They are:
+ Memory leak in SWFLoader: https://bugs.adobe.com/jira/browse/SDK-18076
+ BindingUtils don't use weak event listeners, creating potential
memory leaks: https://bugs.adobe.com/jira/browse/SDK-14891
+ Flash Components break GC in FLex (while loaded at runtime):
https://bugs.adobe.com/jira/browse/SDK-13612

AFAIK, a well modularised application has to make use of SWFLoader for
dynamic linking, so that's a big worry as my app is designed to run
continuously in the background.

The second two are slated to be fixed in Flex Gumbo (not really
imminent but somewhat reassuring), however Adobe are particularly
quiet about the SWFLoader problem.

Anyone know of any workaround for these issues (esp. SWFLoader)?

Cheers,
Jules



Re: [flexcoders] Best browser for debugging on Mac OSX?

2008-11-25 Thread Guy Morton
I find Camino a lot slower than Firefox, and it's probably an even  
worse memory hog.


I'm going to try Opera for a while.


On 26/11/2008, at 11:11 AM, Bjorn Schultheiss wrote:


Camino is supposed to be pretty fast.

Its a little bit more difficult to set up your proxies but it is  
possible.


I was using Camino but I currently use Firefox.


On Wed, Nov 26, 2008 at 10:45 AM, Guy Morton <[EMAIL PROTECTED]>  
wrote:

Anyone got a recommendation?

I've been using Firefox, but it seems to bloat memory-wise the longer
it runs - often consuming >500Mb after a while. As FB3 also is a
memory hog, this makes it hard to run on a 2Gb machine.

All I really need it a lightweight browser that can load the Flash
plugin.

Guy








RE: [flexcoders] Re: copying large amount of data using System.setClipboard() in Flash 10.

2008-11-25 Thread Tracy Spratt
Yeah, use the callLater() mechanism to gather the data, then a button to
setClipboard.  That is the only solution I see.

 

Can't we just have the death penalty for the creeps that make this stuff
necessary?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Tuesday, November 25, 2008 6:02 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: copying large amount of data using
System.setClipboard() in Flash 10.

 

That's what he's complaining about :)

I'd just do what you do before, only when you're done with the progress
bar, replace it with text that says "Done!" and a button that says "Copy
result to clipboard".

-Josh

On Wed, Nov 26, 2008 at 6:52 AM, Tracy Spratt <[EMAIL PROTECTED]
 > wrote:

setClipboard must be user invoked, with a button or link or something.

Tracy

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Ilam Mougy
Sent: Monday, November 24, 2008 11:35 PM
To: flexcoders@yahoogroups.com  
Subject: [flexcoders] Re: copying large amount of data using
System.setClipboard() in Flash 10.

 

I don't append to clipboard. I append to a string, and after
finishing the accumulation, I call setClipboard(), this is when I
violated the security model. I call callLater(foo) and foo has the
code to setClipboard().

Thanks,

--- In flexcoders@yahoogroups.com 
, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> How do you "append" to the clipboard?
> 
> On Tue, Nov 25, 2008 at 8:23 AM, Ilam Mougy <[EMAIL PROTECTED]> wrote:
> 
> > I understand the security issue that Adobe fixed in Flash 10. In
> > Flash 9, when it comes time to copy large amount of data and to
avoid
> > "the time out issue in browsers" I used to chunk the data and call
> > callLater(foo) to allow for a progress bar while copying the data
(and
> > a cancel button).
> >
> > Now, how can I do that in Flash 10, since the above methodology will
> > violate Flash 10 security model?
> >
> > As a side question, is there a sample for how to properly call
> > setClipbaord() so that Flash 10 does copy?
> >
> > Thanks,
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 
> > Alternative FAQ location:
> >
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
 
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 ! Groups
> > Links
> >
> >
> >
> >
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> Like the cut of my jib? Check out my Flex blog!
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> :: http://flex.joshmcdonald.info/  
> :: http://twitter.com/sophistifunk  
>




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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]  
:: http://flex.joshmcdonald.info/  
:: http://twitter.com/sophistifunk  

 



Re: [flexcoders] Best browser for debugging on Mac OSX?

2008-11-25 Thread Guy Morton
Yeah, I pay for my own gear though, and my 2yo MBP is limited to  
2Gb... :-/


On 26/11/2008, at 11:46 AM, Tim Rowe wrote:



Biggest downside I think we found to Camino was the lack of Firefox  
plugins.  Especially when you're relying on things like FoxyProxy,  
it does create a bit of an issue using Camino full-time.  If you're  
not worried about though, and/or all you want to do is just test  
your code, it might not hurt to have a copy of Camino set up to do  
exactly what you want, and use FF/Safari for everything else.


I'd tended to use the Intel native/optimized builds of Firefox  
(BonEcho and the like), and never bothered worrying about memory  
usage.  Over time with FF you just grow to accept things are  
slow ... or buy/demand a new machine.


--Tim Rowe

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

Sent: Wednesday, 26 November 2008 11:12 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Best browser for debugging on Mac OSX?

Camino is supposed to be pretty fast.

Its a little bit more difficult to set up your proxies but it is  
possible.


I was using Camino but I currently use Firefox.


On Wed, Nov 26, 2008 at 10:45 AM, Guy Morton <[EMAIL PROTECTED]>  
wrote:

Anyone got a recommendation?

I've been using Firefox, but it seems to bloat memory-wise the longer
it runs - often consuming >500Mb after a while. As FB3 also is a
memory hog, this makes it hard to run on a 2Gb machine.

All I really need it a lightweight browser that can load the Flash
plugin.

Guy









[flexcoders] Re: Architecture question using Move Effect and Events

2008-11-25 Thread devenhariyani
Wow..you all have been very helpful!  Thank you so much for your
support.  In the end I did not use the mouseChildren property, because
 I needed the child components to receive mouseover and mouseOut events.

But, I did create a framework that fixed all of my event troubles, and
below are some of the things I did. I hope it helps someone in the future:

1. I created a new custom Event class called MyCustomEvent.  I then
have the base compoenent listen specifically for this custom event,
and whenever any of the children components receive a mouseover or
mouseout event they dispatch a new MyCustomEvent which the parent
class receives and is able to perform special effects such as stopping
the move effect, zooming, etc.  When creating the MyCustomEvent, the
key was that I needed bubble set to "true" so that the event bubbles.
 The code is:

public class MyEvent extends Event
{
public static const FREEZE:String = "matrixFreeze";
public static const RESUME:String = "matrixResume";

public function MyEvent(type:String, bubbles:Boolean=true,
cancelable:Boolean=false)
{
super(type, bubbles, cancelable);
}

}

2. Whenever I am listening for events, I make sure that I am using
currentTarget as opposed to target.  before I was using target
property to access activeEffects on the parent object, and this was
giving me exceptions.  That is because in my situation, target was the
UITextField and the currentTarget was in fact the MyCustomMXML obj I
was trying to access.

HTH someone out,
Deven

--- In flexcoders@yahoogroups.com, "devenhariyani" <[EMAIL PROTECTED]>
wrote:
>
> I apologize if the context of my question is not fully clear, and I
> greatly appreciate you taking the time to respond.  However, your
> assumption is not correct.  
> 
> The way the applciation is working so that there is actually 30, 40 or
> even more instances of the custom MXML components rendered on the
> canvas at any given point.  this is all determined at runtime, and
> each instance of MyCustomMXMLComponent is moving across the canvas
> with its very own instance of a Move Effect.
> 
> To clarify the question:
> My custom mxml component is called: MyCustomMXMLComponent.mxml  it has
> a Label and a Text Area inside of it.  When a user does a mouse
> rollover on the Label I want the MyCustomMXMLComponent to stop moving
> and other actions to happen.  
> 
> I am unable to catch events inside of the MyCustomMXMLComponent.mxml
> object, the code i use is:
> 
> var instance:MyCustomMXMLComponent = new MyCustomMXMLComponent();
> instance.addEventListner(MouseEvent.ROLL_OVER, handleMouseRollOver);
> 
> 
> The problem is that when a user moves a mouse over the
> MyCustomMXMLComponent a UITextField catches the event so when i have
> the below code in the event handler it fails:
> 
> //find the MoveInstance and pause
> for(var i:int = 0; i < event.target.activeEffects.length; i++) {
> if(event.target.activeEffects[i].className == 'MoveInstance')
>   event.target.activeEffects[i].pause();
> }
> 
> Why is the UITextField which is inside of the Label catchign the event
> when I did not register an eventhandler for it to do anything??
> 
> Is there a better way to catch the event so that the
> MyCustomMXMLComponent can handle the event to stop the Move Effect???
> 
> Thank you.
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Chet Haase  wrote:
> >
> > 
> > I'm not sure I understand the whole context, but if I'm right that
> there's just one of these custom components per app, and therefore one
> Move effect running on it at any given time, isn't it easier to just
> cache an instance to the effect itself and pause() it directly when
> you get the rollover event?
> > 
> > Chet.
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On Behalf Of devenhariyani
> > Sent: Friday, November 21, 2008 1:01 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Architecture question using Move Effect
> and Events
> > 
> > 
> > below is the code that i am using.  maybe this will help you see
> what i'm trying to do, and help how i should be properly stopping the
> Move Effect for UI components which are dynamically created at
> runtime.  Thanks!
> > 
> > public function initApp:void() {
> > 
> > //for each element in an ArrayCollection which was retrieved from a
> HTTPService
> > 
> > //get the element, create a new custom MXML component
> > 
> > var uiobj:MyCustomMXMLComponent = new MyCustomMXMLComponent();
> > 
> > this.canvas.addChild(uiobj);
> > 
> > uiobj.lblTitle = "some title that i get from the array collection";
> > 
> > uiobj.txaBrief = "some more text i get from the array collection";
> > 
> > //add Move Effect to the ui obj to move it on the canvas.
> > 
> > moveObj(uiobj);
> > 
> > }
> > 
> > public static function moveObj(obj:UIComponent):void {
> > 
> > var mv

Re: [flexcoders] BlazeDS - Best practice for determining if server session is invalid.

2008-11-25 Thread Fotis Chatzinikos
Hello Seth, I had not bumped across any of this so thanks! I will have a
look and hopefully -NOT- let you know (ie it will work :-)

Thanks again,
Fotis

On Wed, Nov 26, 2008 at 2:26 AM, Seth Hodgson <[EMAIL PROTECTED]> wrote:

>   Hi Fotis,
>
> The client library caches credentials in order to support seamless fallback
> through channels in your ChannelSet that preserves your desired
> authenticated identity both at connect time, as well as for automatic
> failover across peer servers in a cluster at any point after you've
> initially connected.
>
> However, when you use a simple AMF channel, where we don't know your
> session (connection) has timed out until a remoting call is made but fails
> due to an auth constraint check, we didn't originally handle that scenario
> seamlessly. Now we do, when you turn on the config flag I mentioned below,
> and it applies to remoting calls, producer messages sends, DMS operations,
> etc. (basically, any outbound message that fails in processing due to an
> auth fault when you were previously successfully authenticated).
>
> In order for this to work though, you'd need to be logging in from within
> the Flex app so that it has access to your creds.
> We provide server-side LoginCommand impls for supported app servers that
> plug into their various custom authentication layers and that's what Flex
> login requests are processed by, but we don't ship an official
> AcegiLoginCommand currently. I think folks in the community have implemented
> that though, so try Googling for it, or perhaps someone else who's written
> one will post a link?
>
> There's more detail here:
> http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/help.html?content=services_security_2.html
>
> And here:
> http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/help.html?content=services_security_5.html#348164
>
> Best,
> Seth
>
> From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On Behalf Of
> Fotis Chatzinikos
> Sent: Tuesday, November 25, 2008 3:46 PM
> To: flexcoders@yahoogroups.com 
> Subject: Re: [flexcoders] BlazeDS - Best practice for determining if server
> session is invalid.
>
>
> Hi Seth,
>
> the following line looks quite promising:
>
> >>It should handle this case seamlessly, removing the need to re-prompt the
> user with a login dialog.
>
> Can you elaborate a bit?
>
> How is that possible?
>
> In my case I use spring-acegi to login, prior to the flash component, but
> if there is another way - ie via a flash login box and automatic
> re-authentication i would love a pointer on how to do it...
>
> Thanks,
> Fotis
> On Tue, Nov 25, 2008 at 11:15 PM, Seth Hodgson <[EMAIL 
> PROTECTED]>
> wrote:
> Hi,
>
> In your services-config.xml file, within the  for the
> channel/endpoint you app is using to issue remoting calls to the server, try
> turning on the following config option:
>
> 
> true
>
> This is also exposed as the 'loginAfterDisconnect' property on Channel, if
> you're building your channels and ChannelSet directly in ActionScript.
>
> It should handle this case seamlessly, removing the need to re-prompt the
> user with a login dialog.
> If you really want to reprompt the user, in your fault handler for your
> RemoteObject calls, you could watch for faults with an underlying
> ErrorMessage with a faultCode of "Client.Authentication" and use that to
> trigger transition back to your login view.
>
> The reason that the authenticated property doesn't change on the client is
> that there's no way guaranteed way for the server to notify the client when
> the session times out. So, it's not until you send your next request to the
> server that we discover that.
>
> Best,
> Seth
>
> From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On Behalf Of
> rydellfinn
> Sent: Wednesday, November 05, 2008 6:15 PM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] BlazeDS - Best practice for determining if server
> session is invalid.
>
> Currently I am running BlazeDS on Tomcat, and I have a flex client
> that is authenticating against a set of Remote Objects using
> channelset.login().
>
> As expected, if I walk away from the client for 30 minutes, the Tomcat
> server invalidates the session, which of course effectively logs out
> the client.
>
> What I would like to happen is when the server invalidates the
> session, the client is returned to the login page. I can think of
> different ways to accomplish this, but I was wondering if there is an
> established pattern for this?
>
> I tried creating a timer on the client to check if the authenticated
> property on the channelset was false. But I noticed that the
> authenticated property never changed, even after the session invalidated.
>
> I'm tempted to do the same thing on the server, but instead check to
> see if the session is valid, and throw an error if not.
>
> But I thought I'd check here first!
>
> Thanks in advance!
>
> --
> Fotis Chatzinikos, Ph.D.
> Founder,

RE: [flexcoders] Best browser for debugging on Mac OSX?

2008-11-25 Thread Tim Rowe
Biggest downside I think we found to Camino was the lack of Firefox
plugins.  Especially when you're relying on things like FoxyProxy, it
does create a bit of an issue using Camino full-time.  If you're not
worried about though, and/or all you want to do is just test your code,
it might not hurt to have a copy of Camino set up to do exactly what you
want, and use FF/Safari for everything else.
 
I'd tended to use the Intel native/optimized builds of Firefox (BonEcho
and the like), and never bothered worrying about memory usage.  Over
time with FF you just grow to accept things are slow ... or buy/demand a
new machine.
 
--Tim Rowe



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Wednesday, 26 November 2008 11:12 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Best browser for debugging on Mac OSX?



Camino is supposed to be pretty fast.

Its a little bit more difficult to set up your proxies but it is
possible.

I was using Camino but I currently use Firefox.


On Wed, Nov 26, 2008 at 10:45 AM, Guy Morton <[EMAIL PROTECTED]
 > wrote:


Anyone got a recommendation?

I've been using Firefox, but it seems to bloat memory-wise the
longer 
it runs - often consuming >500Mb after a while. As FB3 also is a

memory hog, this makes it hard to run on a 2Gb machine.

All I really need it a lightweight browser that can load the
Flash 
plugin.

Guy





 


[flexcoders] WindowedApplication titleIcon does not display

2008-11-25 Thread solarpower999
Hello.  Has anyone tried to set an icon using the titleIcon property for
a WindowedApplication component?  I tried it and it doesn't seem to
work.  The path is correct.  I have also set icons in many other
components, so I know what I am doing.  Part of the relevant code is
below.  Any ideas?   [:-/]




[Bindable]
[Embed(source='/assets/icons/app-icon.png')]
private var appIcon:Class;




RE: [flexcoders] BlazeDS - Best practice for determining if server session is invalid.

2008-11-25 Thread Seth Hodgson
Hi Fotis,

The client library caches credentials in order to support seamless fallback 
through channels in your ChannelSet that preserves your desired authenticated 
identity both at connect time, as well as for automatic failover across peer 
servers in a cluster at any point after you've initially connected.

However, when you use a simple AMF channel, where we don't know your session 
(connection) has timed out until a remoting call is made but fails due to an 
auth constraint check, we didn't originally handle that scenario seamlessly. 
Now we do, when you turn on the config flag I mentioned below, and it applies 
to remoting calls, producer messages sends, DMS operations, etc. (basically, 
any outbound message that fails in processing due to an auth fault when you 
were previously successfully authenticated).

In order for this to work though, you'd need to be logging in from within the 
Flex app so that it has access to your creds.
We provide server-side LoginCommand impls for supported app servers that plug 
into their various custom authentication layers and that's what Flex login 
requests are processed by, but we don't ship an official AcegiLoginCommand 
currently. I think folks in the community have implemented that though, so try 
Googling for it, or perhaps someone else who's written one will post a link?

There's more detail here: 
http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/help.html?content=services_security_2.html

And here: 
http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/help.html?content=services_security_5.html#348164

Best,
Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Fotis 
Chatzinikos
Sent: Tuesday, November 25, 2008 3:46 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] BlazeDS - Best practice for determining if server 
session is invalid.

Hi Seth,

the following line looks quite promising:

>>It should handle this case seamlessly, removing the need to re-prompt the 
>>user with a login dialog.

Can you elaborate a bit?

How is that possible?

In my case I use spring-acegi to login, prior to the flash component, but if 
there is another way - ie via a flash login box and automatic re-authentication 
i would love a pointer on how to do it...

Thanks,
Fotis
On Tue, Nov 25, 2008 at 11:15 PM, Seth Hodgson <[EMAIL PROTECTED]> wrote:
Hi,

In your services-config.xml file, within the  for the 
channel/endpoint you app is using to issue remoting calls to the server, try 
turning on the following config option:


true

This is also exposed as the 'loginAfterDisconnect' property on Channel, if 
you're building your channels and ChannelSet directly in ActionScript.

It should handle this case seamlessly, removing the need to re-prompt the user 
with a login dialog.
If you really want to reprompt the user, in your fault handler for your 
RemoteObject calls, you could watch for faults with an underlying ErrorMessage 
with a faultCode of "Client.Authentication" and use that to trigger transition 
back to your login view.

The reason that the authenticated property doesn't change on the client is that 
there's no way guaranteed way for the server to notify the client when the 
session times out. So, it's not until you send your next request to the server 
that we discover that.

Best,
Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
rydellfinn
Sent: Wednesday, November 05, 2008 6:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] BlazeDS - Best practice for determining if server session 
is invalid.


Currently I am running BlazeDS on Tomcat, and I have a flex client
that is authenticating against a set of Remote Objects using
channelset.login().

As expected, if I walk away from the client for 30 minutes, the Tomcat
server invalidates the session, which of course effectively logs out
the client.

What I would like to happen is when the server invalidates the
session, the client is returned to the login page. I can think of
different ways to accomplish this, but I was wondering if there is an
established pattern for this?

I tried creating a timer on the client to check if the authenticated
property on the channelset was false. But I noticed that the
authenticated property never changed, even after the session invalidated.

I'm tempted to do the same thing on the server, but instead check to
see if the session is valid, and throw an error if not.

But I thought I'd check here first!

Thanks in advance!



--
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],



Re: [flexcoders] Best browser for debugging on Mac OSX?

2008-11-25 Thread Nate Beck
For debugging, Camino is great.
On Tue, Nov 25, 2008 at 4:11 PM, Bjorn Schultheiss <
[EMAIL PROTECTED]> wrote:

>   Camino is supposed to be pretty fast.
>
> Its a little bit more difficult to set up your proxies but it is possible.
>
> I was using Camino but I currently use Firefox.
>
>
> On Wed, Nov 26, 2008 at 10:45 AM, Guy Morton <[EMAIL PROTECTED]> wrote:
>
>>   Anyone got a recommendation?
>>
>> I've been using Firefox, but it seems to bloat memory-wise the longer
>> it runs - often consuming >500Mb after a while. As FB3 also is a
>> memory hog, this makes it hard to run on a 2Gb machine.
>>
>> All I really need it a lightweight browser that can load the Flash
>> plugin.
>>
>> Guy
>>
>
>  
>


Re: [flexcoders] Best browser for debugging on Mac OSX?

2008-11-25 Thread Bjorn Schultheiss
Camino is supposed to be pretty fast.

Its a little bit more difficult to set up your proxies but it is possible.

I was using Camino but I currently use Firefox.

On Wed, Nov 26, 2008 at 10:45 AM, Guy Morton <[EMAIL PROTECTED]> wrote:

>   Anyone got a recommendation?
>
> I've been using Firefox, but it seems to bloat memory-wise the longer
> it runs - often consuming >500Mb after a while. As FB3 also is a
> memory hog, this makes it hard to run on a 2Gb machine.
>
> All I really need it a lightweight browser that can load the Flash
> plugin.
>
> Guy
>  
>


Re: [flexcoders] Embedding mp3 sounds in css files

2008-11-25 Thread Fotis Chatzinikos
Are you sure that you want to embed an mp3 (binary) file inside a css (text)
file?

Maybe you need to rephrase a bit?

What do you want to do?

On Tue, Nov 25, 2008 at 11:11 PM, Wildbore, Brendon <
[EMAIL PROTECTED]> wrote:

>Hi All,
>
>
>
> I need some advice on how to do this.
>
>
>
> I want to embed an mp3 file in a css file and then play it back in my
> application.
>
>
>
> Unfortunately I cannot find any advice on how to do this on the web.
>
>
>
> Any ideas???
>
>
>
> Thanks in advance.
>
>
>
> Brendon
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],


Re: [flexcoders] BlazeDS - Best practice for determining if server session is invalid.

2008-11-25 Thread Fotis Chatzinikos
Hi Seth,

the following line looks quite promising:

>>It should handle this case seamlessly, removing the need to re-prompt the
user with a login dialog.

Can you elaborate a bit?

How is that possible?

In my case I use spring-acegi to login, prior to the flash component, but if
there is another way - ie via a flash login box and automatic
re-authentication i would love a pointer on how to do it...

Thanks,
Fotis

On Tue, Nov 25, 2008 at 11:15 PM, Seth Hodgson <[EMAIL PROTECTED]> wrote:

>   Hi,
>
> In your services-config.xml file, within the  for the
> channel/endpoint you app is using to issue remoting calls to the server, try
> turning on the following config option:
>
> 
> true
>
> This is also exposed as the 'loginAfterDisconnect' property on Channel, if
> you're building your channels and ChannelSet directly in ActionScript.
>
> It should handle this case seamlessly, removing the need to re-prompt the
> user with a login dialog.
> If you really want to reprompt the user, in your fault handler for your
> RemoteObject calls, you could watch for faults with an underlying
> ErrorMessage with a faultCode of "Client.Authentication" and use that to
> trigger transition back to your login view.
>
> The reason that the authenticated property doesn't change on the client is
> that there's no way guaranteed way for the server to notify the client when
> the session times out. So, it's not until you send your next request to the
> server that we discover that.
>
> Best,
> Seth
>
> From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On Behalf Of
> rydellfinn
> Sent: Wednesday, November 05, 2008 6:15 PM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] BlazeDS - Best practice for determining if server
> session is invalid.
>
>
> Currently I am running BlazeDS on Tomcat, and I have a flex client
> that is authenticating against a set of Remote Objects using
> channelset.login().
>
> As expected, if I walk away from the client for 30 minutes, the Tomcat
> server invalidates the session, which of course effectively logs out
> the client.
>
> What I would like to happen is when the server invalidates the
> session, the client is returned to the login page. I can think of
> different ways to accomplish this, but I was wondering if there is an
> established pattern for this?
>
> I tried creating a timer on the client to check if the authenticated
> property on the channelset was false. But I noticed that the
> authenticated property never changed, even after the session invalidated.
>
> I'm tempted to do the same thing on the server, but instead check to
> see if the session is valid, and throw an error if not.
>
> But I thought I'd check here first!
>
> Thanks in advance!
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],


[flexcoders] Best browser for debugging on Mac OSX?

2008-11-25 Thread Guy Morton
Anyone got a recommendation?

I've been using Firefox, but it seems to bloat memory-wise the longer  
it runs - often consuming >500Mb after a while. As FB3 also is a  
memory hog, this makes it hard to run on a 2Gb machine.

All I really need it a lightweight browser that can load the Flash  
plugin.

Guy


[flexcoders] Re: simple way to draw a 3D ball?

2008-11-25 Thread oneworld95
Also check out:
http://gisflex3d.blogspot.com/2007/03/flex-and-3d-is-it-possible.html

It has a ton of info and some links to solutions.

-Alex

--- In flexcoders@yahoogroups.com, "oneworld95" <[EMAIL PROTECTED]> wrote:
>
> This might be possible with the Degrafa package for Flex. You can do
> this in Flash but haven't done this myself. Check out at Degrafa at
> http://www.degrafa.com/
> 
> -Alex
> 
> --- In flexcoders@yahoogroups.com, "markflex2007" 
> wrote:
> >
> > Hi.
> > 
> > I am look for a simple way to have a 3D ball with Text on it.
> > 
> > Please give me a idea.
> > 
> > Thanks
> > 
> > Mark
> >
>




[flexcoders] Re: simple way to draw a 3D ball?

2008-11-25 Thread oneworld95
This might be possible with the Degrafa package for Flex. You can do
this in Flash but haven't done this myself. Check out at Degrafa at
http://www.degrafa.com/

-Alex

--- In flexcoders@yahoogroups.com, "markflex2007" <[EMAIL PROTECTED]>
wrote:
>
> Hi.
> 
> I am look for a simple way to have a 3D ball with Text on it.
> 
> Please give me a idea.
> 
> Thanks
> 
> Mark
>




Re: [flexcoders] Re: fp10, fb 3, and profiling

2008-11-25 Thread Jamie S
I have seen this message too after upgrading to Flash 10. Usually
trying to launch the application a couple of times or switching to
another browser to profile in fixes it.

Jamie

On Tue, Nov 25, 2008 at 6:29 AM, Derrick Anderson
<[EMAIL PROTECTED]> wrote:
> The error I get is "Profiling can only be performed on the debug version of
> an application."  I have flashplayer 10r12_36 debug version installed.
>
> thanks,
> d.
>
> On Tue, Nov 25, 2008 at 9:25 AM, Derrick Anderson
> <[EMAIL PROTECTED]> wrote:
>>
>> Hi,  I recently upgraded to flash player 10 and I got the most recent FB
>> updater- and now I notice that I cannot profile anymore.  The console gives
>> me a socket error.
>>
>> Does FP10 not work with profiler?
>>
>> thanks,
>> d.
>
> 


Re: [flexcoders] Re: How can I create a path animation in Flex?

2008-11-25 Thread Josh McDonald
Gilbert,

If you do end up doing it with curves like in the top-most link, the
maintainers of your favourite tween engine would probably love to see it as
a patch ;-)

-Josh

On Wed, Nov 26, 2008 at 6:31 AM, gilbert_mizrahi <[EMAIL PROTECTED]> wrote:

> Johannes,
>
> I didn't think in the possibility to script the movement this way.
> Even though I want to have in AS3, so I can create paths and
> animations at run time, this could be a potential solution, once I
> understand how to create the motion XML dynamically.
>
> Thanks. I will look more into this too.
>
> Gilbert
>
> --- In flexcoders@yahoogroups.com, "Johannes Nel" <[EMAIL PROTECTED]>
> wrote:
> >
> > i fair while ago i created an animation in flash, exported it to xml
> (its a
> > command in flash) import the correct action script classes and used
> it in
> > flex. i cannot recall if i had t make changes.
> > http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/motionXSD.html
> >
> > i am certain other people have done the same, so a google might help.
> >
> > On Tue, Nov 25, 2008 at 6:02 PM, gilbert_mizrahi <[EMAIL PROTECTED]> wrote:
> >
> > >   Tim, That could help. I have to see how I can extend that
> > > functionality for more complex paths, but this seems to be a good
> start.
> > >
> > > Sefi, I am familiar with some of the tween engines. However, I believe
> > > the create tweens from point x1,y1 to x2,y2. Hence, I need to break
> > > the path in multiple line segments to use them. That is a possibility,
> > > but I would need then to look for a way to fit a function to a path.
> > >
> > > Gilbert
> > >
> > > --- In flexcoders@yahoogroups.com ,
> "Sefi
> > > Ninio"  wrote:
> > > >
> > > > You can use a tween library ( there are many out there - tweener,
> > > tweenlite
> > > > etc.).
> > > > you can give it a source and origin x,y Points and duration, easing
> > > function
> > > > etc and it will handle the animation.
> > > > it the route is not a straight line, you can break the animation
> into
> > > > sections, listen for the end of one and start the next one.
> > > >
> > > > I don't know about tweenLite, but in tweener it's done in a single
> > > line of
> > > > code.
> > > >
> > > > HTH
> > > > Sefi
> > > >
> > > > On Tue, Nov 25, 2008 at 3:21 AM, tim.geiges  wrote:
> > > >
> > > > > Take a look at, it might have your answer(I hope) :-)
> > > > >
> > > > >
> > >
> > >
>
> http://keith-hair.net/blog/2008/05/30/interpolation-of-a-point-on-quadratic-curve/#more-4
> > > > >
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
>  > > 40yahoogroups.com>,
> > > > > "gilbert_mizrahi"  wrote:
> > > > > >
> > > > > > I would like to be able to draw a path and then have an object
> > > > > > "travel" through that path.
> > > > > >
> > > > > > I know how to draw a path in AS3. But I need to get some tips on
> > > how I
> > > > > > can make an object (i.e. car) following that path. Something
> > > like the
> > > > > > original LineRider.
> > > > > >
> > > > > > A while ago I saw an example on a blog, which I did not
> > > bookmark, and
> > > > > > I am unable to locate it again.
> > > > > >
> > > > > > Thanks,
> > > > > > Gilbert
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > j:pn
> > \\no comment
> >
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Re: copying large amount of data using System.setClipboard() in Flash 10.

2008-11-25 Thread Josh McDonald
That's what he's complaining about :)

I'd just do what you do before, only when you're done with the progress bar,
replace it with text that says "Done!" and a button that says "Copy result
to clipboard".

-Josh

On Wed, Nov 26, 2008 at 6:52 AM, Tracy Spratt <[EMAIL PROTECTED]> wrote:

>  setClipboard must be user invoked, with a button or link or something.
>
> Tracy
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Ilam Mougy
> *Sent:* Monday, November 24, 2008 11:35 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Re: copying large amount of data using
> System.setClipboard() in Flash 10.
>
>
>
> I don't append to clipboard. I append to a string, and after
> finishing the accumulation, I call setClipboard(), this is when I
> violated the security model. I call callLater(foo) and foo has the
> code to setClipboard().
>
> Thanks,
>
> --- In flexcoders@yahoogroups.com , "Josh
> McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > How do you "append" to the clipboard?
> >
> > On Tue, Nov 25, 2008 at 8:23 AM, Ilam Mougy <[EMAIL PROTECTED]> wrote:
> >
> > > I understand the security issue that Adobe fixed in Flash 10. In
> > > Flash 9, when it comes time to copy large amount of data and to avoid
> > > "the time out issue in browsers" I used to chunk the data and call
> > > callLater(foo) to allow for a progress bar while copying the data (and
> > > a cancel button).
> > >
> > > Now, how can I do that in Flash 10, since the above methodology will
> > > violate Flash 10 security model?
> > >
> > > As a side question, is there a sample for how to properly call
> > > setClipbaord() so that Flash 10 does copy?
> > >
> > > Thanks,
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Alternative FAQ location:
> > >
>
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > > Links
> > >
> > >
> > >
> > >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> >
> > Like the cut of my jib? Check out my Flex blog!
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> > :: http://flex.joshmcdonald.info/
> > :: http://twitter.com/sophistifunk
> >
>
> 
>



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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Re: UID, how is it used ?

2008-11-25 Thread Josh McDonald
It could be clearer (especially the last sentence), but it seems to me that
it's telling you what to do, rather than what the SDK will do. But I assume
the Cursor class (which I don't use often, so take this with a grain of
salt) would respect the IUID interface and not require you to specify the
individual fields when trying to seek to a particular instance.

-Josh

On Wed, Nov 26, 2008 at 3:45 AM, erdal <[EMAIL PROTECTED]> wrote:

>  Thanks for the clarification but I have a feeling that I would not be the
> last person make similar assumtions after reading sections like this from
> the Developer's guide.
>
> -- Excerpt from the section 'Data providers and the uid property' 
>
> "If Flex must consider two or more different objects to be identical, the
> objects must implement the IUID interface so that you can assign the same
> uid value to multiple objects. A typical case where you must implement the
> IUID interface is an application that uses paged collections. As the cursor
> moves through the collection, a particular item might be pulled down from
> the server and released from memory repeatedly. Every time the item is
> pulled into memory, a new object is created to represent the item. If you
> need to compare items for equality, Flex should consider all objects that
> represent the same item to be the same "thing."
>
>
> --- In flexcoders@yahoogroups.com, Alex Harui <[EMAIL PROTECTED]> wrote:
> >
> > UID is mainly used by selection management in the list classes. It is not
> used by actionscript for testing object equality
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of erdal
> > Sent: Monday, November 24, 2008 1:32 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] UID, how is it used ?
> >
> >
> > I think I am misinterpreting the uid property usage
> http://livedocs.adobe.com/flex/3/html/help.html?content=about_dataproviders_8.html
> >
> > In a BlazeDS application I am using an ArrayCollection of items (VOs)
> returned from the server. I thought when I implement the iuid interface,
> that will guide flex framework for deciding on objects equality and then I
> can use the getItemIndex(Obj) kind of functions. But It didn't work. So I
> wrote this simple test.
> >
> > I was expecting to see person1 and clone1 would pass equality test. But
> they didn't. What am I missing ? I am actually looking for something I can
> use like Java equals.
> >
> > -- File Person.as
> -
> >
> > package
> > {
> > import mx.core.IUID;
> > public class Person implements IUID {
> > public var _uid:String;
> >
> > public function get uid(): String {
> > return _uid;
> > }
> >
> > public function Person() {
> > }
> >
> > public function set uid(value: String): void {
> > _uid=value;
> > }
> > }
> > }
> >
> > -- File test.mxml 
> >
> > http://www.adobe.com/2006/mxml";
> layout="vertical">
> > 
> > 
> > 
> > 
> > 
> >
> 
>



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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


RE: [flexcoders] How to send data as XML (data is loaded through HTTP in List Box)

2008-11-25 Thread Tracy Spratt
"...I put the post on the list , and within little time i just figured
out..." No problem, that happens to all of us!

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of anuj sharma
Sent: Tuesday, November 25, 2008 5:41 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to send data as XML (data is loaded
through HTTP in List Box)

 

Hi Tracy
I agree, I just fixed this problem 5 minutes ago. Actually problem was I
stores everything in XML List but I was passing an array containing
label as the data Provider which was just for the visual perspective, so
for sending data I need to grab the XML List's nodes associated with the
particular entry of the array and i did that. So Now my problem is
solved. I apologize for the inconvenience. Sometimes it happened with me
that the moment I put the post on the list , and within little time i
just figured out. Please do not mind that.
Thanks a lot for your help.
Anuj



On Tue, Nov 25, 2008 at 2:09 PM, Tracy Spratt <[EMAIL PROTECTED]
 > wrote:

"...it is dropping just the label" I doubt that that is correct.
Why do you think it is so?  What is the dataProvider type for both
lists?  The built-in d/d functionality expects the same types in source
and target and copies or moves entire items.  The second list is
expecting the same type of item as the first.

 

We need more code/detail.

 

Tracy

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of anuj181
Sent: Tuesday, November 25, 2008 4:44 PM
To: flexcoders@yahoogroups.com  
Subject: [flexcoders] How to send data as XML (data is loaded through
HTTP in List Box)

 

Hi All
I use HTTP service to load data in List Box. I pasted code below, Now
I need to allow drag and drop operation which I am successfully able
to do that. However once items are dropped in second list , I need to
wrap up the data as XML and send it to server , I guess i will use
'POST' method for that. Now root of my problem is when I am dragging
and dropping items from one list to another, it is dropping just the
label of the entries in form of string(XML List) but not the full XML
node. From visual perspective it looks fine but what I need is to send
data as an XML simply as simply sending the string would not process
the necessary update to the database. Can anybody help me in getting
hold of data in my list as XML but not as simple strings. Any help
will be appreciated.
Thanks
Anuj

/***My Code/

 


private function devicesXMLHandler(event:ResultEvent):void
{
devicesList = event.result.device;
devicesCollection = new XMLListCollection(devicesList);

nvrsInPoolList.dataProvider = devicesInList;
}



 

 



Re: [flexcoders] How to send data as XML (data is loaded through HTTP in List Box)

2008-11-25 Thread anuj sharma
Hi Tracy
I agree, I just fixed this problem 5 minutes ago. Actually problem was I
stores everything in XML List but I was passing an array containing label as
the data Provider which was just for the visual perspective, so for sending
data I need to grab the XML List's nodes associated with the particular
entry of the array and i did that. So Now my problem is solved. I apologize
for the inconvenience. Sometimes it happened with me that the moment I put
the post on the list , and within little time i just figured out. Please do
not mind that.
Thanks a lot for your help.
Anuj


On Tue, Nov 25, 2008 at 2:09 PM, Tracy Spratt <[EMAIL PROTECTED]> wrote:

>"…it is dropping just the label…." I doubt that that is correct.  Why
> do you think it is so?  What is the dataProvider type for both lists?  The
> built-in d/d functionality expects the same types in source and target and
> copies or moves entire items.  The second list is expecting the same type of
> item as the first.
>
>
>
> We need more code/detail.
>
>
>
> Tracy
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *anuj181
> *Sent:* Tuesday, November 25, 2008 4:44 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] How to send data as XML (data is loaded through
> HTTP in List Box)
>
>
>
> Hi All
> I use HTTP service to load data in List Box. I pasted code below, Now
> I need to allow drag and drop operation which I am successfully able
> to do that. However once items are dropped in second list , I need to
> wrap up the data as XML and send it to server , I guess i will use
> 'POST' method for that. Now root of my problem is when I am dragging
> and dropping items from one list to another, it is dropping just the
> label of the entries in form of string(XML List) but not the full XML
> node. From visual perspective it looks fine but what I need is to send
> data as an XML simply as simply sending the string would not process
> the necessary update to the database. Can anybody help me in getting
> hold of data in my list as XML but not as simple strings. Any help
> will be appreciated.
> Thanks
> Anuj
>
> /***My Code/
>
>  result="devicesXMLHandler(event)" showBusyCursor="true">
> 
>
> private function devicesXMLHandler(event:ResultEvent):void
> {
> devicesList = event.result.device;
> devicesCollection = new XMLListCollection(devicesList);
>
> nvrsInPoolList.dataProvider = devicesInList;
> }
>
>  allowMultipleSelection="true" dragMoveEnabled="true"
> dragEnabled="true" dropEnabled="true" y="105" x="17" height="462"
> width="294"/>
>
>  
>


RE: [flexcoders] [CUSTOM COLLECTION SERIALIZATION - BLAZEDS]

2008-11-25 Thread Seth Hodgson
Hi João,

You can download the BlazeDS 3.2 release (milestone build) here: 
http://opensource.adobe.com/wiki/display/blazeds/download+blazeds+3

That should contain the fix you mention.

Best,
Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joao 
Kreuzberg
Sent: Tuesday, November 25, 2008 12:16 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] [CUSTOM COLLECTION SERIALIZATION - BLAZEDS]

Hi Seth,

Thanks for the quick reply

Seems like the problem was a bug with BlazeDS.

Like I mentioned, the custom objects inside of the collection (Country for 
example) are working fine
just the custom collection type I created that was not.

The did some digging in BlazeDS code and I verified that during serialization 
they were checking if the given instance
was a Collection before Checking if it was Externalizable.

On the trunk version of BlazeDS (3.0.1) this is already fixed and 
Externalizable is the first type checked during serialization.

I hope they get 3.0.1 out soon.

Thanks

João


From: Seth Hodgson <[EMAIL PROTECTED]>
To: "flexcoders@yahoogroups.com" 
Sent: Tuesday, November 25, 2008 4:13:43 AM
Subject: RE: [flexcoders] [CUSTOM COLLECTION SERIALIZATION - BLAZEDS]
Hi João,

Does your custom ActionScript collection class use [RemoteClass( alias=".. .")] 
metadata to map to your corresponding custom Java collection class on the 
server?

Using [RemoteClass] requires that you have a hard dependency on this custom AS 
collection class in your app in order for mxmlc to generate the necessary 
registerClassAlias call during Flex app init; if you don't have an explicit 
variable of this type in your app, just create a dummy variable during startup 
that is thrown away and gc'ed and it should do the trick.

Best,
Seth

From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of 
Joao Kreuzberg
Sent: Monday, November 24, 2008 12:37 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] [CUSTOM COLLECTION SERIALIZATION - BLAZEDS]

Hello guys,

I have a custom collection in Java and I'd like to bind it to my custom 
collection in Flex using AMF.

I'm using BlazeDS.

I implemented IExternalizable and Externalizable both ends but I still always 
get back a ArrayList instead of my custom implementation.

The objects inside of the collection are bound correctly, only the collection 
that remains.

Any hints about this?

Regards,

João



RE: [flexcoders] How to send data as XML (data is loaded through HTTP in List Box)

2008-11-25 Thread Tracy Spratt
"...it is dropping just the label" I doubt that that is correct.
Why do you think it is so?  What is the dataProvider type for both
lists?  The built-in d/d functionality expects the same types in source
and target and copies or moves entire items.  The second list is
expecting the same type of item as the first.

 

We need more code/detail.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of anuj181
Sent: Tuesday, November 25, 2008 4:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to send data as XML (data is loaded through
HTTP in List Box)

 

Hi All
I use HTTP service to load data in List Box. I pasted code below, Now
I need to allow drag and drop operation which I am successfully able
to do that. However once items are dropped in second list , I need to
wrap up the data as XML and send it to server , I guess i will use
'POST' method for that. Now root of my problem is when I am dragging
and dropping items from one list to another, it is dropping just the
label of the entries in form of string(XML List) but not the full XML
node. From visual perspective it looks fine but what I need is to send
data as an XML simply as simply sending the string would not process
the necessary update to the database. Can anybody help me in getting
hold of data in my list as XML but not as simple strings. Any help
will be appreciated.
Thanks
Anuj

/***My Code/

 


private function devicesXMLHandler(event:ResultEvent):void
{
devicesList = event.result.device;
devicesCollection = new XMLListCollection(devicesList);

nvrsInPoolList.dataProvider = devicesInList;
}



 



[flexcoders] How to send data as XML (data is loaded through HTTP in List Box)

2008-11-25 Thread anuj181
Hi All
I use HTTP service to load data in List Box. I pasted code below, Now
I need to allow drag and drop operation which I am successfully able
to do that. However once items are dropped in second list , I need to
wrap up the data as XML and send it to server , I guess i will use
'POST' method for that. Now root of my problem is when I am dragging
and dropping items from one list to another, it is dropping just the
label of the entries in form of string(XML List) but not the full XML
node. From visual perspective it looks fine but what I need is to send
data as an XML simply as simply sending the string would not process
the necessary update to the database. Can anybody help me in getting
hold of data in my list as XML but not as simple strings. Any help
will be appreciated.
Thanks
Anuj

/***My Code/
 




private function devicesXMLHandler(event:ResultEvent):void
{
devicesList = event.result.device;
devicesCollection = new 
XMLListCollection(devicesList);

nvrsInPoolList.dataProvider = devicesInList;
}





[flexcoders] Re: States and Flash components

2008-11-25 Thread Amy
--- In flexcoders@yahoogroups.com, "Jamie S" <[EMAIL PROTECTED]> wrote:
>
> Your PagingFlexWall class must inherit from mx.flash.UIMovieClip or
> mx.flash.ContainerMovieClip in order to take advantage of states in
> Flex.
>

It does, obviously, since it was made with the Flex component kit.  Any 
idea why States don't like this guy?



RE: [flexcoders] BlazeDS - Best practice for determining if server session is invalid.

2008-11-25 Thread Seth Hodgson
Hi,

In your services-config.xml file, within the  for the 
channel/endpoint you app is using to issue remoting calls to the server, try 
turning on the following config option:

  
  true

This is also exposed as the 'loginAfterDisconnect' property on Channel, if 
you're building your channels and ChannelSet directly in ActionScript.

It should handle this case seamlessly, removing the need to re-prompt the user 
with a login dialog.
If you really want to reprompt the user, in your fault handler for your 
RemoteObject calls, you could watch for faults with an underlying ErrorMessage 
with a faultCode of "Client.Authentication" and use that to trigger transition 
back to your login view.

The reason that the authenticated property doesn't change on the client is that 
there's no way guaranteed way for the server to notify the client when the 
session times out. So, it's not until you send your next request to the server 
that we discover that.

Best,
Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
rydellfinn
Sent: Wednesday, November 05, 2008 6:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] BlazeDS - Best practice for determining if server session 
is invalid.

Currently I am running BlazeDS on Tomcat, and I have a flex client
that is authenticating against a set of Remote Objects using
channelset.login().

As expected, if I walk away from the client for 30 minutes, the Tomcat
server invalidates the session, which of course effectively logs out
the client.

What I would like to happen is when the server invalidates the
session, the client is returned to the login page. I can think of
different ways to accomplish this, but I was wondering if there is an
established pattern for this?

I tried creating a timer on the client to check if the authenticated
property on the channelset was false. But I noticed that the
authenticated property never changed, even after the session invalidated.

I'm tempted to do the same thing on the server, but instead check to
see if the session is valid, and throw an error if not.

But I thought I'd check here first!

Thanks in advance!



[flexcoders] Embedding mp3 sounds in css files

2008-11-25 Thread Wildbore, Brendon
Hi All,

I need some advice on how to do this.

I want to embed an mp3 file in a css file and then play it back in my 
application.

Unfortunately I cannot find any advice on how to do this on the web.

Any ideas???

Thanks in advance.

Brendon


RE: [flexcoders] Checkbox in datagrid

2008-11-25 Thread Tracy Spratt
Are the CheckBoxes in the Form or in the DataGrid, or both?

 

What is the dataProvider for the DataGrid?

 

How are you linking the Form to the DataGrid?

 

How are the CheckBox states being stored in your dataProvider item?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sbnkn
Sent: Tuesday, November 25, 2008 3:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox in datagrid

 

Hi ALL,

This group is being really helpful.

I have asked a question earlier and people responded with answers on 
the same day. I appreciate and thank you all.

Now back to the another question.

I have a form to enter and a datagrid to display the records. 
Form has: text, textarea and multiple check box. once I add text and 
select multiple values in the checkbox and submit. This gets into the 
DB. This works fine.

Example to explain the scenario: checkbox has 1, 2, 3, 4 as options 
to select. When the user selected 3,4. The DB gets inserted with 3,4

Now, when I select any record from the datagrid, the form gets 
populated with the selected datagrid value and this works fine too
except for the checkbox values.

Example to explain the scenario: DB has 3,4 the form needs to have 
3,4 checked.

Question: How do i enable checkbox (having checkbox selected=true) 
for only the values in the DB.
Any example direction would be great.

-NB

 



RE: [flexcoders] Re: ComboBox as itemRenderer/editor in Datagrid is not updating dataProvider...

2008-11-25 Thread Tracy Spratt
And to your original question, that seems like the hard way to do it.
Why not just loop over the dataProvider and set each item's
selectedIndex property?  Use the dataProvider API, or call
itemUpdated(), or re-assign the dataProvider to get the changes to show
up in the DG.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, November 25, 2008 3:45 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: ComboBox as itemRenderer/editor in
Datagrid is not updating dataProvider...

 

"...directly manipulate the grid's dataProvider..." This is my preferred
approach, over depending on the list components own editing process.

 

An itemRenderer gets a reference to the entire dataProvider item that
spawned it.  The framework passses it in via the set data function.  You
can use that *reference* to update any property on the item.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of biosmonkey
Sent: Monday, November 24, 2008 8:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox as itemRenderer/editor in Datagrid is
not updating dataProvider...

 


My understanding of this function is that it is to cause an update in
the rendering of the control attached to the data, which implies that
the dataProvider has the correct data - the control is just not
showing it.

I have the reverse problem. In my case, the renderers (the combo
boxes) are changing just fine, but the selection index in the combo is
NOT being written back to the grid's dataProvider.

Another solution would be to directly manipulate the grid's
dataProvider myself. In this case, I can hook the change event for
the itemrenderer and manually update the value. But I don't know off
hand how to access the parent dataProvider cell from within an
itemRenderer? 

--- In flexcoders@yahoogroups.com 
, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> Depending on your data, you may need to call itemUpdated so
renderers find out there's been a change to their data.
>

 



Re: [flexcoders] Flexbuilder is getting on my last nerve

2008-11-25 Thread Michael Prescott
I haven't come across this, but I heartily recommend upgrading to 3.0.2 if
you haven't already.

On Tue, Nov 25, 2008 at 3:21 PM, wkolcz <[EMAIL PROTECTED]> wrote:

>I like to start my AS files by adding all the import statement of all
> the items I know I am going to need.
>
> However, if I forget one and FB is nice enough to add it form me, it tends
> to delete a couple of mine (seemingly randomly, except for Alert...It hates
> that one).
>
> Is this a 'feature'? Is it a bug? Can it be stopped. I appreciate adding
> ones on the fly for me, but my apps are striking errors since it deletes
> them for me.
>  
>


RE: [flexcoders] When is a crossdomain.xml file required?

2008-11-25 Thread Tracy Spratt
"I am still in the sameDomain", bold words.  Post the url to the Flex
app and to the HTTPService you are calling, and let's see.

 

"allowScriptAccess" should only affect scripting (ExternalInterface)

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fishburn_david
Sent: Monday, November 24, 2008 1:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] When is a crossdomain.xml file required?

 


When I run my application using the flash player, everything is good.

All my HTTPService requests go through the Apache server (running
locally) and I have a reverse proxy which pushes them through to a
different server (also local) which servers up the results.

If I use my web browser (FF or IE) instead of the flashplayer, then I
get the dreaded:
[RPC Fault faultString="Security error accessing url"
faultCode="Channel.Security.Error" faultDetail="Destination:
DefaultHTTP"]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faul
tHandler 
()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:21
8]
at
mx.rpc::Responder/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rp
c\Responder.as:53]
at
mx.rpc::AsyncRequest/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx
\rpc\AsyncRequest.as:103]
at
DirectHTTPMessageResponder/securityErrorHandler()[E:\dev\3.1.0\framework
s\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:368]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/redirectEvent()

The HTML file to download the swf file was changed so that the
allowScriptAccess is "always" instead of "sameDomain". But that was
only done to try to work around this issue.

I am still in the sameDomain, so I don't think having a crossdmain
file (especially since I have it as "always" currently) should work.

Any ideas?

TIA,
Dave

 



RE: [flexcoders] Re: XML attributes

2008-11-25 Thread Tracy Spratt
Try this:

var myName:String = node.attribute("Name");

 

Or make sure *every* node has the Name attribute, including the root
node. The loop works because it skips the root.  I just always use
attribute() if I am reading, and @ only if I am setting.

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fishburn_david
Sent: Monday, November 24, 2008 4:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML attributes

 

I was finally able to do this with the following code I hope it helps
someone else later):

for each (var channel:XML in items)
{
var myString:String = [EMAIL PROTECTED];
}

Not sure why I had to use a for each loop to do this.
Semantically I thought this would have been equivalent:
var myString:String = [EMAIL PROTECTED];

Dave

 



RE: [flexcoders] Re: copying large amount of data using System.setClipboard() in Flash 10.

2008-11-25 Thread Tracy Spratt
setClipboard must be user invoked, with a button or link or something.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ilam Mougy
Sent: Monday, November 24, 2008 11:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: copying large amount of data using
System.setClipboard() in Flash 10.

 

I don't append to clipboard. I append to a string, and after
finishing the accumulation, I call setClipboard(), this is when I
violated the security model. I call callLater(foo) and foo has the
code to setClipboard().

Thanks,

--- In flexcoders@yahoogroups.com 
, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> How do you "append" to the clipboard?
> 
> On Tue, Nov 25, 2008 at 8:23 AM, Ilam Mougy <[EMAIL PROTECTED]> wrote:
> 
> > I understand the security issue that Adobe fixed in Flash 10. In
> > Flash 9, when it comes time to copy large amount of data and to
avoid
> > "the time out issue in browsers" I used to chunk the data and call
> > callLater(foo) to allow for a progress bar while copying the data
(and
> > a cancel button).
> >
> > Now, how can I do that in Flash 10, since the above methodology will
> > violate Flash 10 security model?
> >
> > As a side question, is there a sample for how to properly call
> > setClipbaord() so that Flash 10 does copy?
> >
> > Thanks,
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 
> > Alternative FAQ location:
> >
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
 
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 ! Groups
> > Links
> >
> >
> >
> >
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> Like the cut of my jib? Check out my Flex blog!
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> :: http://flex.joshmcdonald.info/  
> :: http://twitter.com/sophistifunk  
>

 



RE: [flexcoders] Re: help here with an item renderer

2008-11-25 Thread Tracy Spratt
You cannot do this:

click="navigateToURL(myrepeater.currentItem.url)"

You will get an error.  currentItem only exists when the repeater is
executing, not when the "click" action happens.

 

For simple cases, you can use getRepeaterItem() in the handler.  For
even slightly more complex repeated components, create a custom
component and repeat that.

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tim.geiges
Sent: Monday, November 24, 2008 8:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: help here with an item renderer

 

If I understand what you are asking then in the buttons within the
repeater you just add the click="" to point to your function, like




and my XML would look more like http://www.someurl.com  ">

hope I'm not way off what you are aasking there :-)

Tim G.

--- In flexcoders@yahoogroups.com 
, Gustavo Duenas <[EMAIL PROTECTED]> wrote:
>
> Hi I have a xml file and it has a 800 and so 
> forth, and also I have a repeater (a horizontal list) which grabs the 
> xml and the item renderer with a button, instead of doing the
horizontal
> list do the click I'd like to make the button inside the item 
> renderer to do that.
> 
> how could I do that?
> 
> I was trying to use
> in the item rendered
> 
> private function send():void{
> 
> 
> 
> 
> 
> and in the button: click="send()"
> 
> so far, it is just putting in my browser mybroser/{data.button1}
> but I'd like to put in there the URL, how could I?
> 
> Regards,
> 
> Gus
> 
> 
> Gustavo A. Duenas
> Creative Director
> LEFT AND RIGHT SOLUTIONS
> 904. 265 0330 - 904. 386 7958
> www.leftandrightsolutions.com
> Jacksonville - Florida
>

 



[flexcoders] Re: How can I create a path animation in Flex?

2008-11-25 Thread gilbert_mizrahi
Johannes,

I didn't think in the possibility to script the movement this way.
Even though I want to have in AS3, so I can create paths and
animations at run time, this could be a potential solution, once I
understand how to create the motion XML dynamically.

Thanks. I will look more into this too.

Gilbert

--- In flexcoders@yahoogroups.com, "Johannes Nel" <[EMAIL PROTECTED]>
wrote:
>
> i fair while ago i created an animation in flash, exported it to xml
(its a
> command in flash) import the correct action script classes and used
it in
> flex. i cannot recall if i had t make changes.
> http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/motionXSD.html
> 
> i am certain other people have done the same, so a google might help.
> 
> On Tue, Nov 25, 2008 at 6:02 PM, gilbert_mizrahi <[EMAIL PROTECTED]> wrote:
> 
> >   Tim, That could help. I have to see how I can extend that
> > functionality for more complex paths, but this seems to be a good
start.
> >
> > Sefi, I am familiar with some of the tween engines. However, I believe
> > the create tweens from point x1,y1 to x2,y2. Hence, I need to break
> > the path in multiple line segments to use them. That is a possibility,
> > but I would need then to look for a way to fit a function to a path.
> >
> > Gilbert
> >
> > --- In flexcoders@yahoogroups.com ,
"Sefi
> > Ninio"  wrote:
> > >
> > > You can use a tween library ( there are many out there - tweener,
> > tweenlite
> > > etc.).
> > > you can give it a source and origin x,y Points and duration, easing
> > function
> > > etc and it will handle the animation.
> > > it the route is not a straight line, you can break the animation
into
> > > sections, listen for the end of one and start the next one.
> > >
> > > I don't know about tweenLite, but in tweener it's done in a single
> > line of
> > > code.
> > >
> > > HTH
> > > Sefi
> > >
> > > On Tue, Nov 25, 2008 at 3:21 AM, tim.geiges  wrote:
> > >
> > > > Take a look at, it might have your answer(I hope) :-)
> > > >
> > > >
> >
> >
http://keith-hair.net/blog/2008/05/30/interpolation-of-a-point-on-quadratic-curve/#more-4
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com
 > 40yahoogroups.com>,
> > > > "gilbert_mizrahi"  wrote:
> > > > >
> > > > > I would like to be able to draw a path and then have an object
> > > > > "travel" through that path.
> > > > >
> > > > > I know how to draw a path in AS3. But I need to get some tips on
> > how I
> > > > > can make an object (i.e. car) following that path. Something
> > like the
> > > > > original LineRider.
> > > > >
> > > > > A while ago I saw an example on a blog, which I did not
> > bookmark, and
> > > > > I am unable to locate it again.
> > > > >
> > > > > Thanks,
> > > > > Gilbert
> > > > >
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> j:pn
> \\no comment
>




[flexcoders] Checkbox in datagrid

2008-11-25 Thread sbnkn
Hi ALL,

This group is being really helpful.

I have asked a question earlier and people responded with answers on 
the same day. I appreciate and thank you all.

Now back to the another question.

I have a form to enter and a datagrid to display the records. 
Form has: text, textarea and multiple check box. once I add text and 
select multiple values in the checkbox and submit. This gets into the 
DB. This works fine.

Example to explain the scenario: checkbox has 1, 2, 3, 4 as options 
to select. When the user selected 3,4. The DB gets inserted with 3,4

Now, when I select any record from the datagrid, the form gets 
populated with the selected datagrid value and this works fine too
except for the checkbox values.

Example to explain the scenario: DB has 3,4 the form needs to have 
3,4 checked.

Question: How do i enable checkbox (having checkbox selected=true) 
for only the values in the DB.
Any example direction would be great.

-NB



RE: [flexcoders] Re: ComboBox as itemRenderer/editor in Datagrid is not updating dataProvider...

2008-11-25 Thread Tracy Spratt
"...directly manipulate the grid's dataProvider..." This is my preferred
approach, over depending on the list components own editing process.

 

An itemRenderer gets a reference to the entire dataProvider item that
spawned it.  The framework passses it in via the set data function.  You
can use that *reference* to update any property on the item.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of biosmonkey
Sent: Monday, November 24, 2008 8:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox as itemRenderer/editor in Datagrid is
not updating dataProvider...

 


My understanding of this function is that it is to cause an update in
the rendering of the control attached to the data, which implies that
the dataProvider has the correct data - the control is just not
showing it.

I have the reverse problem. In my case, the renderers (the combo
boxes) are changing just fine, but the selection index in the combo is
NOT being written back to the grid's dataProvider.

Another solution would be to directly manipulate the grid's
dataProvider myself. In this case, I can hook the change event for
the itemrenderer and manually update the value. But I don't know off
hand how to access the parent dataProvider cell from within an
itemRenderer? 

--- In flexcoders@yahoogroups.com 
, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> Depending on your data, you may need to call itemUpdated so
renderers find out there's been a change to their data.
>

 



[flexcoders] Flexbuilder is getting on my last nerve

2008-11-25 Thread wkolcz


I like to start my AS files by adding all the 
import statement of all the items I know I am going to need. 

However, if I forget one and FB is nice enough to add it form me, it tends to 
delete a couple of mine (seemingly randomly, except for Alert...It hates that 
one).

Is this a 'feature'? Is it a bug? Can it be stopped. I appreciate adding ones 
on the fly for me, but my apps are striking errors since it deletes them for me.




RE: [flexcoders] Re: help here with an item renderer

2008-11-25 Thread Tracy Spratt
"...create a custom component to encapsulate..." Yes, yes, yes.  Though
it is not clear what Gustavo wants, Steve is correct, this is the way to
do Repeater.

 

Gustavo, The word/phrase "itemRenderer" has special meaning.
itemRenderers are used with List-based components, and are tightly
integrated with the framework, to optimize performance.

 

Repeater's requirements are much looser, requiring only some component.
(so the developer must watch performance).

 

To take Steve's advice a bit further, pass a reference to the entire
currentItem into the custom component.  You can then code it normally,
and can easily provide public properties to access in event handlers and
such.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of valdhor
Sent: Tuesday, November 25, 2008 11:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: help here with an item renderer

 

I don't know if I really understand what you are trying to do so correct
me if I am wrong...

My understanding: You have XML that you are using as a dataProvider for
a repeater; You want buttons to be created for each item in the
dataProvider; Each button (When Clicked) should navigate to a URL based
on data in the dataProvider.

OK, if it were me, I would create a custom component to encapsulate each
button. Here is an example:

MyCustomButton.mxml:

http://www.adobe.com/2006/mxml";
click="onClick(event)">





And an Application to use it:

http://www.adobe.com/2006/mxml";
layout="vertical"
creationComplete="onCreationComplete()" xmlns:local="*">








--- In flexcoders@yahoogroups.com, Gustavo Duenas <[EMAIL PROTECTED]> wrote:
>
> Hi I have a xml file and it has a 800 and so 
> forth, and also I have a repeater (a horizontal list) which grabs the 
> xml and the item renderer with a button, instead of doing the
horizontal
> list do the click I'd like to make the button inside the item 
> renderer to do that.
> 
> how could I do that?
> 
> I was trying to use
> in the item rendered
> 
> private function send():void{
> 
> 
> 
> 
> 
> and in the button: click="send()"
> 
> so far, it is just putting in my browser mybroser/{data.button1}
> but I'd like to put in there the URL, how could I?
> 
> Regards,
> 
> Gus
> 
> 
> Gustavo A. Duenas
> Creative Director
> LEFT AND RIGHT SOLUTIONS
> 904. 265 0330 - 904. 386 7958
> www.leftandrightsolutions.com
> Jacksonville - Florida
>

 



Re: [flexcoders] [CUSTOM COLLECTION SERIALIZATION - BLAZEDS]

2008-11-25 Thread Joao Kreuzberg
Hi Seth,

Thanks for the quick reply

Seems like the problem was a bug with BlazeDS.

Like I mentioned, the custom objects inside of the collection (Country for 
example) are working fine
just the custom collection type I created that was not.

The did some digging in BlazeDS code and I verified that during serialization 
they were checking if the given instance
was a Collection before Checking if it was Externalizable.

On the trunk version of BlazeDS (3.0.1) this is already fixed and 
Externalizable is the first type checked during serialization.

I hope they get 3.0.1 out soon.

Thanks

João





From: Seth Hodgson <[EMAIL PROTECTED]>
To: "flexcoders@yahoogroups.com" 
Sent: Tuesday, November 25, 2008 4:13:43 AM
Subject: RE: [flexcoders] [CUSTOM COLLECTION SERIALIZATION - BLAZEDS]


Hi João,

Does your custom ActionScript collection class use [RemoteClass( alias=".. .")] 
metadata to map to your corresponding custom Java collection class on the 
server?

Using [RemoteClass] requires that you have a hard dependency on this custom AS 
collection class in your app in order for mxmlc to generate the necessary 
registerClassAlias call during Flex app init; if you don't have an explicit 
variable of this type in your app, just create a dummy variable during startup 
that is thrown away and gc'ed and it should do the trick.

Best,
Seth

From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of 
Joao Kreuzberg
Sent: Monday, November 24, 2008 12:37 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] [CUSTOM COLLECTION SERIALIZATION - BLAZEDS]

Hello  guys,

I have a custom collection in Java and I'd like to bind it to my custom 
collection in Flex using AMF.

I'm using BlazeDS.

I implemented IExternalizable and Externalizable both ends but I still always 
get back a ArrayList instead of my custom implementation.

The objects inside of the collection are bound correctly, only the collection 
that remains.

Any hints about this?

Regards,

João



  

Re: [flexcoders] Re: checkbox usage in flex

2008-11-25 Thread navaneethakrishnan balraj
Ok.I think I found the solution. I removed the method= post from the 
Httpservice and it did the trick. But I did try the evaluation version. Thanks 
for all the input.
 
-NB

--- On Mon, 11/24/08, valdhor <[EMAIL PROTECTED]> wrote:

From: valdhor <[EMAIL PROTECTED]>
Subject: [flexcoders] Re: checkbox usage in flex
To: flexcoders@yahoogroups.com
Date: Monday, November 24, 2008, 7:42 PM






At this point I would recommend using an HTTP Debugging Proxy like
Charles (http://www.charlesp roxy.com) to see exactly what is being
sent and where it is going.

I'm afraid I don't know ColdFusion so can't tell if you CF code is
correct or not.

Once you see the actual data that is being sent to your backend code
you should be able to figure out where the problem is very quickly.

BTW. I have found Charles to be indispensable. It has saved me
literally hundreds of hours in debugging time. It is one of two
debugging proxies that understand AMF and the only one that is cross
platform. It has been well worth its $50 asking price.

--- In [EMAIL PROTECTED] ups.com, "sbnkn" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Thanks for your suggestions. I tried it and the code looks like this:
> 
> submit button code:
>  styleName="saveButt on"/>
> 
> addAnnouncement function code:
> 
> private function addAnnouncement( evt:Event) :void{
> var selArr:Array = [];
> var oRequest:Object = new Object();
> var idx:int;
> var len:int = userRequest. lastResult. partners. partner.length;
> for (idx=0; idx if (checkBox[idx] .selected) {
> selArr.push( checkBox[ idx].label) ;
> }
> }
> 
> var strPartners: String = selArr.join( ",");
> 
> oRequest.strTitle = strTitle.text;
> oRequest.strContent = strContent.text;
> oRequest.cntAnnounc ement = cntAnnouncement. text;
> oRequest.dtmAssignm entDueDate = 
> dtmAssignmentDueDat e.text;
> oRequest.dtmOpenDat e = dtmOpenDate. text;
> oRequest.dtmCloseDa te = dtmCloseDate. text;
> oRequest.strPartner s = strPartners;
> Alert.show(' partner'+ strPartners) ;
> Alert.show(' title'+oRequest. strTitle) ;
> Alert.show(' strContent' +oRequest. strContent) ;
> Alert.show
> ('cntannouncement' +oRequest. cntAnnouncement) ;
> 
> userRequest. send(oRequest) ;
> 
> //userRequest. send();
> 
> }
> 
> httpservice code:
> 
>  url="http://localhost: 8500/qry_ Announcement. cfm" useProxy="false" 
> method="POST" >
> 
> 
> 
> When I execute, the alert shows all the values selected. but it is 
> not getting inserted into the table(DB).
> 
> Here is the cfm code:
>  = "Yes">
>  ("oRequest.strConte nt") and oRequest.strTitle NEQ "">
>  
> INSERT INTO tblAnnouncement 
> (strTitle, strContent, dtmOpenDate, 
> dtmCloseDate, dtmAssignmentDueDat e ) 
> VALUES 
> ( cfsqltype="CF_ SQL_VARCHAR" maxlength="150" >, 
>  cfsqltype="CF_ SQL_LONGVARCHAR" >,
>  cfsqltype="CF_ SQL_DATE" >,
>  cfsqltype="CF_ SQL_DATE" >,
>  cfsqltype="CF_ SQL_DATE" >
> ) 
> 
> 
> 
> i'm stuck here..not sure, where to look for the bug..i do not see 
> any error..any help is really appreciated.
> 
> -NB
> 
> 
> --- In [EMAIL PROTECTED] ups.com, "Tracy Spratt"  
> wrote:
> >
> > Yes. To go a bit further, while you can create the request object
> > declaratively in mxml as you have done, it is dificult to debug 
> and not
> > very flexible. Instead, remove mx:request tagg and do this in a
> > function. There is some almost-code below.
> > 
> > 
> > 
> > But, it is not clear from your post quite what you want to sent to 
> the
> > server. The repeater will produce multiple check boxes. What is 
> the
> > server expecting? A delimited list of values? If so, then 
> Repeater
> > creates an array of references to repeated items that have an id
> > property. You can reference each check box like this: checkBox[n], 
> where
> > "n" is the index in the dataProvider.
> > 
> > 
> > 
> > So, in a for loop, with length equal to the Repeater dataProvider, 
> get a
> > reference to each checkbox. Build your return data structure as 
> needed.
> > Then put that into the request object, like below.
> > 
> > 
> > 
> > var oRequest:Object = new Object();
> > 
> > oRequest. strTitle = strTitle.text;
> > 
> > oRequest.strContent = strContent.text;
> > oRequest.dtmAssignm entDueDate = dtmAssignmentDueDat e.text;
> > 
> > //oRequest.selected = See above??;
> > 
> > userRequest. send(oRequest) ;
> > 
> > 
> > 
> > Now,
> > 
> > 
> > 
> >  _ _ __
> > 
> > From: [EMAIL PROTECTED] ups.com 
> [mailto:[EMAIL PROTECTED] ups.com] On
> > Behalf Of valdhor
> > Sent: Friday, November 21, 2008 1:11 PM
> > To: [EMAIL PROTECTED] ups.com
> > Subject: [flexcoders] Re: checkbox usage in flex
> > 
> > 
> > 
> > Instead of initiating send in the button, call a function. In the
> > function, use the getRepeaterItem method of the repeated item to 
> get
> > each checkbox value then add that as a parameter of the call.
> > 
> > Check the help for more detail:
> > http://livedocs. adobe.com/ flex/3/html/ help.html?
> content=repeater_ 3.html
> > 

RE: [flexcoders] TileList

2008-11-25 Thread Tracy Spratt
Override the dragEnter, dragDrop and perhaps dragOver event handlers.
See the docs for details and examples.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eduardo Souza
Sent: Tuesday, November 25, 2008 12:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TileList

 

Hello everyone,

I've two TileLists control in my Panel. I want to detect when the user
have taked one and put it in the other. I want to detect when that item
leaved my TileList too.

And I want to disable the user to take the item and drag it to the same
tilelist, what I need to do?

Thanks

Eduardo Souza

 



Re: [flexcoders] States and Flash components

2008-11-25 Thread Jamie S
Your PagingFlexWall class must inherit from mx.flash.UIMovieClip or
mx.flash.ContainerMovieClip in order to take advantage of states in
Flex.

Jamie

On Tue, Nov 25, 2008 at 11:20 AM, Amy <[EMAIL PROTECTED]> wrote:
> Hi, all;
>
> I am using a Flash component that's been wrapped using the Flash
> Component Kit for use in Flex. I'd like to be able to use States to
> add things into the container with it, but I get the error
> 1067: Implicit coercion of a value of type
> com.rw.adBlankenship.views:PagingFlexWall to an unrelated type
> mx.core:UIComponent.
>
> Any idea if it's possible to use States with something that's not a
> UIComponent? If so, how?
>
> Thanks;
>
> Amy
>
> 


Re: [flexcoders] Re: How can I create a path animation in Flex?

2008-11-25 Thread Johannes Nel
i fair while ago i created an animation in flash, exported it to xml (its a
command in flash) import the correct action script classes and used it in
flex. i cannot recall if i had t make changes.
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/motionXSD.html

i am certain other people have done the same, so a google might help.

On Tue, Nov 25, 2008 at 6:02 PM, gilbert_mizrahi <[EMAIL PROTECTED]> wrote:

>   Tim, That could help. I have to see how I can extend that
> functionality for more complex paths, but this seems to be a good start.
>
> Sefi, I am familiar with some of the tween engines. However, I believe
> the create tweens from point x1,y1 to x2,y2. Hence, I need to break
> the path in multiple line segments to use them. That is a possibility,
> but I would need then to look for a way to fit a function to a path.
>
> Gilbert
>
> --- In flexcoders@yahoogroups.com , "Sefi
> Ninio" <[EMAIL PROTECTED]> wrote:
> >
> > You can use a tween library ( there are many out there - tweener,
> tweenlite
> > etc.).
> > you can give it a source and origin x,y Points and duration, easing
> function
> > etc and it will handle the animation.
> > it the route is not a straight line, you can break the animation into
> > sections, listen for the end of one and start the next one.
> >
> > I don't know about tweenLite, but in tweener it's done in a single
> line of
> > code.
> >
> > HTH
> > Sefi
> >
> > On Tue, Nov 25, 2008 at 3:21 AM, tim.geiges <[EMAIL PROTECTED]> wrote:
> >
> > > Take a look at, it might have your answer(I hope) :-)
> > >
> > >
>
> http://keith-hair.net/blog/2008/05/30/interpolation-of-a-point-on-quadratic-curve/#more-4
> > >
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>,
> > > "gilbert_mizrahi"  wrote:
> > > >
> > > > I would like to be able to draw a path and then have an object
> > > > "travel" through that path.
> > > >
> > > > I know how to draw a path in AS3. But I need to get some tips on
> how I
> > > > can make an object (i.e. car) following that path. Something
> like the
> > > > original LineRider.
> > > >
> > > > A while ago I saw an example on a blog, which I did not
> bookmark, and
> > > > I am unable to locate it again.
> > > >
> > > > Thanks,
> > > > Gilbert
> > > >
> > >
> > >
> > >
> >
>
>  
>



-- 
j:pn
\\no comment


[flexcoders] simple way to draw a 3D ball?

2008-11-25 Thread markflex2007
Hi.

I am look for a simple way to have a 3D ball with Text on it.

Please give me a idea.

Thanks

Mark



[flexcoders] Re: richtexteditor focusOut event

2008-11-25 Thread nathanpdaniel

Add your FocuseEvent.FOCUS_OUT event to the textArea property (more
like - child) of your RichTextEditor.  Given a RichTextEditor id
of "rte" it'd look like this in AS3:

rte.textArea.addEventListener(FocusEvent.FOCUS_OUT, onFocusOut);

function onFocusOut(event:FocusEvent):void
{

   // add code here
}



Hope this helps!

-Nathan D.
--- In flexcoders@yahoogroups.com, "Derrick Anderson"
<[EMAIL PROTECTED]> wrote:
>
> Hi, so I noticed that the RTE does not have a focusOut event that it
> dispatches. I want to dispatch an event whenever somebody blurs the
RTE the
> same way I can with the focusOut event on regular text fields. Is this
> possible? I have tried the 'change' event and 'valueCommit', but both
of
> these fire way too much- i only want it fired when they leave the RTE,
> possible?
>
> thanks,
> d.
>




[flexcoders] States and Flash components

2008-11-25 Thread Amy
Hi, all;

I am using a Flash component that's been wrapped using the Flash 
Component Kit for use in Flex.  I'd like to be able to use States to 
add things into the container with it, but I get the error 
1067: Implicit coercion of a value of type 
com.rw.adBlankenship.views:PagingFlexWall to an unrelated type 
mx.core:UIComponent.

Any idea if it's possible to use States with something that's not a 
UIComponent?  If so, how?

Thanks;

Amy




[flexcoders] Re: Newbie binding question

2008-11-25 Thread Amy
--- In flexcoders@yahoogroups.com, "Jules Suggate" <[EMAIL PROTECTED]> 
wrote:
>
> Have you tried just doing [Bindable("dataChanged")] instead of
> [Bindable(name="dataChanged")]?
>

Yes, that would probably help, since it should be [Bindable 
(event="dataChanged")].  Good catch.



Re: [flexcoders] API to controling cctv IP Camera

2008-11-25 Thread Fotis Chatzinikos
Hi,

this is slightly irrelevant to this group,.. search google about Adobe Media
Services or Red5 for a free alternative (have not used it -yet- myself but
its there and it seems stable enough from the various demos that lie
around...

On Tue, Nov 25, 2008 at 8:43 PM, farid wl <[EMAIL PROTECTED]> wrote:

>   Hi guys
>
> I wanna write an air application to manage Ip camera in cctv field .
> the services are such as coonecting to Ip cameras, preview and  record
> video on local drives and ptz function.,,,
>
> anybody knows API  to used for it .
>
> pls help me .
>
> I'll appreciate
>
> Best Regards
> farid valipour
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],


[flexcoders] API to controling cctv IP Camera

2008-11-25 Thread farid wl
Hi guys
 
I wanna write an air application to manage Ip camera in cctv field .
the services are such as coonecting to Ip cameras, preview and  record video on 
local drives and ptz function.,,,
 
anybody knows API  to used for it .
 
pls help me .
 
I'll appreciate 
 
Best Regards
farid valipour


  

Re: [flexcoders] Re: Module loaded but not displayed every time...

2008-11-25 Thread claudiu ursica
I am, but via bindings (set via BindUtils.bind setter in the complete handler), 
but I have put a message before those bindings and it is not like the bindings 
are not init, the event doesn't get dispatched. The setters are the one who 
dispatch cairngorm events and in the command (actually delegate) I make a 
request to the server.

I'll post some code tomorrow first thing in the morning...
Cheers,
Claudiu





From: valdhor <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, November 25, 2008 6:47:09 PM
Subject: [flexcoders] Re: Module loaded but not displayed every time...


Are you contacting a server by any chance?

Perhaps you could post some code?

--- In [EMAIL PROTECTED] ups.com, "Claudiu Ursica" 
wrote:
>
> Hi again, 
> I see nobody bumped into this issue...
> Since the previous post I have discovered that the module does not
> show up because the cration complete event does not fire all the time.
> I was able to log the preinitialize event and the init event but when
> the module doesn't show it is because the creation complete does not
> fire. Eventually the module does show after 2 minutes or so... an then
> I see the log for creation complete. 
> 
> In my initialize event I initialize some variables and that always
> gets done, but I vahe no odea what happends sometimes that determines
> the creation complete to fire so late.
> 
> Maybe some of you can help with this,
> TIA,
> Caludiu
> 
> 
> --- In [EMAIL PROTECTED] ups.com, "Claudiu Ursica" 
> wrote:
> >
> > Hi,
> > I load a module using a custom module loader. Event though the READY
> > event fires every time, and the visible property traces out to true, I
> > am not able to see the module each time I load it. This happens only
> > when I start the application. If I can see it the first time I can
> > then unload and load it again and it gets displayed. However if I'm
> > not seeing it the first time it is not visible for good.
> > 
> > Sometimes (not all the time) I gets shown after a while. I have tried
> > invalidating the display list or similar force repainting techniques
> > but nothing seems to work.
> > 
> > Has any of you experienced something similar? 
> > If so please let me know if you have found any workaround.
> > 
> > TIA,
> > Claudiu
> >
>




  

[flexcoders] getting the number of children in a grouping collection via the groupingFunction

2008-11-25 Thread djbrown_rotonews
i'm wanting to change the label of my groups in the AdvancedDataGrid, 
and I see where that's exposed via the groupingFunction. What i'm 
wanting to do is to modify it in such a way that it returns the 
groupingField "name" itself, plus the number of children in that group.

As an example, if I had the following data:

DFW Jason
DFW Darin
DFW Bob
ORD Peter
ORD Juan

I would want to the grid to display as follows:

DFW (3)
ORD (2)

I'd like to indicate the number of children in each group without 
having to add an explicity column via a SummaryRow etc..



[flexcoders] Problem resizing application

2008-11-25 Thread Vitor Cunha

Hello all, 
I have an Application that resizes according to the browser size / screen 
resolution in order to make use of all the avaliable space.
The problem is that when I resize the browser screen (f.i. raise it's height), 
I can't click the buttons and other components anymore (but they're still 
accessible using tab).It seems that the button's "hit area" didn't change after 
resizing the screen.If I change the size back, the button can be clicked with 
the mouse again.
 
Thanks in advance for your help,
Vitor Cunha
_
Receba GRÁTIS as mensagens do Messenger no seu celular quando você estiver 
offline. Conheça  o MSN Mobile!
http://mobile.live.com/signup/signup2.aspx?lc=pt-br

[flexcoders] Re: ItemRenderer's style is changed when scrolling DataGrid

2008-11-25 Thread Amy
--- In flexcoders@yahoogroups.com, Fu Di <[EMAIL PROTECTED]> wrote:
>
> hi everyone,   i  wrote a  renderer  which  extends 
DataGridItemRenderer   in  DataGrid  
> some code below:
> 
> override public function getTextStyles():TextFormat
> {
> if (!listData||this.text=="") 
> {
>  return super.getTextStyles();
> }
> 
> if(listData.uid != lastUID)
> {
> var tf:TextFormat = super.getTextStyles();
> if(data is PositionDataBottomInfo)
> {
> tf.bold = true;
> 
> }
> else
> {
> tf.bold = false;
> }
> }
> return tf;
> 
> }
> 
> if  i  don't  operate  the DataGrid, every row's style is  
correct.  however , when  i scroll the DataGrid, the row's style is 
incorrect. 
> after scrolling  some rows turn bold, some turn  normal.   

There's a lightweight itemRenderer here that might point you in the 
right direction:

http://flexdiary.blogspot.com/2008/09/extended-datagrid-with-
stylefunction.html

HTH;

Amy



[flexcoders] Re: UID, how is it used ?

2008-11-25 Thread erdal

Thanks for the clarification but I have a feeling that I would not be
the last person make similar assumtions after reading sections like this
from the Developer's guide.

-- Excerpt from the section 'Data providers and the uid property' 

"If Flex must consider two or more different objects to be identical,
the objects must implement the IUID interface so that you can assign the
same uid value to multiple objects. A typical case where you must
implement the IUID interface is an application that uses paged
collections. As the cursor moves through the collection, a particular
item might be pulled down from the server and released from memory
repeatedly. Every time the item is pulled into memory, a new object is
created to represent the item. If you need to compare items for
equality, Flex should consider all objects that represent the same item
to be the same "thing."


--- In flexcoders@yahoogroups.com, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> UID is mainly used by selection management in the list classes. It is
not used by actionscript for testing object equality
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of erdal
> Sent: Monday, November 24, 2008 1:32 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] UID, how is it used ?
>
>
> I think I am misinterpreting the uid property usage
http://livedocs.adobe.com/flex/3/html/help.html?content=about_dataprovid\
ers_8.html
>
> In a BlazeDS application I am using an ArrayCollection of items (VOs)
returned from the server. I thought when I implement the iuid interface,
that will guide flex framework for deciding on objects equality and then
I can use the getItemIndex(Obj) kind of functions. But It didn't work.
So I wrote this simple test.
>
> I was expecting to see person1 and clone1 would pass equality test.
But they didn't. What am I missing ? I am actually looking for something
I can use like Java equals.
>
> -- File Person.as
\
-
>
> package
> {
> import mx.core.IUID;
> public class Person implements IUID {
> public var _uid:String;
>
> public function get uid(): String {
> return _uid;
> }
>
> public function Person() {
> }
>
> public function set uid(value: String): void {
> _uid=value;
> }
> }
> }
>
> -- File test.mxml 
>
> http://www.adobe.com/2006/mxml";
layout="vertical">
> 
> 
> 
> 
> 
>




[flexcoders] Re: Architecture question using Move Effect and Events

2008-11-25 Thread Amy
--- In flexcoders@yahoogroups.com, "devenhariyani" 
<[EMAIL PROTECTED]> wrote:
>
> To clarify the question:
> My custom mxml component is called: MyCustomMXMLComponent.mxml  it 
has
> a Label and a Text Area inside of it.  When a user does a mouse
> rollover on the Label I want the MyCustomMXMLComponent to stop 
moving
> and other actions to happen.  
> 
> I am unable to catch events inside of the MyCustomMXMLComponent.mxml
> object, the code i use is:
> 
> var instance:MyCustomMXMLComponent = new MyCustomMXMLComponent();
> instance.addEventListner(MouseEvent.ROLL_OVER, handleMouseRollOver);
> 
> 
> The problem is that when a user moves a mouse over the
> MyCustomMXMLComponent a UITextField catches the event so when i have
> the below code in the event handler it fails:
> 
> //find the MoveInstance and pause
> for(var i:int = 0; i < event.target.activeEffects.length; i++) {
> if(event.target.activeEffects[i].className == 'MoveInstance')
>   event.target.activeEffects[i].pause();
> }
> 
> Why is the UITextField which is inside of the Label catchign the 
event
> when I did not register an eventhandler for it to do anything??

Yet you didn't register an event listener on the label, either, and 
expect to be receiving events from _it_, hmmm?

> Is there a better way to catch the event so that the
> MyCustomMXMLComponent can handle the event to stop the Move 
Effect???

Sometimes in a situation like this, I'll add an event listener in the 
pesky object that is unwantedly catching my event, preventDefault on 
it, and then redispatch the event from the one that I want to appear 
to have dispatched it.

This works especially well in situations where you can't set 
mouseChildren false because you want other objects to still be 
interactive, or with controls like label, which don't have a 
mouseChildren property for some reason.

HTH;

Amy



Re: [flexcoders] Re: Bug: Combobox maxWidth does not work with percent width

2008-11-25 Thread Fotis Chatzinikos
Hmmm :-) Should read the docs, next time, but still... maxWidth should
be maxWidth irrelevant of parent containers or any other #$%^...

Either way, thanks for the info, I am just starting to get really tired with
flex...

F

On Tue, Nov 25, 2008 at 6:57 PM, valdhor <[EMAIL PROTECTED]> wrote:

>   According to the documentation:
> ==
> maxWidth property
>
> maxWidth:Number [read-write]
>
> Number that specifies the maximum width of the component, in pixels,
> in the component's coordinates.
>
> This value is used by the container in calculating the size and
> position of the component. It is not used by the component itself in
> determining its default size. Thus this property may not have any
> effect if parented by Container, or containers that don't factor in
> this property. Because the value is in component coordinates, the true
> maxWidth with respect to its parent is affected by the scaleX
> property. Some components have no theoretical limit to their width. In
> those cases their maxWidth will be set to UIComponent.DEFAULT_MAX_WIDTH.
> ==
>
> So, what is the maxWidth setting of the enclosing component?
>
> --- In flexcoders@yahoogroups.com ,
> "fotis.chatzinikos"
>
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > When the following comboBox is used with width="100%" and maxWidth 190
> > the maxwidth is not used when the underlying list contains names wider
> > than 190 pixels...Instead the full name is shown and the combo becomes
> > 230 or any other amount of pixels needed...
> >
> > This is only fixed if the width is specified to for example 190...
> >
> > Bug?
> >
> >  > dataProvider="{regions}" labelField="name" prompt="{regionPrompt}"
> > enabled="{regionEnabled}" change="regionChanged(event)">
> >
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],


[flexcoders] Re: dragging an object with a mask

2008-11-25 Thread Jayson
I ended up using a timer to add and remove the mask every 10
milliseconds while the object is being dragged. works great!

Thanks for the help.

--- In flexcoders@yahoogroups.com, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> Show us what you did.  We dragged masked stuff successfully.  You
addChild the sprite that is the mask to the parent object that is
being dragged.
> 
> Var draggedObject:UIComponet = new UIComponent
> Var snowGlobe:UIComponent = new SnowGlobe
> Var myMask:Sprite = new Sprite
> draggedObject.addChild(snowGlobe)
> draggedObject(addChild(myMask);
> snowGlobe.mask = myMask;
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Jayson
> Sent: Thursday, November 20, 2008 2:23 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: dragging an object with a mask
> 
> 
> No luck - I also tried using the swf of the object with the mask in
> another mxml file.. the problem is that the white mask is not
transparent.
> 
> It seems as though wherever the mask is created, it won't move from
there.
> 
> From what I've been able to find, when a mask is applied it is not
> added to the display list, so you cannot access it like you would a
> normal object. The post I found mentioned using an event listener on
> the mask, but that's pretty vague.
> 
> --- In
flexcoders@yahoogroups.com, Alex
Harui  wrote:
> >
> > Normally, I make sure the mask and the object have the same parent
> and the parent gets dragged. Wrap everything in another UIComponent.
> >
> > From:
flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
> On Behalf Of Jayson
> > Sent: Thursday, November 20, 2008 12:35 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] dragging an object with a mask
> >
> >
> > I have a UIComponent("snowGlobe") with a mask applied. Using the
> > UIComponent I drew a circle and added it to the application. I then
> > applied a circular Sprite mask("msk"). This works perfectly. Now
> > whenever an object is moved outside of the UIComponent it is not
> > displayed(ie. snow in a snowglobe).
> >
> > I run into trouble when I try to drag the UIComponent. When I do this,
> > the UIComponent, and its children, drag, but the Sprite I have set as
> > a mask does not. If I call .startDrag() on the mask at the same time I
> > do on the UIComponent, it doesn't allow me to drag anymore.
> >
> > I have tried things like this..
> > BindingUtils.bindProperty(msk,'x',snowGlobe,'x');
> > BindingUtils.bindProperty(msk,'y',snowGlobe,'y');
> >
> > but that doesn't seem to do anything.
> >
> > Can anyone help me out with being able to drag a UIComponent and its
> > mask at the same time?
> >
> > I thought I should be able to remove and reapply the mask as the
> > component is dragging, but I'm not sure where to do that at, or how to
> > get the x and y values of the component being dragged.
> >
> > Any insight is greatly appreciated.
> >
> > Thank you!
> >
>




[flexcoders] TileList

2008-11-25 Thread Eduardo Souza
Hello everyone,

I've two TileLists control in my Panel. I want to detect when the user have
taked one and put it in the other. I want to detect when that item leaved my
TileList too.

And I want to disable the user to take the item and drag it to the same
tilelist, what I need to do?

Thanks

Eduardo Souza


[flexcoders] Re: Bug: Combobox maxWidth does not work with percent width

2008-11-25 Thread valdhor
According to the documentation:
==
maxWidth property   

maxWidth:Number  [read-write] 

Number that specifies the maximum width of the component, in pixels,
in the component's coordinates. 

This value is used by the container in calculating the size and
position of the component. It is not used by the component itself in
determining its default size. Thus this property may not have any
effect if parented by Container, or containers that don't factor in
this property. Because the value is in component coordinates, the true
maxWidth with respect to its parent is affected by the scaleX
property. Some components have no theoretical limit to their width. In
those cases their maxWidth will be set to UIComponent.DEFAULT_MAX_WIDTH.
==

So, what is the maxWidth setting of the enclosing component?

--- In flexcoders@yahoogroups.com, "fotis.chatzinikos"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> When the following comboBox is used with width="100%" and maxWidth 190
> the maxwidth is not used when the underlying list contains names wider
> than 190 pixels...Instead the full name is shown and the combo becomes
> 230 or any other amount of pixels needed...
> 
> This is only fixed if the width is specified to for example 190...
> 
> Bug?
> 
>  dataProvider="{regions}" labelField="name" prompt="{regionPrompt}"
> enabled="{regionEnabled}" change="regionChanged(event)">
>




[flexcoders] Re: Crash of safari, firefox using XML.setChildren for XML in a XMLListCollection

2008-11-25 Thread valdhor
File a bug.

I can see why it is failing but it should not crash the browser.


--- In flexcoders@yahoogroups.com, "shauncutts" <[EMAIL PROTECTED]> wrote:
>
> The following code will crash Flash 9.0 r124 (debug version) when
> built with flex builder 3.0: (flash running on either Firefox or
> Safari, MacOS)
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="vertical"
> creationComplete="dotest();">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>




[flexcoders] Re: Module loaded but not displayed every time...

2008-11-25 Thread valdhor
Are you contacting a server by any chance?

Perhaps you could post some code?


--- In flexcoders@yahoogroups.com, "Claudiu Ursica" <[EMAIL PROTECTED]>
wrote:
>
> Hi again, 
> I see nobody bumped into this issue...
> Since the previous post I have discovered that the module does not
> show up because the cration complete event does not fire all the time.
> I was able to log the preinitialize event and the init event but when
> the module doesn't show it is because the creation complete does not
> fire. Eventually the module does show after 2 minutes or so... an then
> I see the log for creation complete. 
> 
> In my initialize event I initialize some variables and that always
> gets done, but I vahe no odea what happends sometimes that determines
> the creation complete to fire so late.
> 
> Maybe some of you can help with this,
> TIA,
> Caludiu
> 
> 
> --- In flexcoders@yahoogroups.com, "Claudiu Ursica" 
> wrote:
> >
> > Hi,
> > I load a module using a custom module loader. Event though the READY
> > event fires every time, and the visible property traces out to true, I
> > am not able to see the module each time I load it. This happens only
> > when I start the application. If I can see it the first time I can
> > then unload and load it again and it gets displayed. However if I'm
> > not seeing it the first time it is not visible for good.
> > 
> > Sometimes (not all the time) I gets shown after a while. I have tried
> > invalidating the display list or similar force repainting techniques
> > but nothing seems to work.
> > 
> > Has any of you experienced something similar? 
> > If so please let me know if you have found any workaround.
> > 
> > TIA,
> > Claudiu
> >
>




[flexcoders] Re: Architecture question using Move Effect and Events

2008-11-25 Thread steve.klee
I believe you need to set the "mouseChildren" property on your custom 
component to false, that way the label inside your component will not 
deal with the mouse event and let it bubble up to your event listener 
you set on your component.

HTH.



[flexcoders] Re: help here with an item renderer

2008-11-25 Thread valdhor
I don't know if I really understand what you are trying to do so correct
me if I am wrong...

My understanding: You have XML that you are using as a dataProvider for
a repeater; You want buttons to be created for each item in the
dataProvider; Each button (When Clicked) should navigate to a URL based
on data in the dataProvider.

OK, if it were me, I would create a custom component to encapsulate each
button. Here is an example:

MyCustomButton.mxml:

http://www.adobe.com/2006/mxml";
click="onClick(event)">
 
 
 


And an Application to use it:

http://www.adobe.com/2006/mxml";
layout="vertical"
 creationComplete="onCreationComplete()" xmlns:local="*">
 
 
 
 
 
 


--- In flexcoders@yahoogroups.com, Gustavo Duenas <[EMAIL PROTECTED]> wrote:
>
> Hi I have a xml file and it has a 800 and so
> forth, and also I have a repeater (a horizontal list) which grabs the
> xml and the item renderer with a button, instead of doing the
horizontal
> list do the click I'd like to make the button inside the item
> renderer to do that.
>
> how could I do that?
>
> I was trying to use
> in the item rendered
>
> private function send():void{
>
> 
>  
> 
>
> and in the button: click="send()"
>
> so far, it is just putting in my browser mybroser/{data.button1}
> but I'd like to put in there the URL, how could I?
>
> Regards,
>
> Gus
>
>
> Gustavo A. Duenas
> Creative Director
> LEFT AND RIGHT SOLUTIONS
> 904.  265 0330 - 904. 386 7958
> www.leftandrightsolutions.com
> Jacksonville - Florida
>



RE: [flexcoders] Deleting a node from XML

2008-11-25 Thread Tracy Spratt
delete [e4x expression that returns the node you want to delete]

 

Note you cannot use a variable.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sheetal_nn2000
Sent: Tuesday, November 25, 2008 4:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Deleting a node from XML

 

Hi,
I am having an xml which is binded to a Advanced datagrid.I want to
delete a selected row from the grid.For that i want to remove that
node form xml.How do i do that.

 



[flexcoders] Re: How can I create a path animation in Flex?

2008-11-25 Thread gilbert_mizrahi
Tim, That could help. I have to see how I can extend that
functionality for more complex paths, but this seems to be a good start.

Sefi, I am familiar with some of the tween engines. However, I believe
the create tweens from point x1,y1 to x2,y2. Hence, I need to break
the path in multiple line segments to use them. That is a possibility,
but I would need then to look for a way to fit a function to a path.

Gilbert 


--- In flexcoders@yahoogroups.com, "Sefi Ninio" <[EMAIL PROTECTED]> wrote:
>
> You can use a tween library ( there are many out there - tweener,
tweenlite
> etc.).
> you can give it a source and origin x,y Points and duration, easing
function
> etc and it will handle the animation.
> it the route is not a straight line, you can break the animation into
> sections, listen for the end of one and start the next one.
> 
> I don't know about tweenLite, but in tweener it's done in a single
line of
> code.
> 
> HTH
> Sefi
> 
> On Tue, Nov 25, 2008 at 3:21 AM, tim.geiges <[EMAIL PROTECTED]> wrote:
> 
> >   Take a look at, it might have your answer(I hope) :-)
> >
> >
http://keith-hair.net/blog/2008/05/30/interpolation-of-a-point-on-quadratic-curve/#more-4
> >
> >
> > --- In flexcoders@yahoogroups.com ,
> > "gilbert_mizrahi"  wrote:
> > >
> > > I would like to be able to draw a path and then have an object
> > > "travel" through that path.
> > >
> > > I know how to draw a path in AS3. But I need to get some tips on
how I
> > > can make an object (i.e. car) following that path. Something
like the
> > > original LineRider.
> > >
> > > A while ago I saw an example on a blog, which I did not
bookmark, and
> > > I am unable to locate it again.
> > >
> > > Thanks,
> > > Gilbert
> > >
> >
> >  
> >
>




[flexcoders] Bug: Combobox maxWidth does not work with percent width

2008-11-25 Thread fotis.chatzinikos
Hi,
When the following comboBox is used with width="100%" and maxWidth 190
the maxwidth is not used when the underlying list contains names wider
than 190 pixels...Instead the full name is shown and the combo becomes
230 or any other amount of pixels needed...

This is only fixed if the width is specified to for example 190...

Bug?






[flexcoders] Re: Can I use a nested XML element as a dataprovider for my pie chart?

2008-11-25 Thread Amy
--- In flexcoders@yahoogroups.com, "sailorsea21" <[EMAIL PROTECTED]> 
wrote:
>
> Hi everyone, can I use a nested XML element as a dataprovider for my 
> pie chart?

This isn't a pie chart, but it might point you in the right direction:

http://flexdiary.blogspot.com/2008/08/charting-example.html

HTH;

Amy



[flexcoders] richtexteditor focusOut event

2008-11-25 Thread Derrick Anderson
Hi,  so I noticed that the RTE does not have a focusOut event that it
dispatches.  I want to dispatch an event whenever somebody blurs the RTE the
same way I can with the focusOut event on regular text fields.  Is this
possible?  I have tried the 'change' event and 'valueCommit', but both of
these fire way too much- i only want it fired when they leave the RTE,
possible?

thanks,
d.


[flexcoders] LCDS hostinG

2008-11-25 Thread Johannes Nel
HI
Can you guys recommend a LCDS hosting company.

Thanks
Johan

-- 
j:pn
\\no comment


Re: [flexcoders] How to set reference to parent?

2008-11-25 Thread Derrick Anderson
i think it's parentDocument, any time i've ever had to use it I've opted to
use events however.

d.

On Tue, Nov 25, 2008 at 10:35 AM, markflex2007 <[EMAIL PROTECTED]>wrote:

>   Hi,
>
> I added a component to a container like this:
>
> container1.addChild(component1);
>
> now I want to change the property of container in the component.how to
> set the reference of the parent container,I do not remember that.
>
> Please help me.
>
> I try parent.x = 1 but it doesn't work.Thanks
>
> Mark
>
>  
>


[flexcoders] Re: How to set reference to parent?

2008-11-25 Thread florian.salihovic
It would be component.parent, not just parent unless you are working in the 
child's scope.

A better way would be to register an eventlistener (don't forget to remove it 
if it's not 
necessary anymore) for the child in the parent's scope. Why? To me it's the 
same problem 
you might run into when working with the stage. Sometimes the stage and parent 
references might be null -> that's the case when the child is not added.

Best regards.

--- In flexcoders@yahoogroups.com, "markflex2007" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I added a component to a container like this:
> 
> container1.addChild(component1);
> 
> now I want to change the property of container in the component.how to
> set the reference of the parent container,I do not remember that.
> 
> Please help me.
> 
> I try parent.x = 1 but it doesn't work.Thanks
> 
> 
> Mark
>





[flexcoders] Problem opening Flex project

2008-11-25 Thread markgoldin_2000
Opening Flex Builder all of a sudden I was presented with a new 
configuration like I have never done any development yet with this 
installation. I am trying to import my project. I am selecting a 
project folder, and it takes it fine, but selecting same folder for 
project location does not even enable Finish button. If I choose 
default option then a new folder with a name of my project is created 
inside of my project folder (dont know why) but Import dialog is not 
closing. What am I doing wrong?

Thanks



[flexcoders] How to set reference to parent?

2008-11-25 Thread markflex2007
Hi,

I added a component to a container like this:

container1.addChild(component1);

now I want to change the property of container in the component.how to
set the reference of the parent container,I do not remember that.

Please help me.

I try parent.x = 1 but it doesn't work.Thanks


Mark 



[flexcoders] Re: The Online Flex Builder!

2008-11-25 Thread Cato Paus
yes I found it and got it working in Flex 3 :)
--- In flexcoders@yahoogroups.com, ivo <[EMAIL PROTECTED]> wrote:
>
> This is probably what you are looking for
http://flexible.riaforge.org/ but I have not been able to get it to
work properly with Flex 3.
> 
> 
> 
> 
> 
> From: Johannes Nel <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Tuesday, November 25, 2008 2:23:16 AM
> Subject: Re: [flexcoders] The Online Flex Builder!
> 
> 
> this mailing list has been running for years, no where near the
beginning of the archives :)
> 
> 
> On Mon, Nov 24, 2008 at 10:45 PM, Jim Hayes <[EMAIL PROTECTED]
com> wrote:
> 
> John Grden had one quite a while back, not seen any news on it for a
while though. The name of it escapes me for now I'm afraid.
> try http://www.rockonfl ash.com, somewhere near the beginning of the
archives I would think.
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] ups.com on behalf of Cato Paus
> Sent: Mon 24/11/2008 19:20
> To: [EMAIL PROTECTED] ups.com
> Subject: [flexcoders] The Online Flex Builder!
> 
> Hi all, I remeber taht someone did create a FlexBuilder in a
> flash-application, but I'cant remeber where, someone have the url ?
> 
> 
>  _ _ _ _ _ _
> This communication is from Primal Pictures Ltd., a company
registered in England and Wales with registration No. 02622298 and
registered office: 4th Floor, Tennyson House, 159-165 Great Portland
Street, London, W1W 5PA, UK. VAT registration No. 648874577.
> 
> This e-mail is confidential and may be privileged. It may be read,
copied and used only by the intended recipient. If you have received
it in error, please contact the sender immediately by return e-mail or
by telephoning +44(0)20 7637 1010. Please then delete the e-mail and
do not disclose its contents to any person.
> This email has been scanned for Primal Pictures by the MessageLabs
Email Security System.
>  _ _ _ _ _ _ 
> 
> 
> -- 
> j:pn 
> \\no comment
>




[flexcoders] Re: Module loaded but not displayed every time...

2008-11-25 Thread Claudiu Ursica
Hi again, 
I see nobody bumped into this issue...
Since the previous post I have discovered that the module does not
show up because the cration complete event does not fire all the time.
I was able to log the preinitialize event and the init event but when
the module doesn't show it is because the creation complete does not
fire. Eventually the module does show after 2 minutes or so... an then
I see the log for creation complete. 

In my initialize event I initialize some variables and that always
gets done, but I vahe no odea what happends sometimes that determines
the creation complete to fire so late.

Maybe some of you can help with this,
TIA,
Caludiu


--- In flexcoders@yahoogroups.com, "Claudiu Ursica" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> I load a module using a custom module loader. Event though the READY
> event fires every time, and the visible property traces out to true, I
> am not able to see the module each time I load it. This happens only
> when I start the application. If I can see it the first time I can
> then unload and load it again and it gets displayed. However if I'm
> not seeing it the first time it is not visible for good.
> 
> Sometimes (not all the time) I gets shown after a while. I have tried
> invalidating the display list or similar force repainting techniques
> but nothing seems to work.
> 
> Has any of you experienced something similar? 
> If so please let me know if you have found any workaround.
> 
> TIA,
> Claudiu
>




[flexcoders] Subobjects null within Assembler when updating to LCDS 2.6

2008-11-25 Thread taze170171
Hello!

We have justed updated our application from LCDS 2.5.1 to LCDS 2.6.

If we now update an object, referenced subobjects which are sent from 
the AIR Client to the server, are null when the objects arrive at the 
Assembler. When createItem is called the subobjects are sent to the 
assembler. We use managed associations to the subobjects.

The problem only occurs if the main object has been created just 
before. If an already existing object gets updated everything works 
fine.

The problem does not occur if we use the LCDS 2.6 jar files together 
with the fds.swc from version 2.5.1.

Do have to adapt a special config entry when updating to LCDS 2.6 or 
do we have to set another property within data-management-config.xml, 
so that subobjects are always sent to the Assembler?

Thanks in advance,
Taze



[flexcoders] Deleting a node from XML

2008-11-25 Thread sheetal_nn2000
Hi,
I am having an xml which is binded to a Advanced datagrid.I want to
delete a selected row from the grid.For that i want to remove that
node form xml.How do i do that.



Re: [flexcoders] The Online Flex Builder!

2008-11-25 Thread ivo
This is probably what you are looking for http://flexible.riaforge.org/ but I 
have not been able to get it to work properly with Flex 3.





From: Johannes Nel <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, November 25, 2008 2:23:16 AM
Subject: Re: [flexcoders] The Online Flex Builder!


this mailing list has been running for years, no where near the beginning of 
the archives :)


On Mon, Nov 24, 2008 at 10:45 PM, Jim Hayes <[EMAIL PROTECTED] com> wrote:

John Grden had one quite a while back, not seen any news on it for a while 
though. The name of it escapes me for now I'm afraid.
try http://www.rockonfl ash.com, somewhere near the beginning of the archives I 
would think.


-Original Message-
From: [EMAIL PROTECTED] ups.com on behalf of Cato Paus
Sent: Mon 24/11/2008 19:20
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] The Online Flex Builder!

Hi all, I remeber taht someone did create a FlexBuilder in a
flash-application, but I'cant remeber where, someone have the url ?


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

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


-- 
j:pn 
\\no comment


Re: [flexcoders] Re: How can I create a path animation in Flex?

2008-11-25 Thread Sefi Ninio
You can use a tween library ( there are many out there - tweener, tweenlite
etc.).
you can give it a source and origin x,y Points and duration, easing function
etc and it will handle the animation.
it the route is not a straight line, you can break the animation into
sections, listen for the end of one and start the next one.

I don't know about tweenLite, but in tweener it's done in a single line of
code.

HTH
Sefi

On Tue, Nov 25, 2008 at 3:21 AM, tim.geiges <[EMAIL PROTECTED]> wrote:

>   Take a look at, it might have your answer(I hope) :-)
>
> http://keith-hair.net/blog/2008/05/30/interpolation-of-a-point-on-quadratic-curve/#more-4
>
>
> --- In flexcoders@yahoogroups.com ,
> "gilbert_mizrahi" <[EMAIL PROTECTED]> wrote:
> >
> > I would like to be able to draw a path and then have an object
> > "travel" through that path.
> >
> > I know how to draw a path in AS3. But I need to get some tips on how I
> > can make an object (i.e. car) following that path. Something like the
> > original LineRider.
> >
> > A while ago I saw an example on a blog, which I did not bookmark, and
> > I am unable to locate it again.
> >
> > Thanks,
> > Gilbert
> >
>
>  
>


[flexcoders] Crash of safari, firefox using XML.setChildren for XML in a XMLListCollection

2008-11-25 Thread shauncutts
The following code will crash Flash 9.0 r124 (debug version) when
built with flex builder 3.0: (flash running on either Firefox or
Safari, MacOS)


http://www.adobe.com/2006/mxml";
layout="vertical"
creationComplete="dotest();">


















[flexcoders] Re: help here with an item renderer

2008-11-25 Thread tim.geiges
If I understand what you are asking then in the buttons within the
repeater you just add the click="" to point to your function, like

   


and my XML would look more like http://www.someurl.com";>

hope I'm not way off what you are aasking there :-)

Tim G.

--- In flexcoders@yahoogroups.com, Gustavo Duenas <[EMAIL PROTECTED]> wrote:
>
> Hi I have a xml file and it has a 800 and so  
> forth, and also I have a repeater (a horizontal list) which grabs the  
> xml and the item renderer with a button, instead of doing the horizontal
> list do the click I'd like to make the button inside the item  
> renderer to do that.
> 
> how could I do that?
> 
> I was trying to use
> in the item rendered
> 
> private function send():void{
> 
> 
>   
> 
> 
> and in the button: click="send()"
> 
> so far, it is just putting in my browser mybroser/{data.button1}
> but I'd like to put in there the URL, how could I?
> 
> Regards,
> 
> Gus
> 
> 
> Gustavo A. Duenas
> Creative Director
> LEFT AND RIGHT SOLUTIONS
> 904.  265 0330 - 904. 386 7958
> www.leftandrightsolutions.com
> Jacksonville - Florida
>




[flexcoders] Re: How can I create a path animation in Flex?

2008-11-25 Thread tim.geiges
Take a look at, it might have your answer(I hope) :-)
http://keith-hair.net/blog/2008/05/30/interpolation-of-a-point-on-quadratic-curve/#more-4

--- In flexcoders@yahoogroups.com, "gilbert_mizrahi" <[EMAIL PROTECTED]> wrote:
>
> I would like to be able to draw a path and then have an  object
> "travel" through that path.
> 
> I know how to draw a path in AS3. But I need to get some tips on how I
> can make an object (i.e. car) following that path. Something like the
> original LineRider.
> 
> A while ago I saw an example on a blog, which I did not bookmark, and
> I am unable to locate it again.
> 
> Thanks,
> Gilbert
>




[flexcoders] Re: ComboBox as itemRenderer/editor in Datagrid is not updating dataProvider...

2008-11-25 Thread biosmonkey

My understanding of this function is that it is to cause an update in
the rendering of the control attached to the data, which implies that
the dataProvider has the correct data - the control is just not
showing it.

I have the reverse problem.  In my case, the renderers (the combo
boxes) are changing just fine, but the selection index in the combo is
NOT being written back to the grid's dataProvider.

Another solution would be to directly manipulate the grid's
dataProvider myself.  In this case, I can hook the change event for
the itemrenderer and manually update the value.  But I don't know off
hand how to access the parent dataProvider cell from within an
itemRenderer?  




--- In flexcoders@yahoogroups.com, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> Depending on your data, you may need to call itemUpdated so
renderers find out there's been a change to their data.
>



[flexcoders] Re: fp10, fb 3, and profiling

2008-11-25 Thread Derrick Anderson
The error I get is "Profiling can only be performed on the debug version of
an application."  I have flashplayer 10r12_36 debug version installed.

thanks,
d.

On Tue, Nov 25, 2008 at 9:25 AM, Derrick Anderson <
[EMAIL PROTECTED]> wrote:

> Hi,  I recently upgraded to flash player 10 and I got the most recent FB
> updater- and now I notice that I cannot profile anymore.  The console gives
> me a socket error.
>
> Does FP10 not work with profiler?
>
> thanks,
> d.
>


[flexcoders] fp10, fb 3, and profiling

2008-11-25 Thread Derrick Anderson
Hi,  I recently upgraded to flash player 10 and I got the most recent FB
updater- and now I notice that I cannot profile anymore.  The console gives
me a socket error.

Does FP10 not work with profiler?

thanks,
d.


Re: [flexcoders] Re: supertabnavigator component and reordering tabs

2008-11-25 Thread Derrick Anderson
thanks, I did have the listener on the top level element- i just realized
the problem was a binding error happening just before (that I could not see
unless debugging) that was causing that listener to not get applied.

working now, thanks
d.

On Tue, Nov 25, 2008 at 8:29 AM, valdhor <[EMAIL PROTECTED]> wrote:

>   Are you using the SuperTabNavigator example?
>
> If so, add the event listener to the "nav" element and try again (This
> is the top SuperTabNavigator). I did this and it worked fine.
>
> Otherwise, post some code and I can give it a looksee.
>
>
> --- In flexcoders@yahoogroups.com , "Derrick
> Anderson"
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I understand that is when it 'should' be dispatched, but my problem
> is that
> > I have a listener function that is never getting called when I
> reorder the
> > tabs. I'm listening for the event like:
> >
> > superTabNavElement.addEventListener(SuperTabBar.TABS_REORDERED,
> > onTabReorder);
> >
> > Any ideas?
> >
> > d.
> >
> > On Mon, Nov 24, 2008 at 2:46 PM, valdhor <[EMAIL PROTECTED]> wrote:
> >
> > > From looking at the code and the example, this event is fired
> when you
> > > drag and drop a tab from one position to another.
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>,
> "Derrick
> > > Anderson"
> > >
> > >  wrote:
> > > >
> > > > Hi,
> > > >
> > > > Does anyone familiar with the SuperTabNavigator in FlexLib know
> how to
> > > > capture the tab reorder event? I looked in the code and I see
> that it
> > > > dispatches the event TabReorderEvent, but when I listen for that
> > > event like
> > > > so:
> > > >
> > > > surveyPages.addEventListener(SuperTabBar.TABS_REORDERED,
> onTabReorder);
> > > >
> > > >  > > >
> > > > my function is never called, anyone know how to do this?
> > > >
> > > > thanks,
> > > > d.
> > > >
> > >
> > >
> > >
> >
>
>  
>


[flexcoders] Sailorsea21 - Can I use a nested XML node as a dataprovider for my pie chart?

2008-11-25 Thread sailorsea21
Hi everyone, can I use a nested XML node as a dataprovider for my 
pie chart?

I have the following XML file:




464< /test001>
425< /test002>
26< /test003>
63< /test004>
4573< /test005>


Yes< /answer>
90< /answers>


No
10< /answers>




254< /test001>
346< /test002>
46< /test003>
63< /test004>
453< /test005>



I would like to have a pie chart based on the .

Thanks. 




[flexcoders] Re: ItemRenderer's style is changed when scrolling DataGrid

2008-11-25 Thread valdhor
You may be better off overriding the set data function in your renderer.
The following is an example I have used in the past to create a
linkButton in a cell if the data is greater than zero or to gray it out
if it is zero:

package renderers
{
 import mx.controls.*;
 import mx.controls.dataGridClasses.DataGridListData;

 public class CellField extends LinkButton
 {
 private var fieldValue:String;

 public function CellField()
 {
 super();
 }

 override public function set data(value:Object):void
 {
 if(value != null)
 {
 super.data = value;
 fieldValue =
value[DataGridListData(listData).dataField];

 label = fieldValue;
 if (Number(fieldValue) == 0)
 {
 enabled = false;
 useHandCursor = false;
 }
 else
 {
 enabled = true;
 useHandCursor = true;
 setStyle("color", "#FF");
 setStyle("textDecoration", "underline");
 setStyle("textRollOverColor:", "#CC");
 }
 }
 }
 }
}


--- In flexcoders@yahoogroups.com, Fu Di <[EMAIL PROTECTED]> wrote:
>
> hi everyone,   i  wrote a  renderer  which  extends
DataGridItemRenderer   in  DataGrid
> some code below:
>
> override public function getTextStyles():TextFormat
> {
> if (!listData||this.text=="")
> {
>  return super.getTextStyles();
> }
>
> if(listData.uid != lastUID)
> {
> var tf:TextFormat = super.getTextStyles();
> if(data is PositionDataBottomInfo)
> {
> tf.bold = true;
>
> }
> else
> {
> tf.bold = false;
> }
> }
> return tf;
>
> }
>
> if  i  don't  operate  the DataGrid, every row's style is  correct. 
however , when  i scroll the DataGrid, the row's style is incorrect.
> after scrolling  some rows turn bold, some turn  normal.
>
> thinks
>



[flexcoders] Re: supertabnavigator component and reordering tabs

2008-11-25 Thread valdhor
Are you using the SuperTabNavigator example?

If so, add the event listener to the "nav" element and try again (This
is the top SuperTabNavigator). I did this and it worked fine.

Otherwise, post some code and I can give it a looksee.


--- In flexcoders@yahoogroups.com, "Derrick Anderson"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I understand that is when it 'should' be dispatched, but my problem
is that
> I have a listener function that is never getting called when I
reorder the
> tabs.  I'm listening for the event like:
> 
> superTabNavElement.addEventListener(SuperTabBar.TABS_REORDERED,
> onTabReorder);
> 
> Any ideas?
> 
> d.
> 
> On Mon, Nov 24, 2008 at 2:46 PM, valdhor <[EMAIL PROTECTED]> wrote:
> 
> >   From looking at the code and the example, this event is fired
when you
> > drag and drop a tab from one position to another.
> >
> > --- In flexcoders@yahoogroups.com ,
"Derrick
> > Anderson"
> >
> >  wrote:
> > >
> > > Hi,
> > >
> > > Does anyone familiar with the SuperTabNavigator in FlexLib know
how to
> > > capture the tab reorder event? I looked in the code and I see
that it
> > > dispatches the event TabReorderEvent, but when I listen for that
> > event like
> > > so:
> > >
> > > surveyPages.addEventListener(SuperTabBar.TABS_REORDERED,
onTabReorder);
> > >
> > >  > >
> > > my function is never called, anyone know how to do this?
> > >
> > > thanks,
> > > d.
> > >
> >
> >  
> >
>




[flexcoders] Re: The Online Flex Builder!

2008-11-25 Thread Cato Paus
Found it at http://osflash.org/flexible :)


--- In flexcoders@yahoogroups.com, "Cato Paus" <[EMAIL PROTECTED]> wrote:
>
> Hi all, I remeber taht someone did create a FlexBuilder in a
> flash-application, but I'cant remeber where, someone have the url ?
>




Re: [flexcoders] SWF Verification

2008-11-25 Thread EECOLOR
"I don't think you can control how it sends the hash"

I do not want to control it. I want to know how it creates the hash and how
the hash is sent so I can implement the same serverside logic as FMS. This
way I could improve the security of my AMF3 enabled application.

Greetz Erik

On Mon, Nov 24, 2008 at 11:42 PM, Jon Bradley <[EMAIL PROTECTED]>wrote:

>
> On Nov 24, 2008, at 5:09 PM, EECOLOR wrote:
>
> It would be lovely to know how the Flash Player sends the hash of the
> currently running swf to the server for verification.
>
>
> http://kb.adobe.com/selfservice/viewContent.do?externalId=kb405456
>
> I don't think you can control how it sends the hash - it's done in the
> background by the Flash Player and connection to FMS.
>
> What you do is upload a verified version of the SWF to the application
> directory - or a place where FMS can read it.
>
> good luck,
>
> jon
>
>  
>


Re: [flexcoders] Re: Newbie binding question

2008-11-25 Thread Haykel BEN JEMIA
The official documentation says to use the following syntax:
[Bindable(event="eventname")]

Jules' suggestion seems to be an alias for it (the Adobe team is also using
this one):
[Bindable("eventname")]


Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Tue, Nov 25, 2008 at 10:47 AM, Jules Suggate <[EMAIL PROTECTED]>wrote:

>   Have you tried just doing [Bindable("dataChanged")] instead of
> [Bindable(name="dataChanged")]?
>
>
> On Tue, Nov 25, 2008 at 17:32, Michael Prescott
> <[EMAIL PROTECTED] > wrote:
> > Oh sorry, I omitted the the getter from my example - but yes, I have
> > getters. (The IDE warns you that [Bindable] doesn't do anything when you
> > omit the getter.)
> >
> > I'm wondering if data binding requires the event to be a
> PropertyChangeEvent
> > for data binding to work?
> >
> > Michael
> >
> > On Mon, Nov 24, 2008 at 11:12 PM, Amy <[EMAIL 
> > PROTECTED]>
> wrote:
> >>
> >> --- In flexcoders@yahoogroups.com ,
> "Michael Prescott"
> >>
> >> <[EMAIL PROTECTED]> wrote:
> >> >
> >> > I'm having some troubles with data binding and a named event
> >> generated
> >> > by a custom non-visual component. What I'm trying to do is have a
> >> > property (say, 'data') which, when it changes, triggers the usual
> >> > data-binding updates, but also fires an event that can be listened
> >> to
> >> > in the MXML. For example:
> >> >
> >> > 
> >> > 
> >> >
> >> > I can't seem to meet both of these requirements without throwing two
> >> > separate events. Is this what I should expect?
> >> >
> >> > When I do this:
> >> >
> >> > [Event(name="dataChanged")]
> >> > public class MyClass {
> >> >
> >> > [Bindable(name="dataChanged")]
> >> > public function set data(data:Object):void {
> >> > this._data = data;
> >> > dispatchEvent( new Event("dataChanged") );
> >> >
> >> > ..then the data binding doesn't work. (The label text doesn't get
> >> > updated.) It seems I have to resort to vanilla data binding (with
> >> no
> >> > event name), and in addition throw a 'dataChanged' event of my own.
> >> >
> >> > [Event(name="dataChanged")]
> >> > public class MyClass {
> >> >
> >> > [Bindable]
> >> > public function set data(data:Object):void {
> >> > this._data = data;
> >> > dispatchEvent( new Event("dataChanged") );
> >> >
> >> > Am I missing something?
> >>
> >> When Flex comes back to look at your data because you fired the
> >> event, it can't get it because you made it write only by only
> >> providing a setter and not a getter.
> >>
> >> HTH;
> >>
> >> Amy
> >>
> >
> >
>  
>


  1   2   >