My company is doing some advertising and we would like to make up some flash banners. The only thing is that the file can't be bigger than 30KB. I haven't been able to get anything to look good or run smoothly with that size limitation.
I've been reading about the Loader class and I'm wondering if anyone has ever submitted an empty .swf with a bit of AS3.0 that loads a larger .swf that I'll host on my webserver.
Also, be very wary when hosting a large banner on your own server. If your banner will be visible on big portals, chances are your webserver won't be able to handle the traffic. (I'm talking Yahoo, MSN, that sort of stuff) In this case it's far better to contract a hosting company.
And lastly, for banners it is still considered best practice to use AS2 instead of AS3. Although FP9 has an incredibly high penetration already (around 97% last I checked) it's usually still better to play on the safe side (certain companies, like microsoft for instance, only allow files exported for FP8 and below)
General notice: from now on, I would like to ask everyone to put [AS2] or [AS3] (corresponding to the version of actionscript you are using on your project) in front of their post titles when the question is actionscript related! Please help us help you faster. Thank you.
I've done exactly what you're thinking of using AS2.0 and it worked fine.
A ~6KB wrapper SWF was submitted to the client (who used Double Click's DART ad server). The wrapper SWF contained preloader code and a small background graphic. It called in a 50KB SWF that was hosted by a 3rd party. This was a standard non-expandable banner that just needed to be larger than 30KB. The TweenLite animation engine and standard AS2 load & preload code (not Motif) worked well.
Don't forget the cross-domain code rules and traffic considerations that Pieter mentioned.
Are there any specific hosting companies you'd recommend for this situation?