Making your application slower and use more bandwidth, just so the user can't look at your layers, might not be worth it.
-David R On 11/7/05, Maxime <[EMAIL PROTECTED]> wrote: > Really interesting ! Thank you Latcho ! I just need to get Flash8 to do it. > Hope it works ! > > Latcho wrote: > > > that ought to be done with the class flash.display.BitmapData > > Like this for loop you could pass it an array cwith rgb and even alpha > > values. > > The filesizes off the strings will be as big or bigger as bmp op png24 ! > > > > var canvas = new flash.display.BitmapData(50,50,true); > > for ( var y:Number=0; y<50; y++ ) { > > for ( var x:Number=0; x<50; x++ ) { > > var alfa:Number = y*5; > > var red:Number = x*5; > > var green:Number = 250-(x*5); > > var blue:Number = 250-(y*5); > > var col:Number = > > (alfa<<24)|(red<<16)|(green<<8)|(blue<<0); > > canvas.setPixel32(x,y,col) > > } > > } > > > > _root.createEmptyMovieClip("bmp", 1); > > _root.bmp.attachBitmap(canvas, 2); > > > > ---> > > And then you will realise soon enough that you will need something > > like this: > > (didn't test this myself though) > > http://www.razorberry.com/blog/archives/2004/08/22/lzw-compression-methods-in-as2/ > > > > > > > > Regards, > > Latcho > > > > > > Chris Wilson wrote: > > > >> Good to know that's possible. How would you take the binary string > >> and have > >> flash treat it as a graphic? > >> > >> -Chris > >> > >> -----Original Message----- > >> From: [EMAIL PROTECTED] > >> [mailto:[EMAIL PROTECTED] On Behalf Of Latcho > >> Sent: Monday, November 07, 2005 6:59 PM > >> To: Flashcoders mailing list > >> Subject: Re: [Flashcoders] secure png > >> > >> raw data: that IS possible ! Only compression get's lost, but you > >> could write your own serverside and clientside > >> compression and decompression algorithm. Good luck. > >> > >> Chris Wilson wrote: > >> > >> > >>> I see. Thanks for clarifying. I'm not sure how to disable the > >>> caching, > >>> unfortunately. > >>> If there were a way to create an image in Flash using a raw binary data > >>> string, you could read the png file and process it that way, thereby > >>> probably bypassing any built-in file-based caching. I'm still > >>> relatively > >>> new to Flash, though, so that might not be possible. > >>> > >>> Best of luck on it, though! > >>> > >>> -Chris > >>> > >>> -----Original Message----- > >>> From: [EMAIL PROTECTED] > >>> [mailto:[EMAIL PROTECTED] On Behalf Of Maxime > >>> Sent: Monday, November 07, 2005 6:05 PM > >>> To: Flashcoders mailing list > >>> Subject: Re: [Flashcoders] secure png > >>> > >>> The goal of the client is to customize an image with a lot of 3d > >>> rendered png alpha layers. They don't care if the competitors do a > >>> screen capture, they don't want their competitors to know how they > >>> treat the image(alpha) for the layering of images. > >>> > >>> Chris Wilson a écrit : > >>> > >>> > >>> > >>>> I don't know of a way to do that, but what's the point? All the > >>>> > >>> > >> competitor > >> > >> > >>>> needs is a screen capture utility (or just <ctrl>-Print Screen in > >>>> > >>> > >> Windows) > >> > >> > >>>> and the image is theirs... > >>>> > >>>> -Chris > >>>> > >>>> -----Original Message----- > >>>> From: [EMAIL PROTECTED] > >>>> [mailto:[EMAIL PROTECTED] On Behalf Of Maxime > >>>> Sent: Monday, November 07, 2005 5:27 PM > >>>> To: flashcoders@chattyfig.figleaf.com > >>>> Subject: [Flashcoders] secure png > >>>> > >>>> I would like to load png into flash 8 without having it in the > >>>> cache. My client don't want it competitors to have access to their > >>>> png so I have to find a way to load a png in flash securely. Is > >>>> there any solutions ? > >>>> Thanks > >>>> > >>>> Maxime > >>>> > >>>> _______________________________________________ > >>>> Flashcoders mailing list > >>>> Flashcoders@chattyfig.figleaf.com > >>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >>>> > >>>> > >>>> _______________________________________________ > >>>> Flashcoders mailing list > >>>> Flashcoders@chattyfig.figleaf.com > >>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>> > >>> _______________________________________________ > >>> Flashcoders mailing list > >>> Flashcoders@chattyfig.figleaf.com > >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >>> > >>> > >>> _______________________________________________ > >>> Flashcoders mailing list > >>> Flashcoders@chattyfig.figleaf.com > >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >>> > >>> > >> > >> > >> _______________________________________________ > >> Flashcoders mailing list > >> Flashcoders@chattyfig.figleaf.com > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >> > >> > >> _______________________________________________ > >> Flashcoders mailing list > >> Flashcoders@chattyfig.figleaf.com > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >> > >> > > > > > > _______________________________________________ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders