Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

flexcoders · RIA Development with Adobe Flex

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 12335
  • Category: Development
  • Founded: Mar 17, 2004
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 150374 - 150403 of 165719   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#150374 From: "polestar11" <polestar11@...>
Date: Tue Dec 1, 2009 8:05 am
Subject: Re: Special characters (eg. Cyrillic) & TextArea
polestar11
Send Email Send Email
 
Hi there

It is the mx:TextArea:
<mx:TextArea width="200" y="20" x="20" />

Here is a code snippet:
<mx:Box width="100%" height="100%" horizontalAlign="center"
verticalAlign="middle">
  <mx:ViewStack id="viewStack" width="100%" height="100%" selectedIndex="1">
   <component:MainPanel id="mainPanel" width="100%" height="100%" />-->
   <mx:VBox width="100%" id="progressView" height="100%" horizontalAlign="center"
verticalAlign="middle">
    <mx:ProgressBar height="15" indeterminate="true" label="Initializing
ChessCube ..." fontSize="14" />
   </mx:VBox>
  </mx:ViewStack>
</mx:Box>
<mx:TextArea width="200" y="20" x="20" />

The textarea works for special characters in debug mode, but not in release
build mode. I've tried replicating / isolating the issue using different
applications / projects but haven't found anything close to a solution yet,
other than sometimes my tests fail for special characters even in debug mode (I
think because I haven't cleaned the project properly)

Cheers
Tracy

--- In flexcoders@yahoogroups.com, Gordon Smith <gosmith@...> wrote:
>
> BTW, are you are talking about the old MX TextArea or the or new Spark
TextArea?
>
> Gordon Smith
> Adobe Flex SDK Team
>
> From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf
Of Andriy Panas
> Sent: Monday, November 30, 2009 10:49 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Special characters (eg. Cyrillic) & TextArea
>
>
>
> Hi polestar11,
>
> Simple code sample will definitely help to understand your issue.
>
> --
> Best regards,
> Andriy Panas
>
>
> 2009/11/30 polestar11 <polestar11@...<mailto:polestar11@...>>
>
>
> Hi there
>
> I have a problem where I am not able to paste special characters (eg. cyrillic
& arabic) into a flex TextArea component. This occasionally happens in a debug
version of my app and always happens in a release build.
>
> I created a test application in the same project to try isolate the issue. I
intermittently am not able to paste special characters into a textarea. I also
created a different project entirely and never experience the issue.
>
> My guess is that the compiler is misbehaving & getting stuck.
>
> Any help MUCH appreciated
>
> Cheers
> Tracy
>

#150375 From: "Gregor Kiddie" <gkiddie@...>
Date: Tue Dec 1, 2009 10:01 am
Subject: RE: [SPAM] Multiple Script Files
monty_thethird
Send Email Send Email
 

Cairngorm’s ViewHelper is a good example of this.

 

http://www.actionscript.org/resources/articles/950/1/Cairngorm-Getting-Started--Part-2/Page1.html

 

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

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:flexcoders@yahoogroups.com] On Behalf Of Dan Pride
Sent: 28 November 2009 04:31
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] [flexcoders] Multiple Script Files

 

 

I have never heard of this before, where could I find out about it (I come from database design not java)
Dan Pride

--- On Fri, 11/27/09, Tracy Spratt <tracy@nts3rd.com> wrote:


From: Tracy Spratt <tracy@nts3rd.com>
Subject: RE: [SPAM] [flexcoders] Multiple Script Files
To: flexcoders@yahoogroups.com
Date: Friday, November 27, 2009, 5:21 PM

 

Another solution to this is to use helper classes, instead of compiling the script block into the component class.  I never have more than a single script block in an mxml file, rarely have more than one included script file, and often have none of either.

 

You can use the code-behind technique, or static functions in a separate class, or a normally instantiated helper class.

 

Tracy Spratt,

Lariat Services, development services available


From: flexcoders@yahoogro ups.com [mailto: flexcoders@yahoogro ups.com ] On Behalf Of Dan Pride
Sent: Thursday, November 26, 2009 2:41 PM
To: flexcoders@yahoogro ups.com
Subject: [SPAM] [flexcoders] Multiple Script Files

 

 

A similar question. To simplfy things I have created a script file for each table with the relevant actionscript functions for the table in the file.

i.e.
<mx:Script source="CenterScrip t.as" />
<mx:Script source="SquareScrip t.as" />
<mx:Script source="LocaScript. as" />
etc etc

Is this a common way to handle script complexity as an application grows?
The app only uses a couple of components so there is a fair bit of actionScript code tied to the main app file.

Thanks
Dan Pride

 


#150376 From: Eduardo Dias <eduardodias@...>
Date: Tue Dec 1, 2009 11:41 am
Subject: Error #2025 - UIMovieclip and Focus Manager
eduardodias@...
Send Email Send Email
 
Hello Everyone,

I'm using a FlashComponent generated by the Flash Component Kit into a Flex Application. Everything looks fine except when I try to use the key tab to navigate through the screen. I'm getting the runtime error Error #2025 and it seems that's  because the Focus Manager.

Does someone who already has passed through the same problem could suggest some alternative solution?


--
Best Regards,
Eduardo Dias

#150377 From: arindam dhar <arin_dhar@...>
Date: Tue Dec 1, 2009 11:53 am
Subject: << DateTimeAxis parseFunction issue >>
arin_dhar
Send Email Send Email
 
Hi,

I have a linechart which uses DateTimeAxis to format the horizontal axis.

I send a Date object to parseFunction property of DateTimeAxis and set dataUnits="months"..

For a Date being passed in format  new Date(2009,5,25) or new Date(Feb 10 2009"))   yields 5/09 in the chart vertical axis.

Now, I don't want it to be 5/09, but May' 09.

Anyone encountered similar issue and got any solution?

thanks a lot in advance,

Arindam


#150378 From: Tom Chiverton <tom.chiverton@...>
Date: Tue Dec 1, 2009 11:56 am
Subject: Re: Flash Builder 4 for Linux Apha3 Released!
tom.chiverton
Send Email Send Email
 
On Tuesday 24 Nov 2009, thomas parquier wrote:
> No item appears unless you uncheck "group by category" because packages are
> uncategorized, I think. Then you would be able to install fb4linux, great !

OK, I got it installed. Some oddness in the GUI. See the issue for the full
details.

--
Helping to conveniently enable e-services as part of the IT team of the
year, '09 and '08

****************************************************

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 together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. 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.


#150379 From: arindam dhar <arin_dhar@...>
Date: Tue Dec 1, 2009 12:05 pm
Subject: Re: << DateTimeAxis parseFunction issue >>
arin_dhar
Send Email Send Email
 
oops, typo,

*For a Date being passed in format  new Date(2009,5, 25) or new Date(Feb 10 2009"))   yields 5/09 in the chart horizontal axis.

--- On Tue, 12/1/09, arindam dhar <arin_dhar@...> wrote:

From: arindam dhar <arin_dhar@...>
Subject: [flexcoders] << DateTimeAxis parseFunction issue >>
To: flexcoders@yahoogroups.com
Date: Tuesday, December 1, 2009, 5:23 PM

 

Hi,

I have a linechart which uses DateTimeAxis to format the horizontal axis.

I send a Date object to parseFunction property of DateTimeAxis and set dataUnits="months" ..

For a Date being passed in format  new Date(2009,5, 25) or new Date(Feb 10 2009"))   yields 5/09 in the chart vertical axis.

Now, I don't want it to be 5/09, but May' 09.

Anyone encountered similar issue and got any solution?

thanks a lot in advance,

Arindam



#150380 From: "bhaq1972" <mbhaque@...>
Date: Tue Dec 1, 2009 12:39 pm
Subject: Re: RTE - DataGridHeader/mouseOutHandler
bhaq1972
Send Email Send Email
 
Hi Alex.
Thanks for the advice. I think I know what chain of events is leading to this
bug.....its the appearance of the sort arrow.

When I place my mouse cursor on the bottom right corner of the column header
(the position where the sort arrow appears) and click the header to retrieve my
new sql. The new data is retrieved ....but at the same time, the appearance of
the sort arrow actually triggers a DataGridHeader.MouseOut event (which leads to
the RTE).

What iv'e done now is I disable the column (column.sortable=false) when I make
the asynchronous call for new data.
And then enable it (column.sortable=true) once I populate the datagrid with new
data.

I don't see the sort arrow but that doesn't matter as this really isn't a sort.

thanks anyway.
bod





--- In flexcoders@yahoogroups.com, Alex Harui <aharui@...> wrote:
>
> Probably some timing bug.  Maybe use callLater to delay the changing of the
data or send a fake mouseOut event.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf
Of bhaq1972
> Sent: Monday, November 30, 2009 2:43 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: RTE - DataGridHeader/mouseOutHandler
>
>
>
> Yes. The initial dataProvider was showing all orders from the ORDER table (eg
select * from ORDERS).
>
> When a user clicks the column header I want to only show orders a specific
type of order (eg select * from ORDERS where OrderType = 'short')
>
> btw the column has an Image itemRenderer eg
> <myDataGridColumn dataField="OrderType" itemRenderer="mx.controls.Image" ../>
>
>
> --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, Alex
Harui <aharui@> wrote:
> >
> > Is the column set changing based on the new data?
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.<http://www.adobe.com/>
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>] On
Behalf Of bhaq1972
> > Sent: Monday, November 30, 2009 8:26 AM
> > To: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>
> > Subject: [flexcoders] RTE - DataGridHeader/mouseOutHandler
> >
> >
> >
> > I'm getting this runtime error which I hope someone can help me with.
> >
> > Basically, I added a headerRelease event to my DataGrid. The plan is...when
a user clicks a dg column header .... rather than sorting the rows, i plan to
re-populate the datagrid with rows from a different sql database call.
> >
> > eg
> > <mx:DataGrid headerRelease="headerClicked(event)" ..
> > ..
> > public function headerClicked(e:DataGridEvent):void
> > {
> > var col:myDGColumn = this.columns[e.columnIndex];
> >
> > if(col.filter)
> > {
> > // make a different database call to populate dg dataprovider
> > }
> > }
> >
> > Now this seems to be working except sometimes (quite often actually) I get
the following runtime error.
> >
> > TypeError: Error #1010: A term is undefined and has no properties.
> > at
mx.controls.dataGridClasses::DataGridHeader/mouseOutHandler()[E:\dev\3.0.x\frame\
works\projects\framework\src\mx\controls\dataGridClasses\DataGridHeader.as:1078]
> >
> > Using the debugger, the code is dying on the following if statement (of
mouseOutHandler())
> >
> > if (visibleColumns[i].sortable)
> > {
> > ...
> > in my case visibleColumns.length = 10 and i=10 .....hence the RTE.
> >
> > Can some one suggest a workaround please
> >
> > regards
> > bod
> >
>

#150381 From: Sébastien Tromp <sebastien.tromp@...>
Date: Tue Dec 1, 2009 1:38 pm
Subject: Re: Reuse same instance of UIComponent in different views
sebastien.tromp
Send Email Send Email
 
Hello,

In fact - I don't know what I really need from Canvas. I'll try and replace it with UIComponent to check if it can reduce the footprint. Thanks for the advice.
I did a profiling of the object, and the majority of the memory consumption (between a third and a half) comes from extensions of the Image class (in fact, each of my component instance has around 40-45 images attached to it, most of them being identical and simply laid out differently).
But I guess my issue is similar for these images: if a component can have at most one parent, I have no choice but duplicate all these instances, do I?

Thanks for your advises,
-- 
Seb

2009/11/30 Andriy Panas <a.panas@...>
 

Hi Sebastien,


What exact functionality do you re-use from Canvas container? May be you can substitute Canvas with UIComponent to reduce the memory footprint?

--
Best regards,
Andriy Panas


2009/11/28 Sébastien Tromp <sebastien.tromp@...>

 

Hello,

In my application, I have created an extension of a Canvas:

       class A extends Canvas

This component is rather big in memory, and needs to be displayed in several panels of the application at the same time. For instance, as a child of another Canvas and as a child of a TitleWindow simultaneously.



#150382 From: "valdhor" <valdhorlists@...>
Date: Tue Dec 1, 2009 2:03 pm
Subject: Re: git version control support
valdhor
Send Email Send Email
 
I haven't tried it but I would have thought the GIT Eclipse plugin should work
(http://www.eclipse.org/egit/). Maybe you should try it?

--- In flexcoders@yahoogroups.com, "ynotob" <tony@...> wrote:
>
> Anyone know when / how git will be supported within flex builder?
>

#150383 From: "invertedspear" <invertedspear@...>
Date: Tue Dec 1, 2009 3:15 pm
Subject: Re: Quadrant
invertedspear
Send Email Send Email
 
Are you adding the image with a script? if so you can change the height and
width of the image setting it equal to the height and width of the container
canvas, or any percentage of it like so:

height = int(container.height * .75) //for 75% of the height
width = int(container.width - 10)//to leave 10 pixels

does this help?
~Mike

--- In flexcoders@yahoogroups.com, kanu kukreja <kanukukreja@...> wrote:
>
> Hi,
> I need a help from you all.
>
> I have 5 canvases all are of different dimension.
>
> If i add an image in one canvas, proportionally i want to show that in
> another banners.
> How i can achieve that?
>
> Thanks
>

#150384 From: "Christophe" <christophe_jacquelin@...>
Date: Tue Dec 1, 2009 4:16 pm
Subject: Starting with Cairngorm or PureMvc
christophe_j...
Send Email Send Email
 
Hello,

Is it easy to learn and use Cairngorm or PureMvc. I have a one year application
and I would like to use these frameworks to structured it.

Thank you,
Christophe,

#150385 From: Andriy Panas <a.panas@...>
Date: Tue Dec 1, 2009 5:09 pm
Subject: Re: Re: Special characters (eg. Cyrillic) & TextArea
apanas_2000
Send Email Send Email
 
Hi Tracy,

I am afraid your code sample is too generic and will not help me to isolate your issue.

   Me as a native speaker that uses Cyrillic alphabet had never seen any problems with displaying Cyrillic alphabet symbols in <mx:TextArea>, but this remain valid only for  Windows OS, never tried Mac OS.

  I see that you're running Flash Player at Mac and had created the issue https://bugs.adobe.com/jira/browse/FB-24484 at Adobe JIRA bug-base, let move the discussion over this issue to Adobe JIRA.

   You should try as many Flash player dot versions as possible to test this issue, e.g 9.0.115,  9.0.246, 10.0.32.18 etc because we are talking here not about Flex SDK, but about Flash player features.

--
Best regards,
Andriy Panas



2009/12/1 polestar11 <polestar11@...>
 

Hi there

It is the mx:TextArea:
<mx:TextArea width="200" y="20" x="20" />

Here is a code snippet:
<mx:Box width="100%" height="100%" horizontalAlign="center" verticalAlign="middle">
<mx:ViewStack id="viewStack" width="100%" height="100%" selectedIndex="1">
<component:MainPanel id="mainPanel" width="100%" height="100%" />-->
<mx:VBox width="100%" id="progressView" height="100%" horizontalAlign="center" verticalAlign="middle">
<mx:ProgressBar height="15" indeterminate="true" label="Initializing ChessCube ..." fontSize="14" />
</mx:VBox>
</mx:ViewStack>
</mx:Box>
<mx:TextArea width="200" y="20" x="20" />

The textarea works for special characters in debug mode, but not in release build mode. I've tried replicating / isolating the issue using different applications / projects but haven't found anything close to a solution yet, other than sometimes my tests fail for special characters even in debug mode (I think because I haven't cleaned the project properly)

Cheers
Tracy



--- In flexcoders@yahoogroups.com, Gordon Smith <gosmith@...> wrote:
>
> BTW, are you are talking about the old MX TextArea or the or new Spark TextArea?
>
> Gordon Smith
> Adobe Flex SDK Team
>
> From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Andriy Panas
> Sent: Monday, November 30, 2009 10:49 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Special characters (eg. Cyrillic) & TextArea
>
>
>
> Hi polestar11,
>
> Simple code sample will definitely help to understand your issue.
>
> --
> Best regards,
> Andriy Panas
>
>
> 2009/11/30 polestar11 <polestar11@...<mailto:polestar11@...>>

>
>
> Hi there
>
> I have a problem where I am not able to paste special characters (eg. cyrillic & arabic) into a flex TextArea component. This occasionally happens in a debug version of my app and always happens in a release build.
>
> I created a test application in the same project to try isolate the issue. I intermittently am not able to paste special characters into a textarea. I also created a different project entirely and never experience the issue.
>
> My guess is that the compiler is misbehaving & getting stuck.
>
> Any help MUCH appreciated
>
> Cheers
> Tracy
>
,___


#150386 From: Richard Rodseth <rrodseth@...>
Date: Tue Dec 1, 2009 5:42 pm
Subject: Re: Starting with Cairngorm or PureMvc
rcrodseth
Send Email Send Email
 
Personally, I like Mate and suggest you check it out before committing to either of those too.

On Tue, Dec 1, 2009 at 8:16 AM, Christophe <christophe_jacquelin@...> wrote:
 

Hello,

Is it easy to learn and use Cairngorm or PureMvc. I have a one year application and I would like to use these frameworks to structured it.

Thank you,
Christophe,



#150387 From: Chris <zomgforeelz@...>
Date: Tue Dec 1, 2009 6:03 pm
Subject: Re: Starting with Cairngorm or PureMvc
fatoldhipster
Send Email Send Email
 
PureMVC is the bomb.

Yes there is boiler plate code but the things it allows you to do is
very useful. The learning curve is a bit steep if you are not familiar
with MVC, but it is really, really worth it.

Cairngorm is pretty good, but I felt that the reusability of the code
wasn't as great as PureMVC. The fact that its language-specific is a
turn-off for me. I like that I can code PureMVC in pure AS3, Flex, C#
or Objective C if necessary.


Here is a posting on the PureMVC LinkedIn group I did recently that
may help clarify some points about the benefits of using a framework
in Flex:

The benefit of using a framework such as PureMVC for us is:

Consistency - Developing, (and especially developing remotely) you
need to enforce a focused singular vision not only on the project but
also its structure. A framework allows you to do that.
Stability - By using a framework you avoid a lot of the pitfalls of
spaghetti code. One of the unfortunate problems with Flex is that
while its really really easy to get moving, and perfect for rapid
prototyping, often these prototypes aren't thrown away, but instead
built on top of. Things quickly spiral out of control, and you can't
keep the house standing. I speak from personal experience, and also
from the experience of others.
Maintainability - By staying consistent you are able to easily build
features out using the same tried and true tactics. This means that
when developer A leaves and Developer B starts, you teach him the 'MVC
ropes' and they jump right in. This also means other people's code and
your code take on a similar feel, meaning you feel right at home in
most of the codebase, including things you didn't write.
Testing - By utilizing a framework we are able to peel off very
specific areas of the application and test just them. For example:
Perhaps you have a 'You have won!' screen at the end of a level. You
could play through a level to see the screen, or you could create a
special demo Mediator that pretends to win the level and immediately
displays the view and just test that.

* What are the limitations or cons of using a Framework with Flex 3?

I would say that the most difficult thing is there is a lot of boiler
plate code. Things in PureMVC are very loosely coupled, and the price
of this loose coupling is that you need to add a bit more code.

* Do I really need to use a Framework, or does Flex 3 have what it
takes out of the box?

YES you need a framework. Flex out of the box for anything beyond
small applications quickly becomes unmanageable. Even using frameworks
like Cairngorm can become overwhelmed if you plan to fork code.



On Tue, Dec 1, 2009 at 10:42 AM, Richard Rodseth <rrodseth@...> wrote:
>
>
>
> Personally, I like Mate and suggest you check it out before committing to
either of those too.
>
> On Tue, Dec 1, 2009 at 8:16 AM, Christophe <christophe_jacquelin@...>
wrote:
>>
>>
>>
>> Hello,
>>
>> Is it easy to learn and use Cairngorm or PureMvc. I have a one year
application and I would like to use these frameworks to structured it.
>>
>> Thank you,
>> Christophe,
>>
>
>

#150388 From: "Amy" <amyblankenship@...>
Date: Tue Dec 1, 2009 6:03 pm
Subject: Re: << DateTimeAxis parseFunction issue >>
droponrcll
Send Email Send Email
 
--- In flexcoders@yahoogroups.com, arindam dhar <arin_dhar@...> wrote:
>
> oops, typo,
>
> *For a Date being passed in format  new Date(2009,5, 25) or new Date(Feb 10
2009"))   yields 5/09 in the chart horizontal axis.

Check the docs for the axis you're using, and look for something like a
labelFunction.

HTH;

Amy

#150389 From: "criptopus" <sd_brown@...>
Date: Tue Dec 1, 2009 6:05 pm
Subject: Flex Builder 3 - Crashes
criptopus
Send Email Send Email
 
It has happened now 4 times,

When I exit Flex Builder 3 my system crashes, screen goes black and the system
restarts. When I re-run Flex Builder it shows nothing in the Flex Navigator.

This wouldn't be a problem as I save (export) my work but the exported work
dosn't restore properly, while before I was working in the debug area it insists
on working in the release area. Which is not how I had it set up.

The only way I recover successfully is to create a new project, set up all my
php services and copy the files back, which takes ages.

Anybody have the same trouble, if so does anybody have any way to speed up the
restore or stop the crash happening?

- Stephen

#150390 From: Chris <zomgforeelz@...>
Date: Tue Dec 1, 2009 6:08 pm
Subject: Re: Reuse same instance of UIComponent in different views
fatoldhipster
Send Email Send Email
 
If you don't need interactivity, this sounds like an ideal place for bitmap caching. Do you need to have the user click on various items within the display, or have some other kind of real-time interactivity? If not you can create a bitmap image of your UIComponent (or at least the non-interactive parts), and then attach the BitmapData to multiple Bitmaps in different locations on the stage.

Additionally if you are re-loading the same images for each individual UIComponent, you can re-use the BitmapData between instances of your custom UIComponent to reduce your footprint significantly.

Chris

2009/12/1 Sébastien Tromp <sebastien.tromp@...>
 

Hello,


In fact - I don't know what I really need from Canvas. I'll try and replace it with UIComponent to check if it can reduce the footprint. Thanks for the advice.
I did a profiling of the object, and the majority of the memory consumption (between a third and a half) comes from extensions of the Image class (in fact, each of my component instance has around 40-45 images attached to it, most of them being identical and simply laid out differently).
But I guess my issue is similar for these images: if a component can have at most one parent, I have no choice but duplicate all these instances, do I?

Thanks for your advises,
-- 
Seb

2009/11/30 Andriy Panas <a.panas@...>

 

Hi Sebastien,


What exact functionality do you re-use from Canvas container? May be you can substitute Canvas with UIComponent to reduce the memory footprint?

--
Best regards,
Andriy Panas


2009/11/28 Sébastien Tromp <sebastien.tromp@...>

 

Hello,

In my application, I have created an extension of a Canvas:

       class A extends Canvas

This component is rather big in memory, and needs to be displayed in several panels of the application at the same time. For instance, as a child of another Canvas and as a child of a TitleWindow simultaneously.




#150391 From: "turbo_vb" <TimHoff@...>
Date: Tue Dec 1, 2009 6:08 pm
Subject: Re: Starting with Cairngorm or PureMvc
turbo_vb
Send Email Send Email
 
Second that personally for Mate.  Done right, it can result in a much cleaner
code base than the 2 frameworks mentioned.  Swiz is also a viable alternative.

-TH

--- In flexcoders@yahoogroups.com, Richard Rodseth <rrodseth@...> wrote:
>
> Personally, I like Mate and suggest you check it out before committing to
> either of those too.
>
> On Tue, Dec 1, 2009 at 8:16 AM, Christophe <christophe_jacquelin@...>wrote:
>
> >
> >
> > Hello,
> >
> > Is it easy to learn and use Cairngorm or PureMvc. I have a one year
> > application and I would like to use these frameworks to structured it.
> >
> > Thank you,
> > Christophe,
> >
> >
> >
>

#150392 From: "invertedspear" <invertedspear@...>
Date: Tue Dec 1, 2009 6:29 pm
Subject: Re: Flex Builder 3 - Crashes
invertedspear
Send Email Send Email
 
Had this prob with another program, it was a major software conflict, something
like a windows BSOD so bad that it couldn't even do a BSOD.

Tracing this problem is a nearly impossible task for a normal user. It could be
a conflict with almost any installed software, my issue only occurred when I had
MS Office & IEX (the crashing app) installed, then it only occurred when I
resized a window by clicking and dragging the lower right corner, not a side,
top, bottom, or any other corner.

Re-installing is not going to help because the conflicting software is still
installed. What may make the difference is where the conflict is occurring so
try closing the app in different ways. Assuming you're using windows, try
clicking the [X], file->close, right clicking and selecting close from the start
bar, and even using the task manager. One of these may skip the conflict and you
might be safe that way, else try a different system or uninstalling programs you
aren't using.

Good Luck
~Mike

--- In flexcoders@yahoogroups.com, "criptopus" <sd_brown@...> wrote:
>
> It has happened now 4 times,
>
> When I exit Flex Builder 3 my system crashes, screen goes black and the system
restarts. When I re-run Flex Builder it shows nothing in the Flex Navigator.
>
> This wouldn't be a problem as I save (export) my work but the exported work
dosn't restore properly, while before I was working in the debug area it insists
on working in the release area. Which is not how I had it set up.
>
> The only way I recover successfully is to create a new project, set up all my
php services and copy the files back, which takes ages.
>
> Anybody have the same trouble, if so does anybody have any way to speed up the
restore or stop the crash happening?
>
> - Stephen
>

#150393 From: "jamesfin" <james.alan.finnigan@...>
Date: Tue Dec 1, 2009 6:31 pm
Subject: Re: Starting with Cairngorm or PureMvc
jamesfin
Send Email Send Email
 
I have to concur with Chris.  I've been using PureMVC and took a stab at
Cairngorm and Mate in the beginning but felt they were too tightly coupled with
Flex, especially Mate.  I'm not an MVC expert but will say that I have enjoyed
having the strict decoupling which makes managing the code easier.  If you think
Cairngorm/Mate decouples things which I know they do well, give PureMVC a whirl
and you will then understand why we are passionate about PureMVC.  We don't mind
the additional coding that is required to implement an application in it as we
know that means it is forcing us towards a well architected application.

I want to add a shout-out for Fabrication as well.  Fabrication is an add-on for
the Multi-core version of PureMVC that allows components to be able to send
notifications from one MVC in one SWF to another MVC in another SWF using pipes.
All of this is seamless with standard PureMVC notifications.  Nice!

Then again, who am I and what do I know.

$0.02






--- In flexcoders@yahoogroups.com, Chris <zomgforeelz@...> wrote:
>
> PureMVC is the bomb.
>
> Yes there is boiler plate code but the things it allows you to do is
> very useful. The learning curve is a bit steep if you are not familiar
> with MVC, but it is really, really worth it.
>
> Cairngorm is pretty good, but I felt that the reusability of the code
> wasn't as great as PureMVC. The fact that its language-specific is a
> turn-off for me. I like that I can code PureMVC in pure AS3, Flex, C#
> or Objective C if necessary.
>
>
> Here is a posting on the PureMVC LinkedIn group I did recently that
> may help clarify some points about the benefits of using a framework
> in Flex:
>
> The benefit of using a framework such as PureMVC for us is:
>
> Consistency - Developing, (and especially developing remotely) you
> need to enforce a focused singular vision not only on the project but
> also its structure. A framework allows you to do that.
> Stability - By using a framework you avoid a lot of the pitfalls of
> spaghetti code. One of the unfortunate problems with Flex is that
> while its really really easy to get moving, and perfect for rapid
> prototyping, often these prototypes aren't thrown away, but instead
> built on top of. Things quickly spiral out of control, and you can't
> keep the house standing. I speak from personal experience, and also
> from the experience of others.
> Maintainability - By staying consistent you are able to easily build
> features out using the same tried and true tactics. This means that
> when developer A leaves and Developer B starts, you teach him the 'MVC
> ropes' and they jump right in. This also means other people's code and
> your code take on a similar feel, meaning you feel right at home in
> most of the codebase, including things you didn't write.
> Testing - By utilizing a framework we are able to peel off very
> specific areas of the application and test just them. For example:
> Perhaps you have a 'You have won!' screen at the end of a level. You
> could play through a level to see the screen, or you could create a
> special demo Mediator that pretends to win the level and immediately
> displays the view and just test that.
>
> * What are the limitations or cons of using a Framework with Flex 3?
>
> I would say that the most difficult thing is there is a lot of boiler
> plate code. Things in PureMVC are very loosely coupled, and the price
> of this loose coupling is that you need to add a bit more code.
>
> * Do I really need to use a Framework, or does Flex 3 have what it
> takes out of the box?
>
> YES you need a framework. Flex out of the box for anything beyond
> small applications quickly becomes unmanageable. Even using frameworks
> like Cairngorm can become overwhelmed if you plan to fork code.
>
>
>
> On Tue, Dec 1, 2009 at 10:42 AM, Richard Rodseth <rrodseth@...> wrote:
> >
> >
> >
> > Personally, I like Mate and suggest you check it out before committing to
either of those too.
> >
> > On Tue, Dec 1, 2009 at 8:16 AM, Christophe <christophe_jacquelin@...> wrote:
> >>
> >>
> >>
> >> Hello,
> >>
> >> Is it easy to learn and use Cairngorm or PureMvc. I have a one year
application and I would like to use these frameworks to structured it.
> >>
> >> Thank you,
> >> Christophe,
> >>
> >
> >
>

#150394 From: "Tracy Spratt" <tracy@...>
Date: Tue Dec 1, 2009 7:05 pm
Subject: RE: [SPAM] Re: Flex Builder 3 - Crashes
nts333rd
Send Email Send Email
 

In the short term, export the Flex project to an archive (zip) file. It takes only seconds.  Restoring is then just a matter of “importing” that archive, again only seconds.  It should preserve all of your project settings.

 

Tracy Spratt,

Lariat Services, development services available


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of invertedspear
Sent: Tuesday, December 01, 2009 1:30 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Re: Flex Builder 3 - Crashes

 

 

Had this prob with another program, it was a major software conflict, something like a windows BSOD so bad that it couldn't even do a BSOD.

Tracing this problem is a nearly impossible task for a normal user. It could be a conflict with almost any installed software, my issue only occurred when I had MS Office & IEX (the crashing app) installed, then it only occurred when I resized a window by clicking and dragging the lower right corner, not a side, top, bottom, or any other corner.

Re-installing is not going to help because the conflicting software is still installed. What may make the difference is where the conflict is occurring so try closing the app in different ways. Assuming you're using windows, try clicking the [X], file->close, right clicking and selecting close from the start bar, and even using the task manager. One of these may skip the conflict and you might be safe that way, else try a different system or uninstalling programs you aren't using.

Good Luck
~Mike

--- In flexcoders@yahoogroups.com, "criptopus" <sd_brown@...> wrote:
>
> It has happened now 4 times,
>
> When I exit Flex Builder 3 my system crashes, screen goes black and the system restarts. When I re-run Flex Builder it shows nothing in the Flex Navigator.
>
> This wouldn't be a problem as I save (export) my work but the exported work dosn't restore properly, while before I was working in the debug area it insists on working in the release area. Which is not how I had it set up.
>
> The only way I recover successfully is to create a new project, set up all my php services and copy the files back, which takes ages.
>
> Anybody have the same trouble, if so does anybody have any way to speed up the restore or stop the crash happening?
>
> - Stephen
>


#150395 From: Richard Rodseth <rrodseth@...>
Date: Tue Dec 1, 2009 7:08 pm
Subject: Charting error
rcrodseth
Send Email Send Email
 
Since I don't have the Flex 3.3 charting sources handy, has anyone encountered this error?

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.charts::AxisRenderer/calcStaggeredSpacing()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:2200]

#150396 From: Richard Rodseth <rrodseth@...>
Date: Tue Dec 1, 2009 7:26 pm
Subject: Re: Re: Starting with Cairngorm or PureMvc
rcrodseth
Send Email Send Email
 
Not to disparage PureMVC (glad it works for you), but I don't really get the significance of the fact that it's not Flex-specific. We're developing Flex apps.

One complaint I have about Mate is that the lack of strong typing in the event map can certainly trip you up.

On Tue, Dec 1, 2009 at 10:31 AM, jamesfin <james.alan.finnigan@...> wrote:
 

I have to concur with Chris. I've been using PureMVC and took a stab at Cairngorm and Mate in the beginning but felt they were too tightly coupled with Flex, especially Mate. I'm not an MVC expert but will say that I have enjoyed having the strict decoupling which makes managing the code easier. If you think Cairngorm/Mate decouples things which I know they do well, give PureMVC a whirl and you will then understand why we are passionate about PureMVC. We don't mind the additional coding that is required to implement an application in it as we know that means it is forcing us towards a well architected application.

I want to add a shout-out for Fabrication as well. Fabrication is an add-on for the Multi-core version of PureMVC that allows components to be able to send notifications from one MVC in one SWF to another MVC in another SWF using pipes. All of this is seamless with standard PureMVC notifications. Nice!

Then again, who am I and what do I know.

$0.02



--- In flexcoders@yahoogroups.com, Chris <zomgforeelz@...> wrote:
>
> PureMVC is the bomb.
>
> Yes there is boiler plate code but the things it allows you to do is
> very useful. The learning curve is a bit steep if you are not familiar
> with MVC, but it is really, really worth it.
>
> Cairngorm is pretty good, but I felt that the reusability of the code
> wasn't as great as PureMVC. The fact that its language-specific is a
> turn-off for me. I like that I can code PureMVC in pure AS3, Flex, C#
> or Objective C if necessary.
>
>
> Here is a posting on the PureMVC LinkedIn group I did recently that
> may help clarify some points about the benefits of using a framework
> in Flex:
>
> The benefit of using a framework such as PureMVC for us is:
>
> Consistency - Developing, (and especially developing remotely) you
> need to enforce a focused singular vision not only on the project but
> also its structure. A framework allows you to do that.
> Stability - By using a framework you avoid a lot of the pitfalls of
> spaghetti code. One of the unfortunate problems with Flex is that
> while its really really easy to get moving, and perfect for rapid
> prototyping, often these prototypes aren't thrown away, but instead
> built on top of. Things quickly spiral out of control, and you can't
> keep the house standing. I speak from personal experience, and also
> from the experience of others.
> Maintainability - By staying consistent you are able to easily build
> features out using the same tried and true tactics. This means that
> when developer A leaves and Developer B starts, you teach him the 'MVC
> ropes' and they jump right in. This also means other people's code and
> your code take on a similar feel, meaning you feel right at home in
> most of the codebase, including things you didn't write.
> Testing - By utilizing a framework we are able to peel off very
> specific areas of the application and test just them. For example:
> Perhaps you have a 'You have won!' screen at the end of a level. You
> could play through a level to see the screen, or you could create a
> special demo Mediator that pretends to win the level and immediately
> displays the view and just test that.
>
> * What are the limitations or cons of using a Framework with Flex 3?
>
> I would say that the most difficult thing is there is a lot of boiler
> plate code. Things in PureMVC are very loosely coupled, and the price
> of this loose coupling is that you need to add a bit more code.
>
> * Do I really need to use a Framework, or does Flex 3 have what it
> takes out of the box?
>
> YES you need a framework. Flex out of the box for anything beyond
> small applications quickly becomes unmanageable. Even using frameworks
> like Cairngorm can become overwhelmed if you plan to fork code.
>
>
>
> On Tue, Dec 1, 2009 at 10:42 AM, Richard Rodseth <rrodseth@...> wrote:
> >
> >
> >
> > Personally, I like Mate and suggest you check it out before committing to either of those too.
> >
> > On Tue, Dec 1, 2009 at 8:16 AM, Christophe <christophe_jacquelin@...> wrote:
> >>
> >>
> >>
> >> Hello,
> >>
> >> Is it easy to learn and use Cairngorm or PureMvc. I have a one year application and I would like to use these frameworks to structured it.
> >>
> >> Thank you,
> >> Christophe,
> >>
> >
> >
>



#150397 From: "invertedspear" <invertedspear@...>
Date: Tue Dec 1, 2009 8:31 pm
Subject: Re: Charting error
invertedspear
Send Email Send Email
 
That error is not specific to charts. Can we see the line of code that is
throwing the error? You are probably trying to do something to an object before
it is created.

--- In flexcoders@yahoogroups.com, Richard Rodseth <rrodseth@...> wrote:
>
> Since I don't have the Flex 3.3 charting sources handy, has anyone
> encountered this error?
>
> TypeError: Error #1009: Cannot access a property or method of a null object
> reference.
>     at
>
mx.charts::AxisRenderer/calcStaggeredSpacing()[C:\work\flex\dmv_automation\proje\
cts\datavisualisation\src\mx\charts\AxisRenderer.as:2200]
>

#150398 From: "jamesfin" <james.alan.finnigan@...>
Date: Tue Dec 1, 2009 9:16 pm
Subject: Re: Starting with Cairngorm or PureMvc
jamesfin
Send Email Send Email
 
Thanks for the honest reply Richard.

You are very correct in that we are talking about a Flex application here. 
However, I also am involved in an equivalent iPhone application and am using the
iPhone port of PureMVC.  It was easier to convert the Flex app. to the already
complex iPhone architecture with PureMVC.  Since PureMVC is available for most
any environment, it's a safe-bet in the end too cause you never know when you
may need to port your app.

No harm, no foul. ;)



--- In flexcoders@yahoogroups.com, Richard Rodseth <rrodseth@...> wrote:
>
> Not to disparage PureMVC (glad it works for you), but I don't really get the
> significance of the fact that it's not Flex-specific. We're developing Flex
> apps.
>
> One complaint I have about Mate is that the lack of strong typing in the
> event map can certainly trip you up.
>
> On Tue, Dec 1, 2009 at 10:31 AM, jamesfin <james.alan.finnigan@...>wrote:
>
> >
> >
> > I have to concur with Chris. I've been using PureMVC and took a stab at
> > Cairngorm and Mate in the beginning but felt they were too tightly coupled
> > with Flex, especially Mate. I'm not an MVC expert but will say that I have
> > enjoyed having the strict decoupling which makes managing the code easier.
> > If you think Cairngorm/Mate decouples things which I know they do well, give
> > PureMVC a whirl and you will then understand why we are passionate about
> > PureMVC. We don't mind the additional coding that is required to implement
> > an application in it as we know that means it is forcing us towards a well
> > architected application.
> >
> > I want to add a shout-out for Fabrication as well. Fabrication is an add-on
> > for the Multi-core version of PureMVC that allows components to be able to
> > send notifications from one MVC in one SWF to another MVC in another SWF
> > using pipes. All of this is seamless with standard PureMVC notifications.
> > Nice!
> >
> > Then again, who am I and what do I know.
> >
> > $0.02
> >
> >
> > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, Chris
> > <zomgforeelz@> wrote:
> > >
> > > PureMVC is the bomb.
> > >
> > > Yes there is boiler plate code but the things it allows you to do is
> > > very useful. The learning curve is a bit steep if you are not familiar
> > > with MVC, but it is really, really worth it.
> > >
> > > Cairngorm is pretty good, but I felt that the reusability of the code
> > > wasn't as great as PureMVC. The fact that its language-specific is a
> > > turn-off for me. I like that I can code PureMVC in pure AS3, Flex, C#
> > > or Objective C if necessary.
> > >
> > >
> > > Here is a posting on the PureMVC LinkedIn group I did recently that
> > > may help clarify some points about the benefits of using a framework
> > > in Flex:
> > >
> > > The benefit of using a framework such as PureMVC for us is:
> > >
> > > Consistency - Developing, (and especially developing remotely) you
> > > need to enforce a focused singular vision not only on the project but
> > > also its structure. A framework allows you to do that.
> > > Stability - By using a framework you avoid a lot of the pitfalls of
> > > spaghetti code. One of the unfortunate problems with Flex is that
> > > while its really really easy to get moving, and perfect for rapid
> > > prototyping, often these prototypes aren't thrown away, but instead
> > > built on top of. Things quickly spiral out of control, and you can't
> > > keep the house standing. I speak from personal experience, and also
> > > from the experience of others.
> > > Maintainability - By staying consistent you are able to easily build
> > > features out using the same tried and true tactics. This means that
> > > when developer A leaves and Developer B starts, you teach him the 'MVC
> > > ropes' and they jump right in. This also means other people's code and
> > > your code take on a similar feel, meaning you feel right at home in
> > > most of the codebase, including things you didn't write.
> > > Testing - By utilizing a framework we are able to peel off very
> > > specific areas of the application and test just them. For example:
> > > Perhaps you have a 'You have won!' screen at the end of a level. You
> > > could play through a level to see the screen, or you could create a
> > > special demo Mediator that pretends to win the level and immediately
> > > displays the view and just test that.
> > >
> > > * What are the limitations or cons of using a Framework with Flex 3?
> > >
> > > I would say that the most difficult thing is there is a lot of boiler
> > > plate code. Things in PureMVC are very loosely coupled, and the price
> > > of this loose coupling is that you need to add a bit more code.
> > >
> > > * Do I really need to use a Framework, or does Flex 3 have what it
> > > takes out of the box?
> > >
> > > YES you need a framework. Flex out of the box for anything beyond
> > > small applications quickly becomes unmanageable. Even using frameworks
> > > like Cairngorm can become overwhelmed if you plan to fork code.
> > >
> > >
> > >
> > > On Tue, Dec 1, 2009 at 10:42 AM, Richard Rodseth <rrodseth@> wrote:
> > > >
> > > >
> > > >
> > > > Personally, I like Mate and suggest you check it out before committing
> > to either of those too.
> > > >
> > > > On Tue, Dec 1, 2009 at 8:16 AM, Christophe <christophe_jacquelin@>
> > wrote:
> > > >>
> > > >>
> > > >>
> > > >> Hello,
> > > >>
> > > >> Is it easy to learn and use Cairngorm or PureMvc. I have a one year
> > application and I would like to use these frameworks to structured it.
> > > >>
> > > >> Thank you,
> > > >> Christophe,
> > > >>
> > > >
> > > >
> > >
> >
> >
> >
>

#150399 From: Richard Rodseth <rrodseth@...>
Date: Tue Dec 1, 2009 9:33 pm
Subject: Re: Re: Starting with Cairngorm or PureMvc
rcrodseth
Send Email Send Email
 
Fair enough. That's good to know.

On Tue, Dec 1, 2009 at 1:16 PM, jamesfin <james.alan.finnigan@...> wrote:
 

Thanks for the honest reply Richard.

You are very correct in that we are talking about a Flex application here. However, I also am involved in an equivalent iPhone application and am using the iPhone port of PureMVC. It was easier to convert the Flex app. to the already complex iPhone architecture with PureMVC. Since PureMVC is available for most any environment, it's a safe-bet in the end too cause you never know when you may need to port your app.

No harm, no foul. ;)



--- In flexcoders@yahoogroups.com, Richard Rodseth <rrodseth@...> wrote:
>
> Not to disparage PureMVC (glad it works for you), but I don't really get the
> significance of the fact that it's not Flex-specific. We're developing Flex
> apps.
>
> One complaint I have about Mate is that the lack of strong typing in the
> event map can certainly trip you up.
>
> On Tue, Dec 1, 2009 at 10:31 AM, jamesfin <james.alan.finnigan@...>wrote:

>
> >
> >
> > I have to concur with Chris. I've been using PureMVC and took a stab at
> > Cairngorm and Mate in the beginning but felt they were too tightly coupled
> > with Flex, especially Mate. I'm not an MVC expert but will say that I have
> > enjoyed having the strict decoupling which makes managing the code easier.
> > If you think Cairngorm/Mate decouples things which I know they do well, give
> > PureMVC a whirl and you will then understand why we are passionate about
> > PureMVC. We don't mind the additional coding that is required to implement
> > an application in it as we know that means it is forcing us towards a well
> > architected application.
> >
> > I want to add a shout-out for Fabrication as well. Fabrication is an add-on
> > for the Multi-core version of PureMVC that allows components to be able to
> > send notifications from one MVC in one SWF to another MVC in another SWF
> > using pipes. All of this is seamless with standard PureMVC notifications.
> > Nice!
> >
> > Then again, who am I and what do I know.
> >
> > $0.02
> >
> >
> > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, Chris

> > <zomgforeelz@> wrote:
> > >
> > > PureMVC is the bomb.
> > >
> > > Yes there is boiler plate code but the things it allows you to do is
> > > very useful. The learning curve is a bit steep if you are not familiar
> > > with MVC, but it is really, really worth it.
> > >
> > > Cairngorm is pretty good, but I felt that the reusability of the code
> > > wasn't as great as PureMVC. The fact that its language-specific is a
> > > turn-off for me. I like that I can code PureMVC in pure AS3, Flex, C#
> > > or Objective C if necessary.
> > >
> > >
> > > Here is a posting on the PureMVC LinkedIn group I did recently that
> > > may help clarify some points about the benefits of using a framework
> > > in Flex:
> > >
> > > The benefit of using a framework such as PureMVC for us is:
> > >
> > > Consistency - Developing, (and especially developing remotely) you
> > > need to enforce a focused singular vision not only on the project but
> > > also its structure. A framework allows you to do that.
> > > Stability - By using a framework you avoid a lot of the pitfalls of
> > > spaghetti code. One of the unfortunate problems with Flex is that
> > > while its really really easy to get moving, and perfect for rapid
> > > prototyping, often these prototypes aren't thrown away, but instead
> > > built on top of. Things quickly spiral out of control, and you can't
> > > keep the house standing. I speak from personal experience, and also
> > > from the experience of others.
> > > Maintainability - By staying consistent you are able to easily build
> > > features out using the same tried and true tactics. This means that
> > > when developer A leaves and Developer B starts, you teach him the 'MVC
> > > ropes' and they jump right in. This also means other people's code and
> > > your code take on a similar feel, meaning you feel right at home in
> > > most of the codebase, including things you didn't write.
> > > Testing - By utilizing a framework we are able to peel off very
> > > specific areas of the application and test just them. For example:
> > > Perhaps you have a 'You have won!' screen at the end of a level. You
> > > could play through a level to see the screen, or you could create a
> > > special demo Mediator that pretends to win the level and immediately
> > > displays the view and just test that.
> > >
> > > * What are the limitations or cons of using a Framework with Flex 3?
> > >
> > > I would say that the most difficult thing is there is a lot of boiler
> > > plate code. Things in PureMVC are very loosely coupled, and the price
> > > of this loose coupling is that you need to add a bit more code.
> > >
> > > * Do I really need to use a Framework, or does Flex 3 have what it
> > > takes out of the box?
> > >
> > > YES you need a framework. Flex out of the box for anything beyond
> > > small applications quickly becomes unmanageable. Even using frameworks
> > > like Cairngorm can become overwhelmed if you plan to fork code.
> > >
> > >
> > >
> > > On Tue, Dec 1, 2009 at 10:42 AM, Richard Rodseth <rrodseth@> wrote:
> > > >
> > > >
> > > >
> > > > Personally, I like Mate and suggest you check it out before committing
> > to either of those too.
> > > >
> > > > On Tue, Dec 1, 2009 at 8:16 AM, Christophe <christophe_jacquelin@>
> > wrote:
> > > >>
> > > >>
> > > >>
> > > >> Hello,
> > > >>
> > > >> Is it easy to learn and use Cairngorm or PureMvc. I have a one year
> > application and I would like to use these frameworks to structured it.
> > > >>
> > > >> Thank you,
> > > >> Christophe,
> > > >>
> > > >
> > > >
> > >
> >
> >
> >
>



#150400 From: Richard Rodseth <rrodseth@...>
Date: Tue Dec 1, 2009 9:39 pm
Subject: Re: Re: Charting error
rcrodseth
Send Email Send Email
 
Yes, I know a null pointer exception is not charting-specific :)

None of my code is in the stack crawl (shown below). The line in question is:

                staggeredrightGutter / (lastLabel.width / 2));             

and lastLabel is null. I can't reproduce all the code here (but I will note that the series list is built dynamically).

I'll keep digging. Thanks.


TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.charts::AxisRenderer/calcStaggeredSpacing()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:2200]
    at mx.charts::AxisRenderer/calcRotationAndSpacing()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1591]
    at mx.charts::AxisRenderer/adjustGutters()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1331]
    at mx.charts::AxisRenderer/set gutters()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:803]
    at mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:2032]
    at mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1359]
    at mx.core::UIComponent/validateDisplayList()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\core\UIComponent.as:6351]
    at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622]
    at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:695]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8633]
    at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8573]

On Tue, Dec 1, 2009 at 12:31 PM, invertedspear <invertedspear@...> wrote:
 

That error is not specific to charts. Can we see the line of code that is throwing the error? You are probably trying to do something to an object before it is created.



--- In flexcoders@yahoogroups.com, Richard Rodseth <rrodseth@...> wrote:
>
> Since I don't have the Flex 3.3 charting sources handy, has anyone
> encountered this error?
>
> TypeError: Error #1009: Cannot access a property or method of a null object
> reference.
> at
> mx.charts::AxisRenderer/calcStaggeredSpacing()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\AxisRenderer.as:2200]
>



#150401 From: "invertedspear" <invertedspear@...>
Date: Tue Dec 1, 2009 10:01 pm
Subject: Re: Charting error
invertedspear
Send Email Send Email
 
So I am going to assume you are using a loop, and lastLabel is a variable set to
the last label created in the loop. You're code's going to break on the first
iteration since it can't divide a null value by 2. You need to either set an
initial value for lastLabel before the loop or not process that line on the
first iteration, instead setting the position. That is probably what you really
want to do since you would want your first label to be at a fixed position and
the second to base it off of that.

I hope it doesn't seem that I'm talking down to you, I'm just trying to
determine the best I can out of the little bit I'm seeing here.

--- In flexcoders@yahoogroups.com, Richard Rodseth <rrodseth@...> wrote:
>
> Yes, I know a null pointer exception is not charting-specific :)
>
> None of my code is in the stack crawl (shown below). The line in question
> is:
>
>                 staggeredrightGutter / (lastLabel.width / 2));
>
> and lastLabel is null. I can't reproduce all the code here (but I will note
> that the series list is built dynamically).
>
> I'll keep digging. Thanks.
>
>
> TypeError: Error #1009: Cannot access a property or method of a null object
> reference.
>     at
>
mx.charts::AxisRenderer/calcStaggeredSpacing()[C:\work\flex\dmv_automation\proje\
cts\datavisualisation\src\mx\charts\AxisRenderer.as:2200]
>     at
>
mx.charts::AxisRenderer/calcRotationAndSpacing()[C:\work\flex\dmv_automation\pro\
jects\datavisualisation\src\mx\charts\AxisRenderer.as:1591]
>     at
>
mx.charts::AxisRenderer/adjustGutters()[C:\work\flex\dmv_automation\projects\dat\
avisualisation\src\mx\charts\AxisRenderer.as:1331]
>     at mx.charts::AxisRenderer/set
>
gutters()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\A\
xisRenderer.as:803]
>     at
>
mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\work\flex\dmv_autom\
ation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:20\
32]
>     at
>
mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\work\flex\dmv_auto\
mation\projects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1\
359]
>     at
>
mx.core::UIComponent/validateDisplayList()[C:\autobuild\3.3.0\frameworks\project\
s\framework\src\mx\core\UIComponent.as:6351]
>     at
>
mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.3.0\frameworks\p\
rojects\framework\src\mx\managers\LayoutManager.as:622]
>     at
>
mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.3.0\frameworks\
\projects\framework\src\mx\managers\LayoutManager.as:695]
>     at Function/http://adobe.com/AS3/2006/builtin::apply()
>     at
>
mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.3.0\frameworks\projec\
ts\framework\src\mx\core\UIComponent.as:8633]
>     at
>
mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.3.0\frameworks\project\
s\framework\src\mx\core\UIComponent.as:8573]

#150402 From: Andriy Panas <a.panas@...>
Date: Tue Dec 1, 2009 10:08 pm
Subject: Re: Re: Special characters (eg. Cyrillic) & TextArea
apanas_2000
Send Email Send Email
 
Hi Tracy,

Are you using Safari browser under Mac OS 10.6?

If yes, then probably you are victim of the following bug

"Can't enter cyrillic symbols"
https://bugs.adobe.com/jira/browse/FP-3213
http://www.openradar.appspot.com/7395808

--
Best regards,
Andriy Panas




2009/12/1 Andriy Panas <a.panas@...>:
> Hi Tracy,
> I am afraid your code sample is too generic and will not help me to isolate
> your issue.
>    Me as a native speaker that uses Cyrillic alphabet had never seen any
> problems with displaying Cyrillic alphabet symbols in <mx:TextArea>, but
> this remain valid only for  Windows OS, never tried Mac OS.
>   I see that you're running Flash Player at Mac and had created the
> issue https://bugs.adobe.com/jira/browse/FB-24484 at Adobe JIRA bug-base,
> let move the discussion over this issue to Adobe JIRA.
>    You should try as many Flash player dot versions as possible to test this
> issue, e.g 9.0.115,  9.0.246, 10.0.32.18 etc because we are talking here not
> about Flex SDK, but about Flash player features.
> --
> Best regards,
> Andriy Panas
>
>
>
> 2009/12/1 polestar11 <polestar11@...>
>>
>>
>>
>> Hi there
>>
>> It is the mx:TextArea:
>> <mx:TextArea width="200" y="20" x="20" />
>>
>> Here is a code snippet:
>> <mx:Box width="100%" height="100%" horizontalAlign="center"
>> verticalAlign="middle">
>> <mx:ViewStack id="viewStack" width="100%" height="100%" selectedIndex="1">
>> <component:MainPanel id="mainPanel" width="100%" height="100%" />-->
>> <mx:VBox width="100%" id="progressView" height="100%"
>> horizontalAlign="center" verticalAlign="middle">
>> <mx:ProgressBar height="15" indeterminate="true" label="Initializing
>> ChessCube ..." fontSize="14" />
>> </mx:VBox>
>> </mx:ViewStack>
>> </mx:Box>
>> <mx:TextArea width="200" y="20" x="20" />
>>
>> The textarea works for special characters in debug mode, but not in
>> release build mode. I've tried replicating / isolating the issue using
>> different applications / projects but haven't found anything close to a
>> solution yet, other than sometimes my tests fail for special characters even
>> in debug mode (I think because I haven't cleaned the project properly)
>>
>> Cheers
>> Tracy
>>
>> --- In flexcoders@yahoogroups.com, Gordon Smith <gosmith@...> wrote:
>> >
>> > BTW, are you are talking about the old MX TextArea or the or new Spark
>> > TextArea?
>> >
>> > Gordon Smith
>> > Adobe Flex SDK Team
>> >
>> > From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
>> > Behalf Of Andriy Panas
>> > Sent: Monday, November 30, 2009 10:49 AM
>> > To: flexcoders@yahoogroups.com
>> > Subject: Re: [flexcoders] Special characters (eg. Cyrillic) & TextArea
>> >
>> >
>> >
>> > Hi polestar11,
>> >
>> > Simple code sample will definitely help to understand your issue.
>> >
>> > --
>> > Best regards,
>> > Andriy Panas
>> >
>> >
>> > 2009/11/30 polestar11 <polestar11@...<mailto:polestar11@...>>
>> >
>> >
>> > Hi there
>> >
>> > I have a problem where I am not able to paste special characters (eg.
>> > cyrillic & arabic) into a flex TextArea component. This occasionally
happens
>> > in a debug version of my app and always happens in a release build.
>> >
>> > I created a test application in the same project to try isolate the
>> > issue. I intermittently am not able to paste special characters into a
>> > textarea. I also created a different project entirely and never experience
>> > the issue.
>> >
>> > My guess is that the compiler is misbehaving & getting stuck.
>> >
>> > Any help MUCH appreciated
>> >
>> > Cheers
>> > Tracy
>> >
>> ,___
>

#150403 From: "Calbeans" <jwright04@...>
Date: Tue Dec 1, 2009 10:27 pm
Subject: Changing the background of an AS3 project in Flex
jwright04
Send Email Send Email
 
Hi All,

I'm working on an AS3 project using Flex and I'm trying to figure out how to
change the background from that default light off blueish color to something
different.  I looked at the index.template.html file and figured that I can do
it in there, but it appears that I can't.  Anyone have an idea on how to do
this?? Thanks in advance.

Messages 150374 - 150403 of 165719   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help