Re: [Flashcoders] Properly embedding flash with html.
I use SWFObject, don't like the other as it adds JavaScript to the HTML page rather than putting it in an external file. I also find SWFObject easier to add parameters and express install to as well. Vlado Krempl wrote: Hello everyone, Question: When embedding a flash movie in HTML - Is everyone using the Publish settings that flash CS3 comes with AC_RunActiveContent.js etc or is the SWF OBject still the preferred way? Cheers, Vlado Krempl M 0433 781740 Please consider the environment before printing this e-mail. The contents of this message should be treated as COMMERCIAL IN CONFIDENCE unless otherwise specified in the message and is intended solely for the use of the individual or entity to whom it is addressed. If you have received this email in error please notify the sender. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01736 759321 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Resizing a background image only.And keepingaspectratio.
___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Bundle swf's on server for transport to client
Hi Erik, Thank you for your response. I know that something like this should be possible in AS3 but we're (at this moment) stuck with AS2, so that makes it a little bit more difficult. On our server we've been testing with Swfmill and Ming, but we keep getting an error rate of about 10% with the bundling our furniture swf's to one big swf. In the Flash app we are having some trouble with the attachMovie method and the fact that you can only attach a mc on the same parent. Therefor we decided to stop our attempt. We'll continue our quest when the main app is AS3 ;-) Cheers, Gert-Jan 2008/2/3, EECOLOR [EMAIL PROTECTED]: With AS2 this indeed seems tricky. With AS3 you could just zip the stuff, unzip within your Flash application and load the bytes. Your best guess is a tool like swfmill that has the ability to create swf's on the server. I only know of a library in java that has the ability to generate swf's (javaswf). If the content you are loading in is created within flash you might be able to convert it to actionscript drawings (think lineTo and beginFill, etc). This allows you to convert those commands to a text or xml file and run them in your main application. Greetz Erik On 1/30/08, Gert-Jan van der Wel [EMAIL PROTECTED] wrote: Hi list, I'm working on the Flash app of Floorplannerhttp://www.floorplanner.com/tryit/ and we are having some problems with the loading of all the swf's. The Flash app (AS2) consists of 1 main app that loads several forms (the windows you see, like the library). The library holds a lot of furniture elements, which are separate swf's that are loaded one by one. When someone creates a floor plan and adds furniture to it, it's not strange that the design holds more than 50 furniture elementshttp://www.floorplanner.com/vyy1fm/Verdieping/Lekkeeerrr. Though all elements are small swf files, it takes a lot of time to handle all resource requests on our server. So my question is: is there a technique that makes it possible to (dynamically) bundle a set of swf's on the server and transport it to the client? Right now I'm testing with swfmill and it looks promising, but it seems a little buggy... I hope someone can help me out and point me in the right direction. Cheers, Gert-Jan ___ 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 -- Gert-Jan van der Wel Floorplanner [w] http://www.floorplanner.com [e] [EMAIL PROTECTED] [t] +31 616.650.338 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic upload of bunch of images with automaticsmooth.
Thank you for replies BUT. :) If i use mr. Muzaks code, i dont know how can i add my new image into right movieclip I need to add child to walkerMc.figure.head.imgholder. The handleComplete is triggered when an image is loaded. I am parsing the XML file, looping through nodes, some have images, some dont, some pictures are bigger(load slower), some smaller(load faster). How can i add the new child to right target? Hope you can understand what i am talking about :) Thanks Irene for(var k:Number=1; k=itemNr; k++){ usrNr++; var walker1:MovieClip = new walker(); walker1.x = k*150+ Math.random()*40; //walker1.y = Math.random()*5; walker1.name = walker+k; walker1.i = i; walker1.k = k; this[row+i].addChild(walker1); var walkerMc:MovieClip = this[rad+i].getChildByName(walker+k) as MovieClip; if(xml..epic[usrNr-1].text()!= undefined){ //upload picture var loader:Loader = new Loader(); walkerMc.figure.head.imgholder.addChild(loader); loader.load(new URLRequest(theURL+img/+xml..epic[usrNr-1].text())); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleComplete, false, 0, true); }else{ //show random face walkerMc.figure.head.faces.gotoAndStop(xml..spic[brukerNr-1].text()); } } function handleComplete(event:Event){ var ldr:Loader = LoaderInfo(event.currentTarget).loader as Loader; ldr.contentLoaderInfo.content.width=43; ldr.contentLoaderInfo.content.height=43; var image:Bitmap = Bitmap(ldr.contentLoaderInfo.content); image.smoothing = true; } On 2/4/08, EECOLOR [EMAIL PROTECTED] wrote: Another problem here may be the quality property on the object/embed tag. If it is auto high it might for some cases switch to non-smoothing to benefit the performance. This will change if you set the property to high. Greetz Erik On 2/3/08, Muzak [EMAIL PROTECTED] wrote: Check the example in the docs. You need to create a copy of the original (loaded) image, add it to the display list and remove the (original) loaded image http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Bitmap.html Here's an example of loading an image and displaying a copy next to it: import flash.display.Loader; import flash.net.URLRequest; import flash.display.Bitmap; var loader:Loader; var req:URLRequest; var orig_mc:MovieClip; var copy_mc:MovieClip; function loaderCompleteHandler(evt:Event) { var ldr:Loader = evt.currentTarget.loader as Loader; var origImg:Bitmap = (ldr.content as Bitmap) origImg.width = 200; origImg.height = 150; var image:Bitmap = new Bitmap(origImg.bitmapData, auto, true); image.width = 200; image.height = 150; copy_mc.addChild(image); } loader = new Loader(); req = new URLRequest(2.jpg); loader.load(req); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleteHandler); orig_mc = new MovieClip(); orig_mc.addChild(loader); addChild(orig_mc); copy_mc = new MovieClip(); copy_mc.x = 210; addChild(copy_mc); regards, Muzak ___ 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
Re: [Flashcoders] ADA compliance Flash
Niqui Merret has some good Flash info. http://niquimerret.com/?p=94 Usability accessibility probably overlap somewhat, so look into both aspects. Think about your target audience. Niqui Merret did a good session that covered the following point: Many people think that being accessible is covered by the hybrid Flash over HTML approach, which may work for screenreaders, but this is only catering for blind people - there are many different reasons people find it hard to use a computer, so that's why thinking about your target audience is probably the first step. Google is as good a place to start as any http://www.google.co.uk/search?hl=enq=accessibility+flashbtnG=Searchmeta= http://www.google.co.uk/search?hl=enq=accessibility+flashbtnG=Searchmeta= John Peacock wrote: Just wondering if there are any good solid resources / approaches for staying ADA compliant when creating a project in Flash. I'm not entirely sure of the approach people take on the subject, so I'm scoping it out before said project starts. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01736 759321 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] ADA compliance Flash
This page on Adobe's website has a categorized list of accessible Flash applications. It's somewhat dated, but at least it provides a demonstration of a range of accessibility features. http://www.adobe.com/resources/accessibility/examples.html Here's Adobe's blog on accessibility: http://blogs.adobe.com/accessibility/ hth -Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Peacock Sent: Monday, February 04, 2008 10:53 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] ADA compliance Flash Just wondering if there are any good solid resources / approaches for staying ADA compliant when creating a project in Flash. I'm not entirely sure of the approach people take on the subject, so I'm scoping it out before said project starts. ___ 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
Re: [Flashcoders] ADA compliance Flash
Hi John, There is a realy good book on, called; Dont make me think by Steve Crug Talks about usability for websites, html or flash. I think there is a special chaptor on ADA guidlines. You can get it on Amazon and any other bookstore, Cheers, Sidney John Peacock wrote: Just wondering if there are any good solid resources / approaches for staying ADA compliant when creating a project in Flash. I'm not entirely sure of the approach people take on the subject, so I'm scoping it out before said project starts. ___ 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
Re: [Flashcoders] Properly embedding flash with html.
There are several problems with the Adobe code/solution, and at least one was already mentioned. My biggest complaint about it was that its JavaScript was so poorly written. (It even generated malformed mark-up at one point.) Another complaint I have with the Adobe code/solution is one I also have for SWF Object. The list of function arguments that are expected when embedding Flash media is unnecessarily cumbersome. I use a custom solution for embedding my Flash media, in order to keep the JavaScript file size down (to under half of the SWF Object footprint), to more efficiently (code-wise) do the same kinds of (essential) embedding tasks, and to provide a simpler interface for embedding. It has proven to carry a higher degree of sensible usability (over UFO, SWF Object, the Adobe hack, or other) for coding neophytes, as verified by co-workers who have harnessed it. - Jason Vlado Krempl wrote: Hello everyone, Question: When embedding a flash movie in HTML - Is everyone using the Publish settings that flash CS3 comes with AC_RunActiveContent.js etc or is the SWF OBject still the preferred way? Cheers, Vlado Krempl M 0433 781740 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Catching an error from a component
Before you try this code I would urge you to check the setup of your application as it (usually) should be avoidable to have this error in the first place. Greetz Erik Thanks for your comments Erik, my set up is as follows ScriptHolder - scroll component inside scriptHolder The script holder has an event to detect the mouse position, if the mouse position is out of the area where the scroll component is located at then the scroll component is destroyed... everything works fine but say you press the down or up arrow key, then you hold the mouse down and roll off the component the destroy method then is fired because you are located away from the component and that is how the error fires... You are right in regards to having to check my setup specially since it was one of those we need it done now, no matter what has to be done times. Thanks again, Helmut On 1/29/08, Helmut Granda [EMAIL PROTECTED] wrote: I have a scroll component that sometimes is deleted from the display list while the user is holding the scroll bar and I get this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.controls::ScrollBar/fl.controls:ScrollBar::thumbReleaseHandler () We know this error is fired since the scroll component is non-existent by the time the user releases the scroll bar...I am trying to catch it but not sure how should I catch this type of error since this is fired from within the component... I have tried the following: sp.addEventListener(MouseEvent.MOUSE_UP, catchError); sp.addEventListener(MouseEvent.MOUSE_LEAVE, catchError); and so forth... I am still trying but some suggestions would be great. Thanks, Helmut _ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Properly embedding flash with html.
Hi Jason. This custom solution sounds very interesting. Would you like to share it with others? Or refer to a similar solution? :-)) Vayu On 2/4/08 6:36 PM, Jason Lutes [EMAIL PROTECTED] wrote: There are several problems with the Adobe code/solution, and at least one was already mentioned. My biggest complaint about it was that its JavaScript was so poorly written. (It even generated malformed mark-up at one point.) Another complaint I have with the Adobe code/solution is one I also have for SWF Object. The list of function arguments that are expected when embedding Flash media is unnecessarily cumbersome. I use a custom solution for embedding my Flash media, in order to keep the JavaScript file size down (to under half of the SWF Object footprint), to more efficiently (code-wise) do the same kinds of (essential) embedding tasks, and to provide a simpler interface for embedding. It has proven to carry a higher degree of sensible usability (over UFO, SWF Object, the Adobe hack, or other) for coding neophytes, as verified by co-workers who have harnessed it. - Jason Vlado Krempl wrote: Hello everyone, Question: When embedding a flash movie in HTML - Is everyone using the Publish settings that flash CS3 comes with AC_RunActiveContent.js etc or is the SWF OBject still the preferred way? Cheers, Vlado Krempl M 0433 781740 ___ 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
Re: [Flashcoders] Dynamic upload of bunch of images withautomaticsmooth.
You should have a custom movieclip (component) that does all that automatically. So instead of doing: var loader:Loader = new Loader(); walkerMc.figure.head.imgholder.addChild(loader); loader.load(new URLRequest(theURL+img/+xml..epic[usrNr-1].text())); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleComplete,false, 0, true); you could have: var img:SmoothImage = new SmoothImage(); img.source = path_to_image.jpg; img.width = 45; img.height = 45; walkerMc.figure.head.addChild(img); where SmoothImage is a custom component that loads the image and once loaded, creates a Bitmap copy (with smoothing) and removes the loaded image. regards, Muzak - Original Message - From: Irene Johansson [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, February 04, 2008 1:28 PM Subject: Re: [Flashcoders] Dynamic upload of bunch of images withautomaticsmooth. Thank you for replies BUT. :) If i use mr. Muzaks code, i dont know how can i add my new image into right movieclip I need to add child to walkerMc.figure.head.imgholder. The handleComplete is triggered when an image is loaded. I am parsing the XML file, looping through nodes, some have images, some dont, some pictures are bigger(load slower), some smaller(load faster). How can i add the new child to right target? Hope you can understand what i am talking about :) Thanks Irene ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flex Lists
Where do the folks on this list go for Flex questions. I'm looking for a Flex-Newbies list. Flexcoders list at Yahoo. It's an any Flex question list and has Adobe people there. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Bundle swf's on server for transport to client
That's a nice hack indeed! I'll keep it in mind. Thanks! Gert-Jan 2008/2/4, EECOLOR [EMAIL PROTECTED]: In the Flash app we are having some trouble with the attachMovie method and the fact that you can only attach a mc on the same parent. What you could do here (if you are developing for Flash 8) is put a method in you library like this (might contain errors, wrote it from the top of my head): function getImageBitmapData(linkageID:String, width:Number, height:Number):BitmapData { var currentImage:MovieClip = attachMovie(linkageID, currentImage, 0); var bmd:BitmapData = new BitmapData(width, height); bmd.draw(currentImage); //remove the movieclip currentImage.removeMovieClip(); //make sure it is removed delete this.currentImage; return bmd; }; Then where you use the component you could draw it with attachBitmap or bitmapFill. I suspect you resize the images aswell. In that case at the end of the resize just get a new bitmapData (during might be too heavy, something to test I guess). Greetz Erik On 2/4/08, Gert-Jan van der Wel [EMAIL PROTECTED] wrote: Hi Erik, Thank you for your response. I know that something like this should be possible in AS3 but we're (at this moment) stuck with AS2, so that makes it a little bit more difficult. On our server we've been testing with Swfmill and Ming, but we keep getting an error rate of about 10% with the bundling our furniture swf's to one big swf. In the Flash app we are having some trouble with the attachMovie method and the fact that you can only attach a mc on the same parent. Therefor we decided to stop our attempt. We'll continue our quest when the main app is AS3 ;-) Cheers, Gert-Jan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Gert-Jan van der Wel Floorplanner [w] http://www.floorplanner.com [e] [EMAIL PROTECTED] [t] +31 616.650.338 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Delegate question...
You don't. Therein lies the rub with Macromedia's Delegate class. But there is a semi-ugly way you could if you want to. Not that I recommend this method (though I have used it lots in the past with no issues, but I think it's better to go with Muzak's suggestion) myDel:Object = myClip.onRelease = Delegate.create(this, myReleaseHandler) myDel.myProperty = hello function myReleaseHandler():Void { trace(arguments.caller.myProperty) } Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Friday, February 01, 2008 7:19 PM To: Flash Coders List Subject: Re: [Flashcoders] Delegate question... You don't. Therein lies the rub with Macromedia's Delegate class. Use Big Spaceship's Improved Delegate class http://labs.bigspaceship.com/blog/?p=9 [p e r c e p t i c o n] wrote: Howdy, Quick question...How can I pass vars if i'm using delegates for handlers I have it set up like so... someMC.onRelease = Delegate.create(_level0, doSomething); what i want to be able to do is know which instance of someMC actually called it... thanks p ___ 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
Re: [Flashcoders] Dynamic upload of bunch of images with automaticsmooth.
Another problem here may be the quality property on the object/embed tag. If it is auto high it might for some cases switch to non-smoothing to benefit the performance. This will change if you set the property to high. Greetz Erik On 2/3/08, Muzak [EMAIL PROTECTED] wrote: Check the example in the docs. You need to create a copy of the original (loaded) image, add it to the display list and remove the (original) loaded image http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Bitmap.html Here's an example of loading an image and displaying a copy next to it: import flash.display.Loader; import flash.net.URLRequest; import flash.display.Bitmap; var loader:Loader; var req:URLRequest; var orig_mc:MovieClip; var copy_mc:MovieClip; function loaderCompleteHandler(evt:Event) { var ldr:Loader = evt.currentTarget.loader as Loader; var origImg:Bitmap = (ldr.content as Bitmap) origImg.width = 200; origImg.height = 150; var image:Bitmap = new Bitmap(origImg.bitmapData, auto, true); image.width = 200; image.height = 150; copy_mc.addChild(image); } loader = new Loader(); req = new URLRequest(2.jpg); loader.load(req); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleteHandler); orig_mc = new MovieClip(); orig_mc.addChild(loader); addChild(orig_mc); copy_mc = new MovieClip(); copy_mc.x = 210; addChild(copy_mc); regards, Muzak ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] ADA compliance Flash
Just wondering if there are any good solid resources / approaches for staying ADA compliant when creating a project in Flash. I'm not entirely sure of the approach people take on the subject, so I'm scoping it out before said project starts. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Insert new symbol
Hi all, Can anyone explain why when you insert a new movieclip symbol using the insertnew symbol from the menu can't choose a registration point? very annoying... that's my rant for the day... happy monday p ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Insert new symbol
___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Delegate question...
oh yes...of course! i haven't done that in such a long time i forgot about it :) thanks to all On Feb 4, 2008 7:21 AM, Merrill, Jason [EMAIL PROTECTED] wrote: You don't. Therein lies the rub with Macromedia's Delegate class. But there is a semi-ugly way you could if you want to. Not that I recommend this method (though I have used it lots in the past with no issues, but I think it's better to go with Muzak's suggestion) myDel:Object = myClip.onRelease = Delegate.create(this, myReleaseHandler) myDel.myProperty = hello function myReleaseHandler():Void { trace(arguments.caller.myProperty) } Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Friday, February 01, 2008 7:19 PM To: Flash Coders List Subject: Re: [Flashcoders] Delegate question... You don't. Therein lies the rub with Macromedia's Delegate class. Use Big Spaceship's Improved Delegate class http://labs.bigspaceship.com/blog/?p=9 [p e r c e p t i c o n] wrote: Howdy, Quick question...How can I pass vars if i'm using delegates for handlers I have it set up like so... someMC.onRelease = Delegate.create(_level0, doSomething); what i want to be able to do is know which instance of someMC actually called it... thanks p ___ 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
Re: [Flashcoders] Simple compression algo?
Sounds a bit like Run Length Encoding Right, I mentioned that. :) I kept it simple to be able to reconstruct the image from it more easily in PHP. Gotta try the base64 thing next. Dave - Head Developer http://www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Insert new symbol
because i load an image into it and animate from the middle of the image...so if i can't control the registration point it animates from top left... On Feb 4, 2008 9:12 AM, Kenneth Kawamoto [EMAIL PROTECTED] wrote: Do you mean an empty MovieClip? It's empty - why do you need to worry about the registration point? Kenneth Kawamoto http://www.materiaprima.co.uk/ [p e r c e p t i c o n] wrote: Hi all, Can anyone explain why when you insert a new movieclip symbol using the insertnew symbol from the menu can't choose a registration point? very annoying... that's my rant for the day... happy monday p ___ 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] multiple TextFormats in one TextField
Hi list... I'm trying to concatenate a bunch of strings into one TextField, with each string using a specific TextFormat. I'm doing a loop of adding text, formatting that text, then adding more text, formatting it, etc. The problem is whenever I add new text, the entire text in the TextField reverts back to the original TextFormat. How can I preserve certain substrings of the text to keep their assigned TextFormats? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Properly embedding flash with html.
Since I disrespected SWF Object a little in my last post, I should backtrack a little to say that, since it's becoming de facto (despite what I feel are some typical usability oversights), and if you're already comfortable using it, then you should probably just continue to use it. I'm considering whether or not to post what I use somewhere. I may just offer streamlining suggestions or coding alternatives to Geoff, Bobby, et al via http://code.google.com/p/swfobject/ instead, although they seem pretty committed to the development direction already. - Jason Vayu Robins wrote: Hi Jason. This custom solution sounds very interesting. Would you like to share it with others? Or refer to a similar solution? :-)) Vayu ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Simple compression algo?
Actually, from my tests (on the component I made, which was AS 3.0), the bottle neck was not encoding to base 64 per se (as I assumed at first), but assigning the resulting string to the LoadVars object (o URLRequest in my case...). If I commented out that specific line, it worked way faster; when the big string was assigned to the URLRequest, it took a while, even in AS 3.0 (I'm talking about really big images, perhaps some 1 MB string...) In my component I used a mix of AS 2.0 and AS 3.0. The app was AS 2.0; I got the raw pixel data and sent it to the AS 3.0 module (loaded in an invisible frame) through a local connection (in various passes not just the whole array because there's a limit, I think it's 40 Kb or something like that). Once I got the raw pixel data in the AS 3.0 module I converted it to jpeg, then encoded it to Base64, and the post it to the server. It took a while to get it right, but finally I got it working. Later I realized that the URLRequest object lets you send binary data, so I avoided the base64 encoding step. You're stuck with AS 2.0, so there are things you can't do. For instance, posting binary data to the server. As far as I know, you just can send text, using a LoadVars obj. However, you can try to create the jpeg in the swf. I'm not saying it'll be faster. Who knows. But maybe it's worth trying. I have a JPGEnconder class, that can be ported to AS 2.0. The code is far from understandable to me, but just adapting it to AS 2.0 seems feasible. The only thing missing is the native ByteArray class, but it's not that hard to make one (in the end, it's just a storage structure with a pointer / cursor and a few methods to make it easier reading bytes, shorts, ints, etc). So, I think the parts needed to give it a try are there. If you're interested I can post somewhere the Base64 class (AS 3.0, should be ported), the ByteArray (might need to add some methods but already reads/writes unsigned bytes and unsigned shorts), and a Base64 encoder (AS 2.0, too, I've used to some extent and works fine). What I was thinking, to sum things up, is this: * get the raw image data into a ByteArray * encode that data to create a JPEG image in memory * encode that image data to base64 * post the resulting string to the server Might or might not cut it, haven't tried it as I said, and that's really the only way to know. If you want to use some of the code I mentioned to give it a try, just let me know. Cheers Juan Pablo Califano 2008/2/4, Dave Mennenoh [EMAIL PROTECTED]: you're sending a comma separated string to the server? why not have 2 hey digits for all the data and omit the comma? this would bring your data to 2/3 of its size, which means 26sec*2/3 = 17.3sec when this works, you could try to send binary data - so instead if sending the string ff you would send the binary byte 255. if this works, this would cut the time in half again = 8.6sec if you can't create binary data, you could still use base64 encoding instead, which would give you 8.6*1.33 = 11.5sec. Yeah, I'm sending an array of colors. What's a hey digit? And it's not FF, that was just an example, it's colors so it's FF or 16777215 as an integer and it's not any faster to send as integers, in fact I found it a little slower so am sending the hex string. Keeping in the commas just makes it easy to reconstruct the image since if an array index is null I just use the last good color. I did say it was simple. :) I'll definitely give base64 a shot. I'm stuck with AS2 here so I didn't think I could do binary, but Juan seems to say it's possible. Thanks Dave - Head Developer http://www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ 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
Re: [Flashcoders] Insert new symbol
Just move the image so 0,0 is in the middle of it and animate from there. On 2/4/08, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: because i load an image into it and animate from the middle of the image...so if i can't control the registration point it animates from top left... On Feb 4, 2008 9:12 AM, Kenneth Kawamoto [EMAIL PROTECTED] wrote: Do you mean an empty MovieClip? It's empty - why do you need to worry about the registration point? Kenneth Kawamoto http://www.materiaprima.co.uk/ [p e r c e p t i c o n] wrote: Hi all, Can anyone explain why when you insert a new movieclip symbol using the insertnew symbol from the menu can't choose a registration point? very annoying... that's my rant for the day... happy monday p ___ 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 -- Cory Petosky : Lead Developer : PUNY 1618 Central Ave NE Suite 130 Minneapolis, MN 55413 Office: 612.216.3924 Mobile: 240.422.9652 Fax: 612.605.9216 http://www.punyentertainment.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ADA compliance Flash
Hi John, In general, for web accessibility, you will find more by looking for Section 508 or WCAG (Web Content Accessibility Guidelines) than you will by looking for ADA. WCAG and 508 are the two global standards in this area. Also, how ADA applies to the Web is yet to be determined. (The ADA Accessibility Guidelines, or ADAAG, are guidelines for the accessibility of buildings and other facilities.) As others have mentioned, you can look at our accessibility info at: http://www.adobe.com/accessibility/ Thanks, M Matt May Accessibility Engineer On 2/4/08 7:53 AM, John Peacock [EMAIL PROTECTED] wrote: Just wondering if there are any good solid resources / approaches for staying ADA compliant when creating a project in Flash. I'm not entirely sure of the approach people take on the subject, so I'm scoping it out before said project starts. ___ 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
RE: [Flashcoders] Properly embedding flash with html.
I use a custom solution for embedding my Flash media, I do the same as you... never been a fan of Adobe's code or swfobject. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] stage resize
Hi, I want to know if someone here has a problema similar to mine. Well im developing a flash game Where I want 100 % full flash in the site then I make the html like this: // HTML html head meta http-equiv=Content-Type content=text/html; charset=utf-8 title /title style type=text/css !-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } -- /style script src=Scripts/AC_RunActiveContent.js type=text/javascript/script /head body script type=text/javascript AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash. cab#version=9,0,28,0','width','100%','height','100%','src','swf/inicio','qua lity','high','pluginspage','http://www.adobe.com/shockwave/download/download .cgi?P1_Prod_Version=ShockwaveFlash','movie','swf/inicio' ); //end AC code /script noscript object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca b#version=9,0,28,0 width=100% height=100% param name=movie value=swf/inicio.swf param name=quality value=high embed src=swf/inicio.swf quality=high pluginspage=http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Ve rsion=ShockwaveFlash type=application/x-shockwave-flash width=100% height=100%/embed /object /noscript /body /html // \ HTML Then in my flash I have the main swf that loads everything else like this: // AS2 inicio.fla Stage.scaleMode = noScale; Stage.align = TL; System.useCodepage = true; fscommand(trapallkeys, true); Stage.showMenu = false; var path:String = new String path = swf/; function rsize() { var mc:MovieClip = _root.contentMC; mc.forceWidth = 960 mc.forceHeight = 580 var width:Number = (mc.forceWidth == null) ? mc._width : mc.forceWidth; var height:Number = (mc.forceHeight == null) ? mc._height : mc.forceHeight; mc._x = Math.round((Stage.width-width)/2); mc._y = Math.round((Stage.height-height)/2); }; var stageListener:Object = {}; stageListener.onResize = rsize(); Stage.addListener(stageListener); var contentMC:MovieClip = this.createEmptyMovieClip(contentMC, this.getNextHighestDepth()); var contentLoaderMCL:MovieClipLoader = new MovieClipLoader(); var contentLoaderListener:Object = {}; //cuando ya se acabo de cargar y esta ejecutandose el primer frame de ese MC contentLoaderListener.onLoadInit = function():Void { //stageListener.onResize(); }; //Cuando termino de cargarse el MC contentLoaderListener.onLoadComplete = function(mc:MovieClip):Void { removeMovieClip(loading) } //mientras esta cargando el MC contentLoaderListener.onLoadProgress = function(mc:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void { var porcentaje:Number = Math.floor((bytesLoaded/bytesTotal) * 100); loading.back_loading._width = Stage.width loading.back_loading._height = Stage.height loading.porcentaje = porcentaje + %; loading.barra._xscale = porcentaje loading._x = Math.floor((Stage.width - 960) / 2); loading._y = Math.floor((Stage.height - 580) / 2); } //cuando empieza a cargarse el MC contentLoaderListener.onLoadStart = function(mc:MovieClip):Void { attachMovie(loading, loading, _root.getNextHighestDepth()); loading._x =Math.floor((Stage.width - 960) / 2); loading._y = Math.floor((Stage.height - 580) / 2); } contentLoaderMCL.addListener(contentLoaderListener); contentLoaderMCL.loadClip(path+template.swf,contentMC); rsize(); stop(); // \AS2 inicio.fla Well as you can see I have an stage listener where I center my main movie (template.swf) Inside this I make a lot of things and I have one part of the game where is a racing car game, where I detect a lot of colitions but theres my problem where I test the swf inside flash all works fine. But when I test it with the 100 % of the flash movie where is the stage listener the game brokes it seems I make colitions all the time. If I remove the stage listener all works fine. I want to know if someone has encounter some similar problem. thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders