Questions tagged [displayobject]

224 questions
2
votes
3 answers

Removing Parent in AS3: Does this free the memory used by all the children?

I'm making a rather large flash project and so I'm concerned about memory usage. At the end of each section of the application I remove the overarching parent element that holds the content. Although this remove the parent, does this also free up…
Dan Hanly
  • 7,829
  • 13
  • 73
  • 134
2
votes
2 answers

Subview displays behind everything, after having put an adbannerview

I have a main View and a subView. Everything worked perfectly: I click on a button "Open" on the View, that displays the subView above everything, and I can close the subView. I decided to add an adBannerView at the bottom of my app. When I run the…
Jeanne Merle
  • 37
  • 1
  • 1
  • 6
2
votes
1 answer

How to get skew values from displayObject transform?

There is no straight methods to get skew values in DisplayObject. Please, help me to get skewX and skewY values from transformation matrix of DisplayObject - I am forgot all the linear algebra stuff... Will be grateful for any help.
Lloyd18
  • 1,679
  • 1
  • 18
  • 28
2
votes
1 answer

Overlay flash displayobject on Starling Stage3D

I'm using Starling to build a space shooter game in ActionScript, and I'd like to draw simple lasers using the normal graphics primitives that Flash provides. How can I set the translation matrix for Flash to be the same as for any given Starling…
frodeborli
  • 1,537
  • 1
  • 21
  • 30
2
votes
1 answer

AS3EnterFrame event propagation understanding issue

I have trouble understanding the path the EnterFrame Event takes for Propagation. I understand that Events have 3 Phases: Capturing, AtTarget und Bubbling. When I look at the flash.events.Event class I see that Event does not Bubble. If I add an…
2
votes
5 answers

Getting error when using the removeChild method

Happy Pre-Halloween everyone :) My issue today is a DisplayObject error I'm getting when remove a child object. I have code that will launch(addChild) a video container and video controls as well as add a close button. Now the close button works…
Leon Gaban
  • 36,509
  • 115
  • 332
  • 529
2
votes
2 answers

Identify MovieClip in AS3 among DisplayObjectContainer

in ActionScript 3, if I loop through the children of a movie clip, it will return a DisplayObjectContainer, which is a list of DisplayObjects. However, the AS3 typeof cannot identify MovieClip as MovieClip is now an object, instead of a data type.…
Raptor
  • 53,206
  • 45
  • 230
  • 366
2
votes
2 answers

How to add custom font in Corona for Android?

I just tried everthing on the forums but I couldn't add my custom font to system. Here's what I have done: I made sure that family name and font name are same with Typelight program. Then I just change the name of the file in the root directory and…
Figen Güngör
  • 12,169
  • 14
  • 66
  • 108
2
votes
1 answer

No layer concept in ActionScript 3.0?! What happens to Flash IDE layers, then?

I was trying to access the layers by their names dynamically via AS3. But then I just found out there's nothing on layers in AS3 API (or I didn't search enough). If that's true, naming layers at IDE is totally meaningless to the code? What happens?…
user1869316
1
vote
2 answers

In Actionscript, is there a way to create a copy or cached version of a Loader?

I'm loading an SWF animation and want to display it in multiple places concurrently, but the only way I could figure out how to do that is to load it every time I display it, as seen here: private function playSounds():void { for (var i:Number =…
superadamwo
  • 63
  • 1
  • 1
  • 6
1
vote
1 answer

actionscript bitmap draw with transform.matrix and rectangle.bounds

I am trying to get a partial bitmap from an object but I am getting different values from: object.transform.matrix.tx and object.transform.matrix.ty v/s object.getBounds(object.parent).x and object.getBounds(object.parent).y I am not sure which…
Ankit
  • 3,878
  • 5
  • 35
  • 51
1
vote
1 answer

How can I show object info and not get [object Object] output?

I've checked so many variations of why the object Object appears and can't seem to find a solution. I need to fill in the form and then show the filled information in the empty space beside. But as I said, I've tried many things and can't seem to…
Elizabeth
  • 53
  • 6
1
vote
5 answers

AS3 stage.addChild / stage.removeChild << Must be child of caller

If im usin function to add a mc to the stage like so: var myChild:MC= new MC(); function somefunc() { stage.addChild(myMC) } but when I try to remove the mc by: stage.removeChild(myMC) I get The supplied DisplayObject must be a child of the…
Ric
  • 13
  • 1
  • 1
  • 3
1
vote
1 answer

what's the most resources efficient way to take a screenshot of display object in as3

What's the most resources efficient way to take a screenshot of display object in as3? This is the code I am currently using: public static function img(o:DisplayObject,width:int,height:int):ByteArray { var b:BitmapData = new…
Atm
  • 183
  • 1
  • 10
1
vote
2 answers

Trying to display data fetched from database on a jsp page (I am using Struts 2 with Hibernate)

I am trying to display data from my database to a Jsp page using Hibernate with Struts 2. Although there is no error nothing gets displayed. I tried to find a solution from other posts but could not. This the action class. public class…
kanishk
  • 713
  • 4
  • 15
  • 31
1 2
3
14 15