Questions tagged [displayobject]
224 questions
1
vote
0 answers
Performance get bad when mouseChildren is true with flash direct mode in browser IE8 ~ 10
I have encountered a strange condition which produces bad performance with our DisplayObjects.
Here is the situation:
We use Stage3D and direct mode for our 3D Flash Web Gaming Project.
We use CS6 to build our GUIs for this project. In (and only…

陳龍進
- 11
- 2
1
vote
2 answers
Actionscript: Apply click event on parent Sprite
I'm having difficulties with click event after adding some child :Loader instances in it.
var wr:Sprite=new Sprite();
stage.addChild(wr); …

Somebody
- 9,316
- 26
- 94
- 142
1
vote
1 answer
Put something on top of the stagewebview with flash builder 4.6
I'm using stagewebview > Flash Builder 4.6
I have a stagewebview and I load an url in it. I want to show sometimes a slide panel on top of the stagewebview. I tried it, but the panel is always behind the stagewebview. I know that stagewebview isn't…

A.Vila
- 1,456
- 4
- 21
- 32
1
vote
0 answers
Grab/copy/convert to variable: Google translated text (write to other page) client side
Primarily need to understand how to manipulate the displayed translated text, using JavaScript, in order to convert it to usable text.
I'm creating a 3 box translation system:
source text-->translated text-->source language
This will allow English…

Ace.....
- 105
- 1
- 10
1
vote
0 answers
flex : Bitmapdata.draw on a VGroup is printing blank
I'm looking to draw a VGroup (that contains several elements like other groups and images) into a BitmapData, then to encode it into a ByteArray and to send this via a POST.
I'm using widgets, lets say my VGroup is built by a widget A and I get it…

adil02
- 61
- 1
- 1
- 3
1
vote
1 answer
AS3 - Should I add all objects to the stage, or just the one's on screen?
In actionscript3 (cs5.5 or flashdevelop), what is the best practice for managing off-screen display objects?
Option A: While loading the level, place all objects on the stage (even the ones way waaay offscreen)
or
Option B: Keep track of which…

Adrian Seeley
- 2,262
- 2
- 29
- 37
1
vote
0 answers
AS3: Saving a sprite to a file and reading it back?
I'm using Actionscript 3 and I need to be able to write a vector graphic sprite to a file and then load it back later. Normally I'd just serialize it in a ByteArray, but apparently you can't serialize a sprite. But it's just data, so there's got…

Tricky Widget
- 117
- 1
- 2
- 11
1
vote
1 answer
Flash AS3 - DisplayObject Argument Error - Trying to Remove and Add Loaded Content
I am working with flash and as3 to try and get a photo loader/viewer/upload tool built. I am using file reference to handle the browse/load/upload functions. My current stage has 2 loader boxes that i load the user selected image into. I need to be…

Lauren Tilter
- 81
- 1
- 2
1
vote
4 answers
Is there a way to export a DisplayObject's vector data?
Flex gives the ability to export a display object as a bitmap as follows:
var bitmapDataBuffer:BitmapData = new BitmapData ( displayObject.width, displayObject.height, false);
bitmapDataBuffer.draw ( displayObject,…

mweiss
- 1,363
- 7
- 14
0
votes
2 answers
Clone an Image in Flex 4.6
For the past few hours I have been trying to clone an image in Flex (using the Spark Components, but also trying to convert between Bitmap and BitmapImage).
What I am trying exactly is to create a simple painting application which keeps track of…

Danny Nophut
- 60
- 5
0
votes
2 answers
The supplied DisplayObject must be a child of the caller
I've a container called mc, inside of him I generate a grid of movieclips in order to make a wall of options. When I select one of this option, this message appears:
Error #2025: The supplied DisplayObject must be a child of the
caller..
The…

m4g4bu
- 457
- 2
- 7
- 19
0
votes
1 answer
How to deal with Error #2025: The supplied DisplayObject must be a child of the caller
private var _hud:HUDc = new HUDc();
private function someMethod():void
{
if(stage.contains(_hud))
{
stage.removeChild(_hud);
}
}
Where HUDc extends MovieClip…

MikeW
- 4,749
- 9
- 42
- 83
0
votes
1 answer
file_exists() returns false, even for paths that do exist
OK programmers, I'd like to figure this one out before the New Year. I want to display a photo only if it exists, otherwise use a default photo. Here is my code that always correctly returns "File Exists"

DoubleA
- 736
- 1
- 7
- 23
0
votes
2 answers
replacing a display object with a new display object in Flash
I'm creating a Flash movie that loads some XML containing details of some text and a image URL, that needs to replace a existing MovieClip in a Flash movie.
Is there a way in Flash to replace a existing MovieClip or to update it so that the…

StephenAdams
- 521
- 2
- 9
- 26
0
votes
1 answer
How to Cast the DisplayObject into MediaElement in as3?
Is it possible to Cast the DisplayObject into MediaElement.Am trying to add the DisplayObject into the MediaContainer, but I got the following error:
-1067: Implicit coercion of a value of type flash.display:Loader to an unrelated type…

Mercy
- 1,862
- 9
- 39
- 75