Questions tagged [displayobject]
224 questions
0
votes
4 answers
Adding to Stage in ActionScript 3 from a .as file
Note: Yes, I know that similar questions have been asked before. However, after following the answers in such questions I'm still stuck and can't find a solution to my problem.
I'm having a problem which requires adding DisplayObjects to the Flash…

Anthony
- 25
- 1
- 11
0
votes
1 answer
Default Reference Point for Display Object in Corona
I am trying to understand those reference points in Corona. It is said that the default reference point is the center of the object, however the x position of center of the textObject isn't at 100 but 150 when I run this code:
local textObject =…

Figen Güngör
- 12,169
- 14
- 66
- 108
0
votes
1 answer
Starling AS3 -- How To Use Bitmap Objects in SWC
I'm trying to see how Starling could benefit the applications I build using as3. My knowledge thus far of Starling is that it only uses bitmap objects not symbol objects. How do I take a BitmapData class and create an starling Image out of it. …

Tim Lieberman
- 571
- 2
- 5
- 23
0
votes
2 answers
AS3 can't find the correct way to gotoAndStop a movieclip instance in as3
I have a movieclip "achtergrond" from my library which I put on stage with a function like this:
function set_game ()
{
oefNr = 4;
var bg:achtergrond = new achtergrond();
bg.x = 0;
bg.y = 0;
…

silvith
- 290
- 2
- 14
0
votes
1 answer
Actionscript : Add buttonmode in loaded image
I tried to add a button Mode to my loaded image.
This error was shown :
Error #1056: Cannot create property buttonMode on flash.display.Loader.
Any help?

ig.
- 15
- 1
- 1
- 8
0
votes
2 answers
Is there any benefit to removing the event parameter from event handlers if it's not used?
Is there any benefit to removing the event parameter from event handlers if it's not used? I have the following instance:
And the following code:
private function…

1.21 gigawatts
- 16,517
- 32
- 123
- 231
0
votes
2 answers
Getting a Specific Object from a Loader in Actionscript 3.0
I am learning ActionScript 3.0 and I am seeing this paradigm often:
package util
{
import flash.display.Sprite;
import flash.display.Bitmap;
import flash.display.Loader;
import flash.display.LoaderInfo;
import…
Scott
0
votes
1 answer
Corona masking, how to add 2 or more masks to display group
Hy all, i'm develope 1 little game both for android and iOS in Corona.
I need to set a mask to an image when users touch the group.
Here is my code:
local function eat( event )
if event.phase == "began" the
local mask =…

Arnold
- 273
- 1
- 11
0
votes
2 answers
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller
I've tried variations in the code below i.e. switching from stage to this.stage or even root.stage, but no luck.
The full error I get is:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at…

Nagra
- 1,529
- 3
- 15
- 25
0
votes
1 answer
using middleclass library with superclass
I try to do something like this:
require 'middleclass'
Button = class('Button',DisplayObject)
so in order to create some buttons that I want to be display objects...
myButton = Button()
But it does not work. It seems that DisplayObject isn't…

Sebastien Hoarau
- 76
- 4
0
votes
1 answer
Flex: DisplayObject Singleton
I want to display an Flex component in several different places through out the application. And it should be the same instance of the component, but not the copies.
So I think of making the Component as an Singleton.
But the problem is :
when I…

maoanz
- 151
- 1
- 5
- 15
0
votes
2 answers
Workarounds for setting the size of an empty display object?
I want to create an invisible drawing surface that sits over top of an image. This drawing surface would be in charge of taking mouse input and passing the coordinates along to a sprite that sits on the layer between the drawing surface and the…

Soviut
- 88,194
- 49
- 192
- 260
0
votes
1 answer
Get all frames from loaded swf in as3
I load external SWF with help MovieClipSWFLoader and add them to scene with addElement. So I know about frames total count and can navigate using nextFrame/prevFrame. I need to create panel with thumbnails which contains preview for each frame. How…

SoWa
- 314
- 4
- 12
0
votes
3 answers
invisible links in display:visible
been lurking a while but this is my first post. Please go easy on me! :-)
I've got a faq page set up in a table with a list of 'contents' and when the 'show' buttons are clicked the body becomes visible.
When the display:none tr is changed to…

NickW
- 141
- 1
- 6
0
votes
2 answers
Supplied DisplayObject must be a child of the caller
I get this error once in a while for a specific object. For some reason, this issue seems to start when I spawn 2 of this object instead of one. I basically have enemies that drops coins and one enemy drops 2. When I pick them up at the same time I…

oliboon
- 351
- 1
- 5
- 19