Debug Watch Panel in AS3 projects?
Is it just me, or does it not make sense that only ActionScript projects <= 2.0 get a proper "Watch" panel in which to specify watched expressions during ActionScript debugging? Seems to me that it should have been a natural assumtion we'd get something like this in Flash projects done in AS 3.0 by now. Does anyone on the forums know why this has yet to be implemented? Flash Builder has had this from the get-go, but I understand that this may likely be because that toolset is very developer-heavy and Flash CSx Professional is more of a designer-animation toolset.
But still, does anyone else find it annoying for large complex Flash projects done in CSx requires you to twirl down the list of ALL the variables and then all the nested variables in complex AS 3.0 objects just to find the one thing you are interested in seeing? Then having to do it all over again once you step over your breakpoints and try to observe changes to variables? This is frustrating to the max! I've made a request via the features wishlist so hopefully this will get implemented in some version.
Sorry, just venting.
Thanks for responding positively to this idea. I'm sure hard-core coders will appreciate having this as a time-saving measure to the AS3 development process in Flash Pro.
Similar Messages
-
Debugging AS3 - watch panel?
Hi,
I'm pretty new to AS3 so sorry if I ask anything dumb!
Basically I'm trying to debug a game I'm developing, I always used
the 'watch' panel to track the value of variables as the movie
plays, but I can't find it in AS3. All I have is a 'variables'
panel with absolutely everything in it which doesn't make it
particularly usable. I must be missing something, but I can't see
what!
Regards
KevinCan you ensure that the SWF your are debugging is a release SWF?
I've recently fixed a bug (which is not publicly available) where the same stacktrace was visible:
A release SWF loads a debug SWF via SWFLoader/ModuleLoader, etc.
Making sure the main container SWF is a debug one. That should fix this problem.
(You can check whether a SWF is debug or not by opening it in nemo440 (google for that) and looking for debugfile / debugline opcodes.)
Let me know how it works out.
Cheers,
Anirudh -
Loading an AS2 Swf into an AS3 project
I have a need to be able to load legacy AS2 SWF's into a new
AS3 project. I know that this is not readily possible, because you
can only communicate between the two via the LocalConnection class.
So, what I have done is to create an AS2 proxy SWF. This SWF will
handle the loading of all legacy SWF's and act as a middleman to
pass the function calls between the pre-compiled SWF and the new
SWF using the LocalConnection class. The new SWF also needs to be
able to load AS3 SWF's, though.
Because of this, I have the need to detect the AS version of
the loaded SWF. If 1 or 2, then change the source to the
AS2Proxy.swf, if 3 then simply load it.
I have written the following code. My problem comes in when
the init event fires. Regardless of the compiled version of the
loaded SWF, it always traces 3 as the AS version.Alright, I solved this problem, only to come up with many
more.
To solve this problem, I needed to point to the loaderInfo
object of the UILoader's content. So:
simulation.content.loaderInfo.actionScriptVersion.
Now the proxy loads correctly, but I start getting errors
immediately. Let me paste some code to show the next steps:
First off. I immediately receive a StatusEvent error, though
the path gets sent into the proxy and loads correctly.
Next, when the complete event fires in the AS2 SWF - it sends
a completion back up to let the AS3 SWF know that it finished (and
any handling that needs to happen at that point.) I receive the
following error:
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
flash.net.LocalConnection was unable to invoke callback loadSwf.
error=ReferenceError: Error #1069: Property loadSwf not found on
com.applied.flash.events.AS2Connect and there is no default
value. -
Loading an AS2 swf into a AS3 project?
I have an AS2 swf that is merely an image gallery made with a few components. I tried loading this swf into an AS3 project I am working on and it seems to load in and play properly in my AS3 file. I'm not looking to communicate with the AS2 swf with AS3 code, I just want to display it and be able to use the component buttons in the AS2 file that play or stop the images from being played. I was wondering if using this will cause any potential issues in my AS3 project. It seems to render and work fine on my machine. Thanks
as2 swfs will play without problem when loaded into an as3 swf.
-
Other problems with loading Captivate files into Flash AS3 project
I have a Captivate file done with Captivate 3, published to
Flash player 9 that is being loaded into Flash AS3. The captivate
is a simple recording of some mouse clicks in a browser. I am
displaying the playbar along the bottom, and its buttons all work
fine except for the progress bar, where you can drag the knob and
scrub back & forth in your presentation.
This progress bar is not working as it should. I see the
mouse cursor change to a hand, but when I click I cannot drag the
knob to control the progress bar. The other buttons in the playbar
do work (replay, pause, play, back, forward).
This is a unique problem in that it is only happening when
viewed in IE (7) when loaded into my Flash AS3 project. When viewed
in Firefox in my project, or as a standalone SWF, or as a SWF
simply embedded onto a plain HTML page, it works just fine.
Does anybody have any insight?
Another thing I notice with loading Captivate files with AS3
is the the amount of output messages it displays. Rather annoying
(unless this is a "feature" I've yet to be aware of - heh)Hi,
I know exactly how you feel, there is simple answer; replace
Captivate for Camtasia Studio 5 at techsmith.com. The weight on
those shoulders will be gone! You'll smile more, be more
socialable. One Happy Person.
I am very happy person ;)
Kind Regards,
Boxing Boom -
Hi,
I am developing a Flash game using as3, I chose flex Builder with an AS3 project. Now I am thinking that if selecting the project to be a flex project instead of as3 project I would have a lot of flex functionality like a swf loader,preloaders and the popup manager etc. The graphic components would obviously have been made in flash and used through the swc (avoiding the heavy mxml components).
Need to know what other developers think of this approach.You must include in library:
${FRAMEWORKS}/locale/{locale} -
I want to make it a AS3 project from AS2
I am working on a flash file made with AS 1&2, with lots
of layers and library items. I want to make it a AS3 project. How
should I go about this?First, change as much of the code as you can to be AS3 code.
Then, change your publish settings to AS3. Then, run the file and
fix all of the errors that arise... the first list of errors is not
likely all of them. Errors are often revealed in stages... as one
is fixed, another is detected.
Another option is to start from scratch. This may be better
if you have no familiarity with AS3--you will learn about it in the
process. You can build it gradually and test as you go rather than
starting with a potential flock of code issues. -
AS3 project development into Flashbuilder
I have been using Flex3 for mxml flex RIA development and I do pure AS3 development with Flash CS3 resources, which in most cases I code in Flex Builder but test and compile in Flash AS3. Twisted I know but the reasons are simple:
1. I can't access the fl components packages in Flex Builder easily (I have heard of ways to do so but having had a chance to research).
2. I am often using resources from the library in a .fla file
3. Clients in most cases have Flash but not Flex and expect a FLA
4. I also use systems like SWFAddress so I need to compile to a .swf and test live or test the .swf in a standalone player
Request:
So firstly I know flex has its own components that are part of the framework but why not give us Developers easy access to the fl flash components (hence Flash Builder)?
There needs to be an easy way of importing and using a FLA based AS3 project in Flash Builder. I heard about a Flex component that does that but why not at least give access to the library content off a FLA?
I noticed it expects an AS3 project to be set out as Flex Builder does, using an application .as file named as that project. In the launch configuration you need to be able to browse and set your own application .as (that maybe the document class from the FLA). This would help the above request by letting users export/test in their current file/folder structure.
Just my intial feedback.
Cheers
Elliot RockAlso, the best (and most official) way to suggest features is to log an enhancement request in the public Flex bug base at http://bugs.adobe.com/flex/.
You may want to search to see if these have already been suggested and if so, vote on the issue. If not, file a new enhancement request and encourage people to vote on it. -
Hi I am an experienced AS3 developer working on a Mac, been working in the CS4 IDE and using Textmate for html, PHP etc. I am very keen to use Flash Builder IDE to build my AS3 projects. I have been able to create actionscript projects but when I try to incorporate FLA and the library assets in FLAs I get stuck.The way I want to work is to use CS4 for creating graphics, timeline animation, so when I run the project it compiles the fla and scripts as if I was in CS4 ide.
So my question: Is there any good tutorials or sites that can guide me thru setting up an Actionscript project in Flash Builder and manipulation of stage, timeline and library assets from an FLA?Firstly flashbuilder doesn't use a timeline, it can use assets in a CS4 compiled flash file, but knows nothing about the fla format. A good starting point would probably be to down load the tour deflex which has a lot of flex examples with the source.
http://www.adobe.com/devnet/flex/tourdeflex/
there is also the cookbook page
http://www.adobe.com/devnet/logged_in/esullivan_cookbook_20.html
this is a great site for resources when you run into problems
http://blog.flexexamples.com/
Adobe also have a lot of video tutorials which are great to get an idea of just how Builder works.
David. -
There are some strange problems when i used swc files in my as3 project
Hello everyone,
My development environment: fdk4.0, flash cs5.5, I publish fla file by using flash cs5.5, publish setting is fp version :10.0&10.1 ->swc. I imported swc files to my as3 project and complied them by using flex sdk4.0. When i run my project,fp was crash. when i republished on fp 10.2, the project works. Is there any reason?
another strange problem, for example a MovieClip's aslink named "A" in swc, it has a textfield named "subText". I write code like below:
var mc:A = new A();
mc.subText.text = "test";
when mc called "subText" , fp throws null property error, it can't find subText.. very small number of movieclips have this problem, I sloved this by duplicating a new one and rename it.
but i don't know why ?
thank you for your reply.I should have figured that out from your original post. I think there is a possibility that your bookmarks/history database (places.sqlite) has a corrupted record. Rather than take drastic action on that immediately, could you do a test? The test is to exit Firefox, rename your existing database, and restart Firefox. Firefox should import your last bookmarks backup. You then could check whether the problem remains or whether you got a clean restore of bookmarks. After the test, assuming you prefer to retain your history, you could undo the procedure and try restoring your bookmark backup into the database to see whether that overwrites the problem record. If not, then we would go back to possible drastic action.
'''Test procedure''':
Open your current Firefox settings (AKA Firefox profile) folder using
Help > Troubleshooting Information > "Show Folder" button
Switch back to Firefox and Exit
Pause while Firefox finishes its cleanup, then rename '''places.sqlite''' to something like places_20130614.sqlite. Keep this window open.
Restart Firefox. By design, Firefox should import your last automatic bookmark backup.
If you return to the Library dialog, how does it look?
'''To reverse the test''' (but preserve a backup of your history/bookmark database):
Exit Firefox
Delete the newly created places.sqlite file
Right-click copy and paste the places_20130614.sqlite and rename the copy to places.sqlite
Restart Firefox and open the Library dialog. Should look like it did a few minutes ago before any changes.
''If the test showed no corruption,'' try to restore your last bookmarks backup. The procedure is described in this article: [[Restore bookmarks from backup or move them to another computer]].
Does any of that get us closer to a solution? -
Pure AS3 Project unable to resolve resource bundle
I've been working on a pure AS3 project in Flash Builder and all has been going just fine. All of a sudden, I started getting errors such as:
Unable to resolve resource bundle "core" for locale "en_US". Player Unknown Flex Problem
What in the heck did I likely do? Any hints welcome.I jut saw the posting today.
Place your local folder in application root
In project properties : Flex Compiler Argument : additional compiler argument : -source-path ../locale/{locale}
add this. -
Using Consumer Object in an AS3 Project
Hello,
I'm currently testing BlazeDS and especially Data Push, on
swf side, everything is fine when i do my tests with a Flex project
( with a mxml file ) but i'd like to use this feature in a pure AS3
project with no mxml
For a classical remoting use, everything is fine with
NetConnection and a Responder, but is there a way to handle
messages sended by server as a Consumer object (like in the mx
package of flex), but in a pure AS3 project ?You need to wrap the Ball in a UIComponent and then add it:
var ball:Ball = new Ball();
var uic:UIComponent = new UIComponent();
uic.addChild(ball);
this.addChild(uic);
If this post answers your question or helps, please mark it as such. -
Difficulty with running an AS3 project in a project landscape full HD 1920x1080
Hi,
I have been running successfully an AS3 project in the IDE using the flash player that is called during text a movie however the same file running as a projector will simply display a blank screen and do nothing.
This seems to happen only with a stage of that particular size 1920x1080 as the same file will work (cropped) at smaller stage size and of a different orientation.
Any ideas?I've had similar problems with PC and had to install drivers for the relevant devices. Not sure what the Mac equivalent is, but looking at the Android SDK docs is a good place to start as they have helped me to resolve connection to several devices in addition to allowing me to install a number of Google provided drivers.
G -
Can Watch Folder watch for After Effects project files?
I set up a watch folder in Media Encoder but it only appears to pick up or watch for video and audio files. is there a way to set it to watch for After Effects project folders?
No, just media files (movie files).
-
I have just bought x79a gd65 military class board but when i render any file on it my debug led panel shows temperature above 51, is this harmful for my board ...with normal msi bios setting i haven't done any oc on my board ....my processor is Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz, 3201 Mhz, 6 Core(s), 12 Logical Processor(s) bios ,Memory (RAM) 16.0 GB SMBIOS Version 2.7
You could look in the BIOS for a setting to disable mainboard LED control, but it may not disable that feature. Worth a try though.
Maybe you are looking for
-
MY colleague has a certain setting in Acrobat that allows him to keep the original file name when he converts documents from Word to PDF. Every time I convert Word, Acrobat overwrites the filename and names it "untitled.pdf". I would like to retain t
-
Screen image not fitting cleanly on screen
I have recently bought a new Iphone 3GS. For one week everything worked perfectly. Now my calendar/notes/contacts/email all work but are "just" off centre and I lose the time etc omn top oif the screen. Somehow the screen size has been altered and I
-
Intel imac G5, Safari and Godaddy problems
I have an intel imac G5 with OS 10.4.5 with Safari 2.0.3 and can not access my GoDaddy hosted website directly or with forwarding (on or off)... I can however access the GoDaddy hosted website with my imac G5 (non-intel) with the same version Mac OS
-
Archiving functionality with financial modules
Hi, When going through the concepts of archive and purge with oracle ebs , i found that we donot have archive functionality with 1. oracle payables 2.Oracle Cost Management 3.Order Management Could some one tell me why we donot archive data from thes
-
MiniSAP WAS 6.10 and JAVA 1.4.1 (SUSE Linux 9.0)
Hello all! I have some problems with the MiniSAP installation under SUSE Linux 9.0. I use the MiniSAP WAS 6.10, SAP DB 7.3 and the SAP Gui for the JE 6.10. The Problem comes with the Java 1.4.1. In the documentation from the SAP CDs is the version IB