00:00
00:00
Newgrounds Background Image Theme

Crakie20 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Flash Develop 'Build Failed' :( ?

541 Views | 7 Replies
New Topic Respond to this Topic

Flash Develop 'Build Failed' :( ? 2014-11-29 10:05:54


I've wrote a simple piece of code that draws a circle. But low and behold Flash Develop can't even. I've tested my code out in the flash built-in IDE and it works.

My Code:

package myTestPackage
{
	/**
	 * @author Graham Long
	 */
	
	import flash.display.Sprite;
	import flash.events.Event;
	
	public class Main extends Sprite 
	{
		var Circle:Sprite = new Sprite;
		Circle.graphics.beginFill(0);
		Circle.graphics.drawCircle(480, 270, 50);
		addChild(Circle);
	}	
}

Flash Develop 'Build Failed' :( ?

Response to Flash Develop 'Build Failed' :( ? 2014-11-29 10:43:34


At 11/29/14 10:05 AM, GrahamNG wrote: I've wrote a simple piece of code that draws a circle. But low and behold Flash Develop can't even. I've tested my code out in the flash built-in IDE and it works.

Lowercase circle and try again. Sometimes it just happens randomly and you have to restart FD.

Response to Flash Develop 'Build Failed' :( ? 2014-11-30 03:23:27


Just restarted and am getting these. Wat.

Flash Develop 'Build Failed' :( ?

Response to Flash Develop 'Build Failed' :( ? 2014-11-30 06:45:05


At 11/30/14 03:23 AM, GrahamNG wrote: Just restarted and am getting these. Wat.

new Sprite()


- Matt, Rustyarcade.com

Response to Flash Develop 'Build Failed' :( ? 2014-11-30 10:48:33


At 11/30/14 06:45 AM, Rustygames wrote: new Sprite()

The parenthesis aren't required when creating new objects that don't need any values passed to the constructor.

At 11/30/14 03:23 AM, GrahamNG wrote: Just restarted and am getting these. Wat.

You don't have that "circle code" in a function.

Response to Flash Develop 'Build Failed' :( ? 2014-11-30 10:56:00


You have to put the codes in a function

public class Main extends Sprite
{
     public function AddCircle():void
     {
        
		var Circle:Sprite = new Sprite;
		Circle.graphics.beginFill(0);
		Circle.graphics.drawCircle(480, 270, 50);
		addChild(Circle);
     }
}

I can't believe nobody notices that.

Response to Flash Develop 'Build Failed' :( ? 2014-11-30 11:23:21


At 11/30/14 10:56 AM, Knight52 wrote: I can't believe nobody notices that.

It took me a few re-reads to spot it; little things like that can be easy to miss.

Response to Flash Develop 'Build Failed' :( ? 2014-12-01 08:50:51


At 11/30/14 10:48 AM, Diki wrote:
At 11/30/14 06:45 AM, Rustygames wrote: new Sprite()
The parenthesis aren't required when creating new objects that don't need any values passed to the constructor.

Holy shit, I never knew that! Don't think I'll be omitting them either way, but it's certainly an interesting fact!


At 11/30/14 03:23 AM, GrahamNG wrote: Just restarted and am getting these. Wat.
You don't have that "circle code" in a function.

Well spotted


- Matt, Rustyarcade.com