[Flashcoders] HTTP Status Events
I am working with Twitter's API which returns various status codes for different calls.Some of the status codes indicate an error http://apiwiki.twitter.com/REST+API+Documentation#HTTPStatusCodes I am tracking these errors using the HTTPStatus events but I can't seem to get the xml returned. Is it possible? private function onHTTPStatus (p_event:HTTPStatusEvent):void{ Logger.debug(onHTTPStatus = + p_event); var loader:URLLoader = p_event.target as URLLoader; Logger.debug('loader.data = ' + loader.data); } loader.data is undefined every time. -- Ketan Anjaria 415.260.8742 [EMAIL PROTECTED] www.kidbombay.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Kilobyte Size of AS Classes
When I use the Generate Size report in the publish settings, at the end of the file it says something like ActionScript BytesLocation -- 140568ActionScript 3.0 Classes Is there a way to break this up by class? I would love to get a list of each class and how large it is. Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Deleting Flash Vars
I am using FlashVars in an AS3 application.Is there a way to delete flash vars once they are passed in? What I would like to do is // get the flash vars and set in application var flashVars:Object = (root.loaderInfo as LoaderInfo).parameters; for (var i:String in flashVars) { setValue(i, flashVars[i]); } // delete the flash vars to prevent other swfs from accessing delete (root.loaderInfo as LoaderInfo).parameters; but parameters is read only. Any ideas? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Deleting Flash Vars
No this is more for the case of a shell swf loading external content. I want to prevent the external content from accessing any FlashVars. The shell is the only thing that will need the FlashVars. On Mon, Apr 21, 2008 at 11:24 AM, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: Ketan Anjaria [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, April 21, 2008 5:59 PM Subject: [Flashcoders] Deleting Flash Vars // delete the flash vars to prevent other swfs from accessing delete (root.loaderInfo as LoaderInfo).parameters; but parameters is read only. Any ideas? It seems to me that you have a dangerous strategy. If there are other swfs that will try and load the parameters, you are trying to make the behaviour of the application dependent on the load order of the swfs. Not good. Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Ketan Anjaria 415.260.8742 f. 415-358-4278 [EMAIL PROTECTED] www.kidbombay.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] how to check if child exists
displayObjectContainer.contains(child) On Wed, Apr 2, 2008 at 9:36 AM, Allandt Bik-Elliott (Receptacle) [EMAIL PROTECTED] wrote: that said, i'd still like to know how to determine if a display object is in the current display list? thanks a On 2 Apr 2008, at 16:35, Kenneth Kawamoto wrote: Place outside of the function - private var eventList:Sprite; Kenneth Kawamoto http://www.materiaprima.co.uk/ Allandt Bik-Elliott (Receptacle) wrote: hmmm - i'm a little stuck on this i'm trying to create a pop-up (will tween but i want to get it working first) but i want it to kill any previous one that's up - how would i go about this please? here's my current code: CODE private function createEventList(pbList_xl:XMLList):void { if (this.contains(eventList)) removeChild(eventList); // remove previous eventList if it's available - this is the bit that needs fixing var listLength:int = pbList_xl.length(); var listentryHeight:int = 15; var listHeight:int = listLength * listentryHeight; var listWidth:int= 50; var mousePoint:Point= new Point(root.mouseX, root.mouseY); // will tween from this point to a central point on the stage var eventList:Sprite = new Sprite(); eventList.graphics.beginFill(commonGrey, 1); eventList.graphics.drawRoundRect(0, 0, listWidth, listHeight, 10); eventList.x = mousePoint.x; eventList.y = mousePoint.y; addChild(eventList); } /CODE hope you can help a Allandt Bik-Elliott thefieldcomic.com e [EMAIL PROTECTED] ___ 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 -- Ketan Anjaria 415.260.8742 f. 415-358-4278 [EMAIL PROTECTED] www.kidbombay.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] determining url of container page
In AS2 it's _root._url. In AS3 I think it's stage.contentLoaderInfo.url or something like that. Check the docs on the LoaderInfo class. On Feb 18, 2008 6:49 PM, Andrew Sinning [EMAIL PROTECTED] wrote: How can you determine from within Flash (or php on the server when the request for the swf comes in) the url of the page within which a swf is embedded? Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Ketan Anjaria 415.260.8742 f. 415-358-4278 [EMAIL PROTECTED] www.kidbombay.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders