Re: [flexcoders] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Josh McDonald
Thanks for that Alex, I'd always thought there was some compile-time voodoo
Fx3 did that enabled the debugger. That's good to know.

-J

On Fri, May 9, 2008 at 3:51 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>You can profile a Flex 2 app in the Flex 3 profiler.  You can profile
> any debug swf really.
>
>
>
> IE never worries, it just keels over and dies.
>
>
>
> Here's my top-five:
>
>
>
> 1. SWF size is not going to be your issue as much as run-time memory.  I've
> heard of folks with multi-MB swfs and they aren't complaining that IE can't
> handle it.  All complaints I've seen is about how much process memory (on
> Windows, the memory number you'll see next to your iexplorer.exe instance in
> the Task Manager) the application uses up and that, when it gets too big, IE
> dies.  The number I keep hearing is in the hundreds of MBs.  OK, so folks on
> slow networks wish the SWF was smaller so it would download faster, but once
> you get past that, it is all about run-time memory.
>
>
>
> 2. The Flex 3 Profiler can definitely help you tune your application, but
> it does not report the same numbers as the Task Manager because it only
> reports actionscript objects and not all of the other resources the player
> uses from the OS such as, on Windows, DIBs, HWNDs, DCs, etc.  If you suck in
> lots of huge images, the Profiler will not show that but the Task Manager
> will, and that's the fastest way to get IE to choke.
>
>
>
> 3. Modularity is always a good thing.  Pay as you go is usually a good
> thing.  Only loading what you need and getting rid of it when you don't need
> it is usually a good thing.
>
>
>
> 4. "Modules" is a feature designed to assist the development of large
> applications by not requiring that you compile and link every byte of the
> SWF on every change, and to assist startup time by allowing you to load the
> SWF bytes you don't need at startup after startup.  A single SWF will use
> less run-time memory than the same SWF broken into modules unless some of
> those modules are never loaded or get punted when no longer needed.
>
>
>
> 5. Application run-time memory usage can be code-bound, display-object
> bound or data-bound.  A medium-sized app (500K SWF) I just looked at used up
> 35MB of process memory at startup.  Roughly 10MB is just IE, another 10MB is
> the Player and of the remaining 15MB, 80% was attributed to the code.  SWFs
> are zipped and expand at about 3:1, then are JIT-ed to machine code and
> other structures are setup to support classes, methods, etc.  A SWF does not
> run from its binary as much as an .EXE file does.  That app is considered
> code-bound, at least at startup.  Now, every UIComponent is at least 6K,
> controls and containers are proportionally larger, so somewhere short of
> 1000 display objects, you've sucked up 6MB or more.  1000 seems like a lot,
> but it is 10 tabs in a tabNav with a 10x10 datagrid on it.  Charts may have
> lots of display objects too.  So if you have lots of grids and charts and
> not a lot of code, then you are display-object bound.  Start bringing in
> bitmaps or requiring bitmap caches, and you'll definitely be display-object
> bound.  Finally, some apps bring in 1 data records, some which are
> deeply nested.  A simple bindable object is at least 50 bytes so with
> complex data objects, you can really eat up tons of memory and be
> data-bound.  How you optimize for each scenario is pretty straightforward,
> but you have to know which scenario you are in, and the Profiler is not
> going to fully measure the memory that goes to code and display objects.
>
>
>
> Hope that helps, Rick's responses were definitely more fun to read.
>
> -Alex
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Josh McDonald
> *Sent:* Thursday, May 08, 2008 9:12 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] How big does a SWF get before IE starts to
> worry?
>
>
>
> Thanks for those tips, although I don't think I can action any of them on
> this project, given it's targeting Flex 2 (no profiler, no rpc source), I'm
> in Brisbane (unlikely there's any training that will benefit my skill level
> unfortunately), and I'm already a full-stack JEE ninja ;-)
>
> I'm definitely hoping we don't have to switch this project to modules, as
> it's 3/4 done already, I've been thrown in because there's some serious
> deadlines approaching, and I was just mainly wondering about how much leeway
> we'll have as the SWF for this is already over a meg. It's not CRM, but it's
> not a dashboard widget either ;-)
>
> -J
>
> On Fri, May 9, 2008 at 1:53 PM, Rick Winscot <[EMAIL PROTECTED]>
> wrote:
>
> If you are creating widgets or gizmos with Flex/Flash… I don't think you
> will ever hit the 'pain threshold.' However, if you are developing a
> substantive application – workforce management, crm, data management,
> repository, asset management or the like… realistically you can code

Re: [flexcoders] Re: How big does a SWF get before IE starts to worry?

2008-05-08 Thread Josh McDonald
Ah, useful information... What I try and give here, and why I love this list
:)

It's like the PHP list used to be back in the good-old-days ;-)

Thanks Bjorn.

-J

On Fri, May 9, 2008 at 3:47 PM, Bjorn Schultheiss <
[EMAIL PROTECTED]> wrote:

>   I don't know what Rick was talking about, but if you're looking for
> training, local info, etc, ask on the flexaussie mailing list.
>
> http://groups.yahoo.com/group/flexaussie
>
>
> --- In flexcoders@yahoogroups.com , "Josh
> McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > I assume you're the Doug he's talking about? I didn't know you lived
> around
> > here, should I?
> >
> > And is there intermediate - advanced training going on in Flex in
> Brisbane?
> > I could probably get the powers-that-be to spring for some in the new
> > Financial year when we're less rushed :)
> >
> > -J
> >
>
>  
>



-- 
"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] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Alex Harui
You can profile a Flex 2 app in the Flex 3 profiler.  You can profile
any debug swf really.

 

IE never worries, it just keels over and dies.

 

Here's my top-five:

 

1. SWF size is not going to be your issue as much as run-time memory.
I've heard of folks with multi-MB swfs and they aren't complaining that
IE can't handle it.  All complaints I've seen is about how much process
memory (on Windows, the memory number you'll see next to your
iexplorer.exe instance in the Task Manager) the application uses up and
that, when it gets too big, IE dies.  The number I keep hearing is in
the hundreds of MBs.  OK, so folks on slow networks wish the SWF was
smaller so it would download faster, but once you get past that, it is
all about run-time memory.

 

2. The Flex 3 Profiler can definitely help you tune your application,
but it does not report the same numbers as the Task Manager because it
only reports actionscript objects and not all of the other resources the
player uses from the OS such as, on Windows, DIBs, HWNDs, DCs, etc.  If
you suck in lots of huge images, the Profiler will not show that but the
Task Manager will, and that's the fastest way to get IE to choke.

 

3. Modularity is always a good thing.  Pay as you go is usually a good
thing.  Only loading what you need and getting rid of it when you don't
need it is usually a good thing.

 

4. "Modules" is a feature designed to assist the development of large
applications by not requiring that you compile and link every byte of
the SWF on every change, and to assist startup time by allowing you to
load the SWF bytes you don't need at startup after startup.  A single
SWF will use less run-time memory than the same SWF broken into modules
unless some of those modules are never loaded or get punted when no
longer needed.

 

5. Application run-time memory usage can be code-bound, display-object
bound or data-bound.  A medium-sized app (500K SWF) I just looked at
used up 35MB of process memory at startup.  Roughly 10MB is just IE,
another 10MB is the Player and of the remaining 15MB, 80% was attributed
to the code.  SWFs are zipped and expand at about 3:1, then are JIT-ed
to machine code and other structures are setup to support classes,
methods, etc.  A SWF does not run from its binary as much as an .EXE
file does.  That app is considered code-bound, at least at startup.
Now, every UIComponent is at least 6K, controls and containers are
proportionally larger, so somewhere short of 1000 display objects,
you've sucked up 6MB or more.  1000 seems like a lot, but it is 10 tabs
in a tabNav with a 10x10 datagrid on it.  Charts may have lots of
display objects too.  So if you have lots of grids and charts and not a
lot of code, then you are display-object bound.  Start bringing in
bitmaps or requiring bitmap caches, and you'll definitely be
display-object bound.  Finally, some apps bring in 1 data records,
some which are deeply nested.  A simple bindable object is at least 50
bytes so with complex data objects, you can really eat up tons of memory
and be data-bound.  How you optimize for each scenario is pretty
straightforward, but you have to know which scenario you are in, and the
Profiler is not going to fully measure the memory that goes to code and
display objects.

 

Hope that helps, Rick's responses were definitely more fun to read.

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Thursday, May 08, 2008 9:12 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How big does a SWF get before IE starts to
worry?

 

Thanks for those tips, although I don't think I can action any of them
on this project, given it's targeting Flex 2 (no profiler, no rpc
source), I'm in Brisbane (unlikely there's any training that will
benefit my skill level unfortunately), and I'm already a full-stack JEE
ninja ;-)

I'm definitely hoping we don't have to switch this project to modules,
as it's 3/4 done already, I've been thrown in because there's some
serious deadlines approaching, and I was just mainly wondering about how
much leeway we'll have as the SWF for this is already over a meg. It's
not CRM, but it's not a dashboard widget either ;-)

-J

On Fri, May 9, 2008 at 1:53 PM, Rick Winscot <[EMAIL PROTECTED]
 > wrote:

If you are creating widgets or gizmos with Flex/Flash... I don't think
you will ever hit the 'pain threshold.' However, if you are developing a
substantive application - workforce management, crm, data management,
repository, asset management or the like... realistically you can code
up to release oblivious of what is happening with memory management and
system performance. The difficulty is that developing in Flex is so
freaking cool that you can easily get caught up in features and visual
sweetness that you'll will forget to profile as you go to help you
target bottlenecks. Frankly - if you save performance tuning til' the
11th hour

[flexcoders] Re: How big does a SWF get before IE starts to worry?

2008-05-08 Thread Bjorn Schultheiss
I don't know what Rick was talking about, but if you're looking for
training, local info, etc, ask on the flexaussie mailing list.

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



--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> I assume you're the Doug he's talking about? I didn't know you lived
around
> here, should I?
> 
> And is there intermediate - advanced training going on in Flex in
Brisbane?
> I could probably get the powers-that-be to spring for some in the new
> Financial year when we're less rushed :)
> 
> -J
>




Re: [flexcoders] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Josh McDonald
I assume you're the Doug he's talking about? I didn't know you lived around
here, should I?

And is there intermediate - advanced training going on in Flex in Brisbane?
I could probably get the powers-that-be to spring for some in the new
Financial year when we're less rushed :)

-J


Re: [flexcoders] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Doug McCune
:) I've thoroughly enjoyed this thread so far...

Doug

On Thu, May 8, 2008 at 10:20 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:

>   Apologies to the list, I meant to address that off-list!
>
> -J
>
>
> On Fri, May 9, 2008 at 3:20 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>
>> Say what?
>>
>> The only point I was trying to make was that I already know about SQL and
>> such. And the reason I can't just switch to Flex 3 to do some profiling is
>> bugs Adobe introduced into SOAPEncoder with 2.01 HF2. When I get time, I'll
>> try and fix them, but I haven't got enough time and I've only managed to fix
>> one so far.
>>
>> I wasn't trying to be a big man saying the swf was large, I was just after
>> some info about whether or not I needed to worry. If the answer is simply
>> "no", why be a dick?
>>
>> I don't know anything about 3 x 5 cards (I'm not the Thoughtworks type),
>> and I don't give a shit who lives here. If there's some sort of training
>> going on around here for people who're already fairly familiar with Flex,
>> why don't you just point me to it, rather than practicing more
>> douchebaggery? What the hell is wrong with you?
>>
>> And my nuts are just fine, thanks.
>>
>>
>> On Fri, May 9, 2008 at 3:07 PM, Rick Winscot <[EMAIL PROTECTED]>
>> wrote:
>>
>>>JEE Ninja huh? I love that video on YouTUBE of the Shaolin Monk (
>>> http://www.youtube.com/watch?v=wMJ_b9uV1Lo) PWN_ER_FYING. So… who said
>>> you can't use that cool new feature in the IDE to switch to the 3.0 SDK and
>>> profile your brains out… and then switch back to the 2.0.1 Hotfix
>>> whatever??? Your answers aren't in any JEE box (the one you are thinking
>>> inside of).
>>>
>>>
>>>
>>> Generally – if your 1MB app erratically exceeds a 10MB footprint… modules
>>> probably aren't going to help you. When you said large app – I was thinking
>>> a little more than 1MB cough 20mb… cough 50mb. If you are worried about
>>> this one 1MB guy – I would think you need to be coming to the table with
>>> very specific and targeted questions on how to improve the performance of
>>> feature x.
>>>
>>>
>>>
>>> Ah… Brisbane. Alas – you are right. The earth if flat… Doug, Tracy,
>>> Steve, Alex and Matt are a figment of our imagination… and the sum of all
>>> things Flex can be written on one side of a 3 X 5 card.
>>>
>>>
>>>
>>> Do yer' nuts hurt? Hmm… cause I just kicked em' There are more answers
>>> than questions these days – enough in this earth for every/any one to have
>>> more than a fair share of light and knowledge.  The only real obstacle is
>>> not coming to the table hungry.
>>>
>>>
>>>
>>> Rick Winscot
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
>>> Behalf Of *Josh McDonald
>>> *Sent:* Friday, May 09, 2008 12:12 AM
>>> *To:* flexcoders@yahoogroups.com
>>> *Subject:* Re: [flexcoders] How big does a SWF get before IE starts to
>>> worry?
>>>
>>>
>>>
>>> Thanks for those tips, although I don't think I can action any of them on
>>> this project, given it's targeting Flex 2 (no profiler, no rpc source), I'm
>>> in Brisbane (unlikely there's any training that will benefit my skill level
>>> unfortunately), and I'm already a full-stack JEE ninja ;-)
>>>
>>> I'm definitely hoping we don't have to switch this project to modules, as
>>> it's 3/4 done already, I've been thrown in because there's some serious
>>> deadlines approaching, and I was just mainly wondering about how much leeway
>>> we'll have as the SWF for this is already over a meg. It's not CRM, but it's
>>> not a dashboard widget either ;-)
>>>
>>> -J
>>>
>>> On Fri, May 9, 2008 at 1:53 PM, Rick Winscot <[EMAIL PROTECTED]>
>>> wrote:
>>>
>>> If you are creating widgets or gizmos with Flex/Flash… I don't think you
>>> will ever hit the 'pain threshold.' However, if you are developing a
>>> substantive application – workforce management, crm, data management,
>>> repository, asset management or the like… realistically you can code up to
>>> release oblivious of what is happening with memory management and system
>>> performance. The difficulty is that developing in Flex is so freaking cool
>>> that you can easily get caught up in features and visual sweetness that
>>> you'll will forget to profile as you go to help you target bottlenecks.
>>> Frankly – if you save performance tuning til' the 11th hour… it's going
>>> to be rough.
>>>
>>>
>>>
>>> It's not just about the size of the swf – it all about coding to the
>>> platform… most reasonably configured system will be fine.  Here is a top
>>> five-ish list of things to think about.
>>>
>>>
>>>
>>> #. Modularize your app – you _*can*_eat a whale… one bite at a time.
>>>
>>> #. Profile as you go – if you start to see 'the signs' stop and figure
>>> out what the problem is. If you are patient the knowledge you gain in the
>>> process will provide a feedback loop re-injecting better approaches and
>>> broader understanding into your work.
>>>
>>> #. Training… there I said it. Spen

Re: [flexcoders] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Josh McDonald
Apologies to the list, I meant to address that off-list!

-J

On Fri, May 9, 2008 at 3:20 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:

> Say what?
>
> The only point I was trying to make was that I already know about SQL and
> such. And the reason I can't just switch to Flex 3 to do some profiling is
> bugs Adobe introduced into SOAPEncoder with 2.01 HF2. When I get time, I'll
> try and fix them, but I haven't got enough time and I've only managed to fix
> one so far.
>
> I wasn't trying to be a big man saying the swf was large, I was just after
> some info about whether or not I needed to worry. If the answer is simply
> "no", why be a dick?
>
> I don't know anything about 3 x 5 cards (I'm not the Thoughtworks type),
> and I don't give a shit who lives here. If there's some sort of training
> going on around here for people who're already fairly familiar with Flex,
> why don't you just point me to it, rather than practicing more
> douchebaggery? What the hell is wrong with you?
>
> And my nuts are just fine, thanks.
>
>
> On Fri, May 9, 2008 at 3:07 PM, Rick Winscot <[EMAIL PROTECTED]>
> wrote:
>
>>JEE Ninja huh? I love that video on YouTUBE of the Shaolin Monk (
>> http://www.youtube.com/watch?v=wMJ_b9uV1Lo) PWN_ER_FYING. So… who said
>> you can't use that cool new feature in the IDE to switch to the 3.0 SDK and
>> profile your brains out… and then switch back to the 2.0.1 Hotfix
>> whatever??? Your answers aren't in any JEE box (the one you are thinking
>> inside of).
>>
>>
>>
>> Generally – if your 1MB app erratically exceeds a 10MB footprint… modules
>> probably aren't going to help you. When you said large app – I was thinking
>> a little more than 1MB cough 20mb… cough 50mb. If you are worried about
>> this one 1MB guy – I would think you need to be coming to the table with
>> very specific and targeted questions on how to improve the performance of
>> feature x.
>>
>>
>>
>> Ah… Brisbane. Alas – you are right. The earth if flat… Doug, Tracy, Steve,
>> Alex and Matt are a figment of our imagination… and the sum of all things
>> Flex can be written on one side of a 3 X 5 card.
>>
>>
>>
>> Do yer' nuts hurt? Hmm… cause I just kicked em' There are more answers
>> than questions these days – enough in this earth for every/any one to have
>> more than a fair share of light and knowledge.  The only real obstacle is
>> not coming to the table hungry.
>>
>>
>>
>> Rick Winscot
>>
>>
>>
>>
>>
>>
>>
>> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
>> Behalf Of *Josh McDonald
>> *Sent:* Friday, May 09, 2008 12:12 AM
>> *To:* flexcoders@yahoogroups.com
>> *Subject:* Re: [flexcoders] How big does a SWF get before IE starts to
>> worry?
>>
>>
>>
>> Thanks for those tips, although I don't think I can action any of them on
>> this project, given it's targeting Flex 2 (no profiler, no rpc source), I'm
>> in Brisbane (unlikely there's any training that will benefit my skill level
>> unfortunately), and I'm already a full-stack JEE ninja ;-)
>>
>> I'm definitely hoping we don't have to switch this project to modules, as
>> it's 3/4 done already, I've been thrown in because there's some serious
>> deadlines approaching, and I was just mainly wondering about how much leeway
>> we'll have as the SWF for this is already over a meg. It's not CRM, but it's
>> not a dashboard widget either ;-)
>>
>> -J
>>
>> On Fri, May 9, 2008 at 1:53 PM, Rick Winscot <[EMAIL PROTECTED]>
>> wrote:
>>
>> If you are creating widgets or gizmos with Flex/Flash… I don't think you
>> will ever hit the 'pain threshold.' However, if you are developing a
>> substantive application – workforce management, crm, data management,
>> repository, asset management or the like… realistically you can code up to
>> release oblivious of what is happening with memory management and system
>> performance. The difficulty is that developing in Flex is so freaking cool
>> that you can easily get caught up in features and visual sweetness that
>> you'll will forget to profile as you go to help you target bottlenecks.
>> Frankly – if you save performance tuning til' the 11th hour… it's going
>> to be rough.
>>
>>
>>
>> It's not just about the size of the swf – it all about coding to the
>> platform… most reasonably configured system will be fine.  Here is a top
>> five-ish list of things to think about.
>>
>>
>>
>> #. Modularize your app – you _*can*_eat a whale… one bite at a time.
>>
>> #. Profile as you go – if you start to see 'the signs' stop and figure out
>> what the problem is. If you are patient the knowledge you gain in the
>> process will provide a feedback loop re-injecting better approaches and
>> broader understanding into your work.
>>
>> #. Training… there I said it. Spending a few bucks in a session with a
>>  guru will be incalculable.
>>
>> #. Source. Source. Source. It's all about looking into the Flex SDK source
>> as much as you can. Building 'hot rods' is a process of developing
>> (fanatical) deep understanding of you

Re: [flexcoders] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Josh McDonald
Say what?

The only point I was trying to make was that I already know about SQL and
such. And the reason I can't just switch to Flex 3 to do some profiling is
bugs Adobe introduced into SOAPEncoder with 2.01 HF2. When I get time, I'll
try and fix them, but I haven't got enough time and I've only managed to fix
one so far.

I wasn't trying to be a big man saying the swf was large, I was just after
some info about whether or not I needed to worry. If the answer is simply
"no", why be a dick?

I don't know anything about 3 x 5 cards (I'm not the Thoughtworks type), and
I don't give a shit who lives here. If there's some sort of training going
on around here for people who're already fairly familiar with Flex, why
don't you just point me to it, rather than practicing more douchebaggery?
What the hell is wrong with you?

And my nuts are just fine, thanks.

On Fri, May 9, 2008 at 3:07 PM, Rick Winscot <[EMAIL PROTECTED]> wrote:

>JEE Ninja huh? I love that video on YouTUBE of the Shaolin Monk (
> http://www.youtube.com/watch?v=wMJ_b9uV1Lo) PWN_ER_FYING. So… who said you
> can't use that cool new feature in the IDE to switch to the 3.0 SDK and
> profile your brains out… and then switch back to the 2.0.1 Hotfix
> whatever??? Your answers aren't in any JEE box (the one you are thinking
> inside of).
>
>
>
> Generally – if your 1MB app erratically exceeds a 10MB footprint… modules
> probably aren't going to help you. When you said large app – I was thinking
> a little more than 1MB cough 20mb… cough 50mb. If you are worried about
> this one 1MB guy – I would think you need to be coming to the table with
> very specific and targeted questions on how to improve the performance of
> feature x.
>
>
>
> Ah… Brisbane. Alas – you are right. The earth if flat… Doug, Tracy, Steve,
> Alex and Matt are a figment of our imagination… and the sum of all things
> Flex can be written on one side of a 3 X 5 card.
>
>
>
> Do yer' nuts hurt? Hmm… cause I just kicked em' There are more answers than
> questions these days – enough in this earth for every/any one to have more
> than a fair share of light and knowledge.  The only real obstacle is not
> coming to the table hungry.
>
>
>
> Rick Winscot
>
>
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Josh McDonald
> *Sent:* Friday, May 09, 2008 12:12 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] How big does a SWF get before IE starts to
> worry?
>
>
>
> Thanks for those tips, although I don't think I can action any of them on
> this project, given it's targeting Flex 2 (no profiler, no rpc source), I'm
> in Brisbane (unlikely there's any training that will benefit my skill level
> unfortunately), and I'm already a full-stack JEE ninja ;-)
>
> I'm definitely hoping we don't have to switch this project to modules, as
> it's 3/4 done already, I've been thrown in because there's some serious
> deadlines approaching, and I was just mainly wondering about how much leeway
> we'll have as the SWF for this is already over a meg. It's not CRM, but it's
> not a dashboard widget either ;-)
>
> -J
>
> On Fri, May 9, 2008 at 1:53 PM, Rick Winscot <[EMAIL PROTECTED]>
> wrote:
>
> If you are creating widgets or gizmos with Flex/Flash… I don't think you
> will ever hit the 'pain threshold.' However, if you are developing a
> substantive application – workforce management, crm, data management,
> repository, asset management or the like… realistically you can code up to
> release oblivious of what is happening with memory management and system
> performance. The difficulty is that developing in Flex is so freaking cool
> that you can easily get caught up in features and visual sweetness that
> you'll will forget to profile as you go to help you target bottlenecks.
> Frankly – if you save performance tuning til' the 11th hour… it's going to
> be rough.
>
>
>
> It's not just about the size of the swf – it all about coding to the
> platform… most reasonably configured system will be fine.  Here is a top
> five-ish list of things to think about.
>
>
>
> #. Modularize your app – you _*can*_eat a whale… one bite at a time.
>
> #. Profile as you go – if you start to see 'the signs' stop and figure out
> what the problem is. If you are patient the knowledge you gain in the
> process will provide a feedback loop re-injecting better approaches and
> broader understanding into your work.
>
> #. Training… there I said it. Spending a few bucks in a session with a
>  guru will be incalculable.
>
> #. Source. Source. Source. It's all about looking into the Flex SDK source
> as much as you can. Building 'hot rods' is a process of developing
> (fanatical) deep understanding of your subject – to the point you know when
> to bend the rules and when not to.
>
> #. Become the solution. Let's face it… in order to be a Flex 'rockstar' you
> are going to need to understand enterprise architecture, drool in sql, pound
> (as in eat large quantities of) webse

RE: [flexcoders] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Rick Winscot
JEE Ninja huh? I love that video on YouTUBE of the Shaolin Monk
(http://www.youtube.com/watch?v=wMJ_b9uV1Lo) PWN_ER_FYING. So. who said you
can't use that cool new feature in the IDE to switch to the 3.0 SDK and
profile your brains out. and then switch back to the 2.0.1 Hotfix
whatever??? Your answers aren't in any JEE box (the one you are thinking
inside of).

 

Generally - if your 1MB app erratically exceeds a 10MB footprint. modules
probably aren't going to help you. When you said large app - I was thinking
a little more than 1MB cough 20mb. cough 50mb. If you are worried about
this one 1MB guy - I would think you need to be coming to the table with
very specific and targeted questions on how to improve the performance of
feature x. 

 

Ah. Brisbane. Alas - you are right. The earth if flat. Doug, Tracy, Steve,
Alex and Matt are a figment of our imagination. and the sum of all things
Flex can be written on one side of a 3 X 5 card. 

 

Do yer' nuts hurt? Hmm. cause I just kicked em' There are more answers than
questions these days - enough in this earth for every/any one to have more
than a fair share of light and knowledge.  The only real obstacle is not
coming to the table hungry. 

 

Rick Winscot

 

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Friday, May 09, 2008 12:12 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How big does a SWF get before IE starts to worry?

 

Thanks for those tips, although I don't think I can action any of them on
this project, given it's targeting Flex 2 (no profiler, no rpc source), I'm
in Brisbane (unlikely there's any training that will benefit my skill level
unfortunately), and I'm already a full-stack JEE ninja ;-)

I'm definitely hoping we don't have to switch this project to modules, as
it's 3/4 done already, I've been thrown in because there's some serious
deadlines approaching, and I was just mainly wondering about how much leeway
we'll have as the SWF for this is already over a meg. It's not CRM, but it's
not a dashboard widget either ;-)

-J

On Fri, May 9, 2008 at 1:53 PM, Rick Winscot <[EMAIL PROTECTED]> wrote:

If you are creating widgets or gizmos with Flex/Flash. I don't think you
will ever hit the 'pain threshold.' However, if you are developing a
substantive application - workforce management, crm, data management,
repository, asset management or the like. realistically you can code up to
release oblivious of what is happening with memory management and system
performance. The difficulty is that developing in Flex is so freaking cool
that you can easily get caught up in features and visual sweetness that
you'll will forget to profile as you go to help you target bottlenecks.
Frankly - if you save performance tuning til' the 11th hour. it's going to
be rough.

 

It's not just about the size of the swf - it all about coding to the
platform. most reasonably configured system will be fine.  Here is a top
five-ish list of things to think about.

 

#. Modularize your app - you _can_eat a whale. one bite at a time.

#. Profile as you go - if you start to see 'the signs' stop and figure out
what the problem is. If you are patient the knowledge you gain in the
process will provide a feedback loop re-injecting better approaches and
broader understanding into your work.

#. Training. there I said it. Spending a few bucks in a session with a  guru
will be incalculable.

#. Source. Source. Source. It's all about looking into the Flex SDK source
as much as you can. Building 'hot rods' is a process of developing
(fanatical) deep understanding of your subject - to the point you know when
to bend the rules and when not to.

#. Become the solution. Let's face it. in order to be a Flex 'rockstar' you
are going to need to understand enterprise architecture, drool in sql, pound
(as in eat large quantities of) webservices/servlets/etc, and. well you get
the point. Buy some books. lots of em. Take a (qualified) nerd/geek out to
lunch. Ask to see cool things people 'talk' about and then ask to take a
look at the source.

 

Cheers,

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Thursday, May 08, 2008 10:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How big does a SWF get before IE starts to worry?

 

Hey guys,

I've been reading a lot about explorer not being so nice with Flex / Flasg
apps that use up a bit of memory, and I'm wondering at what kind of
thresholds this starts to become a problem? Is it mainly about SWF size, or
how loose you are with your allocations and leaving dead references around?

-J

-- 
"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] Re: Help with Module strategy

2008-05-08 Thread Josh McDonald
" if you want a G.I. Joe with kung-fooBAR grip. Don't settle for 10 Malibu
Ken dolls with pasted on peach-fuzz beards"

I love it!

On Fri, May 9, 2008 at 2:10 PM, Rick Winscot <[EMAIL PROTECTED]> wrote:

>Have you considered writing some of your libraries as ActionScript
> (only) libraries? Just a thought though… at the point you realize that
> things are getting a little 'too big and un-tamed' it is almost too late. My
> father always said, "only cry once." Meaning – if you want a G.I. Joe with
> kung-fooBAR grip. Don't settle for 10 Malibu Ken dolls with pasted on
> peach-fuzz beards. Get out your lawn mower and mow a few extra laws, baby
> sit until you puke, and buy stock in Red Bull. If you only cry once… and pay
> the price up front you will save untold hours of refactoring bits and pieces
> to get things working.
>
>
>
> About your chart dilemma – consider consolidating like chart types.
> Generalizing an interface to facilitate repurposing is smart and means that
> each one of your little chart dudes isn't the size, or greater, of the Flex
> chart library. Additionally – becoming proficient in primitive drawing could
> be much more valuable that using 'canned controls.' Take a look
> http://www.degrafa.com/ add a dash of creative thinking and you could dump
> charts… come up with a framework for reporting that is boot-licking
> delicious.
>
>
>
> Rick Winscot
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Bjorn Schultheiss
> *Sent:* Thursday, May 08, 2008 8:56 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Re: Help with Module strategy
>
>
>
> - the charts are in modules, optimized for the single host
> This sounds the most reasonable.
>
> If the modules need to be loaded into another shell they can be
> re-compiled for that purpose.
>
> I have each module in its own project and run the deploy build via ant.
>
> --- In flexcoders@yahoogroups.com , "Richard
> Rodseth" <[EMAIL PROTECTED]> wrote:
> >
> > I'd appreciate some input on my module strategy.
> >
> > I'm working on a charting application with a requirement that
> > individual charts be embeddable as "widgets" on arbitrary pages.
> >
> > I already have the bulk of the code in libraries, so have some freedom
> > to explore different packaging.
> >
> > I had originally thought that it would make sense to create a module
> > for each chart, and two separate "hosts", one main application and
> > one widget host. I understand that I would have to use RSLs and
> > framework caching to keep the module size down. Frankly, I'm a little
> > wary of that given the time constraints, and also because it depends
> > on the later player.
> >
> > Another approach was to just build a different application SWF for
> > each widget and modularize only when the main app becomes too large.
> >
> > Now I am considering the following:
> >
> > - the host is a single SWF with two states (widget and full). It loads
> > either one, or several modules based on runtime config
> > - the charts are in modules, optimized for the single host
> > - the single app and multiple modules are in one project, so I can
> > optimize for that app in Flexbuilder (though we do have continuous
> > integration set up too)
> >
> > The only downside I can think of is that if the "full" state of the
> > app has a lot of code besides the module code, the size of the widget
> > download will be larger than it needs to be. On the other hand, it
> > would allow the full app to be embedded as a widget, since the UX
> > would be determined at runtime. And I suppose the "full" host state
> > could itself be modularized.
> >
> > Comments? Thanks in advance.
> >
>
>   
>



-- 
"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] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Josh McDonald
Thanks for those tips, although I don't think I can action any of them on
this project, given it's targeting Flex 2 (no profiler, no rpc source), I'm
in Brisbane (unlikely there's any training that will benefit my skill level
unfortunately), and I'm already a full-stack JEE ninja ;-)

I'm definitely hoping we don't have to switch this project to modules, as
it's 3/4 done already, I've been thrown in because there's some serious
deadlines approaching, and I was just mainly wondering about how much leeway
we'll have as the SWF for this is already over a meg. It's not CRM, but it's
not a dashboard widget either ;-)

-J

On Fri, May 9, 2008 at 1:53 PM, Rick Winscot <[EMAIL PROTECTED]> wrote:

>If you are creating widgets or gizmos with Flex/Flash… I don't think
> you will ever hit the 'pain threshold.' However, if you are developing a
> substantive application – workforce management, crm, data management,
> repository, asset management or the like… realistically you can code up to
> release oblivious of what is happening with memory management and system
> performance. The difficulty is that developing in Flex is so freaking cool
> that you can easily get caught up in features and visual sweetness that
> you'll will forget to profile as you go to help you target bottlenecks.
> Frankly – if you save performance tuning til' the 11th hour… it's going to
> be rough.
>
>
>
> It's not just about the size of the swf – it all about coding to the
> platform… most reasonably configured system will be fine.  Here is a top
> five-ish list of things to think about.
>
>
>
> #. Modularize your app – you _*can*_eat a whale… one bite at a time.
>
> #. Profile as you go – if you start to see 'the signs' stop and figure out
> what the problem is. If you are patient the knowledge you gain in the
> process will provide a feedback loop re-injecting better approaches and
> broader understanding into your work.
>
> #. Training… there I said it. Spending a few bucks in a session with a
>  guru will be incalculable.
>
> #. Source. Source. Source. It's all about looking into the Flex SDK source
> as much as you can. Building 'hot rods' is a process of developing
> (fanatical) deep understanding of your subject – to the point you know when
> to bend the rules and when not to.
>
> #. Become the solution. Let's face it… in order to be a Flex 'rockstar' you
> are going to need to understand enterprise architecture, drool in sql, pound
> (as in eat large quantities of) webservices/servlets/etc, and… well you get
> the point. Buy some books… lots of em. Take a (qualified) nerd/geek out to
> lunch. Ask to see cool things people 'talk' about and then ask to take a
> look at the source.
>
>
>
> Cheers,
>
>
>
> Rick Winscot
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Josh McDonald
> *Sent:* Thursday, May 08, 2008 10:51 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] How big does a SWF get before IE starts to worry?
>
>
>
> Hey guys,
>
> I've been reading a lot about explorer not being so nice with Flex / Flasg
> apps that use up a bit of memory, and I'm wondering at what kind of
> thresholds this starts to become a problem? Is it mainly about SWF size, or
> how loose you are with your allocations and leaving dead references around?
>
> -J
>
> --
> "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] Re: Help with Module strategy

2008-05-08 Thread Rick Winscot
Have you considered writing some of your libraries as ActionScript (only)
libraries? Just a thought though. at the point you realize that things are
getting a little 'too big and un-tamed' it is almost too late. My father
always said, "only cry once." Meaning - if you want a G.I. Joe with
kung-fooBAR grip. Don't settle for 10 Malibu Ken dolls with pasted on
peach-fuzz beards. Get out your lawn mower and mow a few extra laws, baby
sit until you puke, and buy stock in Red Bull. If you only cry once. and pay
the price up front you will save untold hours of refactoring bits and pieces
to get things working.

 

About your chart dilemma - consider consolidating like chart types.
Generalizing an interface to facilitate repurposing is smart and means that
each one of your little chart dudes isn't the size, or greater, of the Flex
chart library. Additionally - becoming proficient in primitive drawing could
be much more valuable that using 'canned controls.' Take a look
http://www.degrafa.com/ add a dash of creative thinking and you could dump
charts. come up with a framework for reporting that is boot-licking
delicious. 

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Thursday, May 08, 2008 8:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Help with Module strategy

 

- the charts are in modules, optimized for the single host
This sounds the most reasonable.

If the modules need to be loaded into another shell they can be
re-compiled for that purpose.

I have each module in its own project and run the deploy build via ant.

--- In flexcoders@yahoogroups.com  ,
"Richard Rodseth" <[EMAIL PROTECTED]> wrote:
>
> I'd appreciate some input on my module strategy.
> 
> I'm working on a charting application with a requirement that
> individual charts be embeddable as "widgets" on arbitrary pages.
> 
> I already have the bulk of the code in libraries, so have some freedom
> to explore different packaging.
> 
> I had originally thought that it would make sense to create a module
> for each chart, and two separate "hosts", one main application and
> one widget host. I understand that I would have to use RSLs and
> framework caching to keep the module size down. Frankly, I'm a little
> wary of that given the time constraints, and also because it depends
> on the later player.
> 
> Another approach was to just build a different application SWF for
> each widget and modularize only when the main app becomes too large.
> 
> Now I am considering the following:
> 
> - the host is a single SWF with two states (widget and full). It loads
> either one, or several modules based on runtime config
> - the charts are in modules, optimized for the single host
> - the single app and multiple modules are in one project, so I can
> optimize for that app in Flexbuilder (though we do have continuous
> integration set up too)
> 
> The only downside I can think of is that if the "full" state of the
> app has a lot of code besides the module code, the size of the widget
> download will be larger than it needs to be. On the other hand, it
> would allow the full app to be embedded as a widget, since the UX
> would be determined at runtime. And I suppose the "full" host state
> could itself be modularized.
> 
> Comments? Thanks in advance.
>

 



RE: [flexcoders] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Rick Winscot
If you are creating widgets or gizmos with Flex/Flash. I don't think you
will ever hit the 'pain threshold.' However, if you are developing a
substantive application - workforce management, crm, data management,
repository, asset management or the like. realistically you can code up to
release oblivious of what is happening with memory management and system
performance. The difficulty is that developing in Flex is so freaking cool
that you can easily get caught up in features and visual sweetness that
you'll will forget to profile as you go to help you target bottlenecks.
Frankly - if you save performance tuning til' the 11th hour. it's going to
be rough.

 

It's not just about the size of the swf - it all about coding to the
platform. most reasonably configured system will be fine.  Here is a top
five-ish list of things to think about.

 

#. Modularize your app - you _can_eat a whale. one bite at a time.

#. Profile as you go - if you start to see 'the signs' stop and figure out
what the problem is. If you are patient the knowledge you gain in the
process will provide a feedback loop re-injecting better approaches and
broader understanding into your work.

#. Training. there I said it. Spending a few bucks in a session with a  guru
will be incalculable.

#. Source. Source. Source. It's all about looking into the Flex SDK source
as much as you can. Building 'hot rods' is a process of developing
(fanatical) deep understanding of your subject - to the point you know when
to bend the rules and when not to.

#. Become the solution. Let's face it. in order to be a Flex 'rockstar' you
are going to need to understand enterprise architecture, drool in sql, pound
(as in eat large quantities of) webservices/servlets/etc, and. well you get
the point. Buy some books. lots of em. Take a (qualified) nerd/geek out to
lunch. Ask to see cool things people 'talk' about and then ask to take a
look at the source.

 

Cheers,

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Thursday, May 08, 2008 10:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How big does a SWF get before IE starts to worry?

 

Hey guys,

I've been reading a lot about explorer not being so nice with Flex / Flasg
apps that use up a bit of memory, and I'm wondering at what kind of
thresholds this starts to become a problem? Is it mainly about SWF size, or
how loose you are with your allocations and leaving dead references around?

-J

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

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

 

<><>

[flexcoders] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Josh McDonald
Hey guys,

I've been reading a lot about explorer not being so nice with Flex / Flasg
apps that use up a bit of memory, and I'm wondering at what kind of
thresholds this starts to become a problem? Is it mainly about SWF size, or
how loose you are with your allocations and leaving dead references around?

-J

-- 
"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] ComboBox and ViewStack inside a Repeater

2008-05-08 Thread Josh McDonald
 ?

On another note, an entire viewstack inside a repeater seems like a recipe
for memory usage to me. Are you sure you couldn't at least use a list? It
instantiates less components and scrolls by changing renderer.data

-J

On Fri, May 9, 2008 at 12:25 PM, kalpkat9 <[EMAIL PROTECTED]> wrote:

>   Hi all,
>
> I have a combobox and a viewstack inside a repeater. How can I get to
> change the the viewstack child containers by the changing values of
> the combobox, during runtime. are they any reference examples that I
> cud take a look at.
> Thank you,
> Kal.
>
>  
>



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

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


[flexcoders] ComboBox and ViewStack inside a Repeater

2008-05-08 Thread kalpkat9
Hi all,

I have a combobox and a viewstack inside a repeater. How can I get to
change the the viewstack child containers by the changing values of
the combobox, during runtime. are they any reference examples that I
cud take a look at.
Thank you,
Kal.



[flexcoders] Re: Help with Module strategy

2008-05-08 Thread Bjorn Schultheiss
- the charts are in modules, optimized for the single host
This sounds the most reasonable.

If the modules need to be loaded into another shell they can be
re-compiled for that purpose.

I have each module in its own project and run the deploy build via ant.



--- In flexcoders@yahoogroups.com, "Richard Rodseth" <[EMAIL PROTECTED]> wrote:
>
> I'd appreciate some input on my module strategy.
> 
> I'm working on a charting application with a requirement that
> individual charts be embeddable as "widgets" on arbitrary pages.
> 
> I already have the bulk of the code in libraries, so have some freedom
> to explore different packaging.
> 
> I had originally thought that it would make sense to create a module
> for each chart, and two separate "hosts", one  main application and
> one widget host. I understand that I would have to use RSLs and
> framework caching to keep the module size down. Frankly, I'm a little
> wary of that given the time constraints, and also because it depends
> on the later player.
> 
> Another approach was to just build a different application SWF for
> each widget and modularize only when the main app becomes too large.
> 
> Now I am considering the following:
> 
> - the host is a single SWF with two states (widget and full). It loads
> either one, or several modules based on runtime config
> - the charts are in modules, optimized for the single host
> - the single app and multiple modules are in one project, so I can
> optimize for that app in Flexbuilder (though we do have continuous
> integration set up too)
> 
> The only downside I can think of is that if the "full" state of the
> app has a lot of code besides the module code, the size of the widget
> download will be larger than it needs to be. On the other hand, it
> would allow the full app to be embedded as a widget, since the UX
> would be determined at runtime. And I suppose the "full" host state
> could itself be modularized.
> 
> Comments? Thanks in advance.
>




[flexcoders] Re: need help deciphering error message

2008-05-08 Thread hoytlee2000
Thanks!

this makes sense, let me try out what you suggest.

be well,
Hoyt

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> This is a wrong assumption.  Only the first viewStack child will be
> instantiated initially; unless you use the evil creationPolicy="all"
> setting.  If you run your program in debug mode, it should break on the
> exact line that is causing the error; to help you pinpoint the problem. 
> Since your second viewStack contains the comboBox, you might be trying
> to explicitly set the selectedIndex of a control that doesn't exist yet:
> 
> courseCat.selectedIndex = 0;
> 
> The comboBox will not be instantialted until you change the viewStack's
> selectedIndex.  You can get around this by using a bound variable for
> the comboBox's selectedIndex.
> 
> 
> 
> In the script:
> 
> [Bindable]
> private var myComboBoxSelectedIndex : int = -1;
> // use public if necessary - can also set the default index to 0 here;
> if desired.
> 
> in the resultHandler:
> 
> //courseCat.selectedIndex = 0;
> myComboBoxSelectedIndex = 0;
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "hoytlee2000" 
> wrote:
> >
> > I checked and the combobox with id courseCat is there, does it make a
> > difference that it is on the second canvas of a viewstack container?
> >
> > I can see it throwing an error if it's not drawn till needed, but I
> > thought that viewstack container just control visibility and that all
> > it's children are actually created just not visible.
> >
> > Is this assumption wrong?
> >
> > thanks,
> > Hoyt
> >
> >
> > --- In flexcoders@yahoogroups.com, "Josh McDonald" dznuts@ wrote:
> > >
> > > This would imply that courseCat is null, or perhaps if the exception
> is
> > > actually being thrown inside the SDK code, it could have a null
> > > dataProvider? I'm not sure about that second possibility though.
> > >
> > > -J
> > >
> > > On Thu, May 8, 2008 at 3:36 PM, hoytlee2000 hoytlee2000@ wrote:
> > >
> > > > private function configHandler(evt:ResultEvent):void {
> > > > catList = evt.result.config.categories.cat;
> > > > catList.addItemAt('None', 0);
> > > > courseCat.selectedIndex = 0;
> > > > }
> > > >
> > > > this is line 299: courseCat.selectedIndex = 0;
> > > >
> > > > thanks,
> > > > hoyt
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com ,
> > "Alex
> > > > Harui"  wrote:
> > > > >
> > > > > What is the code at courseInfo.mxml at line 299?
> > > > >
> > > > >
> > > > >
> > > > > 
> > > > >
> > > > > From: flexcoders@yahoogroups.com 
> > [mailto:
> > > > flexcoders@yahoogroups.com ] On
> > > > > Behalf Of hoytlee2000
> > > > > Sent: Wednesday, May 07, 2008 10:11 PM
> > > > > To: flexcoders@yahoogroups.com 
> > > > > Subject: [flexcoders] need help deciphering error message
> > > > >
> > > > >
> > > > >
> > > > > Hello,
> > > > >
> > > > > I get the error message below when I am running my application,
> > > > > however it runs fine when I click continue. There isn't an error
> > when
> > > > > I compile in Flex builder. I checked the function that
> > references the
> > > > > object and they are all defined and the objects exist.
> > > > >
> > > > > The only thing I can think of is that the object that is
> > referenced in
> > > > > the function isn't displayed on the application startup (its on
> the
> > > > > second canvas of a view stack) so it throws this error, however
> > when I
> > > > > move the call to the function to execute only when the second
> canvas
> > > > > is displayed I still get the error.
> > > > >
> > > > > I'm sure its a common error that many newbies must hit. I
> appreciate
> > > > > any clues to look for in the code.
> > > > >
> > > > > Thanks,
> > > > > Hoyt
> > > > >
> > > > > TypeError: Error #1009: Cannot access a property or method of a
> null
> > > > > object reference.
> > > > >
> > > > > at
> > > > >
> >
> courseInfo/configHandler()[/Users/hoytng/Sites/pdiCMS/CourseMgmtSystem/c
> > > > > ourseInfo/src/courseInfo.mxml:299]
> > > > > at
> > > > >
> >
> courseInfo/__courseCatHTTP_result()[/Users/hoytng/Sites/pdiCMS/CourseMgm
> > > > > tSystem/courseInfo/src/courseInfo.mxml:429]
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > "Therefore, send not to know For whom the bell tolls. It tolls for
> > thee."
> > >
> > > :: Josh 'G-Funk' McDonald
> > > :: 0437 221 380 :: josh@
> > >
> >
>




[flexcoders] Re: Modules the way to go?

2008-05-08 Thread Bjorn Schultheiss
unloading the module does not guarantee it will cleaned up by Garbage
Collection.

You can use the Profiler to assist you see what has be collected by GC
and what hasn't.

Grant Skinner wrote a 3 part article on this explaining the details.
http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html




--- In flexcoders@yahoogroups.com, "Daniel" <[EMAIL PROTECTED]> wrote:
>
> 
> The crashing of the explorer is due to the amount of load in memory.
> It's not a Flex Error in the white box at the top left form. 
> 
> We load the modules this way:
> 
> public function createModule ( url : String ) : void
> {
>   var panel : Panel = new Panel();
>   var module : IModuleInfo = ModuleManager.getModule( url 
> );
>   module.addEventListener( ModuleEvent.READY,
>   function moduleReadyHandler ( event : 
> ModuleEvent ) : void
>   {
>   var view : UIComponent = 
> module.factory.create() as UIComponent;
>   view.x = 0;
>   view.y = 0;
>   view.percentHeight = 100;
>   view.percentWidth = 100;
>   panel.addChild( view );
>   module.removeEventListener( 
> ModuleEvent.READY,
moduleReadyHandler );
>   }
>   );
>   module.load ( );
> }
> 
> 
> and the unload is done this way:
> 
> public function closeModule ( url : String ) : void
> {
>   var module : IModuleInfo = ModuleManager.getModule( url 
>  );
>   module.unload();
> }
> 
> It's simple... basic... Am I missing something?
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Gregor Kiddie"  wrote:
> >
> > How are you unloading the modules? We've found that its relatively
tough
> > to get a module garbage collected given the amount of references
usually
> > flying round the place!
> > 
> > Also, have you debugged the app to find out exactly what is happening
> > when the crashing behaviour occurs? It might be more straightforward
> > then you think.
> > 
> >  
> > 
> > Gk.
> > 
> > Gregor Kiddie
> > Senior Developer
> > INPS
> > 
> > Tel:   01382 564343
> > 
> > Registered address: The Bread Factory, 1a Broughton Street, London SW8
> > 3QJ
> > 
> > Registered Number: 1788577
> > 
> > Registered in the UK
> > 
> > Visit our Internet Web site at www.inps.co.uk
> > http://www.inps.co.uk/> 
> > 
> > The information in this internet email is confidential and is intended
> > solely for the addressee. Access, copying or re-use of information
in it
> > by anyone else is not authorised. Any views or opinions presented are
> > solely those of the author and do not necessarily represent those of
> > INPS or any of its affiliates. If you are not the intended recipient
> > please contact is.helpdesk@
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of Daniel
> > Sent: 06 May 2008 22:15
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Modules the way to go?
> > 
> >  
> > 
> > 
> > 40 modules running at the same time with no issues?
> > God... That's an accomplishment... Does RAM and processor have
> > something to do with it? Our test computers are running on 1GB RAM,
> > and most have Flex Builder opened at a time...
> > 
> > The desktop manager load the modules per user request... The same for
> > unloading them... The module loaders are childs of a panel that can be
> > draggable and resizable, with a maximize and a close button... So if
> > the user choose to open N modules at the same, N modules will be
> > displayed...
> > 
> > A problem might be that by rule, the modules have tons of bindings...
> > Each component have at least one binding to it's correspondent value
> > in the modelLocator, and each component that have a dataProvider have
> > at one more binding... This bindings are not being set to "unwatch"
> > after the modules are unloaded... Could this be the issue that is
> > overloading the application and crashing the browser? 
> > 
> > --- In flexcoders@yahoogroups.com

> > , "Bjorn Schultheiss"
> >  wrote:
> > >
> > > Any external swf you load can crash your app.
> > > It's a really big issue with the player at the moment.
> > > 
> > > From my experience Modules provide you a good basis for multi-swf
> > > architecture with Flex.
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com
> >  , "Gregor Kiddie" 
> > wrote:
> > > >
> > > > "I won't develop the modules"
> > > > 
> > > > Well, that's your biggest problem, without being able to
control the
> > > > modules, you can't guarantee the behaviour. It's quite possible if

[flexcoders] Help with Module strategy

2008-05-08 Thread Richard Rodseth
I'd appreciate some input on my module strategy.

I'm working on a charting application with a requirement that
individual charts be embeddable as "widgets" on arbitrary pages.

I already have the bulk of the code in libraries, so have some freedom
to explore different packaging.

I had originally thought that it would make sense to create a module
for each chart, and two separate "hosts", one  main application and
one widget host. I understand that I would have to use RSLs and
framework caching to keep the module size down. Frankly, I'm a little
wary of that given the time constraints, and also because it depends
on the later player.

Another approach was to just build a different application SWF for
each widget and modularize only when the main app becomes too large.

Now I am considering the following:

- the host is a single SWF with two states (widget and full). It loads
either one, or several modules based on runtime config
- the charts are in modules, optimized for the single host
- the single app and multiple modules are in one project, so I can
optimize for that app in Flexbuilder (though we do have continuous
integration set up too)

The only downside I can think of is that if the "full" state of the
app has a lot of code besides the module code, the size of the widget
download will be larger than it needs to be. On the other hand, it
would allow the full app to be embedded as a widget, since the UX
would be determined at runtime. And I suppose the "full" host state
could itself be modularized.

Comments? Thanks in advance.


[flexcoders] Re: Modules the way to go?

2008-05-08 Thread Daniel

The crashing of the explorer is due to the amount of load in memory.
It's not a Flex Error in the white box at the top left form. 

We load the modules this way:

public function createModule ( url : String ) : void
{
var panel : Panel = new Panel();
var module : IModuleInfo = ModuleManager.getModule( url 
);
module.addEventListener( ModuleEvent.READY,
function moduleReadyHandler ( event : 
ModuleEvent ) : void
{
var view : UIComponent = 
module.factory.create() as UIComponent;
view.x = 0;
view.y = 0;
view.percentHeight = 100;
view.percentWidth = 100;
panel.addChild( view );
module.removeEventListener( 
ModuleEvent.READY, moduleReadyHandler );
}
);
module.load ( );
}


and the unload is done this way:

public function closeModule ( url : String ) : void
{
var module : IModuleInfo = ModuleManager.getModule( url 
 );
module.unload();
}

It's simple... basic... Am I missing something?



--- In flexcoders@yahoogroups.com, "Gregor Kiddie" <[EMAIL PROTECTED]> wrote:
>
> How are you unloading the modules? We've found that its relatively tough
> to get a module garbage collected given the amount of references usually
> flying round the place!
> 
> Also, have you debugged the app to find out exactly what is happening
> when the crashing behaviour occurs? It might be more straightforward
> then you think.
> 
>  
> 
> Gk.
> 
> Gregor Kiddie
> Senior Developer
> INPS
> 
> Tel:   01382 564343
> 
> Registered address: The Bread Factory, 1a Broughton Street, London SW8
> 3QJ
> 
> Registered Number: 1788577
> 
> Registered in the UK
> 
> Visit our Internet Web site at www.inps.co.uk
> http://www.inps.co.uk/> 
> 
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it
> by anyone else is not authorised. Any views or opinions presented are
> solely those of the author and do not necessarily represent those of
> INPS or any of its affiliates. If you are not the intended recipient
> please contact [EMAIL PROTECTED]
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Daniel
> Sent: 06 May 2008 22:15
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Modules the way to go?
> 
>  
> 
> 
> 40 modules running at the same time with no issues?
> God... That's an accomplishment... Does RAM and processor have
> something to do with it? Our test computers are running on 1GB RAM,
> and most have Flex Builder opened at a time...
> 
> The desktop manager load the modules per user request... The same for
> unloading them... The module loaders are childs of a panel that can be
> draggable and resizable, with a maximize and a close button... So if
> the user choose to open N modules at the same, N modules will be
> displayed...
> 
> A problem might be that by rule, the modules have tons of bindings...
> Each component have at least one binding to it's correspondent value
> in the modelLocator, and each component that have a dataProvider have
> at one more binding... This bindings are not being set to "unwatch"
> after the modules are unloaded... Could this be the issue that is
> overloading the application and crashing the browser? 
> 
> --- In flexcoders@yahoogroups.com 
> , "Bjorn Schultheiss"
>  wrote:
> >
> > Any external swf you load can crash your app.
> > It's a really big issue with the player at the moment.
> > 
> > From my experience Modules provide you a good basis for multi-swf
> > architecture with Flex.
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com
>  , "Gregor Kiddie" 
> wrote:
> > >
> > > "I won't develop the modules"
> > > 
> > > Well, that's your biggest problem, without being able to control the
> > > modules, you can't guarantee the behaviour. It's quite possible if
> one
> > > misbehaves it could lock your app up.
> > > 
> > > 
> > > 
> > > "If I have several small modules opened (say 6 to 10, each of 20K to
> > > 60K size), they shouldnt crash or overload the browser?"
> > > 
> > > No they shouldn't. We run an application with similar amounts of
> modules
> > > (though bigger in size) without too many problems. There is
> anecdotal
> > > evidence of people on this board running with many more (40? IIRC).
> > > 
> > > How are you organising the desktop? Do you have all the modules
> > > displayed at the same time (you did mention open but

[flexcoders] Changes in dot releases of Flash Player 9

2008-05-08 Thread Bill Brown
I'm running into issues with an AS3 project on versions of Flash Player 9
prior to 9.0.115.
Does anyone know were I can find a change log or a bug list of Flash Player
9 dot releases?


Re: [flexcoders] Need help with drawing on a plot chart please.

2008-05-08 Thread Paul Hastings
Mark wrote:
> comes out to about 82 and places it 82 pixels in. I need that line
> to be placed on the #82 tick mark. So if both the chart's X & Y
> Axis span from 0 to 100 it places it where the 82 would be, not 82
> pixels in. Can anyone help with this, what do I need to add?

http://livedocs.adobe.com/flex/3/html/help.html?content=charts_eventsandeffects_13.html



RE: [flexcoders] BUG. TabNavigator in a Module

2008-05-08 Thread Alex Harui
The first problem is the classic "shared code" problem discussed in the
modules preso in my blog.

 

I've not heard of the second problem.  I'd try to find out what "just
not there" means.  It could have the wrong size, or never got created or
some other problem.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Corey Smaller
Sent: Thursday, May 08, 2008 2:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] BUG. TabNavigator in a Module

 

has anyone encountered this? first problem I get is the
historyManager crashes when loading a module with a tabnavigator hard
coded into it. So, in the main app i added: 

import mx.managers.HistoryManager;
private var hist:HistoryManager; 

this fixed THAT problem but now, when you load the module the
tabnavigator is just not there. HOWEVER, when I programmatically add
it in the creation complete , like so:
//CODE:

var tabNav:TabNavigator = new TabNavigator();

var c1:Canvas = new Canvas();
c1.label = "canvas";
c1.width=200;
c1.height= 100;
tabNav.addChild(c1);
var c2:Canvas = new Canvas();
c2.label = "canvas2";
c2.width=200;
c2.height= 100;
tabNav.addChild(c2);
prodHeaderCanvas.addChild(tabNav)

//end code

anyone know about this bug? I just downloaded the nightly build but
havent installed it yet. Hoping this will fix the prob. Cost me
about 4 hours of debugging.
just an FYI
Corey

 



RE: [flexcoders] HorizontalList.removeChildAt(index)

2008-05-08 Thread Alex Harui
When you change the dataProvider, the HLIst should update for you.  It
generates renderer instances based on the data and basically ignores
addChild/removeChild calls.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Carlo Gulliani
Sent: Wednesday, May 07, 2008 11:54 PM
To: Flexcoders
Subject: [flexcoders] HorizontalList.removeChildAt(index)

 

Good time, everybody. I've a problem. When I use HorizontalList I can't
remove any childs. So, I write code:



and code for it:





This error doesn't give me to add new child to HorizontalList. After
deleted some child and when I want to add new child, I must press two
times mouse's button for adding child and I ge! t next scheme:

[1st element] [2nd element] [empty] [3rd element (btw, it's 4th element,
simple the 3rd element is not visible)]


Now playing: Nena - She's like a Rainbow
 
posted with FoxyTunes  

 



Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
it now.
 

 



Re: [flexcoders] Vector printing and transparency - consistency problem

2008-05-08 Thread Josh McDonald
Using transparency causes some sort of "mode switch" inside Flash. It used
to be one of the tricks you could do in order to get around a bug that was
in the player for years where movement over the top of a bitmap would cause
parts of it to shift around by a few pixels. So my long-winded point is that
it's probably a fundamental thing.

BTW does that bug still exist? I haven't done straight Flash since mx2.

-J

On Fri, May 9, 2008 at 8:25 AM, toofah_gm <[EMAIL PROTECTED]> wrote:

>   OK, I've got most of my vector printing working and looking really
> nice except for transparency.
>
> I sure wish that I could print images with transparency while still
> doing Vector printing, but understand that there is currently no way
> to do this right now. Will this be offered in the future?
>
> The problem that I am still having is consistency. Pretend that I
> have a page with 5 images on it, each one has some transparency in it.
> If I print this same page over and over I will get different results
> each time. Sometimes the page will only print images #1, #3, and #4.
> The next time it might only print images #2, #3, and #5. The next
> time it might print all 5 images. The results seem to be random. The
> images have all been pre-loaded before printing and it doesn't seem to
> be a loading problem. The problem ONLY exists for images with
> transparency in them. Any picture that doesn't have transparency in
> it will print correctly every time without fail.
>
> Does anyone have any ideas what is happening? I sure would like some
> consistency so that I will know what customers can expect.
>
> Thanks!
>
>  
>



-- 
"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: Wierd behaviour with selectedItem on Datagrid

2008-05-08 Thread Alex Harui
When you apply a sort to a collection we use the collection to find
selectedItems, hoping that is faster than scanning the collection
ourselves.  In your case you do not have unique values in the sort
column so selectedItem finds an arbitrary match and things go downhill
from there.  That's probably worth filing a bug for.

 

I was able to get your example to work by using selectedIndex like this:

 

private function cc() : void{

 

array = new ArrayCollection([

{"count" : 1207662300, "wp" : "A"},

{"count" : 1207662300, "wp" : "B"},

{"count" : 1207662300, "wp" : "C"},

{"count" : 1207662300, "wp" : "D"},

{"count" : 1207662300, "wp" : "E"}

 

]);

 

var sorting : Sort = new Sort();

var sortByCount : SortField = new

SortField("count",false,true,true);

sorting.fields = [sortByCount];

this.array.sort = sorting;

this.array.refresh();

 

dg.selectedIndex = 3;

 

}

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of shafram
Sent: Thursday, May 08, 2008 11:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Wierd behaviour with selectedItem on Datagrid

 

Thanks for the workarounds but the problem still exists in Flex 2 even
after setting the selectedItem using the selectedIndex. This is also a
bug in Flex 3 but at least there seems a workaround.

--- In flexcoders@yahoogroups.com 
, "Santiago Gonzales" <[EMAIL PROTECTED]> wrote:
>
> I'm also not sure why this happens, but if you change the code in
> function cc of dg.selectedItem = array[3] to dg.selectedIndex = 3 it
> works.
> 
> --- In flexcoders@yahoogroups.com
 , "jmfillman"  wrote:
> >
> > Not sure if this is a bug, kind of looks like it, but you can
prevent 
> > this by doing this:
> > 
> >  > itemClick="dg.selectedItem = array[dg.selectedIndex]; ck(event)">
> > 
> > 
> > --- In flexcoders@yahoogroups.com
 , "shafram"  wrote:
> > >
> > > Hello I am encountering a strange problem when I try to select an 
> > item
> > > after an initial sort order has been provided.
> > > 
> > > In this example, I have 5 items with all the same count. My
initial
> > > sorting is on the count field.
> > > Once the initial sort has been set, I programmatically select the 
> > 4th
> > > item in my array which is Letter "D". If I then try to click on 
> > Letter
> > > "A" which is right above "D", The alert box will display "D" 
> > not "A" in
> > > Flex 3.
> > > 
> > > In flex 2 the event.target.selectedItem is null and an exception
is
> > > thrown.
> > > 
> > > Here is the source code. Am I doing something wrong or is this a 
> > bug in
> > > flex?
> > > 
> > > 
> > > http://www.adobe.com/2006/mxml
 "
> > > layout="absolute" creationComplete="cc()">
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  > dataField="count"/>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> >
>

 



[flexcoders] Vector printing and transparency - consistency problem

2008-05-08 Thread toofah_gm
OK, I've got most of my vector printing working and looking really
nice except for transparency.

I sure wish that I could print images with transparency while still
doing Vector printing, but understand that there is currently no way
to do this right now.  Will this be offered in the future?

The problem that I am still having is consistency.  Pretend that I
have a page with 5 images on it, each one has some transparency in it.
 If I print this same page over and over I will get different results
each time.  Sometimes the page will only print images #1, #3, and #4.
 The next time it might only print images #2, #3, and #5.  The next
time it might print all 5 images.  The results seem to be random.  The
images have all been pre-loaded before printing and it doesn't seem to
be a loading problem.  The problem ONLY exists for images with
transparency in them.  Any picture that doesn't have transparency in
it will print correctly every time without fail.

Does anyone have any ideas what is happening?  I sure would like some
consistency so that I will know what customers can expect.

Thanks!



Re: [flexcoders] Flex 3 Maven plug-in?

2008-05-08 Thread VELO
Hi,

You can try flex-mojos:
http://blog.flex-mojos.info/


VELO

On Thu, May 8, 2008 at 5:44 PM, baztheman <[EMAIL PROTECTED]> wrote:

>   Hi,
>
> We are moving from Flex 2 to Flex 3 and currently using an altered
> version of Flex2Mojo (I think from ServerBox).
>
> Is there any Flex 3 Maven plug-in out there? I am only using Flex 3
> SDK and Flex 3 eclipse plug-in.
>
> Thank you.
>
> A.
>
>  
>


[flexcoders] Re: Adding/Removing child components

2008-05-08 Thread kalpkat9
Thank you all.
...to an extent, the repeater brings the functionality in place. 
here is the code:

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








 



   
  



  
 

  







--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Tuesday 06 May 2008, kalpkat9 wrote:
> > I dont know where I am missing it, but I am only able to remove 
the
> > lines from the bottom of the stack and I wish to remove the line
> > items as such with their relevant index.
> 
> If you use a Repeater bound to an ArrayCollection of the items, you 
could use 
> ArrayCollection.removeItemAt() and it should Just Work.
> 
> -- 
> Tom Chiverton
> Helping to conveniently unleash world-class content
> on: http://thefalken.livejournal.com
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at Halliwells LLP, 3 Hardman Square, 
Spinningfields, Manchester, M3 3EB.  A list of members is available 
for inspection at the registered office. Any reference to a partner 
in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 2500.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] Re: count up/down effect?

2008-05-08 Thread Tim Hoff
If you're just looking to gradually increment the variable over time, 
update it using a timer; like every second or so.

-TH





[flexcoders] BUG. TabNavigator in a Module

2008-05-08 Thread Corey Smaller
has anyone encountered this?  first problem I get is the
historyManager crashes when loading a module with a tabnavigator hard
coded into it.  So, in the main app i added: 

import mx.managers.HistoryManager;
private var hist:HistoryManager; 

this fixed THAT problem but now, when you load the module the
tabnavigator is just not there. HOWEVER, when I programmatically add
it in the creation complete , like so:
//CODE:

var tabNav:TabNavigator = new TabNavigator();

var c1:Canvas = new Canvas();
c1.label = "canvas";
c1.width=200;
c1.height= 100;
tabNav.addChild(c1);
var c2:Canvas = new Canvas();
c2.label = "canvas2";
c2.width=200;
c2.height= 100;
tabNav.addChild(c2);
prodHeaderCanvas.addChild(tabNav)


//end code

anyone know about this bug? I just downloaded the nightly build but
havent installed it yet.  Hoping this will fix the prob.  Cost me
about 4 hours of debugging.
just an FYI
Corey





Re: [flexcoders] reading serial port with AIR / or pipe in linux with AIR application

2008-05-08 Thread yiğit boyar
yes,
what came to my  mind is that,
I will write a java program which will listen the serial port and open a
server socket.
my AIR application will connect to the java application and get the data
using socket.
i this way, it will be fast and seamless...
thnks.
yigit

On Thu, May 8, 2008 at 6:39 PM, Kevin Aebig <[EMAIL PROTECTED]> wrote:

>I'm quite sure that direct port access is out of the question, but you
> could build a small service that reads that data and outputs it as a
> realtime XML server locally. That way you could get live updates and not
> worry about delay.
>
>
>
> !k
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *yigit boyar
> *Sent:* Thursday, May 08, 2008 1:10 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] reading serial port with AIR / or pipe in linux
> with AIR application
>
>
>
> hi folks,
> is there a way to read data from serial port ? (RS232 - 9pin cable)
> I couldn't find any example/API and not very hopeful but Java has it why
> not AIR?
>
> I have an embedded HW and the instructor requires a good looking GUI, so I
> want
> to do the GUI with AIR, if I can.
> From internet searchs, people suggest to write a C code to read data and
> export to a file
> from which Flex will read, but considering 5ms precision will not be
> possible in this way. I can do this
> with pipes of linux, but is there a way to pipe an AIR application with an
> executable in linux ?
>
> Any help/suggestion is welcome,
> thanks
>
> yigit
>
>  
>


[flexcoders] Flex 3 Maven plug-in?

2008-05-08 Thread baztheman
Hi,

We are moving from Flex 2 to Flex 3 and currently using an altered
version of Flex2Mojo (I think from ServerBox). 

Is there any Flex 3 Maven plug-in out there? I am only using Flex 3
SDK and Flex 3 eclipse plug-in.

Thank you.

A.



[flexcoders] Re: Chart itemRenderer and CSS

2008-05-08 Thread twgonzalez
Peter,

Did you ever submit a bug on this in JIRA, or determine a work-around.  I am 
struggling 
with the same issue, and looking at the source code for the charts, it does not 
seem like 
they are creating a factory if none exists.

- Tom

--- In flexcoders@yahoogroups.com, "Peter Hall" <[EMAIL PROTECTED]> wrote:
>
> I have custom item renderer for a ColumnChart in Flex 3 b3.
> 
> I can make it work in MXML or ActionScript, but I get errors when I do
> it with CSS.
> 
> works:
> columnSeries.setStyle("itemRenderer", new ClassFactory(MyRenderer));
> 
> works:
> 
> 
> Doesn't work:
> .mySeries {
> itemRenderer:ClassReference('package.MyRenderer');
> }
> 
> 
> The error is that it can't convert MyRenderer$ to IFactory. I have
> tried using a class that implements IFactory too, but it still falls
> over because it's not creating an instance, to even be able to call
> the newInstance() method.
> 
> It looks like a bug in the charts, because other components can handle
> this ok, but t's hard to know without the chart source...
> 
> 
> Peter
>





RES: RES: [flexcoders] value object binding problem

2008-05-08 Thread Luciano Manerich Junior
Hey ibo,
 
A map can not be converted to an ArrayCollection (
http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.
htm?context=LiveDocs_Parts&file=1103.html )
 
A map will be converted to an Generic Object, and the key will be a
property:
 
public class LookupData { 
[ArrayElementType("package.ClassA")]
public var attributeA:ArrayCollection;
[ArrayElementType("package.ClassB")]
public var attributeB:ArrayCollection;
public var attribute1:Object;
public var attribute2:Object;
public var attribute3:Object;
}

You may access those properties with "attribute1.key1",
"attribute1.key2", "attribute1.anotherKey", ...
 
And in that case, remember to import the value classes.
 



De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em
nome de ibo
Enviada em: quinta-feira, 8 de maio de 2008 17:03
Para: flexcoders@yahoogroups.com
Assunto: Re: RES: [flexcoders] value object binding problem



Luciano,

Thanks it worked for List but not for Map>.
How do we convert this map to AS3?

Luciano Manerich Junior <[EMAIL PROTECTED]> wrote: 

You MUST import the classes used into the ArrayCollection.
 
Or, you may use the ArrayElementType, for the auto-import at the
compiler time.
 
 
public class LookupData { 
[ArrayElementType("package.ClassA")]
public var attributeA:ArrayCollection;
[ArrayElementType("package.ClassB")]
public var attributeB:ArrayCollection;
[ArrayElementType("package.ClassB") ] 
public var attribute1:ArrayCollection;
[ArrayElementType("package.ClassC")]
public var attribute2:ArrayCollection;
[ArrayElementType("package.ClassD")]
public var attribute3:ArrayCollection;
}

 



De: flexcoders@yahoogroups.com [
mailto:[EMAIL PROTECTED] Em nome de ibo
Enviada em: quinta-feira, 8 de maio de 2008 14:51
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] value object binding problem


I have this VO binding from java to as3:


JAVA / JDK6 - LookupStuff.java

public class LookupStuff {
private List attributeA;
private List attributeB;  
private Map> attribute1;
private Map> attribute2;
private Map> attribute3;

...setter/getters...
}

-
AS3 - LookupStuff.as

[RemoteClass(alias="my.java.package.LookupStuff")]
import mx.collections.ArrayCollection;

[Bindable]
&nbs p;   public class LookupData {
public var attributeA:ArrayCollection;
public var attributeB:ArrayCollection;
public var attribute1:ArrayCollection;
public var attribute2:ArrayCollection;
public var attribute3:ArrayCollection;
}
--
private function myHandler(event:ResultEvent):void {
var lookup:LookupStuff = event.result as
LookupStuff;
// lookup is null! why???
}

Im getting null when my actionscript handler (thru RemoteObject
/ ResultEvent) finally gets event.result. Anybody knows why? Can a Map<>
and List<> interfaces easily maps to an AS3 ArrayCollection?

I've verified that my java code is returning a good return value
(not null).





Be a better friend, newshound, and know-it-all with Yahoo!
Mobile. Try it now.
  




Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
it now.
  

 


Re: [flexcoders] Printing flex datagrid to PDF.

2008-05-08 Thread Richard Rodseth
If you're not dependent on Coldfusion to build the PDF, check out
AlivePDF, which lets you build a PDF client-side. In a browser-based
app it requires you to install a server-side script to bounce the
bytes back to the browser.

Here's an example using it:

http://www.sinergy-networks.com/images/stories/portadas-klitekture/klk012/cover_generator/

On Thu, May 8, 2008 at 11:49 AM, shaf ram <[EMAIL PROTECTED]> wrote:
>
> Have a look at ImageSnapshot new to Flex 3. It allows you to capture any
> display object in Flex.
>
>
> - Original Message 
> From: Robert Stehwien <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Thursday, May 8, 2008 2:14:41 PM
> Subject: Re: [flexcoders] Printing flex datagrid to PDF.
>
>
>
>
> You can use BitmapData#draw( ) to draw any display object to a bitmap.  But
> that would, I believe, only show you what is currently displayed.  It might
> be a start.
>
> --Robert
>
>
> On Thu, May 8, 2008 at 11:48 AM, Hemkarna <[EMAIL PROTECTED] com> wrote:
>
> >
> > Friends,
> >
> > Is it possible to save the print stream of a DataGrid, AdvanceDataGrid
> > to bitmaps or vector objects and beam the array to ColdFusion to
> > retreive a PDF Document?
> >
> >
> > I'm trying not to write a flex data grid report and then re-write the
> > same using ColdFusion Reports.
> >
> > Any assistance with the same is really appreciated.
> >
> >
> >
> >
> >  - - --
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
> >
> > Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups.
> comYahoo! Groups Links
> >
> >
> >
> >
> >
> >
>
>
>  
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now. 


[flexcoders] Re: on the fly XML string change and keep CDATA wraps....

2008-05-08 Thread Ben Marchbanks
I think I use escapes to successfully build the CDATA wrapper for text
like so.
 ""


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> The compiler is still recognizing the cdata tags.  Try:
> 
> xml.info.circleText = ";  //give it a try
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of grimmwerks
> Sent: Thursday, May 08, 2008 12:43 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] on the fly XML string change and keep CDATA
> wraps
> 
>  
> 
> Ok I've got this xml setup:
> 
>  
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> I can get / set everything fine - I can even set xml.info.circleText =
> "new text" but I lose the " but that throws
> an error.
> 
>  
> 
> Any suggestions?
>




Re: RES: [flexcoders] value object binding problem

2008-05-08 Thread ibo
Luciano,

Thanks it worked for List but not for Map>. How do 
we convert this map to AS3?

Luciano Manerich Junior <[EMAIL PROTECTED]> wrote:  
  
You MUST import the classes used into the  ArrayCollection.
  
 Or, you may use the ArrayElementType, for the auto-import at the compiler  
time.
  
  
 public class LookupData  { 
 [ArrayElementType("package.ClassA")]
 public var attributeA:ArrayCollection;
 [ArrayElementType("package.ClassB")]
 public var attributeB:ArrayCollection;
 [ArrayElementType("package.ClassB")]
 public var attribute1:ArrayCollection;
 [ArrayElementType("package.ClassC")]
 public var attribute2:ArrayCollection;
 [ArrayElementType("package.ClassD")]
 public var attribute3:ArrayCollection;
 }

  

  
-
 De: flexcoders@yahoogroups.com  [mailto:[EMAIL PROTECTED] Em nome de ibo
Enviada em:  quinta-feira, 8 de maio de 2008 14:51
Para:  flexcoders@yahoogroups.com
Assunto: [flexcoders] value object binding  problem


 
  I have this VO binding from java to  as3:


JAVA / JDK6 -  LookupStuff.java

public class LookupStuff {
 private List attributeA;
private  List attributeB;  
private  Map> attribute1;
private  Map> attribute2;
private  Map> attribute3;
 
...setter/getters...
} 

-
AS3 -  LookupStuff.as

 [RemoteClass(alias="my.java.package.LookupStuff")] 
import  mx.collections.ArrayCollection;
 
[Bindable]
&nbs p;public class LookupData { 
public var  attributeA:ArrayCollection;
 public var  attributeB:ArrayCollection;
 public var  attribute1:ArrayCollection;
 public var  attribute2:ArrayCollection;
 public var attribute3:ArrayCollection;
 }
--
 private function myHandler(event:ResultEvent):void  {
var  lookup:LookupStuff = event.result as  LookupStuff;
 // lookup is null! why???
 }

Im getting null when my  actionscript handler (thru RemoteObject / ResultEvent) 
finally gets  event.result. Anybody knows why? Can a Map<> and List<> 
interfaces  easily maps to an AS3 ArrayCollection?

I've verified that my java code is  returning a good return value (not null).


 
 

-
 Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try  it 
now. 

 
 
   

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[flexcoders] capture flash output?

2008-05-08 Thread John Waggener
Is there an effective way to capture the playback of a flash movie?  I
would like to output the playback of a collection of images, video,
and audio files to a single flv.  Is there a solution for this?


Re: [flexcoders] Printing flex datagrid to PDF.

2008-05-08 Thread shaf ram
Have a look at ImageSnapshot new to Flex 3. It allows you to capture any 
display object in Flex.


- Original Message 
From: Robert Stehwien <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, May 8, 2008 2:14:41 PM
Subject: Re: [flexcoders] Printing flex datagrid to PDF.


You can use BitmapData#draw( ) to draw any display object to a bitmap.  But 
that would, I believe, only show you what is currently displayed.  It might be 
a start.

--Robert


On Thu, May 8, 2008 at 11:48 AM, Hemkarna <[EMAIL PROTECTED] com> wrote:

Friends,

Is it possible to save the print stream of a DataGrid, AdvanceDataGrid
to bitmaps or vector objects and beam the array to ColdFusion to
retreive a PDF Document?


I'm trying not to write a flex data grid report and then re-write the
same using ColdFusion Reports.

Any assistance with the same is really appreciated.




 - - --

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







  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

[flexcoders] Re: Wierd behaviour with selectedItem on Datagrid

2008-05-08 Thread shafram
Thanks for the workarounds but the problem still exists in Flex 2 even
after setting the selectedItem using the selectedIndex. This is also a
bug in Flex 3 but at least there seems a workaround.




--- In flexcoders@yahoogroups.com, "Santiago Gonzales" <[EMAIL PROTECTED]> 
wrote:
>
> I'm also not sure why this happens, but if you change the code in
> function cc of dg.selectedItem = array[3] to dg.selectedIndex = 3 it
> works.
> 
> --- In flexcoders@yahoogroups.com, "jmfillman"  wrote:
> >
> > Not sure if this is a bug, kind of looks like it, but you can prevent 
> > this by doing this:
> > 
> >  > itemClick="dg.selectedItem = array[dg.selectedIndex]; ck(event)">
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "shafram"  wrote:
> > >
> > > Hello I am encountering a strange problem when I try to select an 
> > item
> > > after an initial sort order has been provided.
> > > 
> > > In this example, I have 5 items with all the same count. My initial
> > > sorting is on the count field.
> > > Once the initial sort has been set, I programmatically select the 
> > 4th
> > > item in my array which is Letter "D".  If I then try to click on 
> > Letter
> > > "A" which is right above "D", The alert box will display "D" 
> > not "A" in
> > > Flex 3.
> > > 
> > > In flex 2 the event.target.selectedItem is null and an exception is
> > > thrown.
> > > 
> > > Here is the source code. Am I doing something wrong or is this a 
> > bug in
> > > flex?
> > > 
> > > 
> > > http://www.adobe.com/2006/mxml";
> > > layout="absolute"  creationComplete="cc()">
> > > 
> > > 
> > >  
> > >  
> > >  
> > > 
> > > 
> > >  
> > >  
> > >   > dataField="count"/>
> > >  
> > >  
> > >  
> > > 
> > > 
> > > 
> > >
> >
>




Re: [flexcoders] Printing flex datagrid to PDF.

2008-05-08 Thread Robert Stehwien
You can use BitmapData#draw() to draw any display object to a bitmap.  But
that would, I believe, only show you what is currently displayed.  It might
be a start.

--Robert

On Thu, May 8, 2008 at 11:48 AM, Hemkarna <[EMAIL PROTECTED]> wrote:

> Friends,
>
> Is it possible to save the print stream of a DataGrid, AdvanceDataGrid
> to bitmaps or vector objects and beam the array to ColdFusion to
> retreive a PDF Document?
>
>
> I'm trying not to write a flex data grid report and then re-write the
> same using ColdFusion Reports.
>
> Any assistance with the same is really appreciated.
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


RE: [flexcoders] Re: Flex 2.01 - Multiline LinkButton

2008-05-08 Thread Jack @ Zingit
That works.
 
I greatly appreciate you taking the time.
 
Thanks,
 
Jack

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of valdhor
Sent: Thursday, May 08, 2008 10:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex 2.01 - Multiline LinkButton



Using ALex Harui's blog post at
http://blogs.adobe.com/aharui/2007/04/multiline_buttons.html I put together
the following in around 30 minutes:

Application:

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


customclasses.MultiLineLinkButton:
package customclasses
{
import flash.text.TextLineMetrics;
import flash.display.DisplayObject;
import mx.controls.LinkButton;
import mx.core.IFlexDisplayObject;
import mx.core.mx_internal;
import customclasses.NoTruncationUITextField;
use namespace mx_internal;

public class MultiLineLinkButton extends LinkButton
{
public function MultiLineLinkButton()
{
super();
}

override protected function createChildren():void
{
if (!textField)
{
textField = new NoTruncationUITextField();
textField.styleName = this;
addChild(DisplayObject(textField));
}
super.createChildren();
textField.wordWrap = true;
textField.multiline = true;
}

override protected function measure():void
{
if (!isNaN(explicitWidth))
{
var tempIcon:IFlexDisplayObject = getCurrentIcon();
var w:Number = explicitWidth;
if (tempIcon)
w -= tempIcon.width + getStyle("horizontalGap") +
getStyle("paddingLeft") + getStyle("paddingRight");
textField.width = w;
}
super.measure();

}

override public function measureText(s:String):TextLineMetrics
{
textField.text = s;
var lineMetrics:TextLineMetrics = textField.getLineMetrics(0);
lineMetrics.width = textField.textWidth + 4;
lineMetrics.height = textField.textHeight + 4;
return lineMetrics;
}
}
}

customclasses.NoTruncationUITextField:
package customclasses
{
import mx.core.UITextField;

public class NoTruncationUITextField extends UITextField
{

public function NoTruncationUITextField()
{
super();
}

override public function truncateToFit(s:String = null):Boolean
{
return false;
}
}
}

--- In flexcoders@yahoogroups.com, "Jack @ Zingit" <[EMAIL PROTECTED]> wrote:
>
> 
> I have been searching all day for a multiline LinkButton 
> custom component and can not find one.
> 
> I want the label below the icon and allow for two lines
> of centered text beneath the icon.
> 
> Does anyone know of and/or can you direct me to an
> example?
> 
> I will be most appreciative.
> 
> Thanks,
> 
> Jack
>


 


Re: [flexcoders] Container ScrollBar Click vs Container Click

2008-05-08 Thread Ernesto Casasín
Have had same problem, I've solved it addign a scroll event to the  
scrolling component, in this event I set a flag to true, and then, in  
the click event, I test for the value of the flag

private var flagScroll:Boolean = false;
private function clicarScroll(e:Event):void{
if(!flagScroll) {
Alert.show('it doesn't scrool');
}
flagScroll = false;
}





> Is there an effective way to determine a click on a scroll bar  
> versus a
> click on the container?
>
>  click="containerClick()"/>
>
> I only want the click event to fire for the container if the click was
> NOT on the scrollBar, if the scrollBar exists.
>
> I know that I can check the container mouseX value and generally tell
> whether or not the scrollBar was clicked (assuming the contents of the
> container require a scrollBar), but that isn't fool proof,  
> depending on
> whether or not there is a scrollBar. The FlashPlayer certainly can  
> tell
> the difference, since it knows when to scroll and when not to scroll,
> based on where the user clicks. Seems the container class controls
> should have a couple more event triggers:
>
> verticalScrollClick and horizontalScrollClick
>
>

––
Ernesto Casasín
Abaco Digital, SL
José Pardo Sastrón, 7, 1
50001 Zaragoza
Tel: 34 976 29 79 80
Fax: 34 976 20 48 50






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



RES: [flexcoders] value object binding problem

2008-05-08 Thread Luciano Manerich Junior
You MUST import the classes used into the ArrayCollection.
 
Or, you may use the ArrayElementType, for the auto-import at the
compiler time.
 
 
public class LookupData { 
[ArrayElementType("package.ClassA")]
public var attributeA:ArrayCollection;
[ArrayElementType("package.ClassB")]
public var attributeB:ArrayCollection;
[ArrayElementType("package.ClassB")]
public var attribute1:ArrayCollection;
[ArrayElementType("package.ClassC")]
public var attribute2:ArrayCollection;
[ArrayElementType("package.ClassD")]
public var attribute3:ArrayCollection;
}

 



De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em
nome de ibo
Enviada em: quinta-feira, 8 de maio de 2008 14:51
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] value object binding problem



I have this VO binding from java to as3:


JAVA / JDK6 - LookupStuff.java

public class LookupStuff {
private List attributeA;
private List attributeB;  
private Map> attribute1;
private Map> attribute2;
private Map> attribute3;

...setter/getters...
}

-
AS3 - LookupStuff.as

[RemoteClass(alias="my.java.package.LookupStuff")]
import mx.collections.ArrayCollection;

[Bindable]
&nbs p;   public class LookupData {
public var attributeA:ArrayCollection;
public var attributeB:ArrayCollection;
public var attribute1:ArrayCollection;
public var attribute2:ArrayCollection;
public var attribute3:ArrayCollection;
}
--
private function myHandler(event:ResultEvent):void {
var lookup:LookupStuff = event.result as LookupStuff;
// lookup is null! why???
}

Im getting null when my actionscript handler (thru RemoteObject /
ResultEvent) finally gets event.result. Anybody knows why? Can a Map<>
and List<> interfaces easily maps to an AS3 ArrayCollection?

I've verified that my java code is returning a good return value (not
null).






Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
it now.
  

 


[flexcoders] Re: Flex 3: Async Token will not remember the "injected" function and properties.

2008-05-08 Thread handitan
Thank you Anirudh and Josh!

That really clear things up.
Appreciate it.
--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> I'd go a step further and recommend disabling your UI with a modal
> "Loading..." dialog until you receive LOAD or FAIL from the web 
service
> initialisation (load() or whatever it is that kicks it off), unless 
there's
> a time-consuming user task to be performed before anything can be 
sent to
> the server.
> 
> -J
> 
> On Thu, May 8, 2008 at 3:15 PM, Anirudh Sasikumar <
> [EMAIL PROTECTED]> wrote:
> 
> >   Hi,
> >
> >
> > On Thu, May 8, 2008 at 2:55 AM, handitan <[EMAIL PROTECTED]>
> > wrote:
> > > Does anyone know a way to have the token still retain the 
injected
> > > function and properties?
> >
> > Your fault event for the operation.send() won't even fire if wsdl 
is
> > bad, instead, the fault event for the webservice will fire. That 
event
> > object will not have the same token as the one you modified from 
the
> > return value for send().
> >
> > You need to either check the ready property on webservice or 
listen to
> > the LoadEvent.LOAD dispatched by the webservice to make sure your 
WSDL
> > is all set up. Ideally, operation.send() calls should be made only
> > after this.
> >
> > Cheers,
> > --
> > Anirudh Sasikumar
> > http://anirudhs.chaosnet.org/
> >  
> >
> 
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for 
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




[flexcoders] value object binding problem

2008-05-08 Thread ibo
I have this VO binding from java to as3:


JAVA / JDK6 - LookupStuff.java

public class LookupStuff {
private List attributeA;
private List attributeB;  
private Map> attribute1;
private Map> attribute2;
private Map> attribute3;

...setter/getters...
}

-
AS3 - LookupStuff.as

[RemoteClass(alias="my.java.package.LookupStuff")]
import mx.collections.ArrayCollection;

[Bindable]
public class LookupData {
public var attributeA:ArrayCollection;
public var attributeB:ArrayCollection;
public var attribute1:ArrayCollection;
public var attribute2:ArrayCollection;
public var attribute3:ArrayCollection;
}
--
private function myHandler(event:ResultEvent):void {
 var lookup:LookupStuff = event.result as LookupStuff;
 // lookup is null! why???
 }
 
Im getting null when my actionscript handler (thru RemoteObject / ResultEvent) 
finally gets event.result. Anybody knows why? Can a Map<> and List<> interfaces 
easily maps to an AS3 ArrayCollection?

I've verified that my java code is returning a good return value (not null).



   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

RE: [flexcoders] Container ScrollBar Click vs Container Click

2008-05-08 Thread Alex Harui
If (verticalScrollBar &&  verticalScrollBar.contains(event.target))

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jmfillman
Sent: Thursday, May 08, 2008 10:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Container ScrollBar Click vs Container Click

 

Is there an effective way to determine a click on a scroll bar versus a 
click on the container?



I only want the click event to fire for the container if the click was 
NOT on the scrollBar, if the scrollBar exists.

I know that I can check the container mouseX value and generally tell 
whether or not the scrollBar was clicked (assuming the contents of the 
container require a scrollBar), but that isn't fool proof, depending on 
whether or not there is a scrollBar. The FlashPlayer certainly can tell 
the difference, since it knows when to scroll and when not to scroll, 
based on where the user clicks. Seems the container class controls 
should have a couple more event triggers:

verticalScrollClick and horizontalScrollClick

 



RE: [flexcoders] Supressing drag/move of PopupManager window?

2008-05-08 Thread Alex Harui
Try setting isPopUp=false

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, May 08, 2008 10:53 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Supressing drag/move of PopupManager window?

 

Oops, includeInLayout is not needed in an absolute position container.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, May 08, 2008 1:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Supressing drag/move of PopupManager window?

 

One solution would be to not use popupManager, but declare it at the end
of an absolute layout container (to keep it on top) and toggle visible
and includeInLayout properties to show/hide.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of chigwell23
Sent: Thursday, May 08, 2008 5:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Supressing drag/move of PopupManager window?

 

What is the best way to fix a Panel or TitleWindow etc in position
after the PopupManager has popped it? The Drag methods and Move
methods could be overridden, but I am thinking that there is an easier
way? TIA,

Mic.

 



[flexcoders] Printing flex datagrid to PDF.

2008-05-08 Thread Hemkarna
Friends,

Is it possible to save the print stream of a DataGrid, AdvanceDataGrid
to bitmaps or vector objects and beam the array to ColdFusion to
retreive a PDF Document?


I'm trying not to write a flex data grid report and then re-write the
same using ColdFusion Reports.

Any assistance with the same is really appreciated.





RE: [flexcoders] Supressing drag/move of PopupManager window?

2008-05-08 Thread Tracy Spratt
Oops, includeInLayout is not needed in an absolute position container.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, May 08, 2008 1:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Supressing drag/move of PopupManager window?

 

One solution would be to not use popupManager, but declare it at the end
of an absolute layout container (to keep it on top) and toggle visible
and includeInLayout properties to show/hide.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of chigwell23
Sent: Thursday, May 08, 2008 5:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Supressing drag/move of PopupManager window?

 

What is the best way to fix a Panel or TitleWindow etc in position
after the PopupManager has popped it? The Drag methods and Move
methods could be overridden, but I am thinking that there is an easier
way? TIA,

Mic.

 



[flexcoders] Re: need help to create anchor in flex

2008-05-08 Thread valdhor
Have you checked out Eric Cancil's Scroll to Anchor stuff?
http://blog.3r1c.net/?p=84


--- In flexcoders@yahoogroups.com, "jmfillman" <[EMAIL PROTECTED]> wrote:
>
> I would go with states, ViewStack, Accordian, or a TabNavigator. States 
> or ViewStack are probably the closest to how this site is set up. When 
> you click a link, it appropriate state or ViewStack page is displayed.
> 
> 
> --- In flexcoders@yahoogroups.com, "sonnygett"  wrote:
> >
> > Hello guys,I'm stuck with idea how to create an anchor link in flex
> > that will be look like this
> > http://www.w3.org/TR/html401/struct/links.html,hope someone can help
> > me about this.huge thanks.
> >
>




RE: [flexcoders] Supressing drag/move of PopupManager window?

2008-05-08 Thread Tracy Spratt
One solution would be to not use popupManager, but declare it at the end
of an absolute layout container (to keep it on top) and toggle visible
and includeInLayout properties to show/hide.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of chigwell23
Sent: Thursday, May 08, 2008 5:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Supressing drag/move of PopupManager window?

 

What is the best way to fix a Panel or TitleWindow etc in position
after the PopupManager has popped it? The Drag methods and Move
methods could be overridden, but I am thinking that there is an easier
way? TIA,

Mic.

 



RE: [flexcoders] on the fly XML string change and keep CDATA wraps....

2008-05-08 Thread Tracy Spratt
The compiler is still recognizing the cdata tags.  Try:

xml.info.circleText = ";  //give it a try

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of grimmwerks
Sent: Thursday, May 08, 2008 12:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] on the fly XML string change and keep CDATA
wraps

 

Ok I've got this xml setup:

 



 

















 

I can get / set everything fine - I can even set xml.info.circleText =
"new text" but I lose the " but that throws
an error.

 

Any suggestions?

 



RE: [flexcoders] flash -> flex communication

2008-05-08 Thread Tracy Spratt
Application.application will give you a reference to the top-level document.  I 
believe parentApplication will also work in this case.  I believe 
parentDocument will NOT work.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ernesto 
Casasín
Sent: Thursday, May 08, 2008 12:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flash -> flex communication

Hi all,

my first posting here, glad to meet you.

I'd appreciate any hint on the following problem I've got. I have an
embedded swf into a flex app. From the embedded swf, I want to make
calls to the flex container, but until now, any atempt has been useless.

my swf is instantiated  this way




 
 

I have access to the swf methods and variables from flex, but as I've  
said, not the other way round.

I've tryed mapa_ins.parent and the like, but no way


any help?


--
Ernesto Casasín
Abaco Digital, SL
José Pardo Sastrón, 7, 1
50001 Zaragoza
Tel: 34 976 29 79 80
Fax: 34 976 20 48 50






--
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: FlexPrintJob: print image AND text [SOLVED]

2008-05-08 Thread toofah_gm
Just an update.  Some of my images are still not being printed, but
the text is no longer cutting off.  I'll have to keep working on the
images, maybe they are not finished loading sometimes.

--- In flexcoders@yahoogroups.com, "toofah_gm" <[EMAIL PROTECTED]> wrote:
>
> Thanks for your response!
> 
> I made some breakthroughs this morning...we'll see if it is a fluke,
> or if my changes really fix the problem for me. ;)
> 
> Essentially, we have been using our own FlexPrintJob class so that we
> can better control portrait/landscape settings for our needs.  The
> problems that I have been having hav existed in an older version of
> the FlexPrintJob code that we had essentially copied because it did
> not expose enough properties and methods to make it possible to extend
> it properly.
> 
> I think that the new version of FlexPrintJob has the code that really
> fixed the previously mentioned bug, not the Flash Player.  The
> differences are the addition of calls to "prepareForPrinting" and
> "finishPrinting" methods, which call the prepare and finish methods on
> the object that is being printed and it's parent chain.  This code
> seems to cause the objects on my page to be the correct sizes and
> assure that they are ready for printing when they are added to the
> print job.
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Frederico Garcia 
> wrote:
> >
> > Hi,
> > 
> > I forgot posting that I'd found the reason to my problems. After some 
> > hours struggling with my code trying to understand why sometimes
images 
> > got printed and sometimes they didn't I've found that the issue
was in 
> > Flash Player (got to the same bug report you mention).
> > 
> > I believe the only solution is make users  update Flash.
> > 
> > Kind Regards,
> > 
> > Frederico Garcia
> > 
> > toofah_gm escreveu:
> > > It seems that I am seeing the same problems described in this bug:
> > >
> > > http://bugs.adobe.com/jira/browse/SDK-7698
> > >
> > > I am using the latest FlashPlayer: 9,0,115.
> > >
> > > --- In flexcoders@yahoogroups.com, Frederico Garcia 
> > > wrote:
> > >   
> > >> mitek17 escreveu:
> > >> 
> > >>> Hi Frederico,
> > >>>
> > >>> printAsBitmap is not related to the problem, as
> images/charts/whatever
> > >>> simply don't have enough time to be rendered.
> > >>>
> > >>> You should add event listeners to all your images/charts and
> wait for
> > >>> the creationComplete & updateComplete events.
> > >>>
> > >>> Cheers,
> > >>> Dmitri.
> > >>>
> > >>>
> > >>>  
> > >>>
> > >>> --- In flexcoders@yahoogroups.com, Frederico Garcia 
> > >>> wrote:
> > >>>   
> > >>>   
> > >>>> Hi,
> > >>>>
> > >>>> I'm trying to print Image and Text, and I want the text to be
> > >>>> 
> > > clear, so 
> > >   
> > >>>> I set printAsBitmap = false. The problem is, sometimes it
> prints the 
> > >>>> images, sometimes it doesn't.
> > >>>>
> > >>>> Any help?
> > >>>>
> > >>>> Regards,
> > >>>>
> > >>>> Frederico Garcia
> > >>>>
> > >>>> 
> > >>>> 
> > >>>
> > >>>
> > >>> --
> > >>> Flexcoders Mailing List
> > >>> FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > >>> Search Archives:
> > >>>   
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> > >   
> > >>> Yahoo! Groups Links
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> __ NOD32 2787 (20080112) Information __
> > >>>
> > >>> This message was checked by NOD32 antivirus system.
> > >>> http://www.eset.com
> > >>>
> > >>>
> > >>>
> > >>>   
> > >>>   
> > >> Hi,
> > >>
> > >> This was due to a player bug. Updating to version 9.0.r115 solved
> the 
> > >> problem.
> > >>
> > >> http://bugs.adobe.com/jira/browse/SDK-7698
> > >>
> > >> Regards,
> > >>
> > >> Frederico Garcia
> > >>
> > >> 
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > 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
> > >
> > >
> > >
> > >
> > > __ NOD32 3085 (20080508) Information __
> > >
> > > This message was checked by NOD32 antivirus system.
> > > http://www.eset.com
> > >
> > >
> > >
> > >
> >
>




[flexcoders] Container ScrollBar Click vs Container Click

2008-05-08 Thread jmfillman
Is there an effective way to determine a click on a scroll bar versus a 
click on the container?



I only want the click event to fire for the container if the click was 
NOT on the scrollBar, if the scrollBar exists.

I know that I can check the container mouseX value and generally tell 
whether or not the scrollBar was clicked (assuming the contents of the 
container require a scrollBar), but that isn't fool proof, depending on 
whether or not there is a scrollBar. The FlashPlayer certainly can tell 
the difference, since it knows when to scroll and when not to scroll, 
based on where the user clicks. Seems the container class controls 
should have a couple more event triggers:

verticalScrollClick and horizontalScrollClick



RE: [flexcoders] set breakpoint does not work

2008-05-08 Thread Tracy Spratt
Here is thet link to the Adobe Flash Player Version detector:

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Thursday, May 08, 2008 1:32 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] set breakpoint does not work

 

There used to be a URL where you could point your browser and it'd tell
you off the bat whether or not you're using the debug player, is that
still available somewhere? It's something I could probably use from time
to time when dealing with giving people "work in progress" SWFs as well
as to help people having these sort of problems on the list.

-J

On Thu, May 8, 2008 at 2:53 PM, Alex Harui <[EMAIL PROTECTED]
 > wrote:

Make sure you didn't accidentally upgrade to a non-debugger player.

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Shun Chu
Sent: Wednesday, May 07, 2008 3:16 PM
To: flexcoders@yahoogroups.com  
Subject: [flexcoders] set breakpoint does not work

 

Hi,

Just out of the blue, FlexBuilder 3(.0.194161) now doesn't stop at
breakpoints anymore (Mac OSX Leopard 10.5.2 on MBP). It was working
when FlexBuilder was initially setup. I have read and tried everything
in the "flexcodersFAQ.txt" message that's been floating around with no
success. I have also reinstalled Flex, junk all preferences... etc. to
no avail.

Any recommendation is appreciated.




-- 
"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: Wierd behaviour with selectedItem on Datagrid

2008-05-08 Thread Santiago Gonzales
I'm also not sure why this happens, but if you change the code in
function cc of dg.selectedItem = array[3] to dg.selectedIndex = 3 it
works.

--- In flexcoders@yahoogroups.com, "jmfillman" <[EMAIL PROTECTED]> wrote:
>
> Not sure if this is a bug, kind of looks like it, but you can prevent 
> this by doing this:
> 
>  itemClick="dg.selectedItem = array[dg.selectedIndex]; ck(event)">
> 
> 
> --- In flexcoders@yahoogroups.com, "shafram"  wrote:
> >
> > Hello I am encountering a strange problem when I try to select an 
> item
> > after an initial sort order has been provided.
> > 
> > In this example, I have 5 items with all the same count. My initial
> > sorting is on the count field.
> > Once the initial sort has been set, I programmatically select the 
> 4th
> > item in my array which is Letter "D".  If I then try to click on 
> Letter
> > "A" which is right above "D", The alert box will display "D" 
> not "A" in
> > Flex 3.
> > 
> > In flex 2 the event.target.selectedItem is null and an exception is
> > thrown.
> > 
> > Here is the source code. Am I doing something wrong or is this a 
> bug in
> > flex?
> > 
> > 
> > http://www.adobe.com/2006/mxml";
> > layout="absolute"  creationComplete="cc()">
> > 
> > 
> >  
> >  
> >  
> > 
> > 
> >  
> >  
> >   dataField="count"/>
> >  
> >  
> >  
> > 
> > 
> > 
> >
>




[flexcoders] flash -> flex communication

2008-05-08 Thread Ernesto Casasín
Hi all,

my first posting here, glad to meet you.

I'd appreciate any hint on the following problem I've got. I have an
embedded swf into a flex app. From the embedded swf, I want to make
calls to the flex container, but until now, any atempt has been useless.

my swf is instantiated  this way




 
 

I have access to the swf methods and variables from flex, but as I've  
said, not the other way round.

I've tryed mapa_ins.parent and the like, but no way


any help?


––
Ernesto Casasín
Abaco Digital, SL
José Pardo Sastrón, 7, 1
50001 Zaragoza
Tel: 34 976 29 79 80
Fax: 34 976 20 48 50






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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: FlexPrintJob: print image AND text [SOLVED]

2008-05-08 Thread toofah_gm
Thanks for your response!

I made some breakthroughs this morning...we'll see if it is a fluke,
or if my changes really fix the problem for me. ;)

Essentially, we have been using our own FlexPrintJob class so that we
can better control portrait/landscape settings for our needs.  The
problems that I have been having hav existed in an older version of
the FlexPrintJob code that we had essentially copied because it did
not expose enough properties and methods to make it possible to extend
it properly.

I think that the new version of FlexPrintJob has the code that really
fixed the previously mentioned bug, not the Flash Player.  The
differences are the addition of calls to "prepareForPrinting" and
"finishPrinting" methods, which call the prepare and finish methods on
the object that is being printed and it's parent chain.  This code
seems to cause the objects on my page to be the correct sizes and
assure that they are ready for printing when they are added to the
print job.





--- In flexcoders@yahoogroups.com, Frederico Garcia <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> 
> I forgot posting that I'd found the reason to my problems. After some 
> hours struggling with my code trying to understand why sometimes images 
> got printed and sometimes they didn't I've found that the issue was in 
> Flash Player (got to the same bug report you mention).
> 
> I believe the only solution is make users  update Flash.
> 
> Kind Regards,
> 
> Frederico Garcia
> 
> toofah_gm escreveu:
> > It seems that I am seeing the same problems described in this bug:
> >
> > http://bugs.adobe.com/jira/browse/SDK-7698
> >
> > I am using the latest FlashPlayer: 9,0,115.
> >
> > --- In flexcoders@yahoogroups.com, Frederico Garcia 
> > wrote:
> >   
> >> mitek17 escreveu:
> >> 
> >>> Hi Frederico,
> >>>
> >>> printAsBitmap is not related to the problem, as
images/charts/whatever
> >>> simply don't have enough time to be rendered.
> >>>
> >>> You should add event listeners to all your images/charts and
wait for
> >>> the creationComplete & updateComplete events.
> >>>
> >>> Cheers,
> >>> Dmitri.
> >>>
> >>>
> >>>  
> >>>
> >>> --- In flexcoders@yahoogroups.com, Frederico Garcia 
> >>> wrote:
> >>>   
> >>>   
> >>>> Hi,
> >>>>
> >>>> I'm trying to print Image and Text, and I want the text to be
> >>>> 
> > clear, so 
> >   
> >>>> I set printAsBitmap = false. The problem is, sometimes it
prints the 
> >>>> images, sometimes it doesn't.
> >>>>
> >>>> Any help?
> >>>>
> >>>> Regards,
> >>>>
> >>>> Frederico Garcia
> >>>>
> >>>> 
> >>>> 
> >>>
> >>>
> >>> --
> >>> Flexcoders Mailing List
> >>> FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >>> Search Archives:
> >>>   
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> >   
> >>> Yahoo! Groups Links
> >>>
> >>>
> >>>
> >>>
> >>> __ NOD32 2787 (20080112) Information __
> >>>
> >>> This message was checked by NOD32 antivirus system.
> >>> http://www.eset.com
> >>>
> >>>
> >>>
> >>>   
> >>>   
> >> Hi,
> >>
> >> This was due to a player bug. Updating to version 9.0.r115 solved
the 
> >> problem.
> >>
> >> http://bugs.adobe.com/jira/browse/SDK-7698
> >>
> >> Regards,
> >>
> >> Frederico Garcia
> >>
> >> 
> >
> >
> >
> > 
> >
> > --
> > 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
> >
> >
> >
> >
> > __ NOD32 3085 (20080508) Information __
> >
> > This message was checked by NOD32 antivirus system.
> > http://www.eset.com
> >
> >
> >
> >
>




[flexcoders] Re: need help to create anchor in flex

2008-05-08 Thread jmfillman
I would go with states, ViewStack, Accordian, or a TabNavigator. States 
or ViewStack are probably the closest to how this site is set up. When 
you click a link, it appropriate state or ViewStack page is displayed.


--- In flexcoders@yahoogroups.com, "sonnygett" <[EMAIL PROTECTED]> wrote:
>
> Hello guys,I'm stuck with idea how to create an anchor link in flex
> that will be look like this
> http://www.w3.org/TR/html401/struct/links.html,hope someone can help
> me about this.huge thanks.
>




[flexcoders] Re: Wierd behaviour with selectedItem on Datagrid

2008-05-08 Thread jmfillman
Not sure if this is a bug, kind of looks like it, but you can prevent 
this by doing this:




--- In flexcoders@yahoogroups.com, "shafram" <[EMAIL PROTECTED]> wrote:
>
> Hello I am encountering a strange problem when I try to select an 
item
> after an initial sort order has been provided.
> 
> In this example, I have 5 items with all the same count. My initial
> sorting is on the count field.
> Once the initial sort has been set, I programmatically select the 
4th
> item in my array which is Letter "D".  If I then try to click on 
Letter
> "A" which is right above "D", The alert box will display "D" 
not "A" in
> Flex 3.
> 
> In flex 2 the event.target.selectedItem is null and an exception is
> thrown.
> 
> Here is the source code. Am I doing something wrong or is this a 
bug in
> flex?
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute"  creationComplete="cc()">
> 
> 
>  
>  
>  
> 
> 
>  
>  
>  
>  
>  
>  
> 
> 
> 
>




[flexcoders] on the fly XML string change and keep CDATA wraps....

2008-05-08 Thread grimmwerks

Ok I've got this xml setup:












I can get / set everything fine - I can even set xml.info.circleText =  
"new text" but I lose the " but that throws  
an error.


Any suggestions?

[flexcoders] Re: Flex Item Renderer using popup to edit datagrid - How to refresh datagrid?

2008-05-08 Thread Tim Hoff
Hi Mary,

Typically, when you make an update to a DB, you will want to refresh 
the dataGrid's dataProvider with the updated data from the DB.  This 
usually means either returning an updated object in the result of an 
update service call, or making an additional call to get the data 
from the DB; after the DB object has been successfully updated.  If 
you use binding for the dataGrid's dataProvider, you won't have to 
communicate with the dataGrid at all.  Just refresh the dataProvider 
collection and Flex will handle the rest for you.

-TH

--- In flexcoders@yahoogroups.com, "web2mmac" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>   I have a Flex app that has a datagrid with an Item Renderer.  The
> Item Renderer displays a button the user can click on to edit the 
row
> of data. When the user presses the "save" button the data is updated
> in the database.  
> 
>   My question is because of the layers (Item Renderer and Popup), I 
am
> having trouble sending a message to the datagrid to tell it to 
refresh.
> 
>   Does anyone have any idea how I could do that? I have the code in 
a
> zip file and it used AdventureWorks db, if anyone would like a copy,
> let me know.
> 
> Thanks,
> 
> Mary McDonald
>




[flexcoders] Wierd behaviour with selectedItem on Datagrid

2008-05-08 Thread shafram
Hello I am encountering a strange problem when I try to select an item
after an initial sort order has been provided.

In this example, I have 5 items with all the same count. My initial
sorting is on the count field.
Once the initial sort has been set, I programmatically select the 4th
item in my array which is Letter "D".  If I then try to click on Letter
"A" which is right above "D", The alert box will display "D" not "A" in
Flex 3.

In flex 2 the event.target.selectedItem is null and an exception is
thrown.

Here is the source code. Am I doing something wrong or is this a bug in
flex?


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


 
 
 


 
 
 
 
 
 







[flexcoders] Re: count up/down effect?

2008-05-08 Thread Tim Hoff
Binding to the rescue:



When you change the value of the variable, the display will be 
automatically updated.  Make sure that your variable is declared 
bindable:

[Bindable] private var myMPHVariable : Number;

-TH

--- In flexcoders@yahoogroups.com, Jason Rayles <[EMAIL PROTECTED]> wrote:
>
> I have a text component on the stage that displays a string like "3 
mph" 
> and I want it to count up to "10 mph" over time when the data changes 
> from 3 to 10. Is there a built-in effect or transition or behavior or 
> something in Flex that will do that for me, or do I need to break out 
> the ol' ActionScript?
> 
> Thanks,
> Jason
>




Re: [flexcoders] What happens to objects when you change state?

2008-05-08 Thread Daniel Gold
Cepends on what your states are defined to do, but sounds like you're adding
and removing children on the state change, which is pretty common. The view
objects will still be in memory, just not on the display list and with no
parent.

On Thu, May 8, 2008 at 10:31 AM, David Ham <[EMAIL PROTECTED]> wrote:

>   I have an app with two mx:States, component A appears in state A, and
> component B in the same position in state B. When I'm in state A,
> where is component B, and vice versa?
>
> I my tests they appear to both still be in memory and visible; does
> Flex just shuffle their z-indexes? What does Flex do with them when
> you switch states?
>
> Thanks,
>
> OK
> DAH
>  
>


[flexcoders] Re: need help deciphering error message

2008-05-08 Thread Tim Hoff

This is a wrong assumption.  Only the first viewStack child will be
instantiated initially; unless you use the evil creationPolicy="all"
setting.  If you run your program in debug mode, it should break on the
exact line that is causing the error; to help you pinpoint the problem. 
Since your second viewStack contains the comboBox, you might be trying
to explicitly set the selectedIndex of a control that doesn't exist yet:

courseCat.selectedIndex = 0;

The comboBox will not be instantialted until you change the viewStack's
selectedIndex.  You can get around this by using a bound variable for
the comboBox's selectedIndex.



In the script:

[Bindable]
private var myComboBoxSelectedIndex : int = -1;
// use public if necessary - can also set the default index to 0 here;
if desired.

in the resultHandler:

//courseCat.selectedIndex = 0;
myComboBoxSelectedIndex = 0;

-TH

--- In flexcoders@yahoogroups.com, "hoytlee2000" <[EMAIL PROTECTED]>
wrote:
>
> I checked and the combobox with id courseCat is there, does it make a
> difference that it is on the second canvas of a viewstack container?
>
> I can see it throwing an error if it's not drawn till needed, but I
> thought that viewstack container just control visibility and that all
> it's children are actually created just not visible.
>
> Is this assumption wrong?
>
> thanks,
> Hoyt
>
>
> --- In flexcoders@yahoogroups.com, "Josh McDonald" dznuts@ wrote:
> >
> > This would imply that courseCat is null, or perhaps if the exception
is
> > actually being thrown inside the SDK code, it could have a null
> > dataProvider? I'm not sure about that second possibility though.
> >
> > -J
> >
> > On Thu, May 8, 2008 at 3:36 PM, hoytlee2000 hoytlee2000@ wrote:
> >
> > > private function configHandler(evt:ResultEvent):void {
> > > catList = evt.result.config.categories.cat;
> > > catList.addItemAt('None', 0);
> > > courseCat.selectedIndex = 0;
> > > }
> > >
> > > this is line 299: courseCat.selectedIndex = 0;
> > >
> > > thanks,
> > > hoyt
> > >
> > >
> > > --- In flexcoders@yahoogroups.com ,
> "Alex
> > > Harui"  wrote:
> > > >
> > > > What is the code at courseInfo.mxml at line 299?
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > From: flexcoders@yahoogroups.com 
> [mailto:
> > > flexcoders@yahoogroups.com ] On
> > > > Behalf Of hoytlee2000
> > > > Sent: Wednesday, May 07, 2008 10:11 PM
> > > > To: flexcoders@yahoogroups.com 
> > > > Subject: [flexcoders] need help deciphering error message
> > > >
> > > >
> > > >
> > > > Hello,
> > > >
> > > > I get the error message below when I am running my application,
> > > > however it runs fine when I click continue. There isn't an error
> when
> > > > I compile in Flex builder. I checked the function that
> references the
> > > > object and they are all defined and the objects exist.
> > > >
> > > > The only thing I can think of is that the object that is
> referenced in
> > > > the function isn't displayed on the application startup (its on
the
> > > > second canvas of a view stack) so it throws this error, however
> when I
> > > > move the call to the function to execute only when the second
canvas
> > > > is displayed I still get the error.
> > > >
> > > > I'm sure its a common error that many newbies must hit. I
appreciate
> > > > any clues to look for in the code.
> > > >
> > > > Thanks,
> > > > Hoyt
> > > >
> > > > TypeError: Error #1009: Cannot access a property or method of a
null
> > > > object reference.
> > > >
> > > > at
> > > >
>
courseInfo/configHandler()[/Users/hoytng/Sites/pdiCMS/CourseMgmtSystem/c
> > > > ourseInfo/src/courseInfo.mxml:299]
> > > > at
> > > >
>
courseInfo/__courseCatHTTP_result()[/Users/hoytng/Sites/pdiCMS/CourseMgm
> > > > tSystem/courseInfo/src/courseInfo.mxml:429]
> > > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: josh@
> >
>




[flexcoders] Job Posting: Game developer

2008-05-08 Thread Jobe Makar
Hi guys,

Electrotank is hiring. We are focusing heavily on Flash multiplayer games and 
virtual worlds. If you are interested in learning more here is a direct link to 
our job posting:
http://www.careerbuilder.com/JobSeeker/Jobs/JobDetails.aspx?IPath=JRKGV&lr=cbmc_no&ff=21&APath=2.21.0.0.0&job_did=J8F2KQ688F45M66982G

Or, here is much of the same information:
(We are based in Raleigh, NC . Remote candidates considered. US talent only.)

Company Overview
Electrotank is an award-winning company with a seven-year history in building 
cutting-edge, custom multiplayer online games. Creators of ElectroServer, the 
enterprise multiplayer server of choice for several online gaming community 
sites, Electrotank specializes in licensing and custom game development, with 
an impressive client list consisting of such companies as Disney, Mattel, MTV, 
VH1, and Comedy Central.

Flash Game Developer
Electrotank is currently seeking a full-time, experienced Flash Developer to 
join their growing team of highly skilled professionals. As a member of the 
Electrotank team, you will be responsible for programming next-generation 
online multiplayer games and virtual worlds. If you're a Flash Developer who 
wants to help lead the future of high-quality, dynamic multiplayer online 
games, then this is the job for you!

Job Description
Qualified applicant must have a passion for online game development. Primary 
responsibilities include programming robust, state-of-the-art multiplayer 
online games and virtual worlds using ActionScript3. Occasional travel with the 
Electrotank team for project kick-offs, and attendance at industry conferences 
2-3 times a year, is required. Applicants must possess excellent time 
management skills, and be able to work independently under tight deadlines. 
Strong communication and interpersonal skills are a must. This full-time 
position offers a competitive salary and flexible hours.

Qualifications

Proficiency in ActionScript3
1.5+ years Flash programming experience
3+ years programming experience, or a Computer Science degree
Previous game development background, specifically with multiplayer game 
platforms is a plus
Proficiency in OO programming concepts and techniques
Knowledge and previous use of ElectroServer or equivalent socket-server
Programming experience using Java a plus

Join the growing Electrotank team and become a key part of the rapidly 
expanding online multiplayer game world!


Jobe Makar
http://www.electrotank.com
252-627-8026
919-609-0408 (mobile)
919-882-1121 (fax)
.




[flexcoders] What happens to objects when you change state?

2008-05-08 Thread David Ham
I have an app with two mx:States, component A appears in state A, and  
component B in the same position in state B. When I'm in state A,  
where is component B, and vice versa?

I my tests they appear to both still be in memory and visible; does  
Flex just shuffle their z-indexes? What does Flex do with them when  
you switch states?

Thanks,

OK
DAH


RE: [flexcoders] reading serial port with AIR / or pipe in linux with AIR application

2008-05-08 Thread Kevin Aebig
I'm quite sure that direct port access is out of the question, but you could
build a small service that reads that data and outputs it as a realtime XML
server locally. That way you could get live updates and not worry about
delay.

 

!k

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yigit boyar
Sent: Thursday, May 08, 2008 1:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] reading serial port with AIR / or pipe in linux with
AIR application

 

hi folks,
is there a way to read data from serial port ? (RS232 - 9pin cable)
I couldn't find any example/API and not very hopeful but Java has it why not
AIR?

I have an embedded HW and the instructor requires a good looking GUI, so I
want
to do the GUI with AIR, if I can.
>From internet searchs, people suggest to write a C code to read data and
export to a file
from which Flex will read, but considering 5ms precision will not be
possible in this way. I can do this
with pipes of linux, but is there a way to pipe an AIR application with an
executable in linux ?

Any help/suggestion is welcome,
thanks

yigit

 



[flexcoders] Re: Flex 2.01 - Multiline LinkButton

2008-05-08 Thread valdhor
Using ALex Harui's blog post at
http://blogs.adobe.com/aharui/2007/04/multiline_buttons.html I put
together the following in around 30 minutes:

Application:

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


customclasses.MultiLineLinkButton:
package customclasses
{
 import flash.text.TextLineMetrics;
 import flash.display.DisplayObject;
 import mx.controls.LinkButton;
 import mx.core.IFlexDisplayObject;
 import mx.core.mx_internal;
 import customclasses.NoTruncationUITextField;
 use namespace mx_internal;

 public class MultiLineLinkButton extends LinkButton
 {
 public function MultiLineLinkButton()
 {
 super();
 }

 override protected function createChildren():void
 {
 if (!textField)
 {
 textField = new NoTruncationUITextField();
 textField.styleName = this;
 addChild(DisplayObject(textField));
 }
 super.createChildren();
 textField.wordWrap = true;
 textField.multiline = true;
 }

 override protected function measure():void
 {
 if (!isNaN(explicitWidth))
 {
 var tempIcon:IFlexDisplayObject = getCurrentIcon();
 var w:Number = explicitWidth;
 if (tempIcon)
 w -= tempIcon.width + getStyle("horizontalGap") +
getStyle("paddingLeft") + getStyle("paddingRight");
 textField.width = w;
 }
 super.measure();

 }

 override public function measureText(s:String):TextLineMetrics
 {
 textField.text = s;
 var lineMetrics:TextLineMetrics =
textField.getLineMetrics(0);
 lineMetrics.width = textField.textWidth + 4;
 lineMetrics.height = textField.textHeight + 4;
 return lineMetrics;
 }
 }
}

customclasses.NoTruncationUITextField:
package customclasses
{
 import mx.core.UITextField;

 public class NoTruncationUITextField extends UITextField
 {

 public function NoTruncationUITextField()
 {
 super();
 }

 override public function truncateToFit(s:String = null):Boolean
 {
 return false;
 }
 }
}

--- In flexcoders@yahoogroups.com, "Jack @ Zingit" <[EMAIL PROTECTED]>
wrote:
>
>
> I have been searching all day for a multiline LinkButton
> custom component and can not find one.
>
> I want the label below the icon and allow for two lines
> of centered text beneath the icon.
>
> Does anyone know of and/or can you direct me to an
> example?
>
> I will be most appreciative.
>
> Thanks,
>
> Jack
>



[flexcoders] Rails Syntax Color

2008-05-08 Thread hel_max
Hi, I'm just trying the new Flex 3 Builder under Windows. It looks
good but I did'nt find some useful syntax color for rails and ruby. So
for my present project for which I'm using rails and flex, I'm using
Flex Builder for flex and netbeans for rails. 
It's not very easy!!!

Does anyone have a good idea or now some useful plug in for me.

Many thanks

maxime



[flexcoders] count up/down effect?

2008-05-08 Thread Jason Rayles
I have a text component on the stage that displays a string like "3 mph" 
and I want it to count up to "10 mph" over time when the data changes 
from 3 to 10. Is there a built-in effect or transition or behavior or 
something in Flex that will do that for me, or do I need to break out 
the ol' ActionScript?

Thanks,
Jason


[flexcoders] re: Flex Item Renderer using popup to edit datagrid - How to refresh datagrid?

2008-05-08 Thread web2mmac
Hi,
  I have a Flex app that has a datagrid with an Item Renderer.  The
Item Renderer displays a button the user can click on to edit the row
of data. When the user presses the "save" button the data is updated
in the database.  

  My question is because of the layers (Item Renderer and Popup), I am
having trouble sending a message to the datagrid to tell it to refresh.

  Does anyone have any idea how I could do that? I have the code in a
zip file and it used AdventureWorks db, if anyone would like a copy,
let me know.

Thanks,

Mary McDonald



Re: [flexcoders] How to build Modular Application

2008-05-08 Thread Greg Hess
Hi Indra,

If your working with Flex builder, right click your
project->properties->Flex Modules and add the path you your module mxml
file. Once completed your module will be compiled to a .swf file when built.

The project I am working on has build the app as a set of modules, each
module is loaded by a core framework (ModuleShell). I modeled the puremvc
multicore modularity demo application, making changes to load modules
instead adding UIComponents to a container. Check it out and you should be
able to use it as a base to extend/modify for your needs
http://trac.puremvc.org/Demo_AS3_MultiCore_Flex_Modularity. Even if you
don't use the puremvc framework you can still use the code as an example
impl.

HTH,

Greg





On Wed, May 7, 2008 at 9:54 PM, Indra Prastha <[EMAIL PROTECTED]>
wrote:

>   Hi Guys,
>
> Just wondering , whats the best way to build an application that's
> modular based?
> Wanted to create one application with a menu on top, each menu item
> loads another flex app below it inside a container.
> Flex documentation says that, each sub-application should be compiled
> into SWF and loaded at run time under the module loader component, so
> what i did was to create a new mxml component based on  , but
> it was never compiled when running the main application (so my first
> question is how do you compile those mxml components into swf (using
> flex builder 2)?).
> Or is there any other way to do it ? please advise
>
> Thanks!
> - Indra
>
> 
>


[flexcoders] Re: set breakpoint does not work [SOLVED]

2008-05-08 Thread Shun Chu
It turns out "Firefox 3pre nightly" is to blame. It broke Flash (I
think). I have been using Minefield versions, and I guess the
particular nightly build I was using broke Flash. Asking FlexBuilder
to send builds to, say Safari or Camino, put "breakpoints" right back
to work as expected.

Cheers...

--- In flexcoders@yahoogroups.com, "Shun Chu" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Just out of the blue, FlexBuilder 3(.0.194161) now doesn't stop at
> breakpoints anymore (Mac OSX Leopard 10.5.2 on MBP). It was working
> when FlexBuilder was initially setup. I have read and tried everything
> in the "flexcodersFAQ.txt" message that's been floating around with no
> success. I have also reinstalled Flex, junk all preferences... etc. to
> no avail.
> 
> Any recommendation is appreciated.
>




[flexcoders] Re: Can a flex application know which browser is it getting opened in?

2008-05-08 Thread tcfolsom
--- In flexcoders@yahoogroups.com, "mailamannow" <[EMAIL PROTECTED]> wrote:
>
> Hi
> My flex application is behaving differently in different browsers.
> Namely IE and Firefox.
> 
> My default debugger for flex was IE, so the application works well
for it.
> 
> On opening application in Firefox, the various components get small in
> size due to which scroll bars come on them.
> 
> (1) Is there a way I could find out what browser the aplication is
> getting opened so that I could code differently for different browsers?
> 
> (2) Is there a better way to control that?
> 
> Amandeep Singh
>
Take a look at the example here:
http://blog.flexexamples.com/2008/03/11/returning-values-from-javascript-in-your-flex-applications-using-the-externalinterface-api/




[flexcoders] Re: set breakpoint does not work

2008-05-08 Thread ovandevelde
--- In flexcoders@yahoogroups.com, "Shun Chu" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Just out of the blue, FlexBuilder 3(.0.194161) now doesn't stop at
> breakpoints anymore (Mac OSX Leopard 10.5.2 on MBP). It was working
> when FlexBuilder was initially setup. I have read and tried everything
> in the "flexcodersFAQ.txt" message that's been floating around with no
> success. I have also reinstalled Flex, junk all preferences... etc. to
> no avail.
> 
> Any recommendation is appreciated.
>
 Make sure you are not debugging release version swf's.



[flexcoders] Flex Base Singleton class based on introspection

2008-05-08 Thread ovandevelde

Currently, ActionScript doesn't have support for private class
constructors, thus any class's constructor can be accessed. But
there are times when you'll want your class to be instantiated just
one time, meaning its constructor called just one time.

Some authors have proposed to solve this problem by defining a
file-local accessible class in the singleton definition file required as
argument of the singleton class constructor:

package
{
 public class ASingletonClass
 {
 private static var instance:ASingletonClass;

 public static function getInstance():ASingletonClass
 {
 if( instance == null )
 {
 instance = new ASingletonClass( new SingletonEnforcer()
);
 }

 return instance;
 }

 public function ASingletonClass( enforcer:SingletonEnforcer ){}
 }
}

class SingletonEnforcer {}

There are two problems with this implementation:

1. it is still possible to pass null as constructor argument, so the
ASingletonClass constructor should at least throw an exception if the
argument is null2. every specific singleton class must define this
code snipplet over and over again

Ideally all singleton functionlity should be put into a base Singleton
class which should be derived as:



public class TestManager extends Singleton

{

// private member instance and getInstance method are defined in base
class

public function test():void {



}

}

The test function can be accessed as:

Singleton.getInstance(TestManager).test();

Or:

var testManager:TestManager = Singleton.getInstance(TestManager) as
TestManager;

testManager.test();

The following code shows a way to implement this base Singleton class.
It used introspection to create and store all singleton instances
(except an instance of the base class itself) into a dictionnary using
objects of type Class as key.




package common.util.singleton

{

import flash.utils.Dictionary;





import flash.utils.getDefinitionByName;

import flash.utils.getQualifiedClassName;



public class Singleton

{

   private static var instanceDict:Dictionary = new Dictionary();



   /**

   * Conceptually private constructor

   *

   */

   public function Singleton()

   {

  var className:String = getQualifiedClassName(this);

  var clazz:Class = getDefinitionByName(className) as Class;

  if(clazz==Singleton) {

 throw("Singleton is a base class that cannot be
instantiated");

  }

  var instance:Object = instanceDict[clazz];

  if(instance!=null) {

 throw("Classes extending Singleton can only be instantiated
once by the getInstance method");

  } else {

 instanceDict[clazz]=this;

  }

   }



   /**

   * Get the single instance

   * @return the single instance

   *

   */

   public static function getInstance(clazz:Class):Object

   {

  var instance:Object = instanceDict[clazz];

  if(instance==null) {

 //create a new instance of class clazz

 instance = Object(new clazz());

 //check that the newly created instance is a Singleton

 var singleton:Singleton = instance as Singleton;

 if(singleton==null) {

throw("getInstance can only be called for Classes
extending Singleton");

 }

  }

  return instance;

   }



}

}



Of course throwing an exception at runtime is less nice than making the
constructor completely inacessible. But as said earlier, the
SingetonEnforcer class doesn't prevent null being passed to the
singleton constructor and thus also needs runtime checking.

The most important thing, if you need to implement several singleton
classes, is to have a consistent and coherent protection code written on
a single place.









[flexcoders] Need help with drawing on a plot chart please.

2008-05-08 Thread Mark
I'm trying to draw a red line that spans the width of the plot chart 
and another that spans the height.  From various samples I've been 
able to draw the lines but now I need to make sure they fall at a 
certain point on that chart.  Right now with the math and code it 
comes out to about 82 and places it 82 pixels in.  I need that line 
to be placed on the #82 tick mark.  So if both the chart's X & Y 
Axis span from 0 to 100 it places it where the 82 would be, not 82 
pixels in.  Can anyone help with this, what do I need to add? 



override protected function updateDisplayList(unscaledWidth:Number,

   unscaledHeight:Number):void
{

super.updateDisplayList(unscaledWidth, 
unscaledHeight);

// my additions \\
var vMiddle:Number = unscaledWidth/2;
var hMiddle:Number = unscaledHeight/2;
var median:Number = (pointItems[12] + 
pointItems[13])/2
//13, 14
trace("median " + median);
//
var g:Graphics = graphics;
g.clear();

// draw a big transparent square so the 
flash player sees us for mouse events */
g.moveTo(0,0);
g.lineStyle(0,0,0);
g.beginFill(0x99,.1);// fill
g.drawRect(0,0,unscaledWidth,unscaledHeight);
g.endFill();

// draw the Y line
g.lineStyle(2,0xFF,.5);
g.moveTo(median, 0);
g.lineTo(median,unscaledHeight);
// draw the X line
g.lineStyle(2,0xFF,.5);
g.moveTo(0, hMiddle);
g.lineTo(unscaledWidth,hMiddle);




[flexcoders] need help to create anchor in flex

2008-05-08 Thread sonnygett
Hello guys,I'm stuck with idea how to create an anchor link in flex
that will be look like this
http://www.w3.org/TR/html401/struct/links.html,hope someone can help
me about this.huge thanks.



[flexcoders] Re: set breakpoint does not work

2008-05-08 Thread Shun Chu
Thanks for this quick "debug player" tip. I made sure my Flash player
was the latest as well as the debug version in my case... Still no luck.

--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> There used to be a URL where you could point your browser and it'd
tell you
> off the bat whether or not you're using the debug player, is that still
> available somewhere? It's something I could probably use from time
to time
> when dealing with giving people "work in progress" SWFs as well as
to help
> people having these sort of problems on the list.
> 
> -J
> 
> On Thu, May 8, 2008 at 2:53 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
> 
> >Make sure you didn't accidentally upgrade to a non-debugger player.
> >
> >
> >  --
> >
> > *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *Shun Chu
> > *Sent:* Wednesday, May 07, 2008 3:16 PM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] set breakpoint does not work
> >
> >
> >
> > Hi,
> >
> > Just out of the blue, FlexBuilder 3(.0.194161) now doesn't stop at
> > breakpoints anymore (Mac OSX Leopard 10.5.2 on MBP). It was working
> > when FlexBuilder was initially setup. I have read and tried everything
> > in the "flexcodersFAQ.txt" message that's been floating around with no
> > success. I have also reinstalled Flex, junk all preferences... etc. to
> > no avail.
> >
> > Any recommendation is appreciated.
> >
> >  
> >
> 
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




[flexcoders] mx.rpc.soap::Operation::invokePending error

2008-05-08 Thread nehavyas13
I am trying to access a wsdl file and getting following error. Can
somebody please help me and tell me what this error means and how can
I find out what null is?

Thanks in advance

[RPC Fault faultString="Error #1009: Cannot access a property or
method of a null object reference." faultCode="EncodingError"
faultDetail="null"]
at
mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\Operation.as:774]
at
mx.rpc.soap::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\Operation.as:688]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at
mx.rpc.soap.mxml::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\mxml\Operation.as:167]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractService.as:285]
at
MonitoringStats/___MonitoringStats_Button4_click()[C:\Projects\mailroomStatistics\src\flex\MonitoringStats\MonitoringStats.mxml:243]



[flexcoders] Can a flex application know which browser is it getting opened in?

2008-05-08 Thread mailamannow
Hi
My flex application is behaving differently in different browsers.
Namely IE and Firefox.

My default debugger for flex was IE, so the application works well for it.

On opening application in Firefox, the various components get small in
size due to which scroll bars come on them.

(1) Is there a way I could find out what browser the aplication is
getting opened so that I could code differently for different browsers?

(2) Is there a better way to control that?

Amandeep Singh



Re: [flexcoders] Re: FlexPrintJob: print image AND text [SOLVED]

2008-05-08 Thread Frederico Garcia
Hi,

I forgot posting that I'd found the reason to my problems. After some 
hours struggling with my code trying to understand why sometimes images 
got printed and sometimes they didn't I've found that the issue was in 
Flash Player (got to the same bug report you mention).

I believe the only solution is make users  update Flash.

Kind Regards,

Frederico Garcia

toofah_gm escreveu:
> It seems that I am seeing the same problems described in this bug:
>
> http://bugs.adobe.com/jira/browse/SDK-7698
>
> I am using the latest FlashPlayer: 9,0,115.
>
> --- In flexcoders@yahoogroups.com, Frederico Garcia <[EMAIL PROTECTED]>
> wrote:
>   
>> mitek17 escreveu:
>> 
>>> Hi Frederico,
>>>
>>> printAsBitmap is not related to the problem, as images/charts/whatever
>>> simply don't have enough time to be rendered.
>>>
>>> You should add event listeners to all your images/charts and wait for
>>> the creationComplete & updateComplete events.
>>>
>>> Cheers,
>>> Dmitri.
>>>
>>>
>>>  
>>>
>>> --- In flexcoders@yahoogroups.com, Frederico Garcia 
>>> wrote:
>>>   
>>>   
>>>> Hi,
>>>>
>>>> I'm trying to print Image and Text, and I want the text to be
>>>> 
> clear, so 
>   
>>>> I set printAsBitmap = false. The problem is, sometimes it prints the 
>>>> images, sometimes it doesn't.
>>>>
>>>> Any help?
>>>>
>>>> Regards,
>>>>
>>>> Frederico Garcia
>>>>
>>>> 
>>>> 
>>>
>>>
>>> --
>>> Flexcoders Mailing List
>>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>>> Search Archives:
>>>   
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
>   
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>> __ NOD32 2787 (20080112) Information __
>>>
>>> This message was checked by NOD32 antivirus system.
>>> http://www.eset.com
>>>
>>>
>>>
>>>   
>>>   
>> Hi,
>>
>> This was due to a player bug. Updating to version 9.0.r115 solved the 
>> problem.
>>
>> http://bugs.adobe.com/jira/browse/SDK-7698
>>
>> Regards,
>>
>> Frederico Garcia
>>
>> 
>
>
>
> 
>
> --
> 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
>
>
>
>
> __ NOD32 3085 (20080508) Information __
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>
>   



Re: [flexcoders] Re: FlexPrintJob not printing multiple formatted lines successf

2008-05-08 Thread Frederico Garcia
  
>>>>> I have a text control displayed with multiple lines of wrapped 
>>>>>   
>>>> text , 
>>>> 
>>>>> no scroll bars, all text is completely displayed on screen.  When 
>>>>>   
>>> i 
>>>   
>>>>> send this text to the printer only the first line is printed.
>>>>>
>>>>> The text control is displaying html formatted text.  This only 
>>>>>   
>>>> happens 
>>>> 
>>>>> to certain font/size combinations.  Verdana 11 prints first line 
>>>>>   
>>>> only, 
>>>> 
>>>>> second and 3rd lines don't print, even though they are on screen 
>>>>>   
>>>> ok.  
>>>> 
>>>>> Verdana 12 prints just fine, 2nd and following lines print ok.
>>>>>
>>>>> I've set the print object to NOT print as bitmap 
>>>>>   
>>>> (printAsBitmap=false) 
>>>> 
>>>>> and the scale type for each object added to the print job is set 
>>>>>   
>>> to 
>>>   
>>>>> show all.
>>>>>
>>>>> Haven't figured out why this happens for some font/size 
>>>>>   
>>>> combonations... 
>>>> 
>>>>> any ideas?
>>>>>
>>>>>   
>>>
>>>
>>>   
>> --
>> John Mark Hawley
>> The Nilbog Group
>> 773.968.4980 (cell)
>>
>> 
>
>
>
> 
>
> --
> 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
>
>
>
>
> __ NOD32 3085 (20080508) Information __
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>
>   



[flexcoders] Re: ComboBox KeyBoard Issue

2008-05-08 Thread Subeesh
Hi Alex, 

Thanks for the help. Now it is working.


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Try listening to systemManager instead of application.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Subeesh
> Sent: Wednesday, May 07, 2008 11:16 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] ComboBox KeyBoard Issue
> 
>  
> 
> Hi All,
> 
> I am having this strage problem . This may be simple . This is the 
> case. i have added a keyboard event listener for the application. 
> when i have focus on any of the controls like TextInput, 
DateField , 
> i can listen for the keyboard event . But when the focus is on the 
> ComboBox , the event cannot be trapped . I copied the code below, i 
> used for testing 
> 
> 
> http://www.adobe.com/2006/mxml
>  " 
> layout="vertical" applicationComplete="onInit()" >
> 
> 
> 
> 
> 
> 
>




[flexcoders] Supressing drag/move of PopupManager window?

2008-05-08 Thread chigwell23
What is the best way to fix a Panel or TitleWindow etc in position
after the PopupManager has popped it? The Drag methods and Move
methods could be overridden, but I am thinking that there is an easier
way? TIA,

Mic.



[flexcoders] Red 5 Flv Player

2008-05-08 Thread Sajid Hussain
Dudes ,
I m creting Flv player for red 5 , all functions are mostly done but I m stuck 
with its buffering bar . u may say I dont have more knwoldge about buffer :P
but could any one suggest how to create buffer bar ?
Sajid
Pakistan


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: [flexcoders] Re: Soap XML doc passed to SoapDecoder.as

2008-05-08 Thread Josh McDonald
AFAIK, [ExcludeClass] just means it can't be auto-completed?

-J

On Thu, May 8, 2008 at 4:39 PM, securenetfreedom <[EMAIL PROTECTED]> wrote:

>   Ok, here we go...
> How do I instantiate a decoder:SOAPDecoder when it's an excluded
> class? [ExcludeClass]
>
> I would love to do this:
>
> import mx.rpc.soap.SOAPDecoder;
> decoder:SOAPDecoder = new SOAPDecoder();
> serializedConent:SOAPResult = decoder.decode('[xml
> stuff]');
>
> I appreciate your help thus far...really! I just need a kick in the
> right direction.
>
> Thanks,
>
>
> Jeff
>
> --- In flexcoders@yahoogroups.com , "Josh
> McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > decoder would be a SOAPDecoder, yeah. I think decode() is defined in
> > IXMLDecoder or some such, and implemented in XMLDecoder. SOAPDecoder
> just
> > provides the SOAP-specific decoding stuff, on top of a generic
> XSD-based xml
> > -> object decoder provided by XMLDecoder.
> >
> > I haven't poked around inside these much, but I've been up to my
> neck in the
> > encoding side of the same activity recently fixing a bug in the way our
> > Arrays were getting encoded by Flex - and I imagine it's very
> similar, just
> > the reverse.
> >
> > -J
>
>  
>



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

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


[flexcoders] reading serial port with AIR / or pipe in linux with AIR application

2008-05-08 Thread yiğit boyar
hi folks,
is there a way to read data from serial port ? (RS232 - 9pin cable)
I couldn't find any example/API and not very hopeful but Java has it why not
AIR?

I have an embedded HW and the instructor requires a good looking GUI, so I
want
to do the GUI with AIR, if I can.
>From internet searchs, people suggest to write a C code to read data and
export to a file
from which Flex will read, but considering 5ms precision will not be
possible in this way. I can do this
with pipes of linux, but is there a way to pipe an AIR application with an
executable in linux ?

Any help/suggestion is welcome,
thanks

yigit