To be honest with a widget that simple, if you're worried about size just
build it in ActionScript.

-Josh

On Wed, Dec 17, 2008 at 12:36 PM, devenhariyani <[email protected]>wrote:

> 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 ActionScript do you think I can get the size down
> to under 200KB?  I think Flex is a great technology, but if its not
> the right tool for the job I will sadly have to go to Flash.
>
> Here's a description:
> My widget is not very complicated, it basically does an HttpService
> request to pull some data, then it puts that data into an
> ArrayCollection.  Then there is a timer object that fires every
> second, and when the timer fires it takes one element from the array
> collection, creates a Label and moves it across the canvas screen.
>
> Here's a url for the demo:
>
> http://pine.experienceproject.com/platform_test/widgets/live_cs_widget
> .html<http://pine.experienceproject.com/platform_test/widgets/live_cs_widget.html>
>
> BR,
> deven
>
>
> --- In [email protected], "Josh McDonald" <dzn...@...> wrote:
> >
> > 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 UIComponent that implements IContainer (some methods might
> be stubs,
> > etc). Container has a *lot* of stuff in it. You should be able to
> lookup how
> > to do this with google, and (IIRC) there's a lot of comments that
> will help
> > in the source for ISystemManager and the implementing classes.
> >
> > -Josh
> >
> > On Wed, Dec 17, 2008 at 11:31 AM, Jamie S <jsjph...@...> wrote:
> >
> > > 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 small file size, you might have to use
> Flash.
> > >
> > > On Tue, Dec 16, 2008 at 5:10 PM, devenhariyani <devenhariy...@...>
> > > wrote:
> > > > 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 since I cannot get the SWF file size down to a
> size <
> > > > 100KB I'm wondering if Flex was the wrong technology for my
> project.
> > > > I'm not very familiar with Flash, so I don't know how small I
> could
> > > > get the file size for a comparable solution in Flash. Below is
> the
> > > > original thread.
> > > >
> > > > ---------------------------------------
> > > >
> > > > I've created a widget using Adobe's Flex technology which has a
> SWF
> > > > file size of approx. 350KB. I've optimized the widget using all
> the
> > > > techniques I could find such as: compiler flags, not embedding
> assets
> > > > into the SWF, dynamic loading of modules, etc.
> > > >
> > > > Assuming 350KB is the smallest I can get my SWF file, is this
> still
> > > > too big to distribute as a widget?
> > > >
> > > > Here are two distribution strategies we are looking at:
> > > >
> > > > 1.) Put the widget on a majority of the pages on our website so
> when
> > > > users come to our website they will see the widget and download
> it.
> > > > This will be great for distribution, but currently, our website
> gets
> > > > a good deal of traffic (Alexa top 10,000 ranking website). And,
> all
> > > > of the pages on our website are around 60-150KB, and there is a
> lot
> > > > of worry that a 350KB widget will weigh down the page too much
> and
> > > > make it very slow when loading. There is also concern that
> adding an
> > > > additional 350KB will greatly impact our bandwidth costs since
> many
> > > > users will hit these pages.
> > > >
> > > > 2.) Create a "widget gallery" on our website where our users
> can go
> > > > to grab the widget and put it on their MySpace, Facebook, etc.
> This
> > > > will keep the rest of the pages on our website light and fast,
> but
> > > > the distribution of the widget will get severely impacted.
> > > >
> > > > I want to know what other developers are doing in similar
> situations.
> > > >
> > > > Is Flex the wrong technology for creating widgets? What are
> some avg
> > > > size SWF files that other widget developers are creating? If a
> 150KB
> > > > page has an additional 350KB flex widget, is it going to greatly
> > > > impact the loading time?
> > > >
> > > > Thanks in advance for your advice!
> > > >
> > > >
> > >
> > > ------------------------------------
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Alternative FAQ location:
> > > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-
> 446f-b4cf-1e62079f6847<https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847>
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> Groups
> > > Links
> > >
> > >
> > >
> > >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> >
> > Like the cut of my jib? Check out my Flex blog!
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: j...@...
> > :: http://flex.joshmcdonald.info/
> > :: http://twitter.com/sophistifunk
> >
>
>
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [email protected]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk

Reply via email to