> Firebug is a great tool to debug the "traditional" javascript via > <script></script>, I want to know if it can debug the code in a flash As far as I know, it is not possible to debug Flash code using the Script panel. But you can log to the Console panel using following code:
import flash.external.ExternalInterface; ExternalInterface.call( "console.log" , "Hello from Flash!"); See an example here: http://labs.findsubstance.com/2008/02/26/firebugs-console-log-flash-debugging-made-easy/ > I can use ie8 developer tools when I was using ie8, but firefox is my > favorite browser, so I want to finish this job with the help of > firebug. I think this is great idea for a Firebug extension. Honza On Sep 8, 4:25 am, hookits <[email protected]> wrote: > hi, all. > > Firebug is a great tool to debug the "traditional" javascript via > <script></script>, I want to know if it can debug the code in a flash > file like: > > package { > import flash.display.Sprite; > import flash.external.ExternalInterface; > > public class jsalert extends Sprite > { > public function jsalert() > { > var fun:String = "alert('hi, i am from the swf > file')"; > flash.external.ExternalInterface.call("eval", fun); > } > } > > } > > I can use ie8 developer tools when I was using ie8, but firefox is my > favorite browser, so I want to finish this job with the help of > firebug. > > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/firebug?hl=en -~----------~----~----~----~------~----~------~--~---
