Re: [flexcoders] Binding using Interface

2008-08-26 Thread Sefi Ninio
Ooops... I tried a clean build and it worked. Adding the [Bindable] tag to
the interface made the warning go away!

So thanks a lot Josh and Alex! :)

I am now wondering, like Ralf, what are the implications of making the
interface bindable...
Does it mean that when one property changes all watchers are getting called
(like a bindable calss)?
How will this affect the implementing class behavior?

Sefi

On Wed, Aug 27, 2008 at 9:41 AM, Sefi Ninio <[EMAIL PROTECTED]> wrote:

> I tried to add the [Bindable] tag to the interface, but that did not make
> the compile-time warning go away...
>
>
> On Wed, Aug 27, 2008 at 9:36 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>
>>   I hope not :)
>>
>> On Wed, Aug 27, 2008 at 4:31 PM, Ralf Bokelberg <[EMAIL PROTECTED]
>> > wrote:
>>
>>> I wonder, what happens, if you make a interface bindable. Does this
>>> change the code beeing created from the implementing class?
>>>
>>> Cheers
>>> Ralf.
>>>
>>> On Wed, Aug 27, 2008 at 8:22 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>>> > I thought he was talking about a compile-time warning :)
>>> >
>>> > On Wed, Aug 27, 2008 at 3:40 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>>> >>
>>> >> The final class that gets listened to needs to have its property be
>>> >> bindable.  The interface being bindable gets you past the compiler,
>>> but the
>>> >> warning is a run-time when it actually looks at the instance it is
>>> hooking
>>> >> up to.
>>> >>
>>>
>>> 
>>>
>>> --
>>> Flexcoders Mailing List
>>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>>> Search Archives:
>>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>>> Links
>>>
>>>
>>>
>>>
>>
>>
>> --
>> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>>
>> :: Josh 'G-Funk' McDonald
>> :: 0437 221 380 :: [EMAIL PROTECTED]
>>  
>>
>
>


Re: [flexcoders] Binding using Interface

2008-08-26 Thread Sefi Ninio
I tried to add the [Bindable] tag to the interface, but that did not make
the compile-time warning go away...

On Wed, Aug 27, 2008 at 9:36 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:

>   I hope not :)
>
> On Wed, Aug 27, 2008 at 4:31 PM, Ralf Bokelberg <[EMAIL PROTECTED]>wrote:
>
>> I wonder, what happens, if you make a interface bindable. Does this
>> change the code beeing created from the implementing class?
>>
>> Cheers
>> Ralf.
>>
>> On Wed, Aug 27, 2008 at 8:22 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>> > I thought he was talking about a compile-time warning :)
>> >
>> > On Wed, Aug 27, 2008 at 3:40 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>> >>
>> >> The final class that gets listened to needs to have its property be
>> >> bindable.  The interface being bindable gets you past the compiler, but
>> the
>> >> warning is a run-time when it actually looks at the instance it is
>> hooking
>> >> up to.
>> >>
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> Links
>>
>>
>>
>>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>  
>


Re: [flexcoders] Binding using Interface

2008-08-26 Thread Sefi Ninio
Um... I was (and am) talking about compile-time warning...

On Wed, Aug 27, 2008 at 9:22 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:

>   I thought he was talking about a compile-time warning :)
>
>
> On Wed, Aug 27, 2008 at 3:40 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
>>  The final class that gets listened to needs to have its property be
>> bindable.  The interface being bindable gets you past the compiler, but the
>> warning is a run-time when it actually looks at the instance it is hooking
>> up to.
>>
>>
>>
>> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
>> Behalf Of *Sefi Ninio
>> *Sent:* Tuesday, August 26, 2008 10:15 PM
>> *To:* flexcoders@yahoogroups.com
>> *Subject:* Re: [flexcoders] Binding using Interface
>>
>>
>>
>> Hi Josh,
>>
>> Thanks for the reply, but this didn't work.
>> The interface extends IEventDispatcher as you suggested.
>> That required all implementing classes it also extend EventDispatcher
>> because of unimplemented interface functions.
>> And, even after all that, the warning remains!
>>
>> On Tue, Aug 26, 2008 at 9:58 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>>
>> public interface IMyBindable extends IEventDispatcher {}
>>
>> On Tue, Aug 26, 2008 at 4:51 PM, sefi.ninio <[EMAIL PROTECTED]> wrote:
>>
>>  Hi everyone...
>>
>> I get a binding warning I just can't seem to shake off...
>>
>> I have an interface (let's call it IMyInterface) and it is defining,
>> among other things, a setter/getter function pair.
>>
>> I know, I know - this screams extending a base class and not
>> implementing an interface, but bear with me...
>>
>> The implementing classes implement those setter/getter pair, and the
>> getter function has the [Bindable] metatag defined.
>>
>> Sure, Binding works like a charm, but that warning bugs me.
>> I know extending a base class that implements those setter/getter as
>> bindable will solve this.
>> I'm just wandering if there's a way to work with an interface and
>> still not get that warning...
>>
>> Thanks,
>> Sefi
>>
>>  
>>
>>
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>>
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> Links
>>
>>
>>http://groups.yahoo.com/group/flexcoders/
>>
>>
>>
>>
>>
>>
>> --
>> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>>
>> :: Josh 'G-Funk' McDonald
>> :: 0437 221 380 :: [EMAIL PROTECTED]
>>
>>
>>
>>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>  
>


Re: [flexcoders] Binding using Interface

2008-08-26 Thread Josh McDonald
I hope not :)

On Wed, Aug 27, 2008 at 4:31 PM, Ralf Bokelberg <[EMAIL PROTECTED]>wrote:

> I wonder, what happens, if you make a interface bindable. Does this
> change the code beeing created from the implementing class?
>
> Cheers
> Ralf.
>
> On Wed, Aug 27, 2008 at 8:22 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> > I thought he was talking about a compile-time warning :)
> >
> > On Wed, Aug 27, 2008 at 3:40 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
> >>
> >> The final class that gets listened to needs to have its property be
> >> bindable.  The interface being bindable gets you past the compiler, but
> the
> >> warning is a run-time when it actually looks at the instance it is
> hooking
> >> up to.
> >>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


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

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


Re: [flexcoders] Binding using Interface

2008-08-26 Thread Ralf Bokelberg
I wonder, what happens, if you make a interface bindable. Does this
change the code beeing created from the implementing class?

Cheers
Ralf.

On Wed, Aug 27, 2008 at 8:22 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> I thought he was talking about a compile-time warning :)
>
> On Wed, Aug 27, 2008 at 3:40 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>>
>> The final class that gets listened to needs to have its property be
>> bindable.  The interface being bindable gets you past the compiler, but the
>> warning is a run-time when it actually looks at the instance it is hooking
>> up to.
>>


Re: [flexcoders] Binding using Interface

2008-08-26 Thread Josh McDonald
I thought he was talking about a compile-time warning :)

On Wed, Aug 27, 2008 at 3:40 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>  The final class that gets listened to needs to have its property be
> bindable.  The interface being bindable gets you past the compiler, but the
> warning is a run-time when it actually looks at the instance it is hooking
> up to.
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Sefi Ninio
> *Sent:* Tuesday, August 26, 2008 10:15 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Binding using Interface
>
>
>
> Hi Josh,
>
> Thanks for the reply, but this didn't work.
> The interface extends IEventDispatcher as you suggested.
> That required all implementing classes it also extend EventDispatcher
> because of unimplemented interface functions.
> And, even after all that, the warning remains!
>
> On Tue, Aug 26, 2008 at 9:58 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>
> public interface IMyBindable extends IEventDispatcher {}
>
> On Tue, Aug 26, 2008 at 4:51 PM, sefi.ninio <[EMAIL PROTECTED]> wrote:
>
>  Hi everyone...
>
> I get a binding warning I just can't seem to shake off...
>
> I have an interface (let's call it IMyInterface) and it is defining,
> among other things, a setter/getter function pair.
>
> I know, I know - this screams extending a base class and not
> implementing an interface, but bear with me...
>
> The implementing classes implement those setter/getter pair, and the
> getter function has the [Bindable] metatag defined.
>
> Sure, Binding works like a charm, but that warning bugs me.
> I know extending a base class that implements those setter/getter as
> bindable will solve this.
> I'm just wandering if there's a way to work with an interface and
> still not get that warning...
>
> Thanks,
> Sefi
>
>  
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>http://groups.yahoo.com/group/flexcoders/
>
>
>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>
>
>
>  
>



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

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


RE: [flexcoders] Binding using Interface

2008-08-26 Thread Alex Harui
The final class that gets listened to needs to have its property be bindable.  
The interface being bindable gets you past the compiler, but the warning is a 
run-time when it actually looks at the instance it is hooking up to.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sefi 
Ninio
Sent: Tuesday, August 26, 2008 10:15 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Binding using Interface

 

Hi Josh,

Thanks for the reply, but this didn't work.
The interface extends IEventDispatcher as you suggested.
That required all implementing classes it also extend EventDispatcher because 
of unimplemented interface functions.
And, even after all that, the warning remains!

On Tue, Aug 26, 2008 at 9:58 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:

public interface IMyBindable extends IEventDispatcher {}

On Tue, Aug 26, 2008 at 4:51 PM, sefi.ninio <[EMAIL PROTECTED]> wrote:

Hi everyone...

I get a binding warning I just can't seem to shake off...

I have an interface (let's call it IMyInterface) and it is defining,
among other things, a setter/getter function pair.

I know, I know - this screams extending a base class and not
implementing an interface, but bear with me...

The implementing classes implement those setter/getter pair, and the
getter function has the [Bindable] metatag defined.

Sure, Binding works like a charm, but that warning bugs me.
I know extending a base class that implements those setter/getter as
bindable will solve this.
I'm just wandering if there's a way to work with an interface and
still not get that warning...

Thanks,
Sefi







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links


   http://groups.yahoo.com/group/flexcoders/






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

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

 

 



RE: [flexcoders] itemEditBeginning not being called

2008-08-26 Thread Alex Harui
I don't see editable="true" on the DG

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian
Sent: Tuesday, August 26, 2008 9:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] itemEditBeginning not being called

 

Hi, 
I'm hoping that I'm missing something trivial, but I can not figure 
out why itemEditBeginning or itemEditBegin is not being called in 
the following DataGrid example. I have put a simple alert in after 
the actual code I wanted to execute did not run. Do I need to set a 
particular property of the datagrid to make this work? All 
renderers are working correctly, but I'm not getting the hook pre-
renderer. All renderers/editors are working as expected.

Any advice will be greatly appreciated.
Thanks,
bri



















 



Re: [flexcoders] Binding using Interface

2008-08-26 Thread Josh McDonald
Ah right, I understand your problem now :) If you can't add [Bindable] to
the interface (I don't know if you can or not), you're always going to get
that warning at compile-time. There's no way for the compiler to know if
your impl is bindable or not.

-Josh

On Wed, Aug 27, 2008 at 3:15 PM, Sefi Ninio <[EMAIL PROTECTED]> wrote:

>  Hi Josh,
>
> Thanks for the reply, but this didn't work.
> The interface extends IEventDispatcher as you suggested.
> That required all implementing classes it also extend EventDispatcher
> because of unimplemented interface functions.
> And, even after all that, the warning remains!
>
>
> On Tue, Aug 26, 2008 at 9:58 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>
>>   public interface IMyBindable extends IEventDispatcher {}
>>
>> On Tue, Aug 26, 2008 at 4:51 PM, sefi.ninio <[EMAIL PROTECTED]> wrote:
>>
>>> Hi everyone...
>>>
>>> I get a binding warning I just can't seem to shake off...
>>>
>>> I have an interface (let's call it IMyInterface) and it is defining,
>>> among other things, a setter/getter function pair.
>>>
>>> I know, I know - this screams extending a base class and not
>>> implementing an interface, but bear with me...
>>>
>>> The implementing classes implement those setter/getter pair, and the
>>> getter function has the [Bindable] metatag defined.
>>>
>>> Sure, Binding works like a charm, but that warning bugs me.
>>> I know extending a base class that implements those setter/getter as
>>> bindable will solve this.
>>> I'm just wandering if there's a way to work with an interface and
>>> still not get that warning...
>>>
>>> Thanks,
>>> Sefi
>>>
>>>
>>> 
>>>
>>> --
>>> Flexcoders Mailing List
>>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>>> Search Archives:
>>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>>> Links
>>>
>>>
>>>
>>>
>>
>>
>> --
>> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>>
>> :: Josh 'G-Funk' McDonald
>> :: 0437 221 380 :: [EMAIL PROTECTED]
>>
>
> 
>



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

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


[flexcoders] Re: xml contains list with sometimes only one element

2008-08-26 Thread max.bruchmann
Cool, I also did it with e4x now, works much better,

I did it with a static method in PersonVO

public static function createFromXML(personXML:XML):PersonVO
{
.
}

Thanks


--- In flexcoders@yahoogroups.com, "Kenneth Sutherland"
<[EMAIL PROTECTED]> wrote:
>
> I'd do it like this. Not tested the below code, but it's the same as
> stuff I've used before that works fine. Just pass the XML that you get
> returned to the function. Slightly different approach but should be
good
> for any number of XML entries
>
>
>
> private function populatePerson(xml : XML) : void {
>
>   if(xml){
>
>
>
> persons = new ArrayCollection();
>
> var personList : XMLList = xml.person;
>
> for each (var person : XML in personList ) {
>
>   persons.addItem(new PersonVO(person));
>
> }
>
> }
>
> }
>
>
>
> Then create your PersonVO like so
>
>
>
> [Bindable]
>
>   public class PersonVO
>
>   {
>
> public var name : String;
>
> public var pid : Number;
>
> public var cloneableData : XML;
>
> public function PersonVO(xml : XML)
>
> {
>
>   if(xml){
>
> pid = xml.pid;
>
> name = xml.name;
>
> cloneableDate = xml;//you don't need this but
> with complex objects saving the XML makes cloning very easy.
>
>   }
>
> }
>
>
>
>   }
>
>
>
> Kenneth.
>
>
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of max.bruchmann
> Sent: 26 August 2008 09:09
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] xml contains list with sometimes only one
element
>
>
>
> Hi,
> I have a http service that returns me a list of persons:
>
> 
>
> 
> 1
> Foo
> 
>
> 
> 2
> Bar
> 
>
> 
>
> Now my result handler looks like that:
>
> var persons:ArrayCollection;
> function personsResult(resultEvent:ResultEvent):void {
>
>  persons = resultEvent.result.persons.person;
>
> }
>
> BUT when my http service would contain only one person entry:
>
> 
>
> 
> 1
> Foo
> 
>
> 
>
> then the resultEvent.result.persons.person is no longer from type
> ArrayCollection, because it's already the "person object"
> so my resultHandler has to look like this
>
> var persons:ArrayCollection;
>
> function personsResult(resultEvent:ResultEvent):void {
>
> if(resultEvent.result.persons.person is ArrayCollection){//for
multiple
> entries
>
> persons = resultEvent.result.persons.person;
>
> }else if(resultEvent.result.persons.person !=null){//if only one entry
>
> persons = new ArrayCollection([resultEvent.result.persons.person]);
>
> }
>
> }
>
> But it's really a pain, writing this for all resulthandler where you
> might receive a list with only on entry, so have I overseen the
regular
> easy way for that or do I have to do this every time?
>
> thanks in advance
> max
>
>
>
>
>
> Disclaimer
>
\
---
> This electronic message contains information which may be privileged
and confidential. The information is intended to be for the use of the
individual(s) or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use of
the contents of this information is prohibited. If you have received
this electronic message in error, please notify us by telephone on 0131
476 6000 and delete the material from your computer.
> Registered in Scotland number: SC 172507.
> Registered office address: Quay House 142 Commercial Street Edinburgh
EH6 6LB.
>
> This email message has been scanned for viruses by Mimecast.
>
\
---
>




Re: [flexcoders] Reg style shet

2008-08-26 Thread Ganesh Suyampirakasam
Hi Gordon

I resolved that Error.

Thx for your Reply.

Ganesh





- Original Message 
From: Gordon Smith <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, 27 August, 2008 10:47:32 AM
Subject: RE: [flexcoders] Reg style shet


Do you have an application that specifies
? Does StyleSheet.css exist?
Where is it relative to the application file?
 
Gordon Smith
Adobe Flex SDK Team
 


 
From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of Ganesh Suyampirakasam
Sent: Tuesday, August 26, 2008
9:23 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Reg style
shet
 
Hi all

I am facing this error.

 Problem finding external stylesheet: StyleSheet.css   

How to resolve it? help me in this

Thx in 
Advance

Ganesh




 
Unlimited freedom, unlimited storage. Get
it now


  Did you know? You can CHAT without downloading messenger. Go to 
http://in.webmessenger.yahoo.com/

Re: [flexcoders] ArrayCollection bound to an Array.

2008-08-26 Thread Sefi Ninio
You could bind a setter, something like this (written in gmail, this was not
compiled):

private var array:Array;
private var arrayCollection:ArrayCollection;

public function ClassName(..args) { //Constructor
   array = new Array();
   BindingUtils.bindSetter(setArrayCollection, this, array);
}

private function setArrayCollection(array:Array):void {
   arrayCollection = new ArrayCollection(array);
}

This will cause the setter function to run everytime array changes. But do
some reading on when Array does and does not dispatch a change event...

HTH
Sefi


On Tue, Aug 26, 2008 at 7:58 PM, Battershall, Jeff <
[EMAIL PROTECTED]> wrote:

>   Your approach to the problem doesn't appear to be correct. Some
> additional code would be helpful.
>
> Jeff
>
>
> -Original Message-
> From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On
> Behalf Of flexaustin
> Sent: Tuesday, August 26, 2008 11:17 AM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] ArrayCollection bound to an Array.
>
> Is it possible to bind an ArrayCOllection to an array, like so
>
> public var summDataForControllers:Array = new Array;
>
> public var _summDataForContrAC:ArrayCollection = new
> ArrayCollection({summDataForControllers});
>
> I have a modelLocator that contains these to items (above) and I want a
> component to bind to the arrayCollection. I am storing the information
> in the array first because when I try to update the arraycollection from
> my component and then access a certain item in the arraycollection I get
> Index 0 out of bounds. So in other words I iterate and say
> arrayCollection.addItemAt(i) then try
> arrayCOllection.getItemAt(i) I get the out of bounds issue.
>
> But if I iterate and store the information in an array everything is
> fine, but now my component can't listen for updates, which is the reason
> I am trying to bind my arraycollection to the array.
>
> Thanks in advance for any help.
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>  
>


