[flexcoders] Re: how to show a preloader (loading spinner) when loading images in a flex app.

2010-02-06 Thread ZIONIST
Hi i tried using states to archive this but i dont know how to listen for 
completion of image loading. this is what i have so far. 

mx:Canvas width=75 height=75  
controls:SuperImage width=75 height=75 
source=assets/homeprofile_pics/{data.img} borderStyle=none x=0 y=0 
creationComplete=imgLoaded(event)/
mx:SWFLoader source=assets/wait.swf x=29.5 
y=32.5 id=swfloader1/
/mx:Canvas

i put the image and the spinner.swf in a canvas, the create another state where 
the spinner is taken out.

mx:states
mx:State name=remove_loader
mx:RemoveChild target={swfloader1}/
/mx:State
/mx:states


then i call a function to change states once the image is fully loaded

private function imgLoaded(event:Event):void{
currentState = 'remove_loader';
}


this doesn't seem to work. any help? 



[flexcoders] Re: Custom ItemRenderer still not working...

2010-02-06 Thread Laurence
Well, I found a work-around...

I added the following code inside my ComboBox ItemRenderer:
override protected function focusInHandler(event:FocusEvent):void {
 listOfFees.refresh();
}

For some reason, with this in there, you have to double-click on the combo box 
to open it, but the drop-down shows the correct data 100% of the time.  Good 
enough for now.





--- In flexcoders@yahoogroups.com, Laurence lmacne...@... wrote:

 Well, I installed FlashBuilder 4 Premium Beta 2, imported the project into 
 there, and ran the code.
 
 It is EXACTLY THE SAME in FB3 and FB4 -- the exact same problem appears.  I 
 scroll down in the DataGrid, and the numbers in the ItemRenderer's drop down 
 change (but not the selected number being displayed.)  If I select one of the 
 incorrect numbers, the drop-down immedately changes to the correct numbers, 
 and the number I would've selected (had it been displayed correctly) shows as 
 the selected item in the combo box.  It's just SO WEIRD!
 
 So...  What is that problem, exactly?  Anyone able to figure it out?  I'm 
 totally confused...  It should be working!  (See my earlier post for the code 
 -- I beg you, PLEASE help me figure this out!)
 
 Thanks,
 Laurence MacNeill
 Mableton, Georgia, USA
 
 
 
 --- In flexcoders@yahoogroups.com, Laurence LMacNeill@ wrote:
 
  
  
  --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
  
   I didn't take the time to debug your code, just looked for the usual 
   suspects and didn't see any.  It was supposed to be fixed in 3.5 but 
   somehow got busted so now will be in 3.6 but not sure when that ships.
   
   I didn't really want you to port the whole project, just write a test 
   case with Flex 4 to see if you are hitting that same problem, then we can 
   figure out what to do from there.
  
  I will try that if the Array vs. ArrayCollection idea doesn't pan out...  
  Hate to go through all the trouble of installing Flex 4 Beta just for this, 
  though...  Or can I just install the 4.0 SDK in my existing FlexBuilder Pro?
 





[flexcoders] checkbox code like yahoo check box

2010-02-06 Thread charles_aug15
Hi everyone,

  Any of tell me the check box code like yahoo check box,.When i check 
the header checkbox in a column all checkboxes in the row should be 
checked,..vice versa... And when i check all the checkboxes in the row manually 
the header check box should be checked ,..vice versaCan any one help me 

Thanks in advance...

Regards..
  CHARLES.V




[flexcoders] Adobe technical support dropped for Flex 3!

2010-02-06 Thread hpatino.rm
I was informed today by Adobe that there is NO technical support for flex 
builder 3.  Only for Flex 4 beta.

I am very disappointed as I just bought Flex builder this week after I 
carefully evaluated the product during the trial period.  I had an issue 
activating my product, and needed support to remove some conflict with the 
trial version that did not disappeared even after uninstalling and deleting 
completely the trial version.  Customer Service was very nice but no technical 
support was offered.

That shows the commitment of Adobe to this product.

Regards

HP



Re: [flexcoders] Steve Jobs on Flash .......

2010-02-06 Thread Tim Romano
If the rumors about Bing are true, then this panning could also have 
something to do with Silverlight. If I were at MSFT and my role was to 
ensure that Silverlight succeeded in knocking Flash off (as Word knocked 
off WordPerfect back in the day, e.g.) then I'd be looking for chinks in 
Adobe's armor wherever they may be.


On 2/1/2010 2:26 PM, Paul Andrews wrote:


It's just commercial tactics.

You'd never guess he has his own tied-in development system to support.
Why wouldn't he knock flash?

hworke wrote:
 
http://news.yahoo.com/s/pcworld/20100201/tc_pcworld/stevejobsdissesapplerivalsduringtownhallmeeting 
http://news.yahoo.com/s/pcworld/20100201/tc_pcworld/stevejobsdissesapplerivalsduringtownhallmeeting



 Jobs has previously called out Adobe Flash, currently the
 dominant animation platform on the Web, for being too slow to be 
useful and Flash Lite, Adobe's versio n of Flash for mobile devices, 
as not advanced enough for the iPhone. So it's no surprise to hear 
Jobs called out Flash during Apple's Town Hall, but his language this 
time sounds a little over the top. Jobs reportedly called Adobe a lazy 
company, and said that when a Mac crashes it's usually because of Flash.


 Whether or not that's true, it's clear that Jobs is not a fan of 
Adobe's multimedia platform. The iPhone is routinely criticized for 
its inability to render Flash-based Web pages, videos and games, and 
early criticisms about the iPad also decry the lack of Flash 
compatibility on Apple's latest device.










Re: [flexcoders] Flex Builder 3 - A little to be desired [1 Attachment]

2010-02-06 Thread Clark Stevenson
I have not filed a bug yet because i dont really think im good enough to
technically describe the issue. When i went to help  new bug i just got a
page saying the module is missing or deactive on jira.

The best way i can describe it in both FB3 and FB4 is that the actionscript
editor does not notify FB that a change in the editor has been made.

I dont know if i can attach images to this mailing list but the attached
screenshot shows the issue. Joint2 is invalid so i got a runtime error in
red. I then commented out the offending line and resaved it but still the
problem persists. The screenshot shows the offending line of code along with
its error AFTER i have hit save.

Note that this is a completely seperate project to my first email.

Running FB2 and FB3 under 32x never gave me any problems, and if it did, not
with enough frequency to be noticible in the 2 years i used them.
Running FB3 under VISTA Home 64x AMD 64  has this issue
Running FB4 under 7 Ultimate 64x Intel i7, i5 has this issue

It seems there is an inherited bug somewhere which effects 64x OS Windows or
architecture..

When googling this i found little so if you do experience this issue and can
let describe it well, please reply with details.

As far as im concerned even an option to tick to force a clean on save would
save alot of hassle.

Also is there any keyboard shortcut to clean?

Cheers.









On 5 February 2010 03:24, Lee Jenkins l...@datatrakpos.com wrote:



 Clark Stevenson wrote:
 
 
 
  Ugh i can totally appreciate your email.
 
  I have struggled pretty much constantly over the last 2 years with all
  kinds of problems.
 

 The more I work with this product, the more I'm convinced that it is a very

 buggy piece product in very core areas. All kinds of mysterious compiler
 issues
 with fragments of code not getting linked in all the time, having to
 perform a
 clean every few changes of code ,which itself takes forever if there is
 more
 than one project involved.

 --
 Warm Regards,

 Lee

  



[flexcoders] How to navigate up when dealing with the class path?

2010-02-06 Thread Clark Stevenson
This might be a stupid question.

I have an /assets/ folder which contains a Fla. In this scenario i need to
hookup a package

/assets/assets.fla
/assets/assets.swc
/assets/assets.swf

/src/code/SomeCode.as


If assets.fla needs to extend SomeCode.as then how can i set the class path
or is this not possible?

Both my Actionscript project and my assets.fla need to reference SomeCode.as
but i tend to use a folder outside of my src folder for the purposes of
non-as files. The reasoning behind this escapes me.

Cheers,


RE: [SPAM] [flexcoders] Re: Custom ItemRenderer still not working...

2010-02-06 Thread Tracy Spratt
Refresh() is intended to re-apply a sort of filter to a collection.  If it
is working in your case it is a side effect.

 

I couldn't find your previous post to look at the code, but I still suspect
recycling issues.  For a combo box, you have to do two actions on set data
(actually  in commitProperties, of course).  You must re-assign to
dataProvider, and you must set the selectedIndex (you can only use
selectedItem if your items are simple strings or numbers).  Are you doing
both of those things?

 

I have an example on cflex.  It is more complex than necessary because I
wanted it to be generic:

http://www.cflex.net/showFileDetails.cfm?ObjectID=767

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Laurence
Sent: Saturday, February 06, 2010 4:29 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Re: Custom ItemRenderer still not working...

 

  

Well, I found a work-around...

I added the following code inside my ComboBox ItemRenderer:
override protected function focusInHandler(event:FocusEvent):void {
listOfFees.refresh();
}

For some reason, with this in there, you have to double-click on the combo
box to open it, but the drop-down shows the correct data 100% of the time.
Good enough for now.



--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Laurence lmacne...@... wrote:

 Well, I installed FlashBuilder 4 Premium Beta 2, imported the project into
there, and ran the code.
 
 It is EXACTLY THE SAME in FB3 and FB4 -- the exact same problem appears. I
scroll down in the DataGrid, and the numbers in the ItemRenderer's drop down
change (but not the selected number being displayed.) If I select one of the
incorrect numbers, the drop-down immedately changes to the correct numbers,
and the number I would've selected (had it been displayed correctly) shows
as the selected item in the combo box. It's just SO WEIRD!
 
 So... What is that problem, exactly? Anyone able to figure it out? I'm
totally confused... It should be working! (See my earlier post for the code
-- I beg you, PLEASE help me figure this out!)
 
 Thanks,
 Laurence MacNeill
 Mableton, Georgia, USA
 
 
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Laurence LMacNeill@ wrote:
 
  
  
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com, Alex Harui aharui@ wrote:
  
   I didn't take the time to debug your code, just looked for the usual
suspects and didn't see any. It was supposed to be fixed in 3.5 but somehow
got busted so now will be in 3.6 but not sure when that ships.
   
   I didn't really want you to port the whole project, just write a test
case with Flex 4 to see if you are hitting that same problem, then we can
figure out what to do from there.
  
  I will try that if the Array vs. ArrayCollection idea doesn't pan out...
Hate to go through all the trouble of installing Flex 4 Beta just for this,
though... Or can I just install the 4.0 SDK in my existing FlexBuilder Pro?
 






Re: [flexcoders] Steve Jobs on Flash .......

2010-02-06 Thread Vivian Richard
 I am also not sure if it is true or false. But if you ask me if this
kind of
 statement is possible by Jobs then the answer is definitely. Please
 take a look at the video:

   http://www.youtube.com/watch?v=upzKj-1HaKw







On Sat, Feb 6, 2010 at 7:37 AM, Tim Romano tim.rom...@aimsdata.com wrote:



 If the rumors about Bing are true, then this panning could also have
 something to do with Silverlight. If I were at MSFT and my role was to
 ensure that Silverlight succeeded in knocking Flash off (as Word knocked off
 WordPerfect back in the day, e.g.) then I'd be looking for chinks in Adobe's
 armor wherever they may be.


 On 2/1/2010 2:26 PM, Paul Andrews wrote:



 It's just commercial tactics.

 You'd never guess he has his own tied-in development system to support.
 Why wouldn't he knock flash?

 hworke wrote:
 
 http://news.yahoo.com/s/pcworld/20100201/tc_pcworld/stevejobsdissesapplerivalsduringtownhallmeeting
 
 
  Jobs has previously called out Adobe Flash, currently the
  dominant animation platform on the Web, for being too slow to be useful
 and Flash Lite, Adobe's versio n of Flash for mobile devices, as not
 advanced enough for the iPhone. So it's no surprise to hear Jobs called out
 Flash during Apple's Town Hall, but his language this time sounds a little
 over the top. Jobs reportedly called Adobe a lazy company, and said that
 when a Mac crashes it's usually because of Flash.
 
  Whether or not that's true, it's clear that Jobs is not a fan of Adobe's
 multimedia platform. The iPhone is routinely criticized for its inability to
 render Flash-based Web pages, videos and games, and early criticisms about
 the iPad also decry the lack of Flash compatibility on Apple's latest
 device.
 
 
 


  



RE: [SPAM] Re: [flexcoders] Encoding XML Character Entity References *properly*

2010-02-06 Thread Tracy Spratt
As far as I know, there is not built-in way to do this.

 

There are many different solutions, including tricks with xml, and a base 64
encoder that apparently does this as a side effect, and I saw one manual
replacement class that looked very complete.

 

I have not had to work with completely free test and have used a combination
of manual replacement and controlling the allowed input characters.

 

You will need to choose the solution that best fits your needs.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Peter Valdemar Mørch
Sent: Friday, February 05, 2010 10:39 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] Re: [flexcoders] Encoding XML Character Entity References
*properly*

 

  

Hi, I didn't get any replies, so here is a polite bump...

My question is basically this: How do I create an XML node with a
toXMLString() value of:

valuea lt;foogt;stringlt;/foogt;/amp;/value

from a value of

var value:String = a foostring/foo/;

Is this really something one is expected to code by hand using RegExp
or splitjoin? Isn't this something everybody who needs to send /
recieve XML needs to be safe? I just can't find it anywhere.

Also, I wrote:
 P.S.: Please don't tell me about escape() because it URL-encodes,
 which is not the same thing. (For ab I want aamp;b, not
 a%26b).

Sorry if this offended anyone. I didn't mean to be rude.

Peter
-- 
Peter Valdemar Mørch
http://www.morch. http://www.morch.com com





RE: [SPAM] [flexcoders] Re: Issue in TabNavigator component

2010-02-06 Thread Tracy Spratt
Use TabBar and ViewStack instead, and stop that crazy manipulation of the
children.  Just control access by manipulating the dataProvider of the
TabBar only.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Pradeep Chaudhary
Sent: Friday, February 05, 2010 11:26 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Re: Issue in TabNavigator component

 

  

Has anybody ran into similar behavior ? I am still not able to resolve it. 

Please help.

On Thu, Feb 4, 2010 at 11:26 PM, Pradeep Chaudhary pradeep.chaudhary@
mailto:pradeep.chaudh...@gmail.com gmail.com wrote:

I am trying to dynamically add tabs to a TabNavigator. Tabs are removed on
certain event on the client and I need to add it again. Problem is that even
though tabs are added correctly, the selected tab header is not correct. 

For example, If I have two tabs and the second tab is selected when they are
removed. On adding the tabs again, first tab should be the selected one. But
instead the second tab header is shown as selected but the content is of
first tab.

I have attached sample example for reference. Please suggest what do I need
to do to fix the problem.

Thanks in advance.

Pradeep

 





RE: [SPAM] [flexcoders] checkbox code like yahoo check box

2010-02-06 Thread Tracy Spratt
This is a common requirement.  The basic concept is that the checkbox item
renderer must be correctly written (find an example, do not start from
scratch), and then on the change event of the header renderer, update the
appropriate field in each of the dataProvider items.

 

You will find several examples if you search for them.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of charles_aug15
Sent: Friday, February 05, 2010 11:27 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] checkbox code like yahoo check box

 

  

Hi everyone,

Any of tell me the check box code like yahoo check box,.When i check the
header checkbox in a column all checkboxes in the row should be
checked,..vice versa... And when i check all the checkboxes in the row
manually the header check box should be checked ,..vice versaCan any one
help me 

Thanks in advance...

Regards..
CHARLES.V





[flexcoders] Re: auto close popups

2010-02-06 Thread Glenn Jones
Thanks for the suggestions

Looking through some of the mx:controls, I found MOUSE_DOWN_OUTSIDE - seems
to be the way to go.

On Thu, Feb 4, 2010 at 4:02 PM, Glenn Jones tgjone...@gmail.com wrote:

 I have a popup that's opened in the usual way with the popup manager.  It's
 not modal.
 Sometimes the controls within the popup are enabled so that the user can
 interact with them,
 and sometimes the controls are disabled because the contents are read-only.

 As soon as the user clicks anywhere else in the application, I'd like to
 close the popup.

 Is there an easy way to do that?

 Based on what I've read, the popup should have it's own instance of
 FocusManager, and that
 FocusManager should receive a deactive() call if the user clicks somewhere
 else. So I thought
 about extending the FocusManager with some new class designed to close the
 parent form
 on deactivate.  But was hoping there was a better way.

 Thanks,
 Glenn



