Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex

Group Information

  • Members: 9173
  • 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

  Messages Help
Advanced
Is Flex the wrong technology for widgets? SWF file sizes are too bi   Message List  
Reply Message #132885 of 164887 |
Re: Is Flex the wrong technology for widgets? SWF file sizes are too big...

Tom, thank you for your feedback. yes Javascript is great, but
Myspace, one of the most popular sites that allows widgets doesn't
allow Javascript. This restricts us to Flash or Flex. Flex being the
newer technology it made sense to try flex, especially for our plans
to have more interactive widgets in the future.

Having said the above, I will admit, that the file size issue of the
SWF is still almost a deal breaker in our company's efforts to use
Flex. However, the info on using Framework caching could have been
the saving grace that allows us to continue using Flex. Here is a
break down of what I've learned from my little widget experiement:

1.)Before using Framework caching, or any compiler flags or Release to
Export my widget SWF file had a size of: 577KB!

2.) After using compiler flags to optimize and looking at the link
report (which had no big problems), the SWF file size went down to:
361KB...not bad, but still not small enough.
(btw, the compiler flags I used are: -locale en_US -link-report
matrixLinkReport -optimize=true -debug=false -strict=true)

3.) After using framework caching the SWF file size went down to:
121KB! This was a huge win! However, the caveat is that if the user
has never visited a site that uses the Flex 3 framework, then an
additional 540KB will be downloaded for the framework.

I assume enough people have Flash player 9.0.115+, so I'm not worried
about users having the ability to support framework caching. But,
does anyone have any metrics whatsoever as to how many users might
have visited a Flex 3 site where they would have downloaded the
framework? Or, does anyone have any idea how many flex 3
sites/widgets are in existence so I can tell my superiors that there
are XXX million flex 3 sites so this gives us a very good chance that
users have the framework cached????

And finally, my application is currently built against the framework:

framework_3.1.0.2710.swz
framework_3.1.0.2710.swf

Does Adobe support any backward compatibility for their various
versions of the framework? So, in the future when
framework_3.2.xxx.swz is released...will my application be able to
leverage that?


--Deven

--- In flexcoders@yahoogroups.com, Tom Chiverton <tom.chiverton@...>
wrote:
>
> On Thursday 18 Dec 2008, Manish Jethani wrote:
> > AS3 (without Flex) isn't going to buy you much. If you call your app a
> > "widget" though, I agree Flex is too much for that. The world needs a
> > mini-Flex, a widget development language.
>
> This is called JavaScript :-)
>
> --
> Tom Chiverton
> Helping to evangelistically orchestrate market-driven front-end
granular
> infomediaries
>
> ****************************************************
>
> 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.
>





Thu Dec 18, 2008 8:27 pm

devenhariyani
Offline Offline
Send Email Send Email

Message #132885 of 164887 |
Expand Messages Author Sort by Date

Hey guys, I recently posted a thread on a popular widget platform site to get developer feedback. Basically, I've created a widget using Flex technology, and...
devenhariyani Offline Send Email Dec 17, 2008
1:10 am

... solution in Flash. Is that the question that you really wanted the answer to? The answer to that will depend on what your widget actually is/does. Without...
Jim Hayes
jim80hayes Offline Send Email
Dec 17, 2008
1:28 am

It would be pretty hard to get a Flex app down under 100k. The Framework itself is larger than that. You could try framework caching. But if you really want a...
Jamie S
youbits Offline Send Email
Dec 17, 2008
1:31 am

Depending on what parts of the framework you use, you could probably cut it right down by not using an Application as the "root", and instead using a custom...
Josh McDonald
brucethebruiser Offline Send Email
Dec 17, 2008
1:44 am

Thanks for the advice so far. If I follow the advice not to use the <Application> tag, *and* if I also remove all the MXML and re-write the app to use only...
devenhariyani Offline Send Email Dec 17, 2008
2:36 am

To be honest with a widget that simple, if you're worried about size just build it in ActionScript. -Josh ... -- "Therefore, send not to know For whom the bell...
Josh McDonald
brucethebruiser Offline Send Email
Dec 17, 2008
2:43 am

I wouldn't call this 'simple' but I do think your doubts are well founded. Looking at this example, I don't see any real use of Flex. You have what looks like...
Alan
ultraky Offline Send Email
Dec 17, 2008
3:02 am

Does anyone know where I can find some good examples of flex apps written completely in ActionScript 3? I did some quick searches on Google, but didn't find...
devenhariyani Offline Send Email Dec 17, 2008
3:56 am

What I meant is that you don't seem to be using any Flex functionality beside ArrayCollection, and you'd do fine using Array or Vector. ... -- "Therefore, send...
Josh McDonald
brucethebruiser Offline Send Email
Dec 17, 2008
4:01 am

Under the covers, MXML is converted to actionscript. The only way to get smaller is to start removing features from the framework. If you need collections or...
Alex Harui
alex_harui Offline Send Email
Dec 17, 2008
5:15 am

And rather than using Label, just use a TextField (or possibly FTE). To make a non-Flex project in Flex Builder, just choose File > New > ActionScript Project....
Gordon Smith
gsmithsf Offline Send Email
Dec 17, 2008
7:04 am

... I'm primarily a Flex developer and, of course it depends on what you want to do, but I wouldn't go for a "pure AS3" project unless it was a simple banner. ...
gabriel montagné
gabriel.mont... Offline Send Email
Dec 18, 2008
4:38 am

I definitely agree with you Gabriel, you wouldn't catch me doing a non-Flex Flash project at all- I was under the impression the OP was *very* concerned about...
Josh McDonald
brucethebruiser Offline Send Email
Dec 18, 2008
4:50 am

If you go for size, i'd use Flash. There is nothing wrong with it, as you are not developing a enterprise application with a big team. Cheers Ralf....
Ralf Bokelberg
ralf.bokelberg@... Send Email
Dec 18, 2008
7:39 am

I think RSLs are the key to keeping file side down on your Flex apps. The Flex framework is about 1.5 megs worth of code, and it only gets bigger if youre...
icodeflex Offline Send Email Dec 18, 2008
11:44 am

... Strictly my opinion, but I'd do widgets in AS before I'd touch any mx imports. -Ricky...
Ricky Bacon
rbaconl Offline Send Email
Dec 18, 2008
7:59 am

... This viewer app is done in pure ActionScript 3 using the Flash Player APIs: ...
Manish Jethani
manish_jethani Offline Send Email
Dec 18, 2008
12:48 pm

... This is called JavaScript :-) -- Tom Chiverton Helping to evangelistically orchestrate market-driven front-end granular infomediaries ...
Tom Chiverton
tom.chiverton Offline Send Email
Dec 18, 2008
1:13 pm

Tom, thank you for your feedback. yes Javascript is great, but Myspace, one of the most popular sites that allows widgets doesn't allow Javascript. This...
devenhariyani Offline Send Email Dec 18, 2008
8:28 pm

Hi, I think I read somewhere that the framework will cache per domain. Ie if siteX uses the framework and it is cached it is only cached for siteX, not ...
Fotis Chatzinikos
fotis.chatzi... Offline Send Email
Dec 18, 2008
8:45 pm

... That's not true, if you are talking about the signed Flex framework RSLs. If someone has ever seen a Flex app. that used the same version of the signed ...
Tom Chiverton
tom.chiverton Offline Send Email
Dec 22, 2008
10:53 am

It's all Flash, why is there any notion of Flash vs. Flex. It's like saying 'Should we use PHP or Zend?'. Rather it should be 'Do we need Flex in our Flash...
Alan
ultraky Offline Send Email
Dec 18, 2008
9:02 pm

Flex is more interactive? This must be a misunderstanding. Flex is really more about enterprise development process, less about technology. And it is not...
Ralf Bokelberg
ralf.bokelberg@... Send Email
Dec 18, 2008
9:16 pm

Later builds of FP9 and FP10 support crossdomain caching. The framework is specially signed and loaded into a special cache and used for all domains....
Alex Harui
alex_harui Offline Send Email
Dec 18, 2008
9:36 pm

... is specially signed and loaded into a >>special cache and used for all domains. Normally RSLs are per-domain. Any ideas on the version of the rsl? Ie if i...
Fotis Chatzinikos
fotis.chatzi... Offline Send Email
Dec 18, 2008
9:48 pm

Crossdomain RSLs are per public release. There is a separate RSL for 3.0, 3.1 and 3.2 and will be for any other release we "publish". Your code will be...
Alex Harui
alex_harui Offline Send Email
Dec 19, 2008
12:25 am

Ok, just to make it 100% clear if 3.2 is cached and mine is 3.0 you say that 3.0 will be downloaded even 3.2 is there? ... -- Fotis Chatzinikos, Ph.D. Founder,...
Fotis Chatzinikos
fotis.chatzi... Offline Send Email
Dec 19, 2008
12:52 am

Yes, that is correct. You are tied to the bits you built against. New versions do not supercede as it could result in various errors or visual differences ...
Alex Harui
alex_harui Offline Send Email
Dec 19, 2008
1:05 am
Advanced

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