Questions tagged [displayobject]
224 questions
3
votes
1 answer
how to display r console in matlab
i am running a R script in MATLAB environment using the "system" command as described in:
How to Run a R script from Matlab
my R script takes too long to proceed. when i use the Rstudio itself, the progress is displayed in the r console. but i am…

Solmaz
- 25
- 3
3
votes
3 answers
How do I implement the toString() method for an ArrayStack?
I want to display a list of orders of type ArrayQueue
The class Order has an ArrayStack as one of its attributes. I overrode the toString() method in the class Order, but how do I override it in the ArrayStack class? Because this…

helloworld
- 173
- 1
- 2
- 8
3
votes
1 answer
getCurrentSizeRange() on Android earlier than 4.1
On Android API 16 (4.1 Jelly Bean) and later we have the method getCurrentSizeRange to get the range of width and height. How do I get the size range on versions earlier than 4.1?
I tried to look into the source code to see how the range is…

500865
- 6,920
- 7
- 44
- 87
3
votes
2 answers
Why does obj.getBounds().height give a larger height than obj.height?
I'm new to Flash and ActionScript, but managing quite nicely. One thing that is continuously getting in my way are the width and height properties of DisplayObject(Container)s. I'm finally starting to get my head around them and learned that the…

TC.
- 4,133
- 3
- 31
- 33
3
votes
0 answers
Detect display state using Hdmi cable
I'm looking for a way to detect that the screen attached to the HDMI out has been turned off, or is in sleep mode, either through a command-line tool or a Java app. So far, I've figured out how to detect whether there is something connected by…

Aj_31
- 187
- 2
- 6
3
votes
1 answer
display.newImage() vs display.newImageRect() in corona
What is the difference between display.newImage() and display.newImageRect()?
Which one is better to use?

Arun jalota
- 252
- 2
- 14
3
votes
1 answer
Only Showing DIV When Passed Scroll Position Issue
I have found out how to show divs when you reach past a scroll position. The JQuery code I am using to do so is this:
$(window).scroll(function() {
if ($(this).scrollTop() > 75) {
$("#ddmenubg2:hidden").fadeIn('slow');
}
else {
…

user1658560
- 502
- 1
- 6
- 16
3
votes
2 answers
Displaying image from random number
I am making an application (in corona) that will show a image from a folder. There is 50 images in the folder, all name with "number.jpg" (1 to 50)
I am using currently this one to get the number
--populating table with 50 numbers (1-50)
for i…

Eyrik
- 127
- 3
- 13
3
votes
3 answers
JavaScript changing display using hashtag
I'm very new to JS and have a problem with something that looks very simple.
I am trying to make a code so that if the page loads with a # at the end of the url, eg. www.example.com#hashtag, then a div will display, if it doesn't have a # the div…

Ellery
- 179
- 1
- 9
3
votes
2 answers
Shape, Sprite, MovieClip and other display objects: when to use?
there's a large ammount of display objects in flash.display package. It's not clear for me in what situation I should use Shape, Sprite or MovieClip. What is the pro and contras in using each of them?
Thank you in advance!!

Eugeny89
- 3,797
- 7
- 51
- 98
2
votes
1 answer
In AS3, why do mouse events seem to skip "root" and go to "stage"?
Run the following code, once with block.mouseEnabled = true, and again with block.mouseEnabled = false, clicking the block once during each run.
var block:Sprite = new Sprite();
block.name =…

Triynko
- 18,766
- 21
- 107
- 173
2
votes
1 answer
Making Starling FrameWork to work with Classes that uses native DisplayObject
I'm trying to use Greensock LoaderMax on a Starling Framework project, but since Starling have a lots of its own class, how I can make it work with other classes that is using the native class?
Exp:
package
{
import flash.display.Sprite;
…

Hwang
- 502
- 1
- 12
- 32
2
votes
2 answers
Separating and combining ImageDisplay layers
Is it possible in DM-script to take an ImageDisplay containing multiple layers and separate those layers into different image windows? And conversely, is it possible to overlay separate displays to form one multi-layer display through script?
My…

Michael Ngo
- 65
- 4
2
votes
1 answer
How do I direct console output to a pyqt5 plainTextEdit widget with Python?
I am trying to display console output of a python script in a QplainTextEdit widget in PyQt5.
I am getting this error:
TypeError: Error when calling the metaclass bases
metaclass conflict: the metaclass of a derived class must be a…

ironmantis7x
- 807
- 2
- 23
- 58
2
votes
4 answers
Prevent height change of a DisplayObject
Is there a way to prevent the automatic change of the height property of a DisplayObject? It automatically resizes to match content, though my swf file is 32 pixels height. The code below can show prove of this, first frame enemy.height is 32 but…

Jorjon
- 5,316
- 1
- 41
- 58