[osflash] Bitmap Caching?

Martin Wood flashdev at relivethefuture.com
Fri Aug 26 05:29:24 PDT 2005


Ok, i know pretty much nothing about this so i could be talking out of 
my backside, but is there a way to scale / rotate the cached bitmap?

This starts leading me to think that we might start seeing a flash 
version of mip-mapping, where you do the transforms on the bitmap until 
you hit a certain threshold (say, scale 150% or whatever) then generate 
a new bitmap from the movieclip and perform operations on that.

Would that be

A: Useful
B: Possible
C: Cacheable (i.e. could you compute the 'mip-maps' upon loading and 
just re-use the cached bitmaps when you cross certain thresholds?)

Because it would seem to be slightly restrictive that as soon as you 
rotate the clip you get a new bitmap generated and not have a way to 
actually perform transformations on the bitmap itself (without having to 
do pixel by pixel copies)

Like i said, i really dont know the architecture of this, but im looking 
forward to trying it out. :)

thanks

martin

Carl-Alexandre Malartre wrote:
> Hi
> 
> Not 100% sure, but I think it means:
> 
> 1) Try to not use Filters or cacheAsBitMap on component that will change
> width and height, rotate, or scale, or flash will create save a bitmap on
> each frame, aka you will *loose* performance.
> 
> 2) Use Filters or cacheAsBitMap on movieclip that will move and change
> alpha.
> 
> 3) I'm not 100% sure on this one, but try to not use filters inside filters.
> 
> Carl
> 
> -----Message d'origine-----
> De : osflash-bounces at osflash.org [mailto:osflash-bounces at osflash.org] De la
> part de Iuliu Burtoiu
> Envoyé : 25 août 2005 06:58
> À : osflash at osflash.org
> Objet : [osflash] Bitmap Caching?
> 
> Hi there,
> 
> 	I'm really enthusiastic about this new huge improvement in the
> rendering
> process, that MM brings up with the release of the FP8.
> 	At this moment, as far as I know, there's no detailed information of
> how
> bitmap caching works, when should be used and especially when SHOULDN'T BE
> USED.
> 	On Osflash webpage, the only noticeable information says that "when
> scaling
> or rotating, the bitmap is redrawn so it will not change anything compared
> to Flash7."
> 	Macromedia official web site hasn't offered any detailed information
> on
> this subject also.
> 	Is this all to be known? Isn't out there anything else?
> 
> 
> IuliuB
> 
> 
> 
> -----Original Message-----
> From: osflash-bounces at osflash.org [mailto:osflash-bounces at osflash.org]On
> Behalf Of osflash-request at osflash.org
> Sent: Thursday, August 25, 2005 11:36 AM
> To: osflash at osflash.org
> Subject: osflash Digest, Vol 4, Issue 117
> 
> 
> Send osflash mailing list submissions to
> 	osflash at osflash.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://osflash.org/mailman/listinfo/osflash_osflash.org
> or, via email, send a message with subject or body 'help' to
> 	osflash-request at osflash.org
> 
> You can reach the person managing the list at
> 	osflash-owner at osflash.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of osflash digest..."
> 
> 
> Today's Topics:
> 
>    1. RE: Re: ActionStep...or MM Components... (Done it) (Scott Hyndman)
>    2. Cleaned up ActionStep images and constants Classes (Olivier)
>    3. Re: Breaking loose with XPML (Rob Bateman)
>    4. Re: Re: MovieClip events swallowed ? (Rob Bateman)
>    5. Re: Can't get Actionstep from svn (Chris Velevitch)
>    6. Re: AsUnit 2.6 Released! (Benjamin Jackson)
>    7. MTASC: Flash8 return TextField (stephane.bebrone at b-holding.be)
>    8. Temporary site outage (Aral Balkan)
>    9. Re: Re: ActionStep...or MM Components... (Done it) (Tiago Vale)
>   10. Re: ActionStep...or MM Components... (Done it) (Olivier)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 24 Aug 2005 18:42:12 -0400
> From: "Scott Hyndman" <Scott at affsys.com>
> Subject: RE: [osflash] Re: ActionStep...or MM Components... (Done it)
> To: "Open Source Flash Mailing List" <osflash at osflash.org>
> Message-ID:
> 	<8B8C727AA88DE84DB318EB9F827AF4D307515D at affsvr02.affsys.com>
> Content-Type: text/plain; charset="windows-1252"
> 
> Sounds like you should be asking the question on MTASC. NSArray does not
> contain any errors.
> 
> /Scott
> 
> 
> -----Original Message-----
> From:	osflash-bounces at osflash.org on behalf of Olivier
> Sent:	Wed 8/24/2005 5:04 PM
> To:	osflash at osflash.org
> Cc:
> Subject:	[osflash] Re: ActionStep...or MM Components... (Done it)
> The only problem right now is that tests don't compile. NSArray throws
> too many errors.
> 
> After trying to fix a couple mtasc chokes on this:
> return indexOfObjectInRange(anObject, new NSRange(0, m_list.length -
> 1));
> with an error that doesn't make sense:
> type error org.actionstep.NSRange should be org.actionstep.NSRange
> 
> Olivier
> 
> 
>>Thanks all, i'm working now with the ActionStep Components... I'll
>>do some
>>
>>tutorial about the use of ActionStep with Fames soon... Thanks!
> 
> 
> 
> 
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
> 
> 
> 
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/ms-tnef
> Size: 2981 bytes
> Desc: not available
> Url :
> /pipermail/osflash_osflash.org/attachments/20050824/a429f312/attachment-0001
> .bin
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 25 Aug 2005 00:43:32 +0200
> From: Olivier <website-osflash at interfasys.ch>
> Subject: [osflash] Cleaned up ActionStep images and constants Classes
> To: <osflash at osflash.org>
> Message-ID: <200582504332.137512 at win00>
> Content-Type: text/plain; charset="us-ascii"
> 
> I cleaned up the images and constants Classes in ActionStep so that
> everything is typed and uses the coding standards defined in the Wiki.
> 
> You can get the zip from:
> http://www.ostranslations.com/actionstep/some_actionstep_cleanup.zip
> 
> Olivier
> 
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Thu, 25 Aug 2005 00:30:52 +0100
> From: Rob Bateman <rob.bateman at gmail.com>
> Subject: Re: [osflash] Breaking loose with XPML
> To: Open Source Flash Mailing List <osflash at osflash.org>
> Message-ID: <7186fdf205082416305eef8774 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hi All
> 
> couldn't resist replying to this one (i usually only have just enough
> time to read!)
> 
> The open source components i am currently working
> (http://osflash.org/smx) on renders interfaces from xml in runtime
> with not too much fuss - check out my real world example currently in
> the final stages of development:
> 
> http://news.bbc.co.uk/sport1/hi/football/teams/a/arsenal/squad_selector/defa
> ult.stm
> 
> The app does have a slight pause while it renders, but i am currently
> optimising the code to get a performance increase...
> 
> the main reason for doing this kind of thing instead of pre-rendered
> interfaces is obviously the reformatting potential, which is actually
> pretty useful for an app such as this. Currently it is available for
> football (all uk clubs have one:
> http://news.bbc.co.uk/sport1/hi/football/teams/default.stm), but the
> plan is to roll out a similar one for cricket, rugby, hockey,
> basketball, lacrosse, netball etc. with the same functionality but
> different pitches, formation options, and in the case of cricket,
> different tabs and player types. With xml controlling the layout, one
> swf contains all the behaviour functionality so that any small bugfix
> or update can be easily made to hundreds of different apps. It also
> means that if you've downloaded the app once, you won't need to
> download it again for all the different incarnations (unless theres an
> update on the swf), making loading times faster.
> 
> Rob
> 
> On 8/20/05, jeremy lu <wade.lu at gmail.com> wrote:
> 
>>
>>>however, we were talking about xml for ui, and i can't see any
>>>problems with that - if used intelligently of course.
>>>
>>
>> recently I'm working on a visual-CMS system which client can drag-n-drop
>>elements on stage to arrange the layout(a banquet design app), then i
>>convert it to xml.
>>
>> during runtime, these sets of xmls were sent to flash player and parsed
> 
> to
> 
>>generate the layout (along with css settings), that's when i hit the wall
> 
> by
> 
>>letting player to handle 3-5 xml sets the same time, it's also the time i
>>started thinking maybe i should generate these pre-designed layout on
> 
> server
> 
>>(using swfmill maybe ? or some other 3rd party .net to swf tools) so i
> 
> don't
> 
>>have to do it in player.
>>
>> is it possible to generate and pre-cache those swf from xmls on server
> 
> side
> 
>>then just send swfs to client players ?
>>
>>
>>_______________________________________________
>>osflash mailing list
>>osflash at osflash.org
>>http://osflash.org/mailman/listinfo/osflash_osflash.org
>>
>>
>>
> 
> 
> 
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~
> Rob Bateman - Flash Product Manager
> BBC News Interactive
> 
> Tel: 0208 6248692
> Mob: 07714 329073
> 
> rob.bateman at gmail.com
> ~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Thu, 25 Aug 2005 01:03:52 +0100
> From: Rob Bateman <rob.bateman at gmail.com>
> Subject: Re: [osflash] Re: MovieClip events swallowed ?
> To: Open Source Flash Mailing List <osflash at osflash.org>
> Message-ID: <7186fdf205082417037a8e912d at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> yep, you will have to create a background movieclip that has the
> onPress/OnRelease methods.
> 
> You can do someting to 'fake' what you were trying to do initially
> though - when you create a background movieclip inside your container
> with the onPress onRelease methods, if you set the hitArea to _parent
> it will appear as though the events are on the original container
> movie. Whats wierd is that the smaller movieclips inside the container
> will trigger the onPress/OnRelease events of the background movieclip
> if they have no onPress/OnRelease events of their own. Might be
> useful...
> 
> Rob
> 
> On 8/24/05, Olivier <website-osflash at interfasys.ch> wrote:
> 
>>That is, indeed, excellent news! How many times did we have to hack a
>>solution when we had parent-child relationships between interactive
>>MovieClips!
>>
>>Olivier
>>
>>
>>>good news: In Flash8 all moveiclips will recieve onMouseMove,
>>>onMouseDown,
>>>
>>>onMouseUp (and I think onMouseWheel too, but not sure) events
>>>regardless of
>>>what's above them or what code is associated with their parent ;)
>>
>>
>>
>>_______________________________________________
>>osflash mailing list
>>osflash at osflash.org
>>http://osflash.org/mailman/listinfo/osflash_osflash.org
>>
> 
> 
> 
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~
> Rob Bateman - Flash Product Manager
> BBC News Interactive
> 
> Tel: 0208 6248692
> Mob: 07714 329073
> 
> rob.bateman at gmail.com
> ~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Thu, 25 Aug 2005 11:22:19 +1000
> From: Chris Velevitch <chris.velevitch at gmail.com>
> Subject: Re: [osflash] Can't get Actionstep from svn
> To: Open Source Flash Mailing List <osflash at osflash.org>
> Message-ID: <b0a3bf7805082418226a59420b at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Subclipse objects to http: it expects svn:
> 
> 
> Chris
> --
> Chris Velevitch
> Manager - Sydney Flash Developers Group
> www.flashdev.org.au
> 
> 
> 
> ------------------------------
> 
> Message: 6
> Date: Wed, 24 Aug 2005 23:20:20 -0300
> From: Benjamin Jackson <ben at incomumdesign.com>
> Subject: Re: [osflash] AsUnit 2.6 Released!
> To: Luke Bayes <lbayes at gmail.com>,	Open Source Flash Mailing List
> 	<osflash at osflash.org>
> Message-ID: <5d26514ac85cb8fbeb194f30e8dcbae3 at incomumdesign.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
> 
> Is it possible to run AsUnit from the command line? This is a big
> necessity for anyone doing continuous integration automation. Cheers,
> 
> Ben
> 
> On Jun 6, 2005, at 2:44 PM, Luke Bayes wrote:
> 
> 
>>Hey Everyone,
>>
>>Just wanted to get a shout out to let you all know that the latest
>>version of AsUnit has been released.
>>
>>You can download it here: http://www.asunit.com
>>
>>This marks the first official release of AsUnit that fully supports
>>MTASC!
>>
>>AsUnit continues to be the only open source unit test framework for
>>ActionScript development!
>>
>>AsUnit is also the only unit test framework that works with ALL
>>ActionScript 2.0 development environments, including Flash MX 2004,
>>Eclipse, FLEX, MTASC, and Central. This framework allows developers to
>>execute their tests and see results from a stand alone player, all
>>browser-based players, and even from within Macromedia Central.
>>
>>Please download the latest release and join the growing community of
>>Test Infected Flash developers!
>>
>>
>>Thanks,
>>
>>
>>Luke Bayes
>>www.asunit.com
>>
>>_______________________________________________
>>osflash mailing list
>>osflash at osflash.org
>>http://osflash.org/mailman/listinfo/osflash_osflash.org
>>
>>
> 
> ___________________
> Ben Jackson
> Diretor de Desenvolvimento
> 
> +55 (21) 9997-0593
> ben at incomumdesign.com
> http://www.incomumdesign.com
> 
> 
> 
> 
> ------------------------------
> 
> Message: 7
> Date: 25 Aug 2005 09:26:00 +0200
> From: stephane.bebrone at b-holding.be
> Subject: [osflash] MTASC: Flash8 return TextField
> To: "Open Source Flash Mailing List" <osflash at osflash.org>
> Message-ID: <JA8AAAAAAx1yBgABYQADD+0MwctU at DCS04.b-rail.be>
> Content-Type: text/plain; charset=iso-8859-1
> 
> Hi there,
> 
> Since Flash8 createTextField method returns a reference to the newly created
> TextField, you can modify MovieClip.as file (in your std directory in mtasc
> application path) at line 74 to add a TextField return value. Now, you can
> compil without errors.
> 
> Greets,
> Stiphane.
> 
> 
> 
> 
> 
> ------------------------------
> 
> Message: 8
> Date: Thu, 25 Aug 2005 08:38:31 +0100
> From: Aral Balkan <aral at ariaware.com>
> Subject: [osflash] Temporary site outage
> To: Open Source Flash Mailing List <osflash at osflash.org>
> Message-ID: <430D7577.4010202 at ariaware.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Hi all,
> 
> Just a heads up in case anyone tried to access the OSFlash site in the
> last 20 minutes or so. It was temporarily down as it hit the
> self-imposed bandwidth limit I had set for it (which I thought I'd set
> at an arbitrarily high number at the time!)
> 
> It's amazing to me how fast the list and site are growing -- what a
> community!
> 
> Aral
> 
> 
> 
> ------------------------------
> 
> Message: 9
> Date: Thu, 25 Aug 2005 09:41:13 +0200
> From: Tiago Vale <tiago.vale at gmail.com>
> Subject: Re: [osflash] Re: ActionStep...or MM Components... (Done it)
> To: Open Source Flash Mailing List <osflash at osflash.org>
> Message-ID: <65c5e50f050825004156592a33 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Im using Actionstep in  a real world application and  I can tell, its
> the best bet of the moment.
> 
> 
> Cheers
> 
> Tiago Janz
> 
> On 8/25/05, Scott Hyndman <Scott at affsys.com> wrote:
> 
>>Sounds like you should be asking the question on MTASC. NSArray does not
> 
> contain any errors.
> 
>>/Scott
>>
>>
>>-----Original Message-----
>>From:   osflash-bounces at osflash.org on behalf of Olivier
>>Sent:   Wed 8/24/2005 5:04 PM
>>To:     osflash at osflash.org
>>Cc:
>>Subject:        [osflash] Re: ActionStep...or MM Components... (Done it)
>>The only problem right now is that tests don't compile. NSArray throws
>>too many errors.
>>
>>After trying to fix a couple mtasc chokes on this:
>>return indexOfObjectInRange(anObject, new NSRange(0, m_list.length -
>>1));
>>with an error that doesn't make sense:
>>type error org.actionstep.NSRange should be org.actionstep.NSRange
>>
>>Olivier
>>
>>
>>>Thanks all, i'm working now with the ActionStep Components... I'll
>>>do some
>>>
>>>tutorial about the use of ActionStep with Fames soon... Thanks!
>>
>>
>>
>>_______________________________________________
>>osflash mailing list
>>osflash at osflash.org
>>http://osflash.org/mailman/listinfo/osflash_osflash.org
>>
>>
>>
>>
>>_______________________________________________
>>osflash mailing list
>>osflash at osflash.org
>>http://osflash.org/mailman/listinfo/osflash_osflash.org
>>
>>
>>
> 
> 
> 
> 
> ------------------------------
> 
> Message: 10
> Date: Thu, 25 Aug 2005 10:35:56 +0200
> From: Olivier <website-osflash at interfasys.ch>
> Subject: [osflash] Re: ActionStep...or MM Components... (Done it)
> To: <osflash at osflash.org>
> Message-ID: <2005825103556.316176 at win00>
> Content-Type: text/plain; charset="us-ascii"
> 
> Yep! I went through the whole code to clean it up and it looks nice.
> The problems I had were related to the use of -pack (followed the
> instructions =/).
> 
> I have some performance issues, but this is alpha code, so there is room
> for improvement.
> 
> Olivier
> 
> 
>>Im using Actionstep in  a real world application and  I can tell,
>>its the best bet of the moment.
> 
> 
> 
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
> 
> 
> End of osflash Digest, Vol 4, Issue 117
> ***************************************
> 
> 
> 
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
> 
> 
> 
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
> 

-- 
want to know what i think? probably not

http://relivethefuture.com/choronzon



More information about the osflash mailing list