RE: [flexcoders] Reg style shet

2008-08-26 Thread Gordon Smith
Do you have an application that specifies ? Does StyleSheet.css exist? Where is it
relative to the application file?

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ganesh Suyampirakasam
Sent: Tuesday, August 26, 2008 9:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Reg style shet

 

Hi all

I am facing this error.

 Problem finding external stylesheet: StyleSheet.css   

How to resolve it? help me in this

Thx in 
Advance

Ganesh







Unlimited freedom, unlimited storage. Get it now
 

 



Re: [flexcoders] Binding using Interface

2008-08-26 Thread Sefi Ninio
Hi Josh,

Thanks for the reply, but this didn't work.
The interface extends IEventDispatcher as you suggested.
That required all implementing classes it also extend EventDispatcher
because of unimplemented interface functions.
And, even after all that, the warning remains!

On Tue, Aug 26, 2008 at 9:58 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:

>   public interface IMyBindable extends IEventDispatcher {}
>
> On Tue, Aug 26, 2008 at 4:51 PM, sefi.ninio <[EMAIL PROTECTED]> wrote:
>
>> Hi everyone...
>>
>> I get a binding warning I just can't seem to shake off...
>>
>> I have an interface (let's call it IMyInterface) and it is defining,
>> among other things, a setter/getter function pair.
>>
>> I know, I know - this screams extending a base class and not
>> implementing an interface, but bear with me...
>>
>> The implementing classes implement those setter/getter pair, and the
>> getter function has the [Bindable] metatag defined.
>>
>> Sure, Binding works like a charm, but that warning bugs me.
>> I know extending a base class that implements those setter/getter as
>> bindable will solve this.
>> I'm just wandering if there's a way to work with an interface and
>> still not get that warning...
>>
>> Thanks,
>> Sefi
>>
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> Links
>>
>>
>>
>>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>  
>


[flexcoders] itemEditBeginning not being called

2008-08-26 Thread Brian
Hi, 
I'm hoping that I'm missing something trivial, but I can not figure 
out why itemEditBeginning or itemEditBegin is not being called in 
the following DataGrid example.  I have put a simple alert in after 
the actual code I wanted to execute did not run.  Do I need to set a 
particular property of the datagrid to make this work?  All 
renderers are working correctly, but I'm not getting the hook pre-
renderer.  All renderers/editors are working as expected.

Any advice will be greatly appreciated.
Thanks,
bri






















RE: [flexcoders] List rowCount in a datagrid, varying by row using ListItemRenderer

2008-08-26 Thread Alex Harui
I'm not sure I understand the setup.  It is rare for a renderer to set
its parent's rowCount.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dorsetwest
Sent: Tuesday, August 26, 2008 6:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List rowCount in a datagrid, varying by row using
ListItemRenderer

 

Folks ...

I'm implementing a master/detail view in a datagrid column by means of
a custom component that extends List and uses a programmatic
listitemrenderer that renders as many rows in the list as the detail
for that column requires.

It works well ... up to a point. Seems that the first row's list
depth locks in the depth for all succeeding rows.

I remember reading something in Alex's notes on itemRenderers that
suggests they are reused extensively. Therefore I've taken care to
set rowCount carefully each time rendering takes place. However while
the debugger shows the itemRenderer setting its parent's rowCount
correctly, the setting has no effect on the visual display, still
locked at the first row's detail depth.

Anybody have any thoughts as to why this might be happening, and how
the rowCount of a list in a column can be varied on a per column or
per row basis?

Also interested in other approaches; tempted by advancedDataGrid, but
seems very difficult to get working at all (due to some of the
classloading order bugs) and has a pretty scary list of internal
issues. Ideas?

R.

 



[flexcoders] Reg style shet

2008-08-26 Thread Ganesh Suyampirakasam
Hi all

I am facing this error.

 Problem finding external stylesheet: StyleSheet.css   

How to resolve it? help me in this

Thx in 
Advance

Ganesh


  Add more friends to your messenger and enjoy! Go to 
http://in.messenger.yahoo.com/invite/

RE: [flexcoders] Exit effect for popup when being removed

2008-08-26 Thread Alex Harui
I'd consider hide effect then removal

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Boon Chew
Sent: Tuesday, August 26, 2008 6:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Exit effect for popup when being removed

 


Sorry, forgot to mention, the effects exit code has to be in a method
body of actionscript code (as in effect.play( ), .etc.) when the popup
is being removed, instead of just associating an effect instance with
the removedEfffect style.  I have tried listening to FlexEvent.REMOVED
and run the exit effect handler there but that doesn't seem to work.

- boon

--- On Tue, 8/26/08, Boon Chew <[EMAIL PROTECTED]> wrote:

From: Boon Chew <[EMAIL PROTECTED]>
Subject: [flexcoders] Exit effect for popup when being removed
To: flexcoders@yahoogroups.com
Date: Tuesday, August 26, 2008, 6:11 PM

Hi,

What's the best way to have a popup menu play an exit effect when it is
about to be removed by PopUpManager. removePopUp?

Should we play the effect first (say dissolve or wipe up), then on
effect end call  removePopUp, or is there a more direct / simpler way?

- boon

 

 



RE: [flexcoders] help binding to combo box selectedItem

2008-08-26 Thread Alex Harui
What is NtpClass?  Is it bindable?  Are you getting any warnings?

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rss181919
Sent: Tuesday, August 26, 2008 5:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] help binding to combo box selectedItem

 

i have a custom combo box and i seem to be having trouble binding and 
object variable to the selectedItem reference. I have a panel that 
contains the combo box. In the panel constructor I have the following:

BindingUtils.bindProperty(NtpIn, 'NtpClass', 
ClsCbxObj.selectedItem, 'ClsId');

In my change event on the combo box I reference the following:
Alert.show(ClsCbxObj.selectedItem.ClsId);
Alert.show(NtpIn.NtpClass);//NtpOut.NtpClass = 
ClsCbxObj.selectedItem.ClsId;

Line 1 results the correct ClsId. Line 2 reflects the original setting 
initialized during construction. So I know the value is changing but 
there is no binding dispatch event going out. I am assuming I just 
need to set one of the properties somewhere to be bindable but which 
one.

 



RE: [flexcoders] addFrameScript (will it be officially supported?)

2008-08-26 Thread Alex Harui
I'm pretty sure it will remain in FP10, but Flex may not use it by the
end of the year.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Keith
Sent: Tuesday, August 26, 2008 8:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] addFrameScript (will it be officially
supported?)

 

I understand it's not good for readability and maintainability 
(potential recipe for code confusion),
but its one of those things where you would use discretion.
Spiderman also said: "With great power, comes great responsibility" :)

-- Keith H --
www.keith-hair.net

Josh McDonald wrote:
> For what it's worth, addFrameScript can't go away in player 10, or it 
> won't be able to run Flex 3 apps, SystemManager uses it. But, I'm not 
> an Adobe guy and that's just my conclusion, take it with a grain of 
> salt :)
>
> -Josh
>
> On Mon, Aug 25, 2008 at 4:57 PM, Ralf Bokelberg 
> <[EMAIL PROTECTED] 
 >>
wrote:
>
> Exactly. Why make things easy, if you can please Enterprise developers
> with a 100 lines equivalent, so they have something to show to their
> boss ;)
>
> Cheers
> Ralf.
>
> On Mon, Aug 25, 2008 at 6:26 AM, Josh McDonald <[EMAIL PROTECTED]
 
>  >> wrote:
> > That, plus "ew" :)
> >
> > addFrameScript() is not good for readability or maintainability
> when you're
> > doing Flex, and I'm sure if you're trying to hook into imported
> assets you
> > could use an event handler and simply check framenumber (and
> write a 5 line
> > closure-generator that lets you do that as easily as
> addFrameScript).
> >
> > -Josh
>
> 
>
> --
> Flexcoders Mailing List
> FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> 
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
> !
> Groups Links
>
>
> (Yahoo! ID required)
>
> mailto:[EMAIL PROTECTED]
 
>  >
>
>
>
>
>
>
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED] 
 >
> 

 



Re: [flexcoders] addFrameScript (will it be officially supported?)

2008-08-26 Thread Keith
I understand it's not good for readability and maintainability 
(potential recipe for code confusion),
but its one of those things where you would use discretion.
Spiderman also said: "With great power, comes great responsibility" :)

-- Keith H --
www.keith-hair.net



Josh McDonald wrote:
> For what it's worth, addFrameScript can't go away in player 10, or it 
> won't be able to run Flex 3 apps, SystemManager uses it. But, I'm not 
> an Adobe guy and that's just my conclusion, take it with a grain of 
> salt :)
>
> -Josh
>
> On Mon, Aug 25, 2008 at 4:57 PM, Ralf Bokelberg 
> <[EMAIL PROTECTED] > wrote:
>
> Exactly. Why make things easy, if you can please Enterprise developers
> with a 100 lines equivalent, so they have something to show to their
> boss ;)
>
> Cheers
> Ralf.
>
> On Mon, Aug 25, 2008 at 6:26 AM, Josh McDonald <[EMAIL PROTECTED]
> > wrote:
> > That, plus "ew" :)
> >
> > addFrameScript() is not good for readability or maintainability
> when you're
> > doing Flex, and I'm sure if you're trying to hook into imported
> assets you
> > could use an event handler and simply check framenumber (and
> write a 5 line
> > closure-generator that lets you do that as easily as
> addFrameScript).
> >
> > -Josh
>
> 
>
> --
> Flexcoders Mailing List
> FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> 
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
> !
> Groups Links
>
>
>(Yahoo! ID required)
>
>mailto:[EMAIL PROTECTED]
> 
>
>
>
>
>
>
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED] 
>  




[flexcoders] List rowCount in a datagrid, varying by row using ListItemRenderer

2008-08-26 Thread dorsetwest
Folks ...

I'm implementing a master/detail view in a datagrid column by means of
a custom component that extends List and uses a programmatic
listitemrenderer that renders as many rows in the list as the detail
for that column requires.

It works well ... up to a point.  Seems that the first row's list
depth locks in the depth for all succeeding rows.

I remember reading something in Alex's notes on itemRenderers that
suggests they are reused extensively.  Therefore I've taken care to
set rowCount carefully each time rendering takes place.  However while
the debugger shows the itemRenderer setting its parent's rowCount
correctly, the setting has no effect on the visual display, still
locked at the first row's detail depth.

Anybody have any thoughts as to why this might be happening, and how
the rowCount of a list in a column can be varied on a per column or
per row basis?

Also interested in other approaches; tempted by advancedDataGrid, but
seems very difficult to get working at all (due to some of the
classloading order bugs) and has a pretty scary list of internal
issues.  Ideas?

R.



Re: [flexcoders] Exit effect for popup when being removed

2008-08-26 Thread Boon Chew

Sorry, forgot to mention, the effects exit code has to be in a method body of 
actionscript code (as in effect.play( ), .etc.) when the popup is being 
removed, instead of just associating an effect instance with the removedEfffect 
style.  I have tried listening to FlexEvent.REMOVED and run the  exit effect 
handler there but that doesn't seem to work.

- boon

--- On Tue, 8/26/08, Boon Chew <[EMAIL PROTECTED]> wrote:
From: Boon Chew <[EMAIL PROTECTED]>
Subject: [flexcoders] Exit effect for popup when being removed
To: flexcoders@yahoogroups.com
Date: Tuesday, August 26, 2008, 6:11 PM











Hi,

What's the best way to have a popup menu play an exit effect when it is about 
to be removed by PopUpManager. removePopUp?

Should we play the effect first (say dissolve or wipe up), then on effect end 
call  removePopUp, or is there a more direct / simpler way?

- boon





  
  




 

















  

[flexcoders] Exit effect for popup when being removed

2008-08-26 Thread Boon Chew
Hi,

What's the best way to have a popup menu play an exit effect when it is about 
to be removed by PopUpManager.removePopUp?

Should we play the effect first (say dissolve or wipe up), then on effect end 
call  removePopUp, or is there a more direct / simpler way?

- boon



  

[flexcoders] help binding to combo box selectedItem

2008-08-26 Thread rss181919
i have a custom combo box and i seem to be having trouble binding and 
object variable to the selectedItem reference.  I have a panel that 
contains the combo box.  In the panel constructor I have the following:

BindingUtils.bindProperty(NtpIn, 'NtpClass', 
ClsCbxObj.selectedItem, 'ClsId');

In my change event on the combo box I reference the following:
Alert.show(ClsCbxObj.selectedItem.ClsId);
Alert.show(NtpIn.NtpClass);//NtpOut.NtpClass = 
ClsCbxObj.selectedItem.ClsId;

Line 1 results the correct ClsId.  Line 2 reflects the original setting 
initialized during construction.  So I know the value is changing but 
there is no binding dispatch event going out.  I am assuming I just 
need to set one of the properties somewhere to be bindable but which 
one.



RE: [flexcoders] Get all class definitions in a loaded swf ?

2008-08-26 Thread Gordon Smith
You could submit a patch to mxmlc, adding a compiler option that
autogenerates code that returns an Array of classes that got linked into
the SWF.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent: Tuesday, August 26, 2008 4:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Get all class definitions in a loaded swf ?

 

> I think it will always be more efficient to do the legwork and put
> descriptions in the SWFs. Introspection/Reflection APIs generally
aren't
> fast.

Reflection APIs generally aren't fast because they're written in the
same language (or run in the same machine, virtual or otherwise) as
the code they're reflecting on. For a *virtual* machine, the host
(i.e. Flash Player) already has to do the minimum reflection work of
getting class names from the SWF before your bytecode is even
executed...

Troy.

 



Re: [flexcoders] addFrameScript (will it be officially supported?)

2008-08-26 Thread Josh McDonald
For what it's worth, addFrameScript can't go away in player 10, or it won't
be able to run Flex 3 apps, SystemManager uses it. But, I'm not an Adobe guy
and that's just my conclusion, take it with a grain of salt :)

-Josh

On Mon, Aug 25, 2008 at 4:57 PM, Ralf Bokelberg <[EMAIL PROTECTED]>wrote:

> Exactly. Why make things easy, if you can please Enterprise developers
> with a 100 lines equivalent, so they have something to show to their
> boss ;)
>
> Cheers
> Ralf.
>
> On Mon, Aug 25, 2008 at 6:26 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> > That, plus "ew" :)
> >
> > addFrameScript() is not good for readability or maintainability when
> you're
> > doing Flex, and I'm sure if you're trying to hook into imported assets
> you
> > could use an event handler and simply check framenumber (and write a 5
> line
> > closure-generator that lets you do that as easily as addFrameScript).
> >
> > -Josh
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


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

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


RE: [flexcoders] Get all class definitions in a loaded swf ?

2008-08-26 Thread Alex Harui
I'm not sure all classes are "in the appdomain " at startup.  They are
in the SWF, but I'm not clear getDefinition will find it if other code
hasn't used that class yet.  It is at minimum, a string to hashcode
lookup.  All such things like Reflection also make the player larger and
sometimes make the vm slower so lots of reflection was left out to buy
speed given that it isn't frequently used and can be coded up some other
way.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent: Tuesday, August 26, 2008 4:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Get all class definitions in a loaded swf ?

 

> I think it will always be more efficient to do the legwork and put
> descriptions in the SWFs. Introspection/Reflection APIs generally
aren't
> fast.

Reflection APIs generally aren't fast because they're written in the
same language (or run in the same machine, virtual or otherwise) as
the code they're reflecting on. For a *virtual* machine, the host
(i.e. Flash Player) already has to do the minimum reflection work of
getting class names from the SWF before your bytecode is even
executed...

Troy.

 



[flexcoders] ExternalInterface and XML

2008-08-26 Thread Oscar Cortes

 I added an extra argument to a ExternalInterface called that was 
already working. This argument is an object with one of its 
properties being XML. 
 After I added the object, the JS function  was not being called 
anymore. After a little debugging, it looks like you cannot send XML 
or a nested property in an object with XML. I got this error message 
after calling ExternalInterface.call

Error #1090: XML parser failure: element is malformed.

I will probably end up copying the object and parse the XML to a 
string before passing to JS. But I am curious to hear if someone else 
has run into this issue and if they have any solution to it.

This is simplified example that shows the issue:

package {

import flash.display.Sprite;
import flash.external.ExternalInterface;

public class ExternalInterfaceTest extends Sprite
{
public function ExternalInterfaceTest()
{
callExternalFunction();
}

public function callExternalFunction():void{

var oFormat:Object = new Object();
var myXML:XML = 
test1;
oFormat.name="test";
oFormat.localXML = new XML( 
localXML.toXMLString());
ExternalInterface.marshallExceptions=true;
try{
ExternalInterface.call
("myJSFunction",oFormat);
} catch (e:Error){
trace(e.message);
   //Error #1090: XML parser failure: 
element is malformed.
}


}

}
}


and the JS function:


function myJSFunction(str) {
alert(str);
}


Thanks




Re: [flexcoders] Need Help and Guidance desperately

2008-08-26 Thread anuj sharma
Hi Rick
I will try to sketch my requirement and send it to you soon. That might help
to find what i am looking for.
Thanks for your suggestion.
Anuj

On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot <[EMAIL PROTECTED]>wrote:

>The seconds link was to a flow layout that would set you in the right
> direction... The other option was the first link which uses static
> positioning. Really, it depends on what you want the user experience to be
> like. If you could sketch out the solution – we could throw some code
> around.
>
> Rick Winscot
>
>
> On 8/25/08 10:24 PM, "anuj sharma" <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi Rick
> Thanks for the reply. Are there any recommendations about which layout
> component or container should i use or do i need to create my custom
> component for achieving this target. I am not sure which way to handle that
> layout. Please help me out
> Again Thanks a lot.
> Anuj
>
> On Mon, Aug 25, 2008 at 5:18 PM, anuj181 <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi
> I am using HBOX container to load images letting user drag image from
> one HBOX and dropping them in another (2nd)HBOX. I need to calculate
> the real estate of the HBOX in which the image has been dropped (i-e
> 2nd HBOX). The reason is that because I need the dropped image to get
> placed in an empty space within the 2nd HBOX.
> Is there any way I can calculate which space is empty in the HBOX and
> let my objects (images) to be placed only in the empty spaces within
> the HBOX (not the sapce already occupied by the placed images).Once
> the HBOX is full then I need to code in a way that images starts
> shrinking(upto some level) to accommodate more images.
> Please help me out in figuring out this problem. Any type of
> help/documentation/links in this direction will be highly appreciated.
> Thanks
> Anuj
>
>
>
>
>
>
>
>
>
>   
>


Re: [flexcoders] When do all the calls to Singleton.registerClass() happen, and can I beat it to the punch?

2008-08-26 Thread Josh McDonald
Don't want to do anything big, and the only time I'd need to be in frame1 is
to replace something that's already in frame 1, so it'd also be small,
although the original would still be linked in as they're hard-referenced in
the framework SWC. Ah, what I wouldn't give for a day with a few Player
developers to pick their brains - I'm awful envious of your access
sometimes, Alex :)

I know that I can expect any mx_internal stuff to change. That's what makes
it fun :) And you can be sure I won't do any complaining when funky things I
cook up break.

Anything I release that utilises evil tricks like this will have a big *only
works with SDK rev foo* label too :)

FWIW, the reason I'm interested is that I'd like to wrap a few ManagerImpls
(chiefly StyleSheetManager) rather than monkey-patching them, for the very
reason you mention - slightly lowered chance of an updated SDK wrecking
everything. Although monkey-patching would make for slightly fewer bytes, a
wrapper (that only adds hooks) wouldn't be very big.

-Josh

On Wed, Aug 27, 2008 at 9:13 AM, Alex Harui <[EMAIL PROTECTED]> wrote:

>  The whole point of frame1 is to be as small as possible so we can get the
> progress bar on screen.  If you put some other class in frame1 that pulls
> the rest of the framework in, you'll pretty much be hosed.
>
>
>
> I don't know which one you want to change, but most are in
> docFrameHandler.  This is undocumented territory and likely to change.
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Josh McDonald
> *Sent:* Tuesday, August 26, 2008 4:11 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] When do all the calls to
> Singleton.registerClass() happen, and can I beat it to the punch?
>
>
>
> I've been poking around inside, and it seems a few are done on frame 0 in
> initialise(), and the rest on frame 1 on docFrameHandler().
>
> It seems (although I haven't tested it yet) that if I sneak a class into
> the first frame and call a static method on a static const assignment I
> might be able to beat it, but I haven't seen any proof that you can move
> classes forward in the timeline, only backward. Another on the list of
> experiments to conduct :)
>
> -Josh
>
> On Wed, Aug 27, 2008 at 8:57 AM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> They happen early in SystemManager before [mixin], assuming the class you
> want is baked into the SWF.  I think CursorMgr, PopUpMgr are, but not
> others.  Check a  link-report to be sure.
>
>
>
> To beat them, subclass SM, override mx_internal docFrameHandler and
> register before calling super.   One of these days, we'll clean up this
> aspect of startup.
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Josh McDonald
> *Sent:* Tuesday, August 26, 2008 3:30 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] When do all the calls to Singleton.registerClass()
> happen, and can I beat it to the punch?
>
>
>
> Hey guys,
>
> I can't really use Builder to do this search due to all the [ExcludeClass]
> tags and such (and I don't have a builder project set up for the open source
> SDK atm). Where / when are the framework singletons registered? Can I beat
> it (chronologically) with [Mixin] (preferred) or calling a function in
> static (smelly)? Or would it require compile-time options or
> monkey-patching?
>
> Cheers,
>
> -Josh
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>
>  
>



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

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


[flexcoders] Re: Will Scene 7 turn Adobe into a competitor of it's ISVs like Microsoft ???

2008-08-26 Thread Tim Hoff

Don't worry about it Doug.  I haven't read one post from this guy that
offered anything useful or positive; which is a shame considering the
amout of experience that he claims to have.  On the one hand he
admonishes you for being sarcastic, while at the same time his own post
is riddled with sarcasm.  Better just to ignore j'offs like this.

-TH

--- In flexcoders@yahoogroups.com, "Doug McCune" <[EMAIL PROTECTED]> wrote:
>
> ummm, looks like I got served
>
> On Tue, Aug 26, 2008 at 3:58 PM, Robert Thompson
[EMAIL PROTECTED]:
>
> > Oh, btw, you may want to take out the gum in your mouth before
posting.
> >
> > It alleviates the "um" effect quite nicely.
> >
> > No need for that, it's a sarcastic lead-in. j'off (signing off)
> >
> > -r
> >
> > On Aug 26, 2008, at 12:53 PM, Doug McCune wrote:
> >
> > ummm, you're a flex consultant afraid of not having work because of
> > adobe? are you looking at the same market I am?
> >
> > The "adobe is cannibalizing it's user base" argument might hold a
> > little water when it comes to the products they're developing (pshop
> > express, buzzword, etc). But god knows there's more Flex consulting
> > work out there than anyone knows what to do with. Try crying wolf
once
> > any semblance of a problem emerges. And has someone really fired you
> > because they started using scene 7? really?
> >
> > Doug
> >
> > On Tue, Aug 26, 2008 at 9:30 AM, Robert Thompson
[EMAIL PROTECTED]>
> > wrote:
> > > Although I'll hold my breath until more and more info. is released
into
> > the
> > > public.
> > >
> > > I'm a little concerned that Adobe is starting to get the "Take
over the
> > > world" vision with Scene 7.0
> > >
> > > They appear to be heading towards a consulting type service (as
well as
> > > selling to us developers) where people can create FLEX like sites
and
> > > experiences that were the hope and promise of developers to
capitalize on
> > > buy spending, in my case, $1,777 on the FLEX 3.0 with ILOG Elixr
> > components.
> > >
> > > I have many projects planned in this area.
> > >
> > > But when will come the day when someone says, "Oh, I just purchase
Adobe
> > > Scene 7.0, we don't need to contract you any longer".
> > >
> > > If this turns out to be the case, it will ultimately result in the
same
> > > Entropy demise of IBM, which was followed by Microsoft, and which
I hope
> > > Adobe does not plan to fall into.
> > >
> > > Why would a developer dedicate years of his life to APIs from
Adobe when,
> > > ultimately, the way things are turning out, why don't we just get
down to
> > > the GPU level an 'C' Program NVIDIA CUDO to do the ultimate in 3-4
years
> > > time, rather than let someone sucker us into purchasing products,
very
> > > expensive ones, only to turn and compete with us.
> > >
> > > Things are not looking pretty and it appears to me that Open
Source, ala,
> > > Blender instead of Maya, CUDO and Apache SOAP instead of
Coldfusion, and
> > > DHTML will perhaps some new submissions to the W3C -- perhaps
that's the
> > new
> > > message us developers need to listen to.
> > >
> > > As Henry Rollins says in his great song "Liar", "Please, I'm
sorry, just
> > > give me anther chanceAh, ha, ha, ha, ha,
oo.SUCKER,
> > > Sucker.a, I like it (the money)I FEEL GOOD".
> > >
> > > Do you feel good Adobe? Where do you want to go today?
> > >
> > > I'll follow thisif this heads where I think it is, I will put
out the
> > > message.
> > >
> > > -r
> > >
> > >
> >
> >
> >
>





Re: [flexcoders] Positioning Custom ToolTips

2008-08-26 Thread Ethan Miller

Ah, that worked (using show). Thanks!

ethan



All the x/y values within your tooltip will be relative to the  
tooltip itself. Try in your custom tooltip simply setting this.x -=  
10; this.y -= 10; on creationComplete or something like that.  
Actually creationComplete is probably not the best option, the  
tooltip might be re-used by the manager, try SHOW or something,  
ADDED_TO_STAGE, perhaps...


-Josh

On Wed, Aug 27, 2008 at 8:42 AM, Ethan Miller  
<[EMAIL PROTECTED]>wrote:
Tried that, and it did use my custom component, but the x/y offset  
was still the same...


Also dug around in the bowels of the actual draw routines of the  
tooltip border class, but couldn't quite figure out what there was  
doing the x/y offset...?   The drawRoundRect position values are all  
between 0 and 4 but actual tooltips (in their default flex state)  
usually seem like they're offset by 20 - 30 px


cheers, ethan



TOOL_TIP_SHOW doesn't bubble, so it's probably not the best way.  
I'd say simply subclassing ToolTip and setting  
ToolTipManager.toolTipClass will be your best bet.


-Josh

On Wed, Aug 27, 2008 at 7:57 AM, Ethan Miller  
<[EMAIL PROTECTED]>wrote:

Example of how to intercept TOOL_TIP_SHOW, please.

Alternately, all I really want to do is change the horizontal and  
vertical offset of the ToolTIp from the item it describes. Any  
easy, app-wide way to do this?


cheers, ethan




I think you intercept TOOL_TIP_SHOW and give it a different  
position.  The ToolTipMgr should have placed it already where it  
think it should be.



You can set the ToolTipManager.toolTipClass to have all instances  
of tooltips be something else, but you should extend ToolTip in  
your custom ToolTip.



From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Ethan Miller

Sent: Tuesday, August 26, 2008 9:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Positioning Custom ToolTips


Greetings -

Per the Flex documentation, I'm using a custom component as a  
ToolTip

by intercepting the toolTipCreate event, as describe below:

"In your application, you can create a custom ToolTip by  
intercepting
the toolTipCreate event handler of the target component. In the  
event

handler, you instantiate the new ToolTip and set its properties. You
then point the toolTipproperty of the ToolTipEvent object to the new
ToolTip."

Unlike using the ToolTip Manager, however, which accepts x,y
positioning arguments, it's unclear how to position the custom  
tooltip

invoked using the intercept and custom class approach

So, this leaves me with two questions:

1. Using a custom class or component created using the incercept
approach, is there a way to position the tip?

or

2. Is there way to use a custom class or component for the tip when
using ToolTip Manager to create them?

Thanks!

ethan








--

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


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






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


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






Re: [flexcoders] Will Scene 7 turn Adobe into a competitor of it's ISVs like Microsoft ???

2008-08-26 Thread Josh McDonald
:)

But I guess I can see his point, I mean there aren't any job openings for
developers on the Microsoft platforms any more, right?

On Wed, Aug 27, 2008 at 9:07 AM, Doug McCune <[EMAIL PROTECTED]> wrote:

>  ummm, looks like I got served
>
>
>
>


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

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


RE: [flexcoders] When do all the calls to Singleton.registerClass() happen, and can I beat it to the punch?

2008-08-26 Thread Alex Harui
The whole point of frame1 is to be as small as possible so we can get
the progress bar on screen.  If you put some other class in frame1 that
pulls the rest of the framework in, you'll pretty much be hosed.

 

I don't know which one you want to change, but most are in
docFrameHandler.  This is undocumented territory and likely to change.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Tuesday, August 26, 2008 4:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] When do all the calls to
Singleton.registerClass() happen, and can I beat it to the punch?

 

I've been poking around inside, and it seems a few are done on frame 0
in initialise(), and the rest on frame 1 on docFrameHandler().

It seems (although I haven't tested it yet) that if I sneak a class into
the first frame and call a static method on a static const assignment I
might be able to beat it, but I haven't seen any proof that you can move
classes forward in the timeline, only backward. Another on the list of
experiments to conduct :)

-Josh

On Wed, Aug 27, 2008 at 8:57 AM, Alex Harui <[EMAIL PROTECTED]> wrote:

They happen early in SystemManager before [mixin], assuming the class
you want is baked into the SWF.  I think CursorMgr, PopUpMgr are, but
not others.  Check a  link-report to be sure.

 

To beat them, subclass SM, override mx_internal docFrameHandler and
register before calling super.   One of these days, we'll clean up this
aspect of startup.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Tuesday, August 26, 2008 3:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] When do all the calls to Singleton.registerClass()
happen, and can I beat it to the punch?

 

Hey guys,

I can't really use Builder to do this search due to all the
[ExcludeClass] tags and such (and I don't have a builder project set up
for the open source SDK atm). Where / when are the framework singletons
registered? Can I beat it (chronologically) with [Mixin] (preferred) or
calling a function in static (smelly)? Or would it require compile-time
options or monkey-patching?

Cheers,

-Josh

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

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




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

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

 



Re: [flexcoders] Get all class definitions in a loaded swf ?

2008-08-26 Thread Troy Gilbert
> I think it will always be more efficient to do the legwork and put
> descriptions in the SWFs.  Introspection/Reflection APIs generally aren't
> fast.

Reflection APIs generally aren't fast because they're written in the
same language (or run in the same machine, virtual or otherwise) as
the code they're reflecting on. For a *virtual* machine, the host
(i.e. Flash Player) already has to do the minimum reflection work of
getting class names from the SWF before your bytecode is even
executed...

Troy.


Re: [flexcoders] When do all the calls to Singleton.registerClass() happen, and can I beat it to the punch?

2008-08-26 Thread Josh McDonald
I've been poking around inside, and it seems a few are done on frame 0 in
initialise(), and the rest on frame 1 on docFrameHandler().

It seems (although I haven't tested it yet) that if I sneak a class into the
first frame and call a static method on a static const assignment I might be
able to beat it, but I haven't seen any proof that you can move classes
forward in the timeline, only backward. Another on the list of experiments
to conduct :)

-Josh

On Wed, Aug 27, 2008 at 8:57 AM, Alex Harui <[EMAIL PROTECTED]> wrote:

>  They happen early in SystemManager before [mixin], assuming the class you
> want is baked into the SWF.  I think CursorMgr, PopUpMgr are, but not
> others.  Check a  link-report to be sure.
>
>
>
> To beat them, subclass SM, override mx_internal docFrameHandler and
> register before calling super.   One of these days, we'll clean up this
> aspect of startup.
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Josh McDonald
> *Sent:* Tuesday, August 26, 2008 3:30 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] When do all the calls to Singleton.registerClass()
> happen, and can I beat it to the punch?
>
>
>
> Hey guys,
>
> I can't really use Builder to do this search due to all the [ExcludeClass]
> tags and such (and I don't have a builder project set up for the open source
> SDK atm). Where / when are the framework singletons registered? Can I beat
> it (chronologically) with [Mixin] (preferred) or calling a function in
> static (smelly)? Or would it require compile-time options or
> monkey-patching?
>
> Cheers,
>
> -Josh
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>
>  
>



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

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


Re: [flexcoders] Will Scene 7 turn Adobe into a competitor of it's ISVs like Microsoft ???

2008-08-26 Thread Doug McCune
ummm, looks like I got served

On Tue, Aug 26, 2008 at 3:58 PM, Robert Thompson <[EMAIL PROTECTED]>wrote:

>   Oh, btw, you may want to take out the gum in your mouth before posting.
>
> It alleviates the "um" effect quite nicely.
>
> No need for that, it's a sarcastic lead-in. j'off (signing off)
>
> -r
>
> On Aug 26, 2008, at 12:53 PM, Doug McCune wrote:
>
> ummm, you're a flex consultant afraid of not having work because of
> adobe? are you looking at the same market I am?
>
> The "adobe is cannibalizing it's user base" argument might hold a
> little water when it comes to the products they're developing (pshop
> express, buzzword, etc). But god knows there's more Flex consulting
> work out there than anyone knows what to do with. Try crying wolf once
> any semblance of a problem emerges. And has someone really fired you
> because they started using scene 7? really?
>
> Doug
>
> On Tue, Aug 26, 2008 at 9:30 AM, Robert Thompson <[EMAIL 
> PROTECTED]>
> wrote:
> > Although I'll hold my breath until more and more info. is released into
> the
> > public.
> >
> > I'm a little concerned that Adobe is starting to get the "Take over the
> > world" vision with Scene 7.0
> >
> > They appear to be heading towards a consulting type service (as well as
> > selling to us developers) where people can create FLEX like sites and
> > experiences that were the hope and promise of developers to capitalize on
> > buy spending, in my case, $1,777 on the FLEX 3.0 with ILOG Elixr
> components.
> >
> > I have many projects planned in this area.
> >
> > But when will come the day when someone says, "Oh, I just purchase Adobe
> > Scene 7.0, we don't need to contract you any longer".
> >
> > If this turns out to be the case, it will ultimately result in the same
> > Entropy demise of IBM, which was followed by Microsoft, and which I hope
> > Adobe does not plan to fall into.
> >
> > Why would a developer dedicate years of his life to APIs from Adobe when,
> > ultimately, the way things are turning out, why don't we just get down to
> > the GPU level an 'C' Program NVIDIA CUDO to do the ultimate in 3-4 years
> > time, rather than let someone sucker us into purchasing products, very
> > expensive ones, only to turn and compete with us.
> >
> > Things are not looking pretty and it appears to me that Open Source, ala,
> > Blender instead of Maya, CUDO and Apache SOAP instead of Coldfusion, and
> > DHTML will perhaps some new submissions to the W3C -- perhaps that's the
> new
> > message us developers need to listen to.
> >
> > As Henry Rollins says in his great song "Liar", "Please, I'm sorry, just
> > give me anther chanceAh, ha, ha, ha, ha, oo.SUCKER,
> > Sucker.a, I like it (the money)I FEEL GOOD".
> >
> > Do you feel good Adobe? Where do you want to go today?
> >
> > I'll follow thisif this heads where I think it is, I will put out the
> > message.
> >
> > -r
> >
> >
>
>
>  


Re: [flexcoders] Will Scene 7 turn Adobe into a competitor of it's ISVs like Microsoft ???

2008-08-26 Thread Robert Thompson

Oh, btw, you may want to take out the gum in your mouth before posting.

It alleviates the "um" effect quite nicely.

No need for that, it's a sarcastic lead-in. j'off (signing off)

-r

On Aug 26, 2008, at 12:53 PM, Doug McCune wrote:


ummm, you're a flex consultant afraid of not having work because of
adobe? are you looking at the same market I am?

The "adobe is cannibalizing it's user base" argument might hold a
little water when it comes to the products they're developing (pshop
express, buzzword, etc). But god knows there's more Flex consulting
work out there than anyone knows what to do with. Try crying wolf once
any semblance of a problem emerges. And has someone really fired you
because they started using scene 7? really?

Doug

On Tue, Aug 26, 2008 at 9:30 AM, Robert Thompson  
<[EMAIL PROTECTED]> wrote:
> Although I'll hold my breath until more and more info. is released  
into the

> public.
>
> I'm a little concerned that Adobe is starting to get the "Take  
over the

> world" vision with Scene 7.0
>
> They appear to be heading towards a consulting type service (as  
well as
> selling to us developers) where people can create FLEX like sites  
and
> experiences that were the hope and promise of developers to  
capitalize on
> buy spending, in my case, $1,777 on the FLEX 3.0 with ILOG Elixr  
components.

>
> I have many projects planned in this area.
>
> But when will come the day when someone says, "Oh, I just purchase  
Adobe

> Scene 7.0, we don't need to contract you any longer".
>
> If this turns out to be the case, it will ultimately result in the  
same
> Entropy demise of IBM, which was followed by Microsoft, and which  
I hope

> Adobe does not plan to fall into.
>
> Why would a developer dedicate years of his life to APIs from  
Adobe when,
> ultimately, the way things are turning out, why don't we just get  
down to
> the GPU level an 'C' Program NVIDIA CUDO to do the ultimate in 3-4  
years
> time, rather than let someone sucker us into purchasing products,  
very

> expensive ones, only to turn and compete with us.
>
> Things are not looking pretty and it appears to me that Open  
Source, ala,
> Blender instead of Maya, CUDO and Apache SOAP instead of  
Coldfusion, and
> DHTML will perhaps some new submissions to the W3C -- perhaps  
that's the new

> message us developers need to listen to.
>
> As Henry Rollins says in his great song "Liar", "Please, I'm  
sorry, just
> give me anther chanceAh, ha, ha, ha, ha,  
oo.SUCKER,

> Sucker.a, I like it (the money)I FEEL GOOD".
>
> Do you feel good Adobe? Where do you want to go today?
>
> I'll follow thisif this heads where I think it is, I will put  
out the

> message.
>
> -r
>
>






RE: [flexcoders] generate size report in flex?

2008-08-26 Thread Alex Harui
Size of what?  Try -link-report, see if that has what you want

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Yochikoh Haruomi
Sent: Tuesday, August 26, 2008 3:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] generate size report in flex?

 

Dear list,
In flex builder 3, does anybody know if  there is a way to generate size
report ?
Thanks!

 

 



Re: [flexcoders] Will Scene 7 turn Adobe into a competitor of it's ISVs like Microsoft ???

2008-08-26 Thread Robert Thompson

Nobody has fired me Mr. Hannibal.

I'm a freelance developer.

I'm just seeing signs of some things that appeared before with MS as  
the line between applications and developer tools blurred in the 90's  
and had bad results.


I'm not considering the impact of this yet, I'm trying to recognize  
some potential warning signs and look into it.


And Fyi, igit, I just got off the phone with them, Robert (also my  
name) from Scene7 and he was quite kind.


And may I remind you that I noted below that a reserve full judgement  
until I look fully into this.


So, if you please, end it at that.

It's simply something people should be aware of.

I ask you kindly not to turn this into a stupid argument when I'm  
stating some very real things I've seen happen in the industry and  
time will tell where this is headed.


This has nothing to do with anyone getting fired; it has to do with  
future implications.


Leave it at that, j'off (signing off for now :)

-r

On Aug 26, 2008, at 12:53 PM, Doug McCune wrote:


ummm, you're a flex consultant afraid of not having work because of
adobe? are you looking at the same market I am?

The "adobe is cannibalizing it's user base" argument might hold a
little water when it comes to the products they're developing (pshop
express, buzzword, etc). But god knows there's more Flex consulting
work out there than anyone knows what to do with. Try crying wolf once
any semblance of a problem emerges. And has someone really fired you
because they started using scene 7? really?

Doug

On Tue, Aug 26, 2008 at 9:30 AM, Robert Thompson  
<[EMAIL PROTECTED]> wrote:
> Although I'll hold my breath until more and more info. is released  
into the

> public.
>
> I'm a little concerned that Adobe is starting to get the "Take  
over the

> world" vision with Scene 7.0
>
> They appear to be heading towards a consulting type service (as  
well as
> selling to us developers) where people can create FLEX like sites  
and
> experiences that were the hope and promise of developers to  
capitalize on
> buy spending, in my case, $1,777 on the FLEX 3.0 with ILOG Elixr  
components.

>
> I have many projects planned in this area.
>
> But when will come the day when someone says, "Oh, I just purchase  
Adobe

> Scene 7.0, we don't need to contract you any longer".
>
> If this turns out to be the case, it will ultimately result in the  
same
> Entropy demise of IBM, which was followed by Microsoft, and which  
I hope

> Adobe does not plan to fall into.
>
> Why would a developer dedicate years of his life to APIs from  
Adobe when,
> ultimately, the way things are turning out, why don't we just get  
down to
> the GPU level an 'C' Program NVIDIA CUDO to do the ultimate in 3-4  
years
> time, rather than let someone sucker us into purchasing products,  
very

> expensive ones, only to turn and compete with us.
>
> Things are not looking pretty and it appears to me that Open  
Source, ala,
> Blender instead of Maya, CUDO and Apache SOAP instead of  
Coldfusion, and
> DHTML will perhaps some new submissions to the W3C -- perhaps  
that's the new

> message us developers need to listen to.
>
> As Henry Rollins says in his great song "Liar", "Please, I'm  
sorry, just
> give me anther chanceAh, ha, ha, ha, ha,  
oo.SUCKER,

> Sucker.a, I like it (the money)I FEEL GOOD".
>
> Do you feel good Adobe? Where do you want to go today?
>
> I'll follow thisif this heads where I think it is, I will put  
out the

> message.
>
> -r
>
>






RE: [flexcoders] When do all the calls to Singleton.registerClass() happen, and can I beat it to the punch?

2008-08-26 Thread Alex Harui
They happen early in SystemManager before [mixin], assuming the class
you want is baked into the SWF.  I think CursorMgr, PopUpMgr are, but
not others.  Check a  link-report to be sure.

 

To beat them, subclass SM, override mx_internal docFrameHandler and
register before calling super.   One of these days, we'll clean up this
aspect of startup.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Tuesday, August 26, 2008 3:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] When do all the calls to Singleton.registerClass()
happen, and can I beat it to the punch?

 

Hey guys,

I can't really use Builder to do this search due to all the
[ExcludeClass] tags and such (and I don't have a builder project set up
for the open source SDK atm). Where / when are the framework singletons
registered? Can I beat it (chronologically) with [Mixin] (preferred) or
calling a function in static (smelly)? Or would it require compile-time
options or monkey-patching?

Cheers,

-Josh

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

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

 



RE: [flexcoders] Get all class definitions in a loaded swf ?

2008-08-26 Thread Alex Harui
AFAIK, it is too late for FP10.   There may already be an enhancement
request for FP11, but iif not, feel free to file one.

 

Today, you can load the SWF as bytes, unpack the SWF and get the list of
classes, then loadbytes the SWF.

 

I think it will always be more efficient to do the legwork and put
descriptions in the SWFs.  Introspection/Reflection APIs generally
aren't fast.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent: Tuesday, August 26, 2008 3:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Get all class definitions in a loaded swf ?

 

> There is no way to find out the classes in a SWF (not without a lot of
> work).

Really? That's very disappointing. The information is there (the
Player finds it, obviously), and is *far* easier for the Player to
grab than whatever hoops I'd have to jump through... kinda feels like
a hole that needs to be filled. Any chance the API for Flash 10 could
be updated to include this?

Just curious, what would be the "lot of work"? Do you mean I'd
basically have to parse the SWF's bytecode to grab the info?

> Best option is to put something in each SWF that describes what is
> in it. You will probably always have to use getDefinition though

I've done this in the past... I had hoped there was a better path I
had just been too lazy to find.

Another route I've taken for SWFs generated by the Flash IDE is to
have a "known" MovieClip (or the stage) contain instances of the
classes I'm looking for and then just do a reverse look-up on the
children...

Damn, that seems like I'm doing a *lot* of work that would be
incredibly trivial for the Player to do natively (and in fact, must
already do to some degree). What a shame...

Troy.

 



[flexcoders] GPS Plot and LineChart Tooltip

2008-08-26 Thread mattbsheehan
I have a GPS plot of a recent run. In Flex I have overlaid this on a
map. I have also created a LineChart of altitude (all readings were
taken with the new Garmin 405). What I would like to do it when
clicking a point (on the GPS trail) on the map to then pop up as a
tooltip of this point on the LineChart (each point on the map
corresponds to a point in the LineChart). I wondered if anybody knew
whether this could be done and how?
Many Thanks
--Matt Sheehan



RE: [flexcoders] Positioning Custom ToolTips

2008-08-26 Thread Alex Harui
The tooltipmanager positions tips according to available screen size and
what not.  DataGridItemRenderer uses TOOL_TIP_SHOW to reposition the
tooltip as a datatip.

 

There is no way to trick the positioning logic per-se.  I suppose a
custom class could respond to any given x,y and actual give itself a
shove.

 

You can try to override ToolTipManager with your own.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ethan Miller
Sent: Tuesday, August 26, 2008 3:42 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Positioning Custom ToolTips

 

Tried that, and it did use my custom component, but the x/y offset was
still the same...

 

Also dug around in the bowels of the actual draw routines of the tooltip
border class, but couldn't quite figure out what there was doing the x/y
offset...?   The drawRoundRect position values are all between 0 and 4
but actual tooltips (in their default flex state) usually seem like
they're offset by 20 - 30 px

 

cheers, ethan





 

TOOL_TIP_SHOW doesn't bubble, so it's probably not the best way. I'd say
simply subclassing ToolTip and setting ToolTipManager.toolTipClass will
be your best bet.

-Josh

On Wed, Aug 27, 2008 at 7:57 AM, Ethan Miller
<[EMAIL PROTECTED]>wrote:

Example of how to intercept TOOL_TIP_SHOW, please. 

 

Alternately, all I really want to do is change the horizontal and
vertical offset of the ToolTIp from the item it describes. Any easy,
app-wide way to do this?

 

cheers, ethan

 





 

I think you intercept TOOL_TIP_SHOW and give it a different position.
The ToolTipMgr should have placed it already where it think it should
be.

 

You can set the ToolTipManager.toolTipClass to have all instances of
tooltips be something else, ! but you should extend ToolTip in your
custom ToolTip.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ethan Miller
Sent: Tuesd ay, August 26, 2008 9:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Positioning Custom ToolTips

 

Greetings -

Per the Flex documentation, I'm using a custom component as a ToolTip 
by intercepting the toolTipCreate event, as describe below:

"In your application, you can create a custom ToolTip by intercepting 
the toolTipCreate event handler of the target componen! t. In the event 
handler, you instantiate the new ToolTip and set its properties. You 
then point the toolTipproperty of the ToolTipEvent object to the new 
ToolTip."

Unlike using the ToolTip Manager, however, which accepts x,y 
positioning arguments, it's unclear how to position the custom tooltip 
invoked using the intercept and custom class approach

So, this leaves me with two questions:

1. Using a custom class or component created using the incercept 
approach, is there a way to position the tip?

or

2. Is there way to use a custom class or component for the tip when 
using ToolTip Manager to create them?

Thanks!

ethan

 

 

 




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

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

 

 

 



Re: [flexcoders] Positioning Custom ToolTips

2008-08-26 Thread Josh McDonald
All the x/y values within your tooltip will be relative to the tooltip
itself. Try in your custom tooltip simply setting this.x -= 10; this.y -=
10; on creationComplete or something like that. Actually creationComplete is
probably not the best option, the tooltip might be re-used by the manager,
try SHOW or something, ADDED_TO_STAGE, perhaps...

-Josh

On Wed, Aug 27, 2008 at 8:42 AM, Ethan Miller <[EMAIL PROTECTED]>wrote:

>  Tried that, and it did use my custom component, but the x/y offset was
> still the same...
> Also dug around in the bowels of the actual draw routines of the tooltip
> border class, but couldn't quite figure out what there was doing the x/y
> offset...?   The drawRoundRect position values are all between 0 and 4 but
> actual tooltips (in their default flex state) usually seem like they're
> offset by 20 - 30 px
>
> cheers, ethan
>
>
> TOOL_TIP_SHOW doesn't bubble, so it's probably not the best way. I'd say
> simply subclassing ToolTip and setting ToolTipManager.toolTipClass will be
> your best bet.
>
> -Josh
>
> On Wed, Aug 27, 2008 at 7:57 AM, Ethan Miller <[EMAIL PROTECTED]>
> wrote:
>
>> Example of how to intercept TOOL_TIP_SHOW, please.
>> Alternately, all I really want to do is change the horizontal and vertical
>> offset of the ToolTIp from the item it describes. Any easy, app-wide way to
>> do this?
>>
>> cheers, ethan
>>
>>
>>
>> I think you intercept TOOL_TIP_SHOW and give it a different position.  The
>> ToolTipMgr should have placed it already where it think it should be.
>>
>>
>> You can set the ToolTipManager.toolTipClass to have all instances of
>> tooltips be something else, but you should extend ToolTip in your custom
>> ToolTip.
>>
>> --
>>
>> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
>> Behalf Of *Ethan Miller
>> *Sent:* Tuesday, August 26, 2008 9:59 AM
>> *To:* flexcoders@yahoogroups.com
>> *Subject:* [flexcoders] Positioning Custom ToolTips
>>
>>
>> Greetings -
>>
>> Per the Flex documentation, I'm using a custom component as a ToolTip
>> by intercepting the toolTipCreate event, as describe below:
>>
>> "In your application, you can create a custom ToolTip by intercepting
>> the toolTipCreate event handler of the target component. In the event
>> handler, you instantiate the new ToolTip and set its properties. You
>> then point the toolTipproperty of the ToolTipEvent object to the new
>> ToolTip."
>>
>> Unlike using the ToolTip Manager, however, which accepts x,y
>> positioning arguments, it's unclear how to position the custom tooltip
>> invoked using the intercept and custom class approach
>>
>> So, this leaves me with two questions:
>>
>> 1. Using a custom class or component created using the incercept
>> approach, is there a way to position the tip?
>>
>> or
>>
>> 2. Is there way to use a custom class or component for the tip when
>> using ToolTip Manager to create them?
>>
>> Thanks!
>>
>> ethan
>>
>>
>>
>>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>
>
> 
>



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

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


Re: [flexcoders] Need Help and Guidance desperately

2008-08-26 Thread anuj sharma
Hi Doug
How would i embed that open source (FloxBox) container in my project.I could
not find the source code for that container.
Please let me know
Thanks
Anuj

On Mon, Aug 25, 2008 at 10:04 PM, Doug McCune <[EMAIL PROTECTED]> wrote:

>   I think you might be asking the wrong question. You asked how to know if
> the area that the user dropped an item was the empty space or the space
> taken up by other items in the container. But then you want all the items in
> the container to resize to become smaller to accomodate more items in the
> container if the user drops too many. Why not just let the user drop items
> anywhere in the container and just add them to the container? Then all you
> have to do is create a container that scales the children to make sure that
> they always fit within the bounds.
>
> If you force the children to always be the same width then this should be
> really easy to figure out what scaling you should apply to the children. If
> not then you'll have to do more complex measurement. I'd suggest starting
> with teh flowbox container in FlexLib (flexlib.net), and if that doesn't
> suit your needs then either extend that or try using the Tile container. It
> doesn't sound like you want to use a list control (ie TileList) because you
> always want all the children visible, so you never want the list to scroll,
> and therefore you don't benefit from itemrenderers, so using a list will
> just complicate things unneccesarily.
>
> Doug
>
>
> On Mon, Aug 25, 2008 at 9:42 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>
>>   I agree, I'd use a couple of TileLists and a simple inline
>> itemrenderer. Shouldn't be too difficult really.
>>
>> -Josh
>>
>>
>> On Tue, Aug 26, 2008 at 2:31 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>>
>>>  TileList?
>>>
>>>
>>>  --
>>>
>>> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
>>> Behalf Of *Rick Winscot
>>> *Sent:* Monday, August 25, 2008 7:47 PM
>>> *To:* flexcoders@yahoogroups.com
>>> *Subject:* Re: [flexcoders] Need Help and Guidance desperately
>>>
>>>
>>>
>>> The seconds link was to a flow layout that would set you in the right
>>> direction... The other option was the first link which uses static
>>> positioning. Really, it depends on what you want the user experience to be
>>> like. If you could sketch out the solution – we could throw some code
>>> around.
>>>
>>> Rick Winscot
>>>
>>>
>>> On 8/25/08 10:24 PM, "anuj sharma" <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>>
>>> Hi Rick
>>> Thanks for the reply. Are there any recommendations about which layout
>>> component or container should i use or do i need to create my custom
>>> component for achieving this target. I am not sure which way to handle that
>>> layout. Please help me out
>>> Again Thanks a lot.
>>> Anuj
>>>
>>> On Mon, Aug 25, 2008 at 5:18 PM, anuj181 <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>>
>>> Hi
>>> I am using HBOX container to load images letting user drag image from
>>> one HBOX and dropping them in another (2nd)HBOX. I need to calculate
>>> the real estate of the HBOX in which the image has been dropped (i-e
>>> 2nd HBOX). The reason is that because I need the dropped image to get
>>> placed in an empty space within the 2nd HBOX.
>>> Is there any way I can calculate which space is empty in the HBOX and
>>> let my objects (images) to be placed only in the empty spaces within
>>> the HBOX (not the sapce already occupied by the placed images).Once
>>> the HBOX is full then I need to code in a way that images starts
>>> shrinking(upto some level) to accommodate more images.
>>> Please help me out in figuring out this problem. Any type of
>>> help/documentation/links in this direction will be highly appreciated.
>>> Thanks
>>> Anuj
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>>
>> :: Josh 'G-Funk' McDonald
>> :: 0437 221 380 :: [EMAIL PROTECTED]
>>
>
>  
>


Re: [flexcoders] Positioning Custom ToolTips

2008-08-26 Thread Ethan Miller
Tried that, and it did use my custom component, but the x/y offset was  
still the same...


Also dug around in the bowels of the actual draw routines of the  
tooltip border class, but couldn't quite figure out what there was  
doing the x/y offset...?   The drawRoundRect position values are all  
between 0 and 4 but actual tooltips (in their default flex state)  
usually seem like they're offset by 20 - 30 px


cheers, ethan



TOOL_TIP_SHOW doesn't bubble, so it's probably not the best way. I'd  
say simply subclassing ToolTip and setting  
ToolTipManager.toolTipClass will be your best bet.


-Josh

On Wed, Aug 27, 2008 at 7:57 AM, Ethan Miller  
<[EMAIL PROTECTED]>wrote:

Example of how to intercept TOOL_TIP_SHOW, please.

Alternately, all I really want to do is change the horizontal and  
vertical offset of the ToolTIp from the item it describes. Any easy,  
app-wide way to do this?


cheers, ethan




I think you intercept TOOL_TIP_SHOW and give it a different  
position.  The ToolTipMgr should have placed it already where it  
think it should be.



You can set the ToolTipManager.toolTipClass to have all instances  
of tooltips be something else, but you should extend ToolTip in  
your custom ToolTip.



From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Ethan Miller

Sent: Tuesday, August 26, 2008 9:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Positioning Custom ToolTips


Greetings -

Per the Flex documentation, I'm using a custom component as a ToolTip
by intercepting the toolTipCreate event, as describe below:

"In your application, you can create a custom ToolTip by intercepting
the toolTipCreate event handler of the target component. In the event
handler, you instantiate the new ToolTip and set its properties. You
then point the toolTipproperty of the ToolTipEvent object to the new
ToolTip."

Unlike using the ToolTip Manager, however, which accepts x,y
positioning arguments, it's unclear how to position the custom  
tooltip

invoked using the intercept and custom class approach

So, this leaves me with two questions:

1. Using a custom class or component created using the incercept
approach, is there a way to position the tip?

or

2. Is there way to use a custom class or component for the tip when
using ToolTip Manager to create them?

Thanks!

ethan








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


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






Re: [flexcoders] Get all class definitions in a loaded swf ?

2008-08-26 Thread Troy Gilbert
> There is no way to find out the classes in a SWF (not without a lot of
> work).

Really? That's very disappointing. The information is there (the
Player finds it, obviously), and is *far* easier for the Player to
grab than whatever hoops I'd have to jump through... kinda feels like
a hole that needs to be filled. Any chance the API for Flash 10 could
be updated to include this?

Just curious, what would be the "lot of work"? Do you mean I'd
basically have to parse the SWF's bytecode to grab the info?

> Best option is to put something in each SWF that describes what is
> in it.  You will probably always have to use getDefinition though

I've done this in the past... I had hoped there was a better path I
had just been too lazy to find.

Another route I've taken for SWFs generated by the Flash IDE is to
have a "known" MovieClip (or the stage) contain instances of the
classes I'm looking for and then just do a reverse look-up on the
children...

Damn, that seems like I'm doing a *lot* of work that would be
incredibly trivial for the Player to do natively (and in fact, must
already do to some degree). What a shame...

Troy.


RE: [flexcoders] Stop Flex closing whole browser

2008-08-26 Thread Jim Hayes
I felt your pain, I pretty quickly changed my flexbuilder preference to the 
browser that I don't usually use for general browsing.
In my case that's internet explorer, I guess on mac you might choose firefox or 
opera if you main one is safari?

There may be some way to configure safari to do what you want it to (I recall 
one for firefox to get it to launch a new window as a default action rather 
than a tab),
but for me it seemed rather harder work than just using a different browser for 
(most of) my debugging in flexbuilder.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Guy Morton
Sent: Tue 26/08/2008 23:09
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Stop Flex closing whole browser
 
I develop on mac os x using firefox and fb just opens a new tab when I  
run my app. It doesn't close any windows or tabs when I stop an app.  
maybe you should try ff instead?

On 27/08/2008, at 4:53 AM, Nik Derewianka wrote:

> Hi,
>
> So you have a whole bunch of pages open for your docs and samples, you
> compile your app, it launches and then hits an error and throws you
> back into debug mode in Flex. Sometimes when you press interrupt it
> will close the browser window instead of your flex app tab and you
> lose all your docs and references. Every time, without fail, if you
> do not close the previously launched flexapp tab, Flex will launch the
> newly compiled version and then half second later close the entire
> browser window. This is with Safari on OS X.
>
> This is such a productivity killer - is there some patch, hack,
> setting that i can change to stop this from happening ??
>
> Regards,
> Nik
>
> 



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

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

[flexcoders] When do all the calls to Singleton.registerClass() happen, and can I beat it to the punch?

2008-08-26 Thread Josh McDonald
Hey guys,

I can't really use Builder to do this search due to all the [ExcludeClass]
tags and such (and I don't have a builder project set up for the open source
SDK atm). Where / when are the framework singletons registered? Can I beat
it (chronologically) with [Mixin] (preferred) or calling a function in
static (smelly)? Or would it require compile-time options or
monkey-patching?

Cheers,

-Josh

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

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


[flexcoders] generate size report in flex?

2008-08-26 Thread Yochikoh Haruomi
Dear list,
In flex builder 3, does anybody know if  there is a way to generate size report 
?
Thanks!



  

Re: [flexcoders] Positioning Custom ToolTips

2008-08-26 Thread Josh McDonald
TOOL_TIP_SHOW doesn't bubble, so it's probably not the best way. I'd say
simply subclassing ToolTip and setting ToolTipManager.toolTipClass will be
your best bet.

-Josh

On Wed, Aug 27, 2008 at 7:57 AM, Ethan Miller <[EMAIL PROTECTED]>wrote:

>  Example of how to intercept TOOL_TIP_SHOW, please.
> Alternately, all I really want to do is change the horizontal and vertical
> offset of the ToolTIp from the item it describes. Any easy, app-wide way to
> do this?
>
> cheers, ethan
>
>
>
> I think you intercept TOOL_TIP_SHOW and give it a different position.  The
> ToolTipMgr should have placed it already where it think it should be.
>
>
>
> You can set the ToolTipManager.toolTipClass to have all instances of
> tooltips be something else, but you should extend ToolTip in your custom
> ToolTip.
>
>
> --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Ethan Miller
> *Sent:* Tuesday, August 26, 2008 9:59 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Positioning Custom ToolTips
>
>
>
> Greetings -
>
> Per the Flex documentation, I'm using a custom component as a ToolTip
> by intercepting the toolTipCreate event, as describe below:
>
> "In your application, you can create a custom ToolTip by intercepting
> the toolTipCreate event handler of the target component. In the event
> handler, you instantiate the new ToolTip and set its properties. You
> then point the toolTipproperty of the ToolTipEvent object to the new
> ToolTip."
>
> Unlike using the ToolTip Manager, however, which accepts x,y
> positioning arguments, it's unclear how to position the custom tooltip
> invoked using the intercept and custom class approach
>
> So, this leaves me with two questions:
>
> 1. Using a custom class or component created using the incercept
> approach, is there a way to position the tip?
>
> or
>
> 2. Is there way to use a custom class or component for the tip when
> using ToolTip Manager to create them?
>
> Thanks!
>
> ethan
>
>
>
> 
>



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

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


Re: [flexcoders] Changing itemEditors of a DataGrid a row basis

2008-08-26 Thread Weyert de Boer
Hi Alex! Thanks I will give it a shot :)


Re: [flexcoders] Stop Flex closing whole browser

2008-08-26 Thread Guy Morton
I develop on mac os x using firefox and fb just opens a new tab when I  
run my app. It doesn't close any windows or tabs when I stop an app.  
maybe you should try ff instead?


On 27/08/2008, at 4:53 AM, Nik Derewianka wrote:


Hi,

So you have a whole bunch of pages open for your docs and samples, you
compile your app, it launches and then hits an error and throws you
back into debug mode in Flex. Sometimes when you press interrupt it
will close the browser window instead of your flex app tab and you
lose all your docs and references. Every time, without fail, if you
do not close the previously launched flexapp tab, Flex will launch the
newly compiled version and then half second later close the entire
browser window. This is with Safari on OS X.

This is such a productivity killer - is there some patch, hack,
setting that i can change to stop this from happening ??

Regards,
Nik






Re: [flexcoders] Positioning Custom ToolTips

2008-08-26 Thread Ethan Miller

Example of how to intercept TOOL_TIP_SHOW, please.

Alternately, all I really want to do is change the horizontal and  
vertical offset of the ToolTIp from the item it describes. Any easy,  
app-wide way to do this?


cheers, ethan



I think you intercept TOOL_TIP_SHOW and give it a different  
position.  The ToolTipMgr should have placed it already where it  
think it should be.




You can set the ToolTipManager.toolTipClass to have all instances of  
tooltips be something else, but you should extend ToolTip in your  
custom ToolTip.




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
On Behalf Of Ethan Miller

Sent: Tuesday, August 26, 2008 9:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Positioning Custom ToolTips



Greetings -

Per the Flex documentation, I'm using a custom component as a ToolTip
by intercepting the toolTipCreate event, as describe below:

"In your application, you can create a custom ToolTip by intercepting
the toolTipCreate event handler of the target component. In the event
handler, you instantiate the new ToolTip and set its properties. You
then point the toolTipproperty of the ToolTipEvent object to the new
ToolTip."

Unlike using the ToolTip Manager, however, which accepts x,y
positioning arguments, it's unclear how to position the custom tooltip
invoked using the intercept and custom class approach

So, this leaves me with two questions:

1. Using a custom class or component created using the incercept
approach, is there a way to position the tip?

or

2. Is there way to use a custom class or component for the tip when
using ToolTip Manager to create them?

Thanks!

ethan








Re: [flexcoders] Combobox to show table columns?

2008-08-26 Thread Josh McDonald


Will probably do it. Depending on what's bindable you might have to simply
walk the datagrid.columns array.

But if you're dynamically creating the columns, why not simply include the
code to build your list of values for CB options at the same time?

-Josh

On Wed, Aug 27, 2008 at 5:40 AM, Alex Harui <[EMAIL PROTECTED]> wrote:

>  Just walk the children() and pull the name() and add it to an array
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *cox.blair
> *Sent:* Tuesday, August 26, 2008 9:19 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Combobox to show table columns?
>
>
>
> Just wonder if anyone has a trick to dynamically populate a combobox
> with the column labels of a table or XML source. I seem to only manage
> to retrieve the values of the rows, not the actual column name. I know
> I manually list them, but this defeats the purpose if the table were
> to change.
>
> Ex. So instead of showing the value ALB_RLU, I want ALB_RLU to be a
> selection in the combobox.
>
> 
> −
> 
> −
> 
> 82
> 
> 33321.
> 213213.
> 213.
>
> Thanks,
>
> 
>



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

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


[flexcoders] Library project that includes another SWC - Classes in included SWC not found

2008-08-26 Thread bick
Is it possible to use a library project that includes a swc specified
in the library paths tab of a flex project?

So: App (swf) includes library (swc) that includes another library (swc)?

Problem: Some classes are not found in the Flex 3 compiler in the
library included within another library.

Steps to reproduce:

1. Create a library project - call it Common. It will create a
common.swc file
2. In the library path, include Flex Unit (.85).
3. Create a Flex project - call it MainApp. 
4. In the MainApp library path - select Add Project and add the Common
Project. (you could have added the common.swc instead)
5. Create a class: MainApp.mxml
6. In MainApp.mxml, add:

import com.flexunit.frameworks.TestSuite;
import com.flexunit.frameworks.TestClass;

public var suite : TestSuite = new TestSuite();

I get an error that TestSuite can not be found. The strange part is
that TestCase is found.

If I add the FlexUnit swc to MainApp, it finds the class as intended.

Both libraries are set to merge but I tried external as well with no luck.

Any ideas?




Re: [flexcoders] Will Scene 7 turn Adobe into a competitor of it's ISVs like Microsoft ???

2008-08-26 Thread Josh McDonald
First, what the hell is a "Scene7?" All I see is marketing-droid drivel :)

Second, if Adobe can cook up a tool that makes my current skillset
irrelevant (no offence guys, but that seems like a *lot* of work)... Just
think of what you can build using that tool!

I mean, MS Access sure put all those RDBMS developers out of business right?


-Josh

On Wed, Aug 27, 2008 at 2:53 AM, Doug McCune <[EMAIL PROTECTED]> wrote:

> ummm, you're a flex consultant afraid of not having work because of
> adobe? are you looking at the same market I am?
>
> The "adobe is cannibalizing it's user base" argument might hold a
> little water when it comes to the products they're developing (pshop
> express, buzzword, etc). But god knows there's more Flex consulting
> work out there than anyone knows what to do with. Try crying wolf once
> any semblance of a problem emerges. And has someone really fired you
> because they started using scene 7? really?
>
> Doug
>
> On Tue, Aug 26, 2008 at 9:30 AM, Robert Thompson <[EMAIL PROTECTED]>
> wrote:
> > Although I'll hold my breath until more and more info. is released into
> the
> > public.
> >
> > I'm a little concerned that Adobe is starting to get the "Take over the
> > world" vision with Scene 7.0
> >
> > They appear to be heading towards a consulting type service (as well as
> > selling to us developers) where people can create FLEX like sites and
> > experiences that were the hope and promise of developers to capitalize on
> > buy spending, in my case, $1,777 on the FLEX 3.0 with ILOG Elixr
> components.
> >
> > I have many projects planned in this area.
> >
> > But when will come the day when someone says, "Oh, I just purchase Adobe
> > Scene 7.0, we don't need to contract you any longer".
> >
> > If this turns out to be the case, it will ultimately result in the same
> > Entropy demise of IBM, which was followed by Microsoft, and which I hope
> > Adobe does not plan to fall into.
> >
> > Why would a developer dedicate years of his life to APIs from Adobe when,
> > ultimately, the way things are turning out, why don't we just get down to
> > the GPU level an 'C' Program NVIDIA CUDO to do the ultimate in 3-4 years
> > time, rather than let someone sucker us into purchasing products, very
> > expensive ones, only to turn and compete with us.
> >
> > Things are not looking pretty and it appears to me that Open Source, ala,
> > Blender instead of Maya, CUDO and Apache SOAP instead of Coldfusion, and
> > DHTML will perhaps some new submissions to the W3C -- perhaps that's the
> new
> > message us developers need to listen to.
> >
> > As Henry Rollins says in his great song "Liar", "Please, I'm sorry, just
> > give me anther chanceAh, ha, ha, ha, ha, oo.SUCKER,
> > Sucker.a, I like it (the money)I FEEL GOOD".
> >
> > Do you feel good Adobe? Where do you want to go today?
> >
> > I'll follow thisif this heads where I think it is, I will put out the
> > message.
> >
> > -r
> >
> >
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


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

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


Re: [flexcoders] Re: Curses Adobe

2008-08-26 Thread Josh McDonald
No you're not alone, but the rest of us realised after our first week of
paid programming that we're always going to be suffering for a decision made
by some company years ago, and we figured we could quit and take up farming,
or just work around the problems and occasionally shake our fists. And
probably Netscape inc. caused this one, rather than MS, and it's simply
Microsoft keeping to a similar API (weird I know) that perpetuates it.

Adobe has to be very careful about doing things not specifically allowed via
the plugin APIs (such as making their own http calls), because that sort of
thing sets off people's alarm bells, and if the major browser producers
decide Flash is doing something it shouldn't be, bad things will happen. Not
only that, but Player would suddenly get a lot larger with adding support
for proxy detection, SSL, SOCKS, etc etc etc.

That, and I hope (but doubt) that browser plugins are corralled in a way
that technically restricts that sort of thing.

-Josh

On Wed, Aug 27, 2008 at 1:34 AM, djhatrick <[EMAIL PROTECTED]> wrote:

> Does adobe lead the call to "change" for this limitation, or who does?
>  I'll complain, any suggestion where to do the complaining?  I really
> don't mind complaining at all.  Doesn't adobe have a good relationship
> with Mozilla, after all they develop Tamarin together, don't they?
> What's mozilla's stand on this, I'd like to know. I would think that
> Mircroft IE would never lift a finger for Adobe or flash/flex
> developers, but microsoft is after-all why the world sucks.
>
> I just hate the world, and often find where technology fails, and it's
> left to us end-programmers to find solutions that we shouldn't have to
> but I am alone in my thinking here?
>
>
>
>
> --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > How about less cursing, and 10 minutes with the google? It's a limit
> with
> > the browser API for plugins. Flash Player never gets to see the result,
> > becuase the browser makes HTTP requests, not Player. And the plugin API
> > hides *all* non-200 results from plugins.
> >
> > IOW, call Microsoft / Mozilla and complain to them, Flex/Flash is
> not the
> > problem.
> >
> > On Tue, Aug 26, 2008 at 10:12 AM, djhatrick <[EMAIL PROTECTED]> wrote:
> >
> > > Give us real http status codes in flex.  You are killing us developers
> > > out here. Instead of going home and being with my family, i have to
> > > deal with these kludge work arounds to handle the lack of having our
> > > services handle status codes.
> > >
> > > Please, tell the flashplayer team to get off their butts and implement
> > > this, so we can use rest data services.  I implore you!?!
> > >
> > > Thanks for listening.
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > > Links
> > >
> > >
> > >
> > >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> >
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


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

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


RE: [flexcoders] Save Object with EncryptedLocalStore

2008-08-26 Thread Jim Hayes
Documentation : 
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/data/EncryptedLocalStore.html
Google : http://www.google.com/search?q=EncryptedLocalStore+adobe+AIR (result 
number one, right at the top)


-Original Message-
From: flexcoders@yahoogroups.com on behalf of markflex2007
Sent: Tue 26/08/2008 20:53
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Save Object with EncryptedLocalStore
 
Hi,

I am working for a AIR application now.

It see I only can save string with EncryptedLocalStore.

But I want to save object with EncryptedLocalStore.

For instance:

   var obj:userVO = new userVO();
   obj.firstName = "Tom";
   obj.lastName = "Smith";  

Do you think if it is possible for me to do this?

Thanks

Mark



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

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

RE: [flexcoders] Save Object with EncryptedLocalStore

2008-08-26 Thread Kevin Benz
Nope.. Strings only although why not XML as a string? 

 

Be careful as well... .10mb max storage although that's a lot of xml. 

 

K

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markflex2007
Sent: Tuesday, August 26, 2008 12:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Save Object with EncryptedLocalStore

 

Hi,

I am working for a AIR application now.

It see I only can save string with EncryptedLocalStore.

But I want to save object with EncryptedLocalStore.

For instance:

var obj:userVO = new userVO();
obj.firstName = "Tom";
obj.lastName = "Smith"; 

Do you think if it is possible for me to do this?

Thanks

Mark

 

<><>

[flexcoders] Print?

2008-08-26 Thread kpjj31
Is it possible to print an external html page from with in Flex?



[flexcoders] Re: No Scroll Bar in Browser

2008-08-26 Thread Tim Hoff

All that I can say is that in all of the commercial applications that
I've been involved with, not one used the Application tag as the main
container.  A Canvas or ViewStack is typically the main container and,
by default, will use scrollbars in the manner that you desire.

Cheers,
-TH

--- In flexcoders@yahoogroups.com, Nik Derewianka <[EMAIL PROTECTED]> wrote:
>
> Out of the box Flex defaults to content being unviewable if the
> content is larger than the content window. There is no use case where
> this is desirable.
>
> If you have figured out how to turn on scrollbars for your flex app,
> have managed to style them, then you should be able to figure out how
> to turn off the browser scroll bars.
>
> Regards,
> Nik
>
> On 27/08/2008, at 4:55 AM, Tim Hoff wrote:
>
> >
> > However, if you have flex scrollbars that are skinned, you would
then
> > have a mix of scrollbar styles. Personally, I'd rather have the flex
> > app consume the available browser space and manage all scrolling
> > internally. - .02.
> >
> > -TH
> >
>





[flexcoders] Stop Flex closing whole browser

2008-08-26 Thread Nik Derewianka
Hi,

So you have a whole bunch of pages open for your docs and samples, you  
compile your app, it launches and then hits an error and throws you  
back into debug mode in Flex.  Sometimes when you press interrupt it  
will close the browser window instead of your flex app tab and you  
lose all your docs and references.  Every time, without fail, if you  
do not close the previously launched flexapp tab, Flex will launch the  
newly compiled version and then half second later close the entire  
browser window.  This is with Safari on OS X.

This is such a productivity killer - is there some patch, hack,  
setting that i can change to stop this from happening ??

Regards,
Nik


RE: [flexcoders] Re: selectedIndex and updateDisplayList

2008-08-26 Thread Alex Harui
Sure, that's the way invalidation works.  There's an article in the
first edition of Flex Authority that describes the invalidation
mechanism.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, August 26, 2008 12:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: selectedIndex and updateDisplayList

 

What I am trying to say is that while I am setting up selectedIndex 
three times the updateDisplayList event fires only once.

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I'm sorry, but this didn't make any sense. I don't see the code 
that
> broke in your exaple.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of markgoldin_2000
> Sent: Tuesday, August 26, 2008 9:09 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] selectedIndex and updateDisplayList
> 
> 
> 
> I have a DG with three rows. I am setting up a dataProvider for it 
> like this:
> override public function set dataProvider(value:Object):void 
> { 
> super.dataProvider = value;
> if (dataProvider != null && dataProvider.length != 0)
> {
> var cursor:IViewCursor = (dataProvider as 
> ICollectionView).createCursor();
> var recNum:int = 0;
> while (!cursor.afterLast)
> {
> var obj:Object = cursor.current;
> if (obj["somecondition"] == 1) // Show plan
> {
> selectedIndex = recNum;
> trace(selectedIndex);
> }
> recNum++;
> cursor.moveNext();
> } 
> }
> } 
> after that in Console I have:
> 0
> 1
> 2
> 0
> then in updateDisplayList I need to highlight cells based on data 
> condition:
> if (grid1.isItemSelected(data))
> {
> storeBackgroundCell = getStyle("backgroundColor");
> if (g == null)
> {
> g = graphics;
> } 
> trace("updateDisplayList");
> 
> Program execution is suspended at trace(data["plan" + blockNum]);
> and the Console still did not show any more records which means 
that 
> while I am setting up selectedIndex in set dataProvider for each 
row 
> the updateDisplayList is executed for the last one only. 
> Am I doing something wrong or it is how it works?
> 
> Thanks
>

 



[flexcoders] Save Object with EncryptedLocalStore

2008-08-26 Thread markflex2007
Hi,

I am working for a AIR application now.

It see I only can save string with EncryptedLocalStore.

But I want to save object with EncryptedLocalStore.

For instance:

   var obj:userVO = new userVO();
   obj.firstName = "Tom";
   obj.lastName = "Smith";  

Do you think if it is possible for me to do this?

Thanks

Mark



RE: [flexcoders] Placing crossdomain.xml at non-root locations

2008-08-26 Thread Alex Harui
Security.loadPolicyFile should do it as long as you call it before other
network requests get going.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jerusalem_pilgrim
Sent: Tuesday, August 26, 2008 8:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Placing crossdomain.xml at non-root locations

 

I'm working on a Flex app that loads some data from a Tomcat
application, and I'm running into crossdomain.xml issues when I try to
test it using http://localhost/app.html 
instead of launching it from
Flexbuilder.

I could add a crossdomain.xml to the Tomcat application
(http://dataServer:8080/app/crossdomain.xml
 ), but I'm not sure how to
tell the Flex app to look for the file in that location - it keeps
looking in http://dataServer:8080/crossdomain.xml.
  I've tried adding
Security.loadPolicyFile("http://dataServer:8080/app/crossdomain.xml
 ");
to the code, but it doesn't help.

Is there a way to load the crossdomain.xml file from a different
location?

 



[flexcoders] Re: selectedIndex and updateDisplayList

2008-08-26 Thread markgoldin_2000
What I am trying to say is that while I am setting up selectedIndex 
three times the updateDisplayList event fires only once.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I'm sorry, but this didn't make any sense.  I don't see the code 
that
> broke in your exaple.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of markgoldin_2000
> Sent: Tuesday, August 26, 2008 9:09 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] selectedIndex and updateDisplayList
> 
>  
> 
> I have a DG with three rows. I am setting up a dataProvider for it 
> like this:
> override public function set dataProvider(value:Object):void 
> { 
> super.dataProvider = value;
> if (dataProvider != null && dataProvider.length != 0)
> {
> var cursor:IViewCursor = (dataProvider as 
> ICollectionView).createCursor();
> var recNum:int = 0;
> while (!cursor.afterLast)
> {
> var obj:Object = cursor.current;
> if (obj["somecondition"] == 1) // Show plan
> {
> selectedIndex = recNum;
> trace(selectedIndex);
> }
> recNum++;
> cursor.moveNext();
> } 
> }
> } 
> after that in Console I have:
> 0
> 1
> 2
> 0
> then in updateDisplayList I need to highlight cells based on data 
> condition:
> if (grid1.isItemSelected(data))
> {
> storeBackgroundCell = getStyle("backgroundColor");
> if (g == null)
> {
> g = graphics;
> } 
> trace("updateDisplayList");
> 
> Program execution is suspended at trace(data["plan" + blockNum]);
> and the Console still did not show any more records which means 
that 
> while I am setting up selectedIndex in set dataProvider for each 
row 
> the updateDisplayList is executed for the last one only. 
> Am I doing something wrong or it is how it works?
> 
> Thanks
>




RE: [flexcoders] dynamically sorting an adv datagrid

2008-08-26 Thread Alex Harui
Does the ADG have sorting on?  If so, the collection should contain the
sort info that descirbes the field used in the sort.  If your component
then modifies the sort, the ADG should detect and reflect that.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Wilker
Sent: Tuesday, August 26, 2008 8:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dynamically sorting an adv datagrid

 

I've got a scenario, where I need to trigger a sort from another
component.

My current approach is first capture the selected colum when the user
selects a cell.

then from my other component, I fire an event. 

my adg component catches and acts on the event.

My problem is capturing the column the user selected. I may have other
issues, but that's the first one. 

Is there a better approach? any thoughts on my current one?

Not sure which code would help so I'll post if asked.


John Wilker
Vice President of Operations
360Conferences, Inc.
twitter: jwilker
www.johnwilker.com   / www.360conferences.com
  / ignitedenver.blogspot.com
 

"Vision is not enough; it must be combined with venture. It is not
enough to stare up the steps; we must step up the stairs."
~Vaclev Havel

 



RE: [flexcoders] Get all class definitions in a loaded swf ?

2008-08-26 Thread Alex Harui
There is no way to find out the classes in a SWF (not without a lot of
work).  Best option is to put something in each SWF that describes what
is in it.  You will probably always have to use getDefinition though

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nik Derewianka
Sent: Tuesday, August 26, 2008 8:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Get all class definitions in a loaded swf ?

 

Hi,

Is there a way to load all the class definitions in a swf that load 
into my flex app ??

On a sample swf with 4 mc's named mc1,mc2,mc3,mc4, i have got it to:

private function onSWFLoaded(event:Event):void{
var col:ArrayCollection = new ArrayCollection();

for (var i:Number = 1;i <= 4;i++){
col.addItem(event.target.applicationDomain.getDefinition("mc" + i) 
as Class);
}

var mc:MovieClip = new (col.getItemAt(0)) as MovieClip;
trace(mc);
}

Which works with instantiating the loaded mc, but i want to get rid of 
the dependancy on getDefinition() and having to pre-know the class 
names. Be incredibly handy to be able to utilise my external swf's as 
asset containers if i can do this.

Cheers,
Nik

 



Re: [flexcoders] Combobox to show table columns?

2008-08-26 Thread Blair Cox
Cheers Alex!

-- 
Blair 




From: Alex Harui <[EMAIL PROTECTED]>
Reply-To: 
Date: Tue, 26 Aug 2008 12:40:18 -0700
To: 
Conversation: [flexcoders] Combobox to show table columns?
Subject: RE: [flexcoders] Combobox to show table columns?

 
 

Just walk the children() and pull the name() and add it to an array
 



RE: [flexcoders] selectedIndex and updateDisplayList

2008-08-26 Thread Alex Harui
I'm sorry, but this didn't make any sense.  I don't see the code that
broke in your exaple.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, August 26, 2008 9:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] selectedIndex and updateDisplayList

 

I have a DG with three rows. I am setting up a dataProvider for it 
like this:
override public function set dataProvider(value:Object):void 
{ 
super.dataProvider = value;
if (dataProvider != null && dataProvider.length != 0)
{
var cursor:IViewCursor = (dataProvider as 
ICollectionView).createCursor();
var recNum:int = 0;
while (!cursor.afterLast)
{
var obj:Object = cursor.current;
if (obj["somecondition"] == 1) // Show plan
{
selectedIndex = recNum;
trace(selectedIndex);
}
recNum++;
cursor.moveNext();
} 
}
} 
after that in Console I have:
0
1
2
0
then in updateDisplayList I need to highlight cells based on data 
condition:
if (grid1.isItemSelected(data))
{
storeBackgroundCell = getStyle("backgroundColor");
if (g == null)
{
g = graphics;
} 
trace("updateDisplayList");

Program execution is suspended at trace(data["plan" + blockNum]);
and the Console still did not show any more records which means that 
while I am setting up selectedIndex in set dataProvider for each row 
the updateDisplayList is executed for the last one only. 
Am I doing something wrong or it is how it works?

Thanks

 



RE: [flexcoders] Combobox to show table columns?

2008-08-26 Thread Alex Harui
Just walk the children() and pull the name() and add it to an array

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of cox.blair
Sent: Tuesday, August 26, 2008 9:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Combobox to show table columns?

 

Just wonder if anyone has a trick to dynamically populate a combobox
with the column labels of a table or XML source. I seem to only manage
to retrieve the values of the rows, not the actual column name. I know
I manually list them, but this defeats the purpose if the table were
to change.

Ex. So instead of showing the value ALB_RLU, I want ALB_RLU to be a
selection in the combobox.


−

−

82

33321.
213213.
213.

Thanks,

 



RE: [flexcoders] Positioning Custom ToolTips

2008-08-26 Thread Alex Harui
I think you intercept TOOL_TIP_SHOW and give it a different position.
The ToolTipMgr should have placed it already where it think it should
be.

 

You can set the ToolTipManager.toolTipClass to have all instances of
tooltips be something else, but you should extend ToolTip in your custom
ToolTip.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ethan Miller
Sent: Tuesday, August 26, 2008 9:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Positioning Custom ToolTips

 

Greetings -

Per the Flex documentation, I'm using a custom component as a ToolTip 
by intercepting the toolTipCreate event, as describe below:

"In your application, you can create a custom ToolTip by intercepting 
the toolTipCreate event handler of the target component. In the event 
handler, you instantiate the new ToolTip and set its properties. You 
then point the toolTipproperty of the ToolTipEvent object to the new 
ToolTip."

Unlike using the ToolTip Manager, however, which accepts x,y 
positioning arguments, it's unclear how to position the custom tooltip 
invoked using the intercept and custom class approach

So, this leaves me with two questions:

1. Using a custom class or component created using the incercept 
approach, is there a way to position the tip?

or

2. Is there way to use a custom class or component for the tip when 
using ToolTip Manager to create them?

Thanks!

ethan

 



RE: [flexcoders] Re: Help, Random module load issues.

2008-08-26 Thread Alex Harui
The stack trace indicates the shared code problem described on my blog
in the presentation on modules (blogs.adobe.com/aharui)

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gus
Sent: Tuesday, August 26, 2008 12:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Help, Random module load issues.

 

Hi,

maybe the problem can be caused by this,
http://bugs.adobe.com/jira/browse/SDK-14669
 

The workaround is basically load the modules in sequence due to RSL
and modules bug. P.S: I'm assuming you're using RSL, is it true?

HTH
Gus 

--- In flexcoders@yahoogroups.com 
, "mthielman11" <[EMAIL PROTECTED]> wrote:
>
> Hey everyone. We are experiencing a ton of issues with our app with
> regards to module loading. Our main app at this point has 4 main sub
> modules. Until now only a couple users tended to switch between them
> but now it is becoming more common. We have noticed a completely
> random but troublesome bug. Many times when switching from one module
> to the next we get either history manager errors or the module loads
> 100% then is just blank, so it never really fully loads. You then need
> to exit the app and try again. Sometimes it will work, often times it
> does not. We are not even using history manager and i have even
> disabled it in the compiler settings and still get the issue. Here are
> some sample errors: 
> 
> TypeError: Error #1034: Type Coercion failed: cannot convert
> mx.managers::[EMAIL PROTECTED] to
mx.managers.IHistoryManager.
> at mx.managers::HistoryManager$/get impl()
> at mx.managers::HistoryManager$/unregister()
> at mx.containers::ViewStack/removedFromStageHandler()
> at flash.display::DisplayObjectContainer/addChild()
> at
>
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::createCon
tentPane 
()
> at mx.core::Container/createOrDestroyScrollbars()
> at mx.core::Container/createScrollbarsIfNeeded()
> at mx.core::Container/createContentPaneAndScrollbarsIfNeeded()
> at mx.core::Container/validateDisplayList()
> at mx.managers::LayoutManager/validateDisplayList()
> at mx.managers::LayoutManager/doPhasedInstantiation()
> at Function/http://adobe.com/AS3/2006/builtin::apply
 ()
> at mx.core::UIComponent/callLaterDispatcher2()
> at mx.core::UIComponent/callLaterDispatcher()
> 
> TypeError: Error #1034: Type Coercion failed: cannot convert
> mx.managers::[EMAIL PROTECTED] to
mx.managers.IHistoryManager.
> at mx.managers::HistoryManager$/get impl()
> at mx.managers::HistoryManager$/unregister()
> at mx.containers::ViewStack/removedFromStageHandler()
> at flash.display::DisplayObjectContainer/removeChild()
> at
>
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$remove
Child  ()
> at mx.core::Container/removeChild()
> at mx.modules::ModuleLoader/set url()
> at Login/switchModule()
> at com.zebramenubar::app_code/menuHandler()
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.core::UIComponent/dispatchEvent()
> at mx.controls::MenuBar/eventHandler()
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.core::UIComponent/dispatchEvent()
> at mx.controls::Menu/dispatchEvent()
> at mx.controls::Menu/mouseUpHandler()
> 
> We have not idea where to begin, one of our devs can never ever even
> get this to happen! Any suggestions are greatly appreciated. Thanks.
>

 



[flexcoders] Re: Help, Random module load issues.

2008-08-26 Thread Gus
Hi,

maybe the problem can be caused by this,
http://bugs.adobe.com/jira/browse/SDK-14669

The workaround is basically load the modules in sequence due to RSL
and modules bug. P.S: I'm assuming you're using RSL, is it true?

HTH
Gus 

--- In flexcoders@yahoogroups.com, "mthielman11" <[EMAIL PROTECTED]> wrote:
>
> Hey everyone. We are experiencing a ton of issues with our app with
> regards to module loading. Our main app at this point has 4 main sub
> modules. Until now only a couple users tended to switch between them
> but now it is becoming more common. We have noticed a completely
> random but troublesome bug. Many times when switching from one module
> to the next we get either history manager errors or the module loads
> 100% then is just blank, so it never really fully loads. You then need
> to exit the app and try again. Sometimes it will work, often times it
> does not. We are not even using history manager and i have even
> disabled it in the compiler settings and still get the issue. Here are
> some sample errors: 
> 
> TypeError: Error #1034: Type Coercion failed: cannot convert
> mx.managers::[EMAIL PROTECTED] to mx.managers.IHistoryManager.
>   at mx.managers::HistoryManager$/get impl()
>   at mx.managers::HistoryManager$/unregister()
>   at mx.containers::ViewStack/removedFromStageHandler()
>   at flash.display::DisplayObjectContainer/addChild()
>   at
>
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::createContentPane()
>   at mx.core::Container/createOrDestroyScrollbars()
>   at mx.core::Container/createScrollbarsIfNeeded()
>   at mx.core::Container/createContentPaneAndScrollbarsIfNeeded()
>   at mx.core::Container/validateDisplayList()
>   at mx.managers::LayoutManager/validateDisplayList()
>   at mx.managers::LayoutManager/doPhasedInstantiation()
>   at Function/http://adobe.com/AS3/2006/builtin::apply()
>   at mx.core::UIComponent/callLaterDispatcher2()
>   at mx.core::UIComponent/callLaterDispatcher()
> 
> TypeError: Error #1034: Type Coercion failed: cannot convert
> mx.managers::[EMAIL PROTECTED] to mx.managers.IHistoryManager.
>   at mx.managers::HistoryManager$/get impl()
>   at mx.managers::HistoryManager$/unregister()
>   at mx.containers::ViewStack/removedFromStageHandler()
>   at flash.display::DisplayObjectContainer/removeChild()
>   at
>
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$removeChild()
>   at mx.core::Container/removeChild()
>   at mx.modules::ModuleLoader/set url()
>   at Login/switchModule()
>   at com.zebramenubar::app_code/menuHandler()
>   at flash.events::EventDispatcher/dispatchEventFunction()
>   at flash.events::EventDispatcher/dispatchEvent()
>   at mx.core::UIComponent/dispatchEvent()
>   at mx.controls::MenuBar/eventHandler()
>   at flash.events::EventDispatcher/dispatchEventFunction()
>   at flash.events::EventDispatcher/dispatchEvent()
>   at mx.core::UIComponent/dispatchEvent()
>   at mx.controls::Menu/dispatchEvent()
>   at mx.controls::Menu/mouseUpHandler()
> 
> We have not idea where to begin, one of our devs can never ever even
> get this to  happen! Any suggestions are greatly appreciated. Thanks.
>




Re: [flexcoders] Re: No Scroll Bar in Browser

2008-08-26 Thread Nik Derewianka
Out of the box Flex defaults to content being unviewable if the  
content is larger than the content window.  There is no use case where  
this is desirable.


If you have figured out how to turn on scrollbars for your flex app,  
have managed to style them, then you should be able to figure out how  
to turn off the browser scroll bars.


Regards,
Nik

On 27/08/2008, at 4:55 AM, Tim Hoff wrote:



However, if you have flex scrollbars that are skinned, you would then
have a mix of scrollbar styles. Personally, I'd rather have the flex
app consume the available browser space and manage all scrolling
internally. - .02.

-TH





[flexcoders] Re: No Scroll Bar in Browser

2008-08-26 Thread Tim Hoff

However, if you have flex scrollbars that are skinned, you would then
have a mix of scrollbar styles.  Personally, I'd rather have the flex
app consume the available browser space and manage all scrolling
internally. - .02.

-TH

--- In flexcoders@yahoogroups.com, "Troy Gilbert" <[EMAIL PROTECTED]>
wrote:
>
> > No comment on the wisdom of the default setting.
>
> I agree. I think it's much more appropriate to have your Flex app
> scroll with the browser's scroll bars than with a built-in Flex scroll
> bar (for full-app scrolling). It's not only a faster/smoother
> scrolling experience, it's more in-line with user expectations.
>
> Troy.
>





Re: [flexcoders] No Scroll Bar in Browser

2008-08-26 Thread Troy Gilbert
> No comment on the wisdom of the default setting.

I agree. I think it's much more appropriate to have your Flex app
scroll with the browser's scroll bars than with a built-in Flex scroll
bar (for full-app scrolling). It's not only a faster/smoother
scrolling experience, it's more in-line with user expectations.

Troy.


[flexcoders] Re: ?

2008-08-26 Thread Nate Beck

--- In flexcoders@yahoogroups.com, "Nate Beck" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "markflex2007" markflex2007@
> wrote:
> >
> > How to add eventlistener for that if I have a event like
> >
> > dispatchEvent(new Event("this is an event"));
> >
> > Thanks
> >
> > Mark
> >
>
> Event's are just strings... so you would listen for that string to be
> passed.
>
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute" creationComplete="onReady();">
>   
> 
>   
> 
>




[flexcoders] Re: ?

2008-08-26 Thread Nate Beck
--- In flexcoders@yahoogroups.com, "markflex2007" <[EMAIL PROTECTED]>
wrote:
>
> How to add eventlistener for that if I have a event like
> 
> dispatchEvent(new Event("this is an event"));
> 
> Thanks
> 
> Mark
>

Event's are just strings... so you would listen for that string to be
passed.


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

  




RE: [flexcoders] How can we use message event of mx.data.DataService?

2008-08-26 Thread Seth Hodgson
This event is dispatched when a DataMessage has been pushed to the client by 
the server, after it has gone through internal processing by the DataService. 
Unlike a ResultEvent or FaultEvent that you'll always want to handle because 
they correlate to a fill() or some other operation you've invoked, the 
MessageEvent isn't something you need to handle unless you want to put 
something up in your UI indicating that a pushed data change was received by 
the client.

You can't send/receive custom messages using DataService; for that, use 
Producer/Consumer or MultiTopicProducer/MultiTopicConsumer directly.

Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shigeru 
Nakagaki
Sent: Tuesday, August 26, 2008 10:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How can we use message event of mx.data.DataService?


DataService has "message" event. But I've never received this event.

Can we send/receive custom messages by mx.data.DataService?



[flexcoders] Re: ?

2008-08-26 Thread markflex2007
How to add eventlistener for that if I have a event like

dispatchEvent(new Event("this is an event"));

Thanks

Mark



Re: [flexcoders] No Scroll Bar in Browser

2008-08-26 Thread Nik Derewianka
Edit your html-template/index.template.html file to have  instead of  at about line 76.

No comment on the wisdom of the default setting.

Regards,
Nik



[flexcoders] Flex Load Testing Solutions

2008-08-26 Thread Battershall, Jeff
I've seen that Adobe is high on RadView software's WebLoad product, but
I'm interested in evaluating a number of possible products and/or
approaches for load testing our applications.

Any and all feedback appreciated!

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


[flexcoders] How can we use message event of mx.data.DataService?

2008-08-26 Thread Shigeru Nakagaki
DataService has "message" event. But I've never received this event. 

Can we send/receive custom messages by mx.data.DataService?



[flexcoders] No Scroll Bar in Browser

2008-08-26 Thread seulaterbuddy
i noticed that when in FLEX, I make my template say 1024 x 768 or 
larger than my browser window is, there are no scroll bars that let my 
move around the page. is there are way to enable this ?




[flexcoders] Flex Builder 3.0.1 standalone updater posted

2008-08-26 Thread Mike Chabot
The Flex Builder 3.0.1 standalone updater has finally been posted, for
people who don't have that AdobeUpdater program. After upgrading I
went into the Flex Builder preferences and changed the Flex 3 SDK to
point to the new 3.1.0 folder. After that I ran the Project > Clean…
command.

Flex Builder 3.0.1 Updater
http://www.adobe.com/support/flex/downloads_updaters.html

Flex Builder 3.0.1 Release Notes
http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_fb.html

Introducing Flex SDK 3.1 and Flex Builder 3.0.1
http://www.adobe.com/devnet/flex/articles/sdk3_fb301.html

Enjoy,
Mike Chabot



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



RE: [flexcoders] Re: RTMP and Spring Security(Acegi) Issues - SOLVED

2008-08-26 Thread Seth Hodgson
Make that: After that, any client interaction with a destination secured with a 
security constraint will trigger a call to doAuthorization()

Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Seth 
Hodgson
Sent: Tuesday, August 26, 2008 10:18 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: RTMP and Spring Security(Acegi) Issues - SOLVED

In the case of RTMP, the doAuthentication() hook of your LoginCommand runs when 
the client invokes ChannelSet.login(...) or as a result of invoking the legacy 
setCredentials() method on service components. The advantage of using 
ChannelSet.login() is that it gives you back a token for the call that you can 
register a responder with. setCredentials()  may or may not even make a login 
call, depending on whether the client is connected, and when the login happens 
there's no good way to handle faults.

If doAuthentication() is successful the returned Principal is cached in the 
FlexSession. Because RTMP connections are long-lived and stateful, this will 
only happen once.

After that, any client interaction with a destination secured with a security 
constraint will trigger a call to doAuthentication() - you get the cached 
Principal and the list of roles to test for membership in. So this hook will 
likely be called many times. If you security system depends on any extra 
context, say in thread locals, your login command would need to manage that 
properly.

Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey
Sent: Monday, August 25, 2008 4:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: RTMP and Spring Security(Acegi) Issues - SOLVED


I was wondering if anyone knows exactly when the AcegiLoginCommand
class gets processes. Does it get processed once when you create a
DataService object, or does it get processed every time an RTMP
request is made?

--- In flexcoders@yahoogroups.com, 
"Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> One last thing I had to do to get it to work. I added
> "-Dacegi.security.strategy=MODE_INHERITABLETHREADLOCAL" to my Tomcat
> JVM arguments. Otherwise, setting and getting the Authentication
> object was accessing different instances of some security object.
>
> ~Geoff
>
> --- In flexcoders@yahoogroups.com, 
> "Geoffrey"  wrote:
> >
> > I seem to have got it working. Thanks for your help jahhaj12345!
> >
> > What I ended up doing was to create a custom LoginCommand class. I
> > used the one from here:
> > http://blog.f4k3.net/fake/entry/acegi_logincommand_for_fds. I made
> > two changes shown below:
> >
> > //The name of our Acegi configuration file.
> > private static String[] CONFIG_LOCATIONS =
> > {"classpath:security-context.xml"};
> >
> > //"ldapAuthenticationProvider" is from our Acegi config file, and it
> > the name of the bean that is used for authentication via LDAP.
> > authenticationProvider =
> >
>
(AuthenticationProvider)applicationContext.getBean("ldapAuthenticationProvider");
> >
> >
> > I then updated services-config.xml and added:
> > 
> >  > server="Tomcat"/>
> > 
> > Basic
> > 
> > ROLE_MANAGERS
> > ROLE_USERS
> > 
> > 
> > 
> > //The roles came from the Acegi config file.
> >
> >
> > After that, I had to add the [managed] metadata tag to one of my
> > ValueObjects and it all seemed to work.
> >
> > I'll be honest, I don't really understand why this works, it just
> > does. What I mean by 'works' is that the managed collection on the
> > client gets filled with data successfully. I haven't yet tested
> > pushing new entries to that managed collection after the initial fill.
> >
> >
> > I hope this post helps someone else.
> >
> > ~Geoff
> >
> > --- In flexcoders@yahoogroups.com, 
> > "jahhaj12345"  wrote:
> > >
> > > I don't know of a way to just authenticate the client. From
> everything
> > > I've read, you have to authenticate the HTTP and RTMP sessions
> > > individually. For my application, I had to create my own
LoginCommand
> > > to handle the flex RTMP authentication.
> > >
> > > Here's my understanding of how it's working for me:
> > >
> > > 1. On my client, I get the channelset to use and then call
> > > channelSet.login(username, password). You could also call the
> > > setCredentials on the actual DataService the same way, but my
services
> > > are all created at runtime on the server instead of being statically
> > > defined in services-config.xml.
> > >
> > > 2. That channelSet (or dataservice) from above authenticates
> through the
> > > login-command configured in services-config.xml. This is where the
> > > custom LoginCommand I created is configured. The doAuthentication
> > > function of LoginCommand is as follows:
> > >
> > > public Principal doAuthentication(String username, Object
> > > credentials) {
> > > Authentication auth =
authenticationProvider.authenticate(new
> > > UsernamePasswordAuthenticationT

RE: [flexcoders] Re: RTMP and Spring Security(Acegi) Issues - SOLVED

2008-08-26 Thread Seth Hodgson
In the case of RTMP, the doAuthentication() hook of your LoginCommand runs when 
the client invokes ChannelSet.login(...) or as a result of invoking the legacy 
setCredentials() method on service components. The advantage of using 
ChannelSet.login() is that it gives you back a token for the call that you can 
register a responder with. setCredentials()  may or may not even make a login 
call, depending on whether the client is connected, and when the login happens 
there's no good way to handle faults.

If doAuthentication() is successful the returned Principal is cached in the 
FlexSession. Because RTMP connections are long-lived and stateful, this will 
only happen once.

After that, any client interaction with a destination secured with a security 
constraint will trigger a call to doAuthentication() - you get the cached 
Principal and the list of roles to test for membership in. So this hook will 
likely be called many times. If you security system depends on any extra 
context, say in thread locals, your login command would need to manage that 
properly.

Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey
Sent: Monday, August 25, 2008 4:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: RTMP and Spring Security(Acegi) Issues - SOLVED


I was wondering if anyone knows exactly when the AcegiLoginCommand
class gets processes. Does it get processed once when you create a
DataService object, or does it get processed every time an RTMP
request is made?

--- In flexcoders@yahoogroups.com, 
"Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> One last thing I had to do to get it to work. I added
> "-Dacegi.security.strategy=MODE_INHERITABLETHREADLOCAL" to my Tomcat
> JVM arguments. Otherwise, setting and getting the Authentication
> object was accessing different instances of some security object.
>
> ~Geoff
>
> --- In flexcoders@yahoogroups.com, 
> "Geoffrey"  wrote:
> >
> > I seem to have got it working. Thanks for your help jahhaj12345!
> >
> > What I ended up doing was to create a custom LoginCommand class. I
> > used the one from here:
> > http://blog.f4k3.net/fake/entry/acegi_logincommand_for_fds. I made
> > two changes shown below:
> >
> > //The name of our Acegi configuration file.
> > private static String[] CONFIG_LOCATIONS =
> > {"classpath:security-context.xml"};
> >
> > //"ldapAuthenticationProvider" is from our Acegi config file, and it
> > the name of the bean that is used for authentication via LDAP.
> > authenticationProvider =
> >
>
(AuthenticationProvider)applicationContext.getBean("ldapAuthenticationProvider");
> >
> >
> > I then updated services-config.xml and added:
> > 
> >  > server="Tomcat"/>
> > 
> > Basic
> > 
> > ROLE_MANAGERS
> > ROLE_USERS
> > 
> > 
> > 
> > //The roles came from the Acegi config file.
> >
> >
> > After that, I had to add the [managed] metadata tag to one of my
> > ValueObjects and it all seemed to work.
> >
> > I'll be honest, I don't really understand why this works, it just
> > does. What I mean by 'works' is that the managed collection on the
> > client gets filled with data successfully. I haven't yet tested
> > pushing new entries to that managed collection after the initial fill.
> >
> >
> > I hope this post helps someone else.
> >
> > ~Geoff
> >
> > --- In flexcoders@yahoogroups.com, 
> > "jahhaj12345"  wrote:
> > >
> > > I don't know of a way to just authenticate the client. From
> everything
> > > I've read, you have to authenticate the HTTP and RTMP sessions
> > > individually. For my application, I had to create my own
LoginCommand
> > > to handle the flex RTMP authentication.
> > >
> > > Here's my understanding of how it's working for me:
> > >
> > > 1. On my client, I get the channelset to use and then call
> > > channelSet.login(username, password). You could also call the
> > > setCredentials on the actual DataService the same way, but my
services
> > > are all created at runtime on the server instead of being statically
> > > defined in services-config.xml.
> > >
> > > 2. That channelSet (or dataservice) from above authenticates
> through the
> > > login-command configured in services-config.xml. This is where the
> > > custom LoginCommand I created is configured. The doAuthentication
> > > function of LoginCommand is as follows:
> > >
> > > public Principal doAuthentication(String username, Object
> > > credentials) {
> > > Authentication auth =
authenticationProvider.authenticate(new
> > > UsernamePasswordAuthenticationToken(username, credentials)); //
> > > authenticationProvider is a spring security
DaoAuthenticationProvider
> > >
> > > SecurityContextHolder.getContext().setAuthentication(auth);
> > > return auth;
> > > }
> > >
> > > This should authenticate the RTMP session. I don't know if this
> is the
> > > best way, but it seems to work.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com

Re: [flexcoders] Location of FlightReservation samples?

2008-08-26 Thread Robert Vollmar
Hi,

Hop up one level to:

http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions

Scroll down to the Runtime Localization section to find the download links.

- Rob


On 8/26/08 9:41 AM, "ivo" <[EMAIL PROTECTED]> wrote:

> Hey all,
> 
> Where can I find the Flex samples FlightReservation and FlightReservation2
> mentioned here 
> http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Runtime_Loc
> alization ?
> 
> Thanks,
> 
> - Ivo
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
> 
> 
> 



[flexcoders] Re: screen shot of flex application

2008-08-26 Thread aphexyuri
maybe not exactly what you need, but a great tool in any case:

http://www.jingproject.com/

--- In flexcoders@yahoogroups.com, "haykelbj" <[EMAIL PROTECTED]> wrote:
>
> This is not a Flex related problem but we are here to help each other :)
> 
> What do you mean with the picture quality is not good? On screen or
> when printed?
> 
> For the printed case it's generally normal as screen shots have screen
> resolution which is ~72 dpi.
> 
> For the other case it depends on different things :
> 1. Image editing software (better use Photoshop than Paint if you can)
> 2. File format: prefer jpg and png over other formats
> 3. Better resize your image in the editing software than scaling it in
> the document processing program (Word?)
> 
> Hope it helps,
> Haykel
> 
> --- In flexcoders@yahoogroups.com, "hworke"  wrote:
> >
> > 
> > 
> >   Hi I am trying to get a screen shots of
> >   my flex application for a document. I am
> >   using "print screen" button to capture the
> >   screen shot but the picture quality is not
> >   coming good. What is the best way to do so.
> > 
> >   Regards...
> >
>




Re: [flexcoders] Help, Random module load issues.

2008-08-26 Thread Pedro Sena
Hi,

Post the at Login/switchModule() code please.

PS

On Tue, Aug 26, 2008 at 1:48 PM, mthielman11 <[EMAIL PROTECTED]> wrote:

>   Hey everyone. We are experiencing a ton of issues with our app with
> regards to module loading. Our main app at this point has 4 main sub
> modules. Until now only a couple users tended to switch between them
> but now it is becoming more common. We have noticed a completely
> random but troublesome bug. Many times when switching from one module
> to the next we get either history manager errors or the module loads
> 100% then is just blank, so it never really fully loads. You then need
> to exit the app and try again. Sometimes it will work, often times it
> does not. We are not even using history manager and i have even
> disabled it in the compiler settings and still get the issue. Here are
> some sample errors:
>
> TypeError: Error #1034: Type Coercion failed: cannot convert
> mx.managers::[EMAIL PROTECTED] to mx.managers.IHistoryManager.
> at mx.managers::HistoryManager$/get impl()
> at mx.managers::HistoryManager$/unregister()
> at mx.containers::ViewStack/removedFromStageHandler()
> at flash.display::DisplayObjectContainer/addChild()
> at
> mx.core::Container/
> http://www.adobe.com/2006/flex/mx/internal::createContentPane()
> at mx.core::Container/createOrDestroyScrollbars()
> at mx.core::Container/createScrollbarsIfNeeded()
> at mx.core::Container/createContentPaneAndScrollbarsIfNeeded()
> at mx.core::Container/validateDisplayList()
> at mx.managers::LayoutManager/validateDisplayList()
> at mx.managers::LayoutManager/doPhasedInstantiation()
> at Function/http://adobe.com/AS3/2006/builtin::apply()
> at mx.core::UIComponent/callLaterDispatcher2()
> at mx.core::UIComponent/callLaterDispatcher()
>
> TypeError: Error #1034: Type Coercion failed: cannot convert
> mx.managers::[EMAIL PROTECTED] to mx.managers.IHistoryManager.
> at mx.managers::HistoryManager$/get impl()
> at mx.managers::HistoryManager$/unregister()
> at mx.containers::ViewStack/removedFromStageHandler()
> at flash.display::DisplayObjectContainer/removeChild()
> at
> mx.core::UIComponent/
> http://www.adobe.com/2006/flex/mx/internal::$removeChild()
> at mx.core::Container/removeChild()
> at mx.modules::ModuleLoader/set url()
> at Login/switchModule()
> at com.zebramenubar::app_code/menuHandler()
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.core::UIComponent/dispatchEvent()
> at mx.controls::MenuBar/eventHandler()
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.core::UIComponent/dispatchEvent()
> at mx.controls::Menu/dispatchEvent()
> at mx.controls::Menu/mouseUpHandler()
>
> We have not idea where to begin, one of our devs can never ever even
> get this to happen! Any suggestions are greatly appreciated. Thanks.
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


RE: [flexcoders] Re: LCDS and real-time performance

2008-08-26 Thread Seth Hodgson
Hi Rogier,

The core RTMP code in the player throttles the processing of inbound RTMP data, 
so there's an upper bound on the number of received messages that will be 
dispatched per frame on the client. This is done to prevent wedging playback in 
the player. If I generate a burst of 100 messages that are pushed to a 
subscribed Flex client over an RTMP connection, the duration on the client 
between processing the first and last message in my ActionScript handler is 
~190ms. Scale that to 400 messages and I'm up closer to 800ms. This has nothing 
to do with the underlying network IO or AMF serialization/deserialization - and 
it's a feature, not a defect. If you ramp the server generated burst size up to 
a large value (say 1000 or 10K) and monitor low level network traffic, you can 
see that writing the data to the player is quick, but dispatch of all those 
messages into ActionScript is slower because of this core throttling in the 
player.

The player generally is rendering at around 24 frames/sec. If you're sending 
400+ updates per second that's way beyond the player's UI refresh rate, and way 
past a monitor's refresh rate, so there's no way to even render updates at that 
rate.

What you want to do in this scenario is throttle the number of updates/messages 
you're pushing per second. Perhaps the simplest way to do this would be to 
lower the sampling rate at your update source. If this is a Flex client using 
DataService, try turning off auto-commit, and only committing changes on a 
wider interval - like 10 or 25 times per second rather than 400+ times.

Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rogier 
Oorburg
Sent: Monday, August 25, 2008 11:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: LCDS and real-time performance


Thanks for the reply...

I'm sure the server-side logging is not the problem, the same effects
are seen without the server writing all this information.
Even if we only do client-side logging we still get the same results.
I think we ruled out the database being a bottleneck by using the
Actionscript-adapter on the server, which again gets us the same
results.
That is why I still think our bottleneck is in the RTMP/AMF
communication and this is backed-up by the server-side logging.

Does anybody have experience with performance issues using RTMP/AMF?

Greetings,
Rogier

--- In flexcoders@yahoogroups.com, 
"seth_hodgson" <[EMAIL PROTECTED]>
wrote:
>
> Hi Rogier,
>
> You shouldn't place any weight on timing metrics captured while the
> server has debug level logging enabled. The IO overhead to output
> all the debug level logging to a console or log file will
> drastically skew your numbers.
>
> I'd recommend running your test wihtout debug level logging and
> capturing timing data at the client; say by keeping track of deltas
> between each message/update received.
>
> Be careful that your own logging at the server isn't acting as a
> bottleneck, and the database could definitely become a bottleneck
at
> high rates of updates.
>
> Seth
>
> --- In flexcoders@yahoogroups.com, 
> "Rogier Oorburg"
>  wrote:
> >
> > Hi Jeff,
> >
> > Thank you for your reply.
> > I have gathered some more logging information in this mail. To
> maybe
> > make clearer where all the time is spent.
> > Is there a way to set the packet-size (or 'chunk' size?) to be
> able
> > to send rather large messages (or a lot of small ones) more
> > efficiently? Or could there be some other cause for this slow
> > communication between client and server?
> >
> > Thanks, hope these loggings shed some light on the situation...
> >
> > [LCDS] 08:06:40.406 [DEBUG] [SocketServer.General] Thread[my-nio-
> > server-WorkerThread-2,5,main] Connection '9194103' starting a
read.
> > [LCDS] 08:06:40.406 [DEBUG] [Protocol.RTMP] Thread[my-nio-server-
> > WorkerThread-2,5,main] chunk input stream processing 1 bytes.
> > [LCDS] 08:06:40.406 [DEBUG] [Protocol.RTMP] Thread[my-nio-server-
> > WorkerThread-2,5,main] chunk input stream processing 7 bytes.
> > [LCDS] 08:06:40.406 [DEBUG] [Protocol.RTMP] Thread[my-nio-server-
> > WorkerThread-2,5,main] chunk input stream processing 128 bytes.
> > [LCDS] 08:06:40.406 [DEBUG] [Protocol.RTMP] Thread[my-nio-server-
> > WorkerThread-2,5,main] chunk input stream processing 1 bytes.
> > [LCDS] 08:06:40.406 [DEBUG] [Protocol.RTMP] Thread[my-nio-server-
> > WorkerThread-2,5,main] chunk input stream processing 128 bytes.
> > [LCDS] 08:06:40.406 [DEBUG] [Protocol.RTMP] Thread[my-nio-server-
> > WorkerThread-2,5,main] chunk input stream processing 1 bytes.
> > [LCDS] 08:06:40.406 [DEBUG] [Protocol.RTMP] Thread[my-nio-server-
> > WorkerThread-2,5,main] chunk input stream processing 128 bytes.
> >
> > ...
> >
> > [LCDS] 08:06:40.421 [DEBUG] [Protocol.RTMP] Thread[my-nio-server-
> > WorkerThread-2,5,main] chunk input stream processing 1 bytes.
> > [LCDS] 08:06:40.421 [DEBUG] [Prot

Re: [flexcoders] Re: Need Help and Guidance desperately

2008-08-26 Thread anuj sharma
Hi All
Thanks for the reply. Here are couple of things i should have mentioned
earlier to you guys. I have to allow user to resize the images, that's where
complexity came. For resizing of images, I am using the following container
for holding the images
http://www.rogue-development.com/objectHandles.html

I am trying to achieve something like this
http://demo.quietlyscheming.com/DragTile/DragDrop.html
but letting user drag images from the bottom container (in this example's
case VBOX) to the main container and also allowing then to resize the images
in the main container. If i am not allowing user to resize the image in the
main container, then this project is already done but the real estate
occupied by the images vary with the resizing option. The user drag and drop
or can also double click on the image to open in the main container. In all
the cases the image should be dropped in the empty space of the main
container. The main container allows the user to grab the image from any of
the four corner(like the component in the first link) and resize up to some
size and the rest of the images adjust accordingly to let the resized image
get accommodated in the main container(something like in the second link
except in that link user can't resize the image).

Sorry for being so complex but that's the project's requirement. In short
this project is like image gallery,the user can drag and drop or double
click on images to open them in the main container . They can also resize
the images in the main container and the rest of the images should move
(with transition) to let resized or newly created images to get
accommodated.

Please let me know if that helps and I will appreciate any more help in this
matter
Thanks a lot.
Anuj

On Tue, Aug 26, 2008 at 8:11 AM, Alex Harui <[EMAIL PROTECTED]> wrote:

>Yup, there's a trade-off of how much work you'll need to do for
> variable sized items so if you can live with same size items, you can use
> TileList and write less code.
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Amy
> *Sent:* Tuesday, August 26, 2008 7:40 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Re: Need Help and Guidance desperately
>
>
>
> --- In flexcoders@yahoogroups.com , "Josh
> McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > I agree, I'd use a couple of TileLists and a simple inline
> itemrenderer.
> > Shouldn't be too difficult really.
>
> I think the TileList has a number of flaws that make it problematic
> for this type of application For instance, it only measures the
> first item, then cuts off (or worse) any items that are larger. For
> another, you can't just let the TileList size and flow the things
> that are being dragged into it, since it has a default number of rows
> and columns, and without dipping your fingers into the layout code or
> knowing in advance the size and number of the items, you don't know
> how many rows and columns to even tell the TileList to use so as not
> to allocate too much vertical or horizontal space (not as much of a
> problem for this application, but a real pain for what I've used it
> for).
>
> I'm planning to finish my TileList_withStyle to overcome these
> limitations, but I just haven't gotten around to it. But MPO is that
> the TileList looks great on the surface, but it doesn't _quite_
> deliver on what it promises.
>
> -Amy
>
>  
>


[flexcoders] Flash/Flex support of Windows Vista (64bits)

2008-08-26 Thread Claude Hussenet

Most of the Portable PC are now coming preloaded with a 64 bit version
of Windows Vista which includes IE 64 bit which is not compatible with
the Flash Player.Those kind of PC's are getting very common...(Price
below $1000).

I tried FlashPlayer 10 Beta with the same result.
When I try to download the FlashPlayer ,I am getting a tech note from
Adobe explaining that the Flash Player does not support 64 bits Browser 
so the solution proposed is to install 32 bit version of IE on the
64bit OS.

When can we expect the support of 64 bits browser on FlashPlayer 9 and
then 10 ?

Claude Hussenet






RE: [flexcoders] ArrayCollection bound to an Array.

2008-08-26 Thread Battershall, Jeff
Your approach to the problem doesn't appear to be correct. Some
additional code would be helpful.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexaustin
Sent: Tuesday, August 26, 2008 11:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ArrayCollection bound to an Array.


Is it possible to bind an ArrayCOllection to an array, like so

public var summDataForControllers:Array = new Array;

public var _summDataForContrAC:ArrayCollection = new
ArrayCollection({summDataForControllers});

I have a modelLocator that contains these to items (above) and I want a
component to bind to the arrayCollection.  I am storing the information
in the array first because when I try to update the arraycollection from
my component and then access a certain item in the arraycollection I get
Index 0 out of bounds. So in other words I iterate and say
arrayCollection.addItemAt(i) then try
arrayCOllection.getItemAt(i) I get the out of bounds issue.

But if I iterate and store the information in an array everything is
fine, but now my component can't listen for updates, which is the reason
I am trying to bind my arraycollection to the array.

Thanks in advance for any help.






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





[flexcoders] Positioning Custom ToolTips

2008-08-26 Thread Ethan Miller
Greetings -

Per the Flex documentation, I'm using a custom component as a ToolTip  
by intercepting the toolTipCreate event, as describe below:

"In your application, you can create a custom ToolTip by intercepting  
the toolTipCreate event handler of the target component. In the event  
handler, you instantiate the new ToolTip and set its properties. You  
then point the toolTipproperty of the ToolTipEvent object to the new  
ToolTip."

Unlike using the ToolTip Manager, however, which accepts x,y  
positioning arguments, it's unclear how to position the custom tooltip  
invoked using the intercept and custom class approach

So, this leaves me with two questions:

1. Using a custom class or component  created using the incercept  
approach, is there a way to position the tip?

or

2. Is there way to use a custom class or component for the tip when  
using ToolTip Manager to create them?

Thanks!

ethan




Re: [flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-26 Thread Troy Gilbert
>> I'm a bit confused by those telling the original poster to go complain
>> to Eclipse...

> It sounds to me like you aren't confused, you just disagree. :-)

Touche...

Troy.


  1   2   >