Re: [flexcoders] Adobe technical support dropped for Flex 3!

2010-02-06 Thread Matt Chotin
That sounds very incorrect. We support released software only. If you have info 
on how you heard this please send it to me. Now depending on the issue it may 
be that we won't support something for free (activation issues should be free) 
but it's definitely only released software that our team will support.

Matt

Sent from my phone. Please excuse brevity or typos.

On Feb 6, 2010, at 5:21 AM, hpatino.rm 
hpat...@rocketmail.commailto:hpat...@rocketmail.com wrote:



I was informed today by Adobe that there is NO technical support for flex 
builder 3. Only for Flex 4 beta.

I am very disappointed as I just bought Flex builder this week after I 
carefully evaluated the product during the trial period. I had an issue 
activating my product, and needed support to remove some conflict with the 
trial version that did not disappeared even after uninstalling and deleting 
completely the trial version. Customer Service was very nice but no technical 
support was offered.

That shows the commitment of Adobe to this product.

Regards

HP





[flexcoders] rendering HTML markup in AdvancedDataGrid

2010-02-06 Thread Tim Romano
I am considering using an AdvancedDataGrid in hierarchical mode but am 
not sure it can do what my app needs to do, or if it can, whether the 
approach will be efficient--execute quickly and use up a lot of memory. 
I haven't worked with the AdvancedDataGrid before.

The grid will look like this:

[v] Category A
   [v]  Title 1
* passage one blah blah blah
* passage two
[v] Title 2
[v] Title 3
 .
 .
 .
   [v]  Title n

[v]Category B
   [v]  Title 1
   [v]  Title 2
   [v]  Title 3
 .
 .
 .
 Title n
etc
etc

When the user clicks on a Title node to expand it, some passages 
excerpted from the corresponding document would be fetched from the 
database, already formatted as HTML like this:

span class='foo'this is an excerpt span class='abc'100 to 
1000/span characters in length/span.

A style sheet  must control how the css classes in the passage excerpts 
are rendered. The grid might have as many as 100 rows, and each row 
could contain a couple of  paragraphs of html text.  Up to 1K each, but 
more typically around 100-200 characters.

If I create an item-renderer using TextArea, will 100 TextAreas be 
created if the grid has 100 Title rows even if only 3 titles are 
expanded by the user? Or are the item renderers created only for the 
rows that actually get expanded and displayed? Is there another way to 
render HTML markup in the ADG?

Thanks


RE: [SPAM] [flexcoders] rendering HTML markup in AdvancedDataGrid

2010-02-06 Thread Tracy Spratt
Item Renderers are only created for the visible rows plus a few buffers.
Performance is primarily determined by the rendering and item data access.

 

Be aware that htmlText only renders a small subset of html tags.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tim Romano
Sent: Saturday, February 06, 2010 12:36 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] rendering HTML markup in AdvancedDataGrid

 

  

I am considering using an AdvancedDataGrid in hierarchical mode but am 
not sure it can do what my app needs to do, or if it can, whether the 
approach will be efficient--execute quickly and use up a lot of memory. 
I haven't worked with the AdvancedDataGrid before.

The grid will look like this:

[v] Category A
[v] Title 1
* passage one blah blah blah
* passage two
[v] Title 2
[v] Title 3
.
.
.
[v] Title n

[v]Category B
[v] Title 1
[v] Title 2
[v] Title 3
.
.
.
Title n
etc
etc

When the user clicks on a Title node to expand it, some passages 
excerpted from the corresponding document would be fetched from the 
database, already formatted as HTML like this:

span class='foo'this is an excerpt span class='abc'100 to 
1000/span characters in length/span.

A style sheet must control how the css classes in the passage excerpts 
are rendered. The grid might have as many as 100 rows, and each row 
could contain a couple of paragraphs of html text. Up to 1K each, but 
more typically around 100-200 characters.

If I create an item-renderer using TextArea, will 100 TextAreas be 
created if the grid has 100 Title rows even if only 3 titles are 
expanded by the user? Or are the item renderers created only for the 
rows that actually get expanded and displayed? Is there another way to 
render HTML markup in the ADG?

Thanks





Re: [SPAM] [flexcoders] rendering HTML markup in AdvancedDataGrid

2010-02-06 Thread Tim Romano

Thanks for the reply, Tracy, about the ItemRenderers.

+1 on the htmlText warning. I've used the htmlText of the TextArea in an 
AIR app, which I'm converting from local DB to webservice mode now. The 
html rendering in Flex of the sort of html markup example I gave below 
is better than bad but is far from rich. Adobe gets a very low passing 
grade from me on its htmlText + CSS rendering in Flex. I don't need 
typographic control (kerning, ligatures, etc) but I do want support for 
basic CSS-- I could never get padding and margins to work. Font-family, 
bold, italics, font-size do work.


Tim



On 2/6/2010 2:08 PM, Tracy Spratt wrote:


Item Renderers are only created for the visible rows plus a few 
buffers.  Performance is primarily determined by the rendering and 
item data access.


Be aware that htmlText only renders a small subset of html tags.

Tracy Spratt,

Lariat Services, development services available



*From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
*On Behalf Of *Tim Romano

*Sent:* Saturday, February 06, 2010 12:36 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [SPAM] [flexcoders] rendering HTML markup in AdvancedDataGrid

I am considering using an AdvancedDataGrid in hierarchical mode but am
not sure it can do what my app needs to do, or if it can, whether the
approach will be efficient--execute quickly and use up a lot of memory.
I haven't worked with the AdvancedDataGrid before.

The grid will look like this:

[v] Category A
[v] Title 1
* passage one blah blah blah
* passage two
[v] Title 2
[v] Title 3
.
.
.
[v] Title n

[v]Category B
[v] Title 1
[v] Title 2
[v] Title 3
.
.
.
Title n
etc
etc

When the user clicks on a Title node to expand it, some passages
excerpted from the corresponding document would be fetched from the
database, already formatted as HTML like this:

span class='foo'this is an excerpt span class='abc'100 to
1000/span characters in length/span.

A style sheet must control how the css classes in the passage excerpts
are rendered. The grid might have as many as 100 rows, and each row
could contain a couple of paragraphs of html text. Up to 1K each, but
more typically around 100-200 characters.

If I create an item-renderer using TextArea, will 100 TextAreas be
created if the grid has 100 Title rows even if only 3 titles are
expanded by the user? Or are the item renderers created only for the
rows that actually get expanded and displayed? Is there another way to
render HTML markup in the ADG?

Thanks





No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.435 / Virus Database: 271.1.1/2671 - Release Date: 02/06/10 
07:35:00

   




[flexcoders] Augmented reality in Flex

2010-02-06 Thread Christophe
Hello, 

Does there is augmented reality projects for Ecommerce developped in Flex ? 

Thank you, 
Christophe, 



[flexcoders] Size of an application

2010-02-06 Thread Christophe
Hello, 

My application has a size of 900 Kb. 

What is the meam size of a RIA application ? 

Thank you,
Christophe, 




RE: [SPAM] [flexcoders] Size of an application

2010-02-06 Thread Tracy Spratt
I doubt that that question can be answered.  Someone would have had to
survey the size of a large number of applications, and I have never
participated in such a survey.

 

Most of my apps are larger than that, but I have never had swf size as a
significant requirement.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Christophe
Sent: Saturday, February 06, 2010 5:46 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Size of an application

 

  

Hello, 

My application has a size of 900 Kb. 

What is the meam size of a RIA application ? 

Thank you,
Christophe, 





Re: [SPAM] [flexcoders] Size of an application

2010-02-06 Thread Guy Morton
In my experience the smallest app using the flex framework weighs in at about 
120KB. I expect that will get bigger with each version iteration. 

The size of your app will depend on what parts of the framework you are using. 
eg, the charting classes add about 100KB to your app if you use them.

If size is an issue for you then you need to carefully look at what you include 
and perhaps consider using modules to split your app up a bit into pieces you 
can lazy-load.

Guy

On 07/02/2010, at 10:11 AM, Tracy Spratt wrote:

 
 I doubt that that question can be answered.  Someone would have had to survey 
 the size of a large number of applications, and I have never participated in 
 such a survey.
 
  
 
 Most of my apps are larger than that, but I have never had swf size as a 
 significant requirement.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of Christophe
 Sent: Saturday, February 06, 2010 5:46 PM
 To: flexcoders@yahoogroups.com
 Subject: [SPAM] [flexcoders] Size of an application
 
  
 
  
 
 Hello, 
 
 My application has a size of 900 Kb. 
 
 What is the meam size of a RIA application ? 
 
 Thank you,
 Christophe,
 
 
 



Re: [flexcoders] Size of an application

2010-02-06 Thread Radley


I've seen online Flex apps range from 500k to 9MB without RSLs.

Generally speaking, Flex app size is no longer an serious issue. A SD YouTube 
video can be 50MB and the user doesn't even notice the bandwidth. It makes 
sense to optimize in extremely large distribution (i.e. Zynga serving 30M+ apps 
daily) but not so much for small scale.

-radley


On Feb 6, 2010, at 2:46 PM, Christophe wrote:

 Hello, 
 
 My application has a size of 900 Kb. 
 
 What is the meam size of a RIA application ? 
 
 Thank you,
 Christophe, 
 
 



Re: [flexcoders] Augmented reality in Flex

2010-02-06 Thread Aaron Hardy
Try the is your question once again more please.

Aaron

On Sat, Feb 6, 2010 at 3:44 PM, Christophe christophe_jacque...@yahoo.frwrote:



 Hello,

 Does there is augmented reality projects for Ecommerce developped in Flex ?


 Thank you,
 Christophe,

  



[flexcoders] Re: Custom ItemRenderer still not working...

2010-02-06 Thread Laurence


--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote:

 Refresh() is intended to re-apply a sort of filter to a collection.  If it
 is working in your case it is a side effect.

Yeah, I figured as much.  I noticed that if I opened then closed then re-opened 
the drop-down, the data would sync itself properly.  Adding this refresh() 
statement was a way to force that to happen -- the user clicks on the combo 
box, the refresh happens (forcing the box closed), then the second click opens 
the drop-down with the proper data...  Total hack-job, but it works.

 
 I couldn't find your previous post to look at the code, but I still suspect
 recycling issues.  For a combo box, you have to do two actions on set data
 (actually  in commitProperties, of course).  You must re-assign to
 dataProvider, and you must set the selectedIndex (you can only use
 selectedItem if your items are simple strings or numbers).  Are you doing
 both of those things?

Here's my code as it stands right now.  Thanks for taking a look:
?xml version=1.0 encoding=utf-8?
mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml;  height=100% 
width=100%
 dataProvider={listOfFees} 
labelFunction=formatLabel change=changeHandler(event) 
 openDuration=0 closeDuration=0
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
import mx.utils.ObjectUtil;
import mx.formatters.CurrencyFormatter;
import mx.controls.DataGrid;
import flash.events.Event;

[Bindable]private var listOfFees:ArrayCollection;

public override function set data(value:Object):void{
super.data = value;
if (value == null) {
listOfFees = null;
} else {
if (data.comp != y) {
listOfFees = new 
ArrayCollection([data.course_fee1]);
if (data.course_fee2 != 0) {
listOfFees.addItem(data.course_fee2); }
if (data.course_fee3 != 0) {
listOfFees.addItem(data.course_fee3); }
if (data.course_fee4 != 0) {
listOfFees.addItem(data.course_fee4); }
if (data.course_fee5 != 0) {
listOfFees.addItem(data.course_fee5); }
} else {
listOfFees = new ArrayCollection([0] as Array);
}

if (data.editable == y) {
this.enabled = true;
} else {
this.enabled = false;
}

this.selectedItem = data.fee_chosen;
this.selectedIndex = data.fee_type - 1;
}
}

private function formatLabel(item:Object):String {
return currencyFormat.format(item);
}

override protected function 
focusInHandler(event:FocusEvent):void {
listOfFees.refresh();
}

public function changeHandler(event:Event):void {
data.fee_chosen = this.selectedItem;
data.fee_type = this.selectedIndex + 1;
}

]]
/mx:Script

mx:CurrencyFormatter id=currencyFormat precision=2/

/mx:ComboBox




[flexcoders] Record audio to the hard drive

2010-02-06 Thread dorkie dork from dorktown
Is there a way to record an audio stream (microphone stream) to the users
hard drive and THEN upload it to the server. I don't want to stream it to a
server.


Re: [flexcoders] Adobe technical support dropped for Flex 3!

2010-02-06 Thread Alex Harui
I really doubt that is true.  Flex Builder 3 is the only official version. Flex 
4 is still pre-release.  Try again and see if you can get their response in 
writing.


On 2/5/10 5:02 PM, hpatino.rm hpat...@rocketmail.com wrote:






I was informed today by Adobe that there is NO technical support for flex 
builder 3.  Only for Flex 4 beta.

I am very disappointed as I just bought Flex builder this week after I 
carefully evaluated the product during the trial period.  I had an issue 
activating my product, and needed support to remove some conflict with the 
trial version that did not disappeared even after uninstalling and deleting 
completely the trial version.  Customer Service was very nice but no technical 
support was offered.

That shows the commitment of Adobe to this product.

Regards

HP






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Re: Custom ItemRenderer still not working...

2010-02-06 Thread Alex Harui
Maybe Tracy can figure it out from just the renderer code, but I think I need a 
complete (but small) test case with some sample data.

The only thing I see that looks unusual (besides calling refrehs() is setting 
both selectedItem and selectedIndex.  One should be good enough.


On 2/6/10 8:34 PM, Laurence lmacne...@comcast.net wrote:








--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
Tracy Spratt tr...@... wrote:

 Refresh() is intended to re-apply a sort of filter to a collection.  If it
 is working in your case it is a side effect.

Yeah, I figured as much.  I noticed that if I opened then closed then re-opened 
the drop-down, the data would sync itself properly.  Adding this refresh() 
statement was a way to force that to happen -- the user clicks on the combo 
box, the refresh happens (forcing the box closed), then the second click opens 
the drop-down with the proper data...  Total hack-job, but it works.


 I couldn't find your previous post to look at the code, but I still suspect
 recycling issues.  For a combo box, you have to do two actions on set data
 (actually  in commitProperties, of course).  You must re-assign to
 dataProvider, and you must set the selectedIndex (you can only use
 selectedItem if your items are simple strings or numbers).  Are you doing
 both of those things?

Here's my code as it stands right now.  Thanks for taking a look:
?xml version=1.0 encoding=utf-8?
mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml;  height=100% 
width=100%
 dataProvider={listOfFees} labelFunction=formatLabel 
change=changeHandler(event)
 openDuration=0 closeDuration=0
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
import mx.utils.ObjectUtil;
import mx.formatters.CurrencyFormatter;
import mx.controls.DataGrid;
import flash.events.Event;

[Bindable]private var listOfFees:ArrayCollection;

public override function set data(value:Object):void{
 super.data = value;
 if (value == null) {
 listOfFees = null;
 } else {
if (data.comp != y) {
listOfFees = new ArrayCollection([data.course_fee1]);
if (data.course_fee2 != 0) {
listOfFees.addItem(data.course_fee2); }
if (data.course_fee3 != 0) {
listOfFees.addItem(data.course_fee3); }
if (data.course_fee4 != 0) {
listOfFees.addItem(data.course_fee4); }
if (data.course_fee5 != 0) {
listOfFees.addItem(data.course_fee5); }
} else {
listOfFees = new ArrayCollection([0] as Array);
}

if (data.editable == y) {
this.enabled = true;
} else {
this.enabled = false;
}

this.selectedItem = data.fee_chosen;
this.selectedIndex = data.fee_type - 1;
 }
 }

private function formatLabel(item:Object):String {
return currencyFormat.format(item);
}

override protected function focusInHandler(event:FocusEvent):void {
listOfFees.refresh();
}

public function changeHandler(event:Event):void {
data.fee_chosen = this.selectedItem;
data.fee_type = this.selectedIndex + 1;
}

]]
/mx:Script

mx:CurrencyFormatter id=currencyFormat precision=2/

/mx:ComboBox






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui