Re: [Flashcoders] Access MainTimeline reference from within a component
Hi Helmut, try: for(var i:uint; istage.numChildren; i++){ trace(stage.getChildAt(i)); } best regards -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader On 8/27/08, Helmut Granda [EMAIL PROTECTED] wrote: yeah, still get [object LivePreviewParent]... On Wed, Aug 27, 2008 at 12:00 AM, poste9 [EMAIL PROTECTED] wrote: have u tried this.root ? 2008/8/27 Helmut Granda [EMAIL PROTECTED] Is it possible to access the MainTimeline from within a component? So far I havent been able to access it trying different methods. Most times I get the same result: trace(parent); trace(root); trace(this.parent); trace(this); trace(this.parent.parent); [object LivePreviewParent] [object LivePreviewParent] [object LivePreviewParent] [object MyComponent] [object Stage] But it seems to skip the MainTimeline... basically what I am trying to access is the File name which I can extract with Describe type for the MainTimeline, and of course this is easy with objects on the timeline. I have an init function in a component that tries to get the reference to the MainTimeline but so far no luck... any tips? -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- = Grupo Comunidade de Comunicação Rafael Lúcio 29809.099333, fazendo do seu website uma aplicação em tempo real ms xsl js(dom) css xhtml php mysql pgsql ajax json smarty drupal ___ 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 -- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] MovieClip Buttons in Flash CS3 ActionScript 3
Hi Adam, Use the sample below for Button instances: import flash.display.SimpleButton; import flash.display.Sprite; var up:Sprite = new Sprite(); up.graphics.beginFill(0x99); up.graphics.drawRect(50, 50, 50, 50); up.graphics.endFill(); var over:Sprite = new Sprite(); over.graphics.beginFill(0xFF); over.graphics.drawRect(50, 50, 50, 50); over.graphics.endFill(); var down:Sprite = new Sprite(); down.graphics.beginFill(0xCC); down.graphics.drawRect(50, 50, 50, 50); down.graphics.endFill(); var hit:Sprite = new Sprite(); hit.graphics.beginFill(0xCC); hit.graphics.drawRect(50, 50, 50, 50); hit.graphics.endFill(); var botao:SimpleButton = new SimpleButton(up); botao.upState = up; botao.overState = over; botao.downState = down; botao.hitTestState = hit; this.addChild(botao); best regards -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote: Yes, I can find nothing in as3 docs about support for that shortcut (_up,_over, _down frame labels). The buttonMode=true only affects the cursor - changes it from pointer to hand. afaik, you need to set functions for each event - possible mouse events include: CLICK DOUBLE_CLICK MOUSE_DOWN MOUSE_MOVE MOUSE_OUT MOUSE_OVER MOUSE_UP MOUSE_WHEEL ROLL_OUT ROLL_OVER So I think you need to do this: my_btn.addEventListener(MouseEvent.CLICK, myFunction); my_btn.buttonMode = true; function myFunction(event:MouseEvent):void { //do something } my_btn.addEventListener(MouseEvent.ROLL_OVER, myOverFunction); function myOverFunction(event:MouseEvent):void { //do something } my_btn.addEventListener(MouseEvent.ROLL_OUT, myOutFunction); function myOutFunction(event:MouseEvent):void { //do something } I'd love to learn otherwise, though. Of course, using the simple button component avoids this, maybe you could just skin it to your liking? All of the button states are separate editable mc's in the library. jimbo *** REPLY SEPARATOR *** On 6/27/2007 at 6:24 AM Adam Pasztory wrote: Thanks Jim, I've set up the AS3 event handler as you've specified, and it does change the cursor from an arrow to a pointer, but the _up, _down and _over states don't work. I pasted the same button symbol into an AS2 FLA file, and it does work, so there isn't anything wrong with the way I've set my frame labels in the button symbol. According to the docs, it should work in AS3: If you use the buttonMode property with the MovieClip class (which is a subclass of the Sprite class), your button might have some added functionality. If you include frames labeled _up, _over, and _down, Flash Player provides automatic state changes (functionality similar to that provided in previous versions of ActionScript for movie clips used as buttons). Can anyone else get this working in AS3??? On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote: One way to instantiate a mc as a button in as3 is: my_btn.addEventListener(MouseEvent.CLICK, myFunction); my_btn.buttonMode = true; function myFunction(event:MouseEvent):void { //do something } jimbo *** REPLY SEPARATOR *** On 6/26/2007 at 9:40 PM Adam Pasztory wrote: In ActionScript 2, I never used button symbols. Instead I would create buttons as MovieClips, give the frames of the buttons labels -- _up, _down, _over -- and assign an event handler to them. I tried this in AS3, but it didn't seem to work. Is there some new secret to MovieClip buttons in Flash 9? thanks, Adam ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com s ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com s ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] MovieClip Buttons in Flash CS3 ActionScript 3
Adam, Please, it sees the archive in the URL: www.leandroamano.com.br/files/button_as3.fla best regards On 6/27/07, Adam Pasztory [EMAIL PROTECTED] wrote: Jim, The problem seems to be that each of my button states is a MovieClip. In your version, the buttons states are just raw graphics and text the timeline of the button. Do a convert to symbol on your graphics, and change each button state into a MovieClip. The hit areas will no longer work. This works in AS2, but not AS3, so I'm thinking it's a bug in Flash. On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote: funny, mine does . . . your setup looks the same? http://jimbo.us/lab/buttonAs3.fla http://jimbo.us/lab/buttonAs3.swf *** REPLY SEPARATOR *** On 6/27/2007 at 8:39 AM Adam Pasztory wrote: Didn't work. I posted the FLA in case anyone is bored and feels like taking a look: http://www.pasz.com/xfer/FinalAssets.zip On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote: Hah, yes, it does work, just need to addChild: my_btn.addEventListener(MouseEvent.CLICK, myFunction); my_btn.buttonMode = true; function myFunction(event:MouseEvent):void { //do something } addChild(my_btn); jimbo ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] loading xml into flash in spanish(desperate)
In the embedFonts, select: Uppercase, Lowercase, numerals, ponctuation and Latin I. In the xml, mark enconding as UTF-8: ?xml version=1.0 encoding=utf-8? best regards Leandro Amano On 6/25/07, Pedro Taranto [EMAIL PROTECTED] wrote: if you trace it, do you see the especials characters in the output panel?? if the problem is only in the text field you have to embed the font and the especials characters in the textfield? here is the list that I always use when i have to embed fonts: UPPERCASE LOWERCASE NUMERALS PUNCTUATION BASICLATIN include these characters: ºª¹²³£¢¬°°§ºçàáâãèéêìíîòóôõùúûüÀÁÇÂÃÈÉÊÌÍÎÒÓÔÕÙÚÛÜñÑ flash does not understand the html entities like acetilde, because the '' is used to separete variables hope it helps --Pedro Taranto Jesse Graupmann escreveu: Using Macromedia Flash MX as a multilingual authoring tool http://www.adobe.com/support/flash/languages/flashlocalization/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas Sent: Monday, June 25, 2007 11:50 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] loading xml into flash in spanish(desperate) I'm still stuck on this... would somebody help me, I don't know why this flash apparently doesn't want to read the xml from the attributes, I changed the xml into utf-8 and nothing, I also set up _sans in the css and nothing, does anyone knows how can I finally convince this flash to show my spanish characters as ñ and the é(tildes)...thanks Everyhting is ok, but the spanish characters. this is quite disturbing because I speak spanish. Gustavo this is my code: stop(); menus = new XML(); menus.ignoreWhite = true; menus.onLoad = function(success) { var target = _root.screenTxt.myText_txt1; var holder = _root.menu; var titleMenus = this.firstChild.childNodes.length; var menuContent = this.firstChild; for (var i = 0; i titleMenus; ++i ) { var depth = holder.getNextHighestDepth(); var btn = holder.attachMovie( buttons, 'btn_' + i , depth ); btn._x = 0; btn._y = -10 * i * 4; btn.data = { text: menuContent.childNodes[i].attributes.text, title: menuContent.childNodes[i].attributes.title }; btn.poa.text = btn.data.title; btn.onRelease = function(){ target.html=true; target.htmlText =title+ this.data.title+/title +br + text+this.data.text+/text; } } } menus.load(txt/poa.xml); this is the xml ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Multilingual content
Hi Durai! My suggestion would be: Record a property instance for each value, in its I register in cadastre in the Array, automatically it catches the absolute address of the object textfield. best regards, Leandro Amano On 5/11/07, Durai Raj [EMAIL PROTECTED] wrote: Thanks for your information leandro But I have some more doubts like how do you assign the text inside an MovieClip? Whether we have to give the reference of the array in each text inside the movieCLip... Really I am much confused about that Looking forward for more ideas Thanks Durai www.expertbuddy.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leandro Amano Sent: Thursday, May 10, 2007 10:16 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Multilingual content Hi Durai, One time I developed something seemed for Blue Tree Hotels. I have create a package os classes named MultiLanguageTextField, that simply it was registered in cadastre in one Array with various objects with id and values (similar mx.lang.Locale built-in class). When i need change language, i substituted de all texts from Array to leave registered ids. Timing techniques they had been applied for load texts. On 5/10/07, Durai Raj [EMAIL PROTECTED] wrote: Hi Lists I need to implement multilingual content for my games. I have only theoretical knowledge about the multi lingual content. I have not done any things regarding this so far.. Could anyone suggest what would be the best way to implement? I would like to implement in these versions Chinese Japanese Korean and English Looking forward for your ideas Thanks in advance for your time Durai DISCLAIMER: This communication may be confidential and privileged and the views expressed herein may be personal and are not necessarily the views of ReDIM. It is for the exclusive use of the intended recipient. If you are not the intended recipient, please note that any distribution, copying or use of this communication or the information in it is strictly prohibited.If you have received this communication in error, please notify us by email ([EMAIL PROTECTED]) and then delete the email and any copies of it. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com DISCLAIMER: This communication may be confidential and privileged and the views expressed herein may be personal and are not necessarily the views of ReDIM. It is for the exclusive use of the intended recipient. If you are not the intended recipient, please note that any distribution, copying or use of this communication or the information in it is strictly prohibited.If you have received this communication in error, please notify us by email ([EMAIL PROTECTED]) and then delete the email and any copies of it. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] if(color == X) {} looking for method.
Please, test the code below: import flash.geom.Transform; import flash.geom.ColorTransform; var transf:Transform = new Transform(mc); var color:ColorTransform = new ColorTransform(); transf.colorTransform = color; color.rgb = 0x99; trace(color.rgb); trace(0x+color.rgb.toString(16)); if (parseInt(color.rgb.toString(16)) === 99) { trace(ok); } []'s Leandro Amano On 5/10/07, Paul V. [EMAIL PROTECTED] wrote: ...I am wanting to run a color of instance test. I am wondering if I can do this? attachMovie(shapes,shapes,num); if( shapes /*color*/ == 0x33){ // action(s) } // this is sudo code but basically I want to know if I can test for color. Thanks, Vdst. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] if(color == X) {} looking for method.
get color through getPixel method: import flash.display.BitmapData; var mc:MovieClip = this.attachMovie(mc, mc2, 1); var bmp:BitmapData = new BitmapData(mc._width, mc._height, false); bmp.draw(mc); color = bmp.getPixel(mc._x, mc._y); trace(color.toString(16)); []'s Leandro Amano On 5/10/07, Danny Kodicek [EMAIL PROTECTED] wrote: ...I am wanting to run a color of instance test. I am wondering if I can do this? attachMovie(shapes,shapes,num); if( shapes /*color*/ == 0x33){ // action(s) } // this is sudo code but basically I want to know if I can test for color. A library symbol doesn't have a colour - what exactly are you trying to do? Danny ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] looking for library naming conventions
In AS2, variables and instance names they start with lowerCase characters or _ or $ In AS3, names in library starts with upperCase, beacuse it's the class name. Symbol name and linkage name tehy need are the same. regards Leandro Amano On 5/10/07, Hans Wichman [EMAIL PROTECTED] wrote: Hi, could someone point me to a clear set of library item naming conventions? I know they must be out there, but cant seem to find any (that I like). I tend to use the same conventions as in code, so for example I use MyMovieClip for a library item and myMovieClip for an instance of that item on the stage. If the conventions include guidelines on naming linkage id's that'd be cool too:) greetz JC ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] DepthManager stops working with loadMovie?
I never had a problems width depth manager. =/ Please, you can show the actionscript code? regards Leandro Amano On 5/10/07, David Cohn [EMAIL PROTECTED] wrote: Hey all, It seems the DepthManager doesn't work with SWFs that have been loaded. At least, I have a project where the DepthManager is working fine, but when I use loadMovie to load the SWF into a container movie, none of the depths are being set... Is this a known limitation? Or is there something else that must be going on in my movie? How do people work around this? Thanks, --Dave ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] if(color == X) {} looking for method.
Hi Jason, []'s = hug's, regards... I finished to send another example with getPixel(). But I did not understand its email of reply, is an attack? I'm sorry for some aggression badly understood... bye Leandro Amano On 5/10/07, Merrill, Jason [EMAIL PROTECTED] wrote: Please, test the code below: import flash.geom.Transform; import flash.geom.ColorTransform; var transf:Transform = new Transform(mc); var color:ColorTransform = new ColorTransform(); transf.colorTransform = color; color.rgb = 0x99; trace(color.rgb); trace(0x+color.rgb.toString(16)); if (parseInt(color.rgb.toString(16)) === 99) { trace(ok); } []'s Leandro Amano I believe he's asking to check color on an existing movie clip, not something you set via ColorTransform. I don't think it's possible is it? And by the way, curious what []'s is used for in your sig - some inside joke or something subtle I don't get? Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] making movie clips tranparent
Hi nik! What ActionScript version are you using? regards Leandro Amano On 5/10/07, nik crosina [EMAIL PROTECTED] wrote: Hi Is there a way I can make movie clips transparent, so that the mouse reacts to buttons that are under them? I have the problem of buttons switching on large areas of content, that then cover (with their rectangle outline, buttons that shoulds still be accessible below them which I can't then click! thanks!1 NIk ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Multilingual content
Hi Durai, One time I developed something seemed for Blue Tree Hotels. I have create a package os classes named MultiLanguageTextField, that simply it was registered in cadastre in one Array with various objects with id and values (similar mx.lang.Locale built-in class). When i need change language, i substituted de all texts from Array to leave registered ids. Timing techniques they had been applied for load texts. On 5/10/07, Durai Raj [EMAIL PROTECTED] wrote: Hi Lists I need to implement multilingual content for my games. I have only theoretical knowledge about the multi lingual content. I have not done any things regarding this so far.. Could anyone suggest what would be the best way to implement? I would like to implement in these versions Chinese Japanese Korean and English Looking forward for your ideas Thanks in advance for your time Durai DISCLAIMER: This communication may be confidential and privileged and the views expressed herein may be personal and are not necessarily the views of ReDIM. It is for the exclusive use of the intended recipient. If you are not the intended recipient, please note that any distribution, copying or use of this communication or the information in it is strictly prohibited.If you have received this communication in error, please notify us by email ([EMAIL PROTECTED]) and then delete the email and any copies of it. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Asfunction inside an dynamic xml file...
hi Dan, i'm testing your code and this operates correctly: //Flash import mx.utils.Delegate; var xml:XML = new XML(); xml.ignoreWhite = true; xml.load(site.xml); xml.onLoad = Delegate.create(this, onLoadXML); function onLoadXML(success:Boolean):Void { if (success) { var temp:String = this.xml.firstChild.childNodes[0].firstChild.nodeValue; text_txt.htmlText = temp; } } function testing(param:Number) { trace(param); } //XML ?xml version=1.0 encoding=iso-8859-1? site para2![CDATA[p align=centerblah blah blah, a href=asfunction:testing,1RSVP today!/a/b/font/p]]/para2 /site regards Leandro Amano On 5/10/07, Dan Wade [EMAIL PROTECTED] wrote: Hello, After my xml is generated I have a node: para2![CDATA[p align=centerblah blah blah, a href=asfunction:testing,1RSVP today!/a/b/font/p]]/para2 I have a htmlEnabled text field which I populate with the above node, but I can't get the testing() function to fire using asfunction. Is the syntax correct here or am I missing something? Tia, Dan ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] removeMovieClip or unloadMovie
removeMovieClip method clear the object create from createEmptyMovieClip method in cache. test: mc = this.createEmptyMovieClip(a, 1); mc.loadMovie(aa.swf); //mc.removeMovieClip(); mc.loadMovie(aa.swf); mc = this.createEmptyMovieClip(a, 1); mc.loadMovie(aa.swf); mc.removeMovieClip(); mc.loadMovie(aa.swf); []'s Leandro Amano On 5/9/07, Lois IN [EMAIL PROTECTED] wrote: Hi! First of all excuse me for my english. I have a little question for you about optimises my flash movies: I generate a movie clip dynamically: createEmptyMovieClip, and loads a SWF into this. When I don't need more this MC and the SWF, I only delete the MC with: removeMovieClip. My question is: I need to unload the SWF too?(unloadMovie) If I don't unload the SWF, this stills remains in the player cache? Thank you very much coders! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RGB tinting using the colorMatrixFilter()
it uses copyChannel method fro BitmapData class (1 = red, 2 = green, 4 = blue, 8 = alpha) import flash.display.BitmapData; import flash.geom.Rectangle; import flash.geom.Point; var background_bmp:BitmapData = new BitmapData(this._width, this._height); background_bmp.draw(blackWhite); blackWhite.attachBitmap(background_bmp, 1); //Medium Grayscale background_bmp.copyChannel(background_bmp, background_bmp.rectangle, new Point(0, 0), 2, 1); background_bmp.copyChannel(background_bmp, background_bmp.rectangle, new Point(0, 0), 2, 2); background_bmp.copyChannel(background_bmp, background_bmp.rectangle, new Point(0, 0), 2, 4); []'s Leandro Amano On 5/9/07, Mike Mountain [EMAIL PROTECTED] wrote: Hey guys I'm working with greyscale images - assume neutral colour temperature is 50% grey. These are shaded from white to black, white representing light, black shading, and all the variable shades in between etc. I need to tint the greyscale bitmapData to produce a shaded coloured image using the colorMatrixFilter() from an RGB or Hex value. so if the whole image was 50% grey (ie. r=128, g=128, b=128) it should become r=256,g=0,b-0 - black should stay black, white should stay white but the colours in between should be shades of red. Anyone got a clue how I can do this? Cheers Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] pause an onEnterFrame?
Don't use onEnterFrame event in mc instances, example: var o:Object = new Object(); o.onEnterFrame = function() { trace(true); }; var mc:MovieClip = this.attachMovie(a, b, 1, o); []'s Leandro Amano On 5/8/07, Durai Raj [EMAIL PROTECTED] wrote: You can set a toggle variable to pause and resume the event Code snippets //Toggle variable Var bToggleEvent:Boolean=true Somemc.onEnterFrame=function():Void { If(bToggleEvent) { //Execute the code here } } Somemc.onRollover=function() { bToggleEvent=false } Somemc.onRollout=function() { bToggleEvent=true } Hope this would solve your problem Durai -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Count Schemula Sent: Tuesday, May 08, 2007 10:22 AM To: flashcoders list Subject: [Flashcoders] pause an onEnterFrame? Is there anyway to pause an onEnterFrame event? Right now I delete the onEnterFrame when an onRollOver event occurs, and reinitialize it when an onRollOut event occurs, but that causes all of my motion variables to get re-initiated, and thus makes the motion go through a huge jump. Is there a way to pause, and resume an onEnterFrame? Thanks. -- count_schemula ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com DISCLAIMER: This communication may be confidential and privileged and the views expressed herein may be personal and are not necessarily the views of ReDIM. It is for the exclusive use of the intended recipient. If you are not the intended recipient, please note that any distribution, copying or use of this communication or the information in it is strictly prohibited.If you have received this communication in error, please notify us by email ([EMAIL PROTECTED]) and then delete the email and any copies of it. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] remoting with as3 (not flex)
:) Thanks []'s -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader On 5/5/07, eka [EMAIL PROTECTED] wrote: Ok thanks.. the tortoiseSVN download link is changed : http://tortoisesvn.net/downloads i have modify the link in my tutorial :) EKA+ :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] problems with html anchors, target='_self' not working in browser..
i've been testing your code and in my ie and firefox browsers, and working correctly... try test in some ftp address []'s Leandro Amano On 5/3/07, Hobson, James, VF UK [EMAIL PROTECTED] wrote: Hi, I'm trying to create some HTML anchor links within a text field that will open in the current browser page (using target='_self'). The link works, but only in the following circumstances: a) When you click the link on the published version within flash b) When you drag the swf file into a browser And it doesn't work when the flash file is embedded in a HTML doc. For example, doesn't work when: a) Publish with an HTML page from flash and open in browser b) Drag and drop into a new HTML page created in Dreamweaver and open in browser However if you CTRL-click within Firefox, or SHIFT-click with IE it does work!?! I've set the Local playback security in the publish settings to Access network only and still no joy. Here is my code: this.createTextField(myText_txt, 0, 25, 25, 300, 200); var myStyle:TextField.StyleSheet = new TextField.StyleSheet (); myStyle.setStyle (a:link, {fontWeight:'bold', textDecoration:'underline', fontSize:'16'}); myStyle.setStyle (a:visited, {fontWeight:'bold', textDecoration:'underline', fontSize:'16'}); myStyle.setStyle (a:hover, {fontWeight:'bold', textDecoration:'underline', fontSize:'16'}); // myText_txt.styleSheet = myStyle; myText_txt.html = true; myText_txt.htmlText = a href='http://www.bbc.co.uk' target='_self'www.bbc.co.uk/a; I obviously need it to work within an HTML page. Any help greatly appreciated. Cheers, James ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Detecting referrer in Flash
public _url : String [read-only] Retrieves the URL of the SWF file that created the button. *Availability: *ActionScript 1.0; Flash Player 6 Example Create two button instances on the Stage called one_btn and two_btn. Enter the following ActionScript in Frame 1 of the Timeline: var one_btn:Button; var two_btn:Button;this.createTextField(output_txt, 999, 0, 0, 100, 22); output_txt.autoSize = true; one_btn.onRelease = function() { trace(clicked one_btn); trace(this._url); }; two_btn.onRelease = function() { trace(clicked +this._name); var url_array:Array = this._url.split(/); var my_str:String = String(url_array.pop()); output_txt.text = unescape(my_str); }; On 5/3/07, Michael Mudge [EMAIL PROTECTED] wrote: Is there any way to determine which web page is displaying my SWF? This could be the referrer field of the HTTP request for the .SWF... Or any other data that might indicate what the containing web page is. I am using this to determine how to match the theme of the source page, not for security. - Kipp ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] rotate a cube
The fla source (AS2): www.leandroamano.com.br/files/3d.fla // Perspective ppc = perspective.value; center = {x:0, y:0, z:0}; // Cube: Face 1 v1 = {x:-50, y:-50, z:-50}; v2 = {x:50, y:-50, z:-50}; v3 = {x:50, y:50, z:-50}; v4 = {x:-50, y:50, z:-50}; // Cube: Face 2 v5 = {x:-50, y:-50, z:50}; v6 = {x:50, y:-50, z:50}; v7 = {x:50, y:50, z:50}; v8 = {x:-50, y:50, z:50}; // plan p1 = {x:-300, y:-225, z:-100}; p2 = {x:-275, y:-225, z:-100}; p3 = {x:-300, y:-200, z:-100}; p4 = {x:-300, y:-225, z:-125}; //--- render(p1, plan1); pp1 = point(plan1); var temp:MovieClip = this.createEmptyMovieClip(temp__, 500) screen.onPress = function(Void):Void { this._parent.temp.onEnterFrame = function(Void):Void { alpha = -(this._parent._ymouse-Stage.height/2)/Stage.height/2; beta = (this._parent._xmouse-Stage.width/2)/Stage.width/2; //--- v1 = rotate(v1, center, 0, alpha, beta); v2 = rotate(v2, center, 0, alpha, beta); v3 = rotate(v3, center, 0, alpha, beta); v4 = rotate(v4, center, 0, alpha, beta); //--- v5 = rotate(v5, center, 0, alpha, beta); v6 = rotate(v6, center, 0, alpha, beta); v7 = rotate(v7, center, 0, alpha, beta); v8 = rotate(v8, center, 0, alpha, beta); //--- p2 = rotate(p2, p1, 0, alpha, beta); p3 = rotate(p3, p1, 0, alpha, beta); p4 = rotate(p4, p1, 0, alpha, beta); //--- render(v1, vert1); render(v2, vert2); render(v3, vert3); render(v4, vert4); //--- render(v5, vert5); render(v6, vert6); render(v7, vert7); render(v8, vert8); //--- render(p2, plan2, 300); render(p3, plan3, 300); render(p4, plan4, 300); //--- v1p = point(vert1); v2p = point(vert2); v3p = point(vert3); v4p = point(vert4); //--- v5p = point(vert5); v6p = point(vert6); v7p = point(vert7); v8p = point(vert8); //--- pp2 = point(plan2); pp3 = point(plan3); pp4 = point(plan4); //--- z_index1 = 0; z_index2 = 0; //--- if (v1.zv5.z) { z_index1 = 1; } else { z_index2 = 1; } //--- quad1 = this._parent.createEmptyMovieClip(quad1, z_index1); quad1.beginFill(0xff, 75); quad1.moveTo(v1p.x, v1p.y); quad1.lineTo(v2p.x, v2p.y); quad1.lineTo(v3p.x, v3p.y); quad1.lineTo(v4p.x, v4p.y); quad1.lineTo(v1p.x, v1p.y); //--- quad2 = this._parent.createEmptyMovieClip(quad2, z_index2); quad2.beginFill(0x00ff00, 75); quad2.moveTo(v5p.x, v5p.y); quad2.lineTo(v6p.x, v6p.y); quad2.lineTo(v7p.x, v7p.y); quad2.lineTo(v8p.x, v8p.y); quad2.lineTo(v5p.x, v5p.y); //--- this._parent.createEmptyMovieClip(line1, 100).drawLine(v1p, v5p); this._parent.createEmptyMovieClip(line2, 101).drawLine(v2p, v6p); this._parent.createEmptyMovieClip(line3, 102).drawLine(v3p, v7p); this._parent.createEmptyMovieClip(line4, 103).drawLine(v4p, v8p); //--- estilo1 = {thick:2, rgb:0xff, alpha:100}; estilo2 = {thick:2, rgb:0xff, alpha:100}; estilo3 = {thick:2, rgb:0x00cc00, alpha:100}; this._parent.createEmptyMovieClip(versor_i, 201).drawLine(pp1, pp2, estilo1); this._parent.createEmptyMovieClip(versor_j, 202).drawLine(pp1, pp3, estilo2); this._parent.createEmptyMovieClip(versor_k, 203).drawLine(pp1, pp4, estilo3); }; }; screen.onRelease = function(Void):Void { delete this._parent.temp.onEnterFrame; }; function rotate(vert, ref, a, b, c) { v = {x:vert.x-ref.x, y:vert.y-ref.y, z:vert.z-ref.z}; // plan XY = girar em Z matrix1 = []; matrix1[0] = [Math.cos(a), Math.sin(a), 0]; matrix1[1] = [-Math.sin(a), Math.cos(a), 0]; matrix1[2] = [0, 0, 1]; //plan YZ = girar em X matrix2 = []; matrix2[0] = [1, 0, 0]; matrix2[1] = [0, Math.cos(b), Math.sin(b)]; matrix2[2] = [0, -Math.sin(b), Math.cos(b)]; //plan ZX = girar em Y matrix3 = []; matrix3[0] = [Math.cos(c), 0, Math.sin(c)]; matrix3[1] = [0, 1, 0]; matrix3[2] = [-Math.sin(c), 0, Math.cos(c)]; //--- matrix = prodMatricial(matrix1, matrix2); matrix = prodMatricial(matrix, matrix3); //--- nx = matrix[0][0]*v.x+matrix[0][1]*v.y+matrix[0][2]*v.z+ref.x; ny = matrix[1][0]*v.x+matrix[1][1]*v.y+matrix[1][2]*v.z+ref.y; nz = matrix[2][0]*v.x+matrix[2][1]*v.y+matrix[2][2]*v.z+ref.z; //--- return {x:nx, y:ny, z:nz}; } function render(v, mc, pers) { p = ppc; if (pers != undefined) { p = pers; } mc._x = v.x*p/(p-v.z)+Stage.width/2; mc._y = -v.y*p/(p-v.z)+Stage.height/2; } function prodMatricial(m1, m2) { prod = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]; for (i=0; i3; i++) { for (j=0; j3; j++) { for (k=0; k3; k++) { prod[i][j] += m1[i][k]*m2[k][j]; } } } return prod; } MovieClip.prototype.drawLine = function(p1, p2, props) { if (props == undefined) { this.lineStyle(0); } else { this.lineStyle(props.thick, props.rgb, props.alpha); } this.moveTo(p1.x, p1.y); this.lineTo(p2.x, p2.y); }; function point(mc) { return {x:mc._x, y:mc._y}; } regards Leandro Amano On 5/1/07, Tom Gooding [EMAIL PROTECTED] wrote: I've seen some really good stuff done recently in Papervision3d http://www.papervision3d.org/ , also WireEngine3D I've used before pretty successfully http://osflash.org/we3d . As with any 3D engine, you'll need reasonable maths to get on with either of these. -Original Message
Re: [Flashcoders] AS2: generating new instances dynamically?
Please Sebastian, show all code in the next post. regards. -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader On 5/2/07, Matthias Dittgen [EMAIL PROTECTED] wrote: You can assign values to private and/or public variables of the class using the 4th argument of attachMovie. Just read the API documentation: public attachMovie(id:String, name:String, depth:Number, [initObject:Object]) : MovieClip initObject can be predefined or used on the fly, which looks like: _root.attachMovie(libraryID, instanceName, depth, {myString: Hello World, _x: 20}); This is not the same as using params in the constructor, but these variables are set before the constructor is called, so you can use the values within the constructor, which is nearly the same and works fine for me. hth, Matthias ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Random Error
In AS2 classes, it's normal... =( Try compiler again. regards. -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader On 5/2/07, Petro Bochan [EMAIL PROTECTED] wrote: Hi, Which version of Flash are you using? I tried this on Flash CS3 and it worked out seamlessly. package { import flash.display.Sprite; import flash.system.Capabilities; public class Test extends Sprite { public function Test() { } public static function getInfo() { return(Capabilities.version); } } } .fla trace(Test.getInfo()); Cheers, Petro -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Dave Mennenoh Sent: Friday, April 27, 2007 6:13 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Random Error Once in a while, when compiling, I get an error from one of my classes. The error is something like: 'property System not found', and it is thrown from this function: public static function getPlayerVersion() { return(System.capabilities.version); } I only see the error once out of 20 compiles or so... thoughts? Dave - Head Developer http://www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] border styles for TextArea component
Hello, Change border width I don't know but try this: myTextArea.label.border = true; myTextArea.label.borderColor = 0x99; However label (textField object) is a private member of the TextArea Component regards. -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader On 5/2/07, john robinson [EMAIL PROTECTED] wrote: Hello all - I'm using the TextArea component in Flash 8. I need to give the component a border that is 1 pixel wide. I've found that using setStyle(borderStyle, solid) gives me a solid border but it is wider than I need. Can anyone give me a hint as to how to change the width of the border? Thanks! John ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Re: SendAndLoad
import mx.utils.Delegate; var sendObj:LoadVars = new LoadVars(); sendObj.variable = value; sendObj.sendAndLoad(server_side.extension, sendObj, POST); sendObj.onData = Delegate.create(this, onReceiveData); function onReceiveData (string:String):Void { //do something } On 4/30/07, Helmut Granda [EMAIL PROTECTED] wrote: bounce... On 4/27/07, Helmut Granda [EMAIL PROTECTED] wrote: How long does the server waits before it returns an error message? Say I sent 40 variables to the server and the server receives the variables but doesn't process them correctly so it just hangs there, does flash has a time limit to wait for a response before spitting out an error message? TIA ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com