ActionScript 3.0 :: Cannot Display Source Code At This Location
Nov 19, 2010
Here's a sample code I tried to create an instance via AS:
PHP Code:
var a:MovieClip = new ball();a.name = "test";addChild(a);a.x = 200;a.y = 200;trace(a);trace(a.name);
It works fine, the ball shows up on the stage. Nothing's wrong with it until I try to debug (Ctrl + Shift+ Enter) to understand it clearer and here's what I got"
Code:
Cannot display source code at this location after the line
PHPCode:TypeError: Error #1009: Cannot access a property or method of a null object reference. at sound$iinit()[sound::sound:2]Cannot display source code at this location.
I am putting together a presentation on flex for adobe user group that specialize in coldfusion. In my example I would like to display the text of the cfc being called from the webservice tag in my flex application. Is there a simple way to load the actual text for the cfc instead of the html that coldfusion is passing back to my URLloader variable?
I am new in flash but because I was programmer I could learn action script quickly but I need some professional source code and example to reinforce my infrastructure in flash so could you please introduce me a good place for download or see these sources?(I need to expand my exprience throught these kind of sources )
I need to find a way to pull the source code from an HTMLLoader object.I can't use URLLoader because the user needs to see what's on the page... is there a way I can do that? I've gone through the docs for HTMLLoader, but can't seem to find anything that would let me natively do that.
I think i must be missing something very basic about packages and classes. I am often downloading source code from people who offer there source code on the internet. I think this is a good way to look at what people are doing and try to understand the code. Ideally I want to see the program in a .fla, see it in action when I "ctrl enter" and play with the code to change some things and learn a bit.
The thing is it always seems to be just .as files with public and private package/class code and never an actual .fla with the actual program. This is probably a really stupid question but is there a reason for this?
Does anyone know of an online tool for color coding AS3 syntax for display in HTML? It's for a portfolio page and I would like to show my source code, but actually have it color coded properly in the HTML.
Where do you put your code in flash? Do you put it all on the main timeline? Do you put in on the objects ? Where is the best place and why ? I followed a few tutorials where all of the code was on a layer in the main timeline (for arrangement). I kind of liked that but as I advanced in flash I started having problems with specifying the hole path for every movie clip (sometimes 7,8 embeded movieclips). I find it much more easier to just put the code on the movie clip itself. What is your method and why?
I can code things fine myself but I've never used anyone elses code components to build something. I need to make a magazine that has a page fli effect and someone pointed me to Rubens flex book component (I'm assuming I can use it with flash). I've downloaded the zip file but I'm not sure how to actually start making my book. Everything is in different folders, because I assume they all are interlinked and are specificied with their paths within their classes.
I'm thinking I need to make a fla and then a document class and link that to the fla. But what do I put in the document class?
I created a Jing video to describe my problem. In short, I'm not sure how external AS3 scripts are supposed to referenced, though I did get it to work in AS2 years ago.
Flash components (such as CheckBox, ComboBox, ScrollPanel and the like) are tremendously buggy.As an average, for every hour of normal coding with ActionScript, I spend 3 extra hours designing workarounds, tweaks and hacks to fix unexpected behaviors due to bugs in the components (when I don't use components, it is just 1 hour of extra work designing workaround,tweaks and hacks to fix unexpected behavior due to bugs in the flash player and/or AIR runtime for every hour of normal work).As far as I know the components(runtime) behavior is entirely coded in ActionScript, and searching my hard disk I've found what seem to be the source code in places such as
C:Program Files (x86)AdobeAdobe Flash CS5CommonConfigurationComponent SourceActionScript 3.0.For example, source code for the classes belonging to the fl.controls package appears to be located at
So I thought I may have a look at that source code and see if I could be able to find the source of some particular issue and maybe even correct it.I know the risks.But after modifying,for example,ComboBox.as in the abovementioned folder, simply adding some dummy trace()s just to see if it worked, it doesn't seem to work. I created a fla file, placed a ComboBox and tested it, but I cannot see the trace printout I added. I did "delete ASO files" but nothing changed.So how do I tell Flash to recompile the components?
Does anyone know where I can get a hold of the FlexMonkium source code? I can checkout the FlexMonkey source but I cannot seem to locate the FlexMonkium source.
Please is there any open source solution that can help me to secure the source code of a project that is developed by too many developers from being copied of stolen by the team member?My Boss asked me to find a solution that put all the project in the server and allow all the developers to develop on the server from their computers, is this possible?
Or if there isn't any, does anyone have source code or thoery on how to make a diagonal wall for an object to bounce off of? I have ideas, but I'm not sure if they are as efficient as some other ideas may be.
What is the best way to protect the source code in a .as file? Right now if you access the .as in a web browser the source code is displayed. The problem is that when the .swf file is loaded on the client's machine, so is the .as file.
I would like to display an Image using a Bitmap as source. I've looked at many websites and most suggest something akin to this but somehow it still doesn't work....img1 works fine... But img2 doesn't load for some reason.
private function onComplete(event:Event):void{ bytes = event.target.data; img1.source = _bytes; /*this last bit works*/[code]....
Does Adobe had releases the source code for the components that comes with Flash CS4 (fl.controls.*). If not, is there any way to use the Flash component library with another IDE like FlashDevelop for code and compile the flash applications.
I'm currently working on a Java/Flex project and I'm looking for a way to generate some parts of my Actionscript code from my Java files. One of the goal is to generate the AS valueObjects from the JAVA transferObject as well as some AS code to access the serverside function asynchronous.And other important point is that I want to be independent of some IDE. The code generation should run from Maven or Ant and take the Java source code as input.I looked a little bit around and found stuff like SpringROO, Groovy-GRAM, AST in eclipse,..
I converted a .swf file into .fla file using Sothink SWF Decompiler. I can open the file with Adobe Flash Professional CS5, but I cant see the source code. The only thing that I see is the timeline layers. I want to change the background picture of the Flash and save it as .swf.
doing a work in flex, using actionscript 3, and I need to get the html source code of a page is that possible??And then select some especific info from that code. (But this is another problem I have to figure ir out )
need that the application will display contents that location on a server on the web.I have several html documents that locate on a secure server. I need that the application displays those pages (like a browser) sow If I'll change the html documents on the server, the application will display the new changed pages.I need that the html documents and the data they contain will not be embedded on the application but just display by the application.