Questions tagged [displayobject]
224 questions
1
vote
3 answers
AS3 add a border to a displayobject
I know how to draw a rectangle and add it to a DisplayObjectContainer,
but do you see a simpler method to directly add a border to a DisplayObject?
DisplayObject don't seem to have addChild(), so I would have to add it on the parent, which is not…

Jimy
- 13
- 1
- 1
- 5
1
vote
1 answer
Updating multiple Labels with kivy
Hello i'm relatively new to python and kivy and I've been looking around but i cant quite find the answer, i'm trying to make a hub where I can display live data from my rasberry-pi. I made a clock widget using a Label, and it updates time, but when…

cakecrew
- 13
- 2
1
vote
0 answers
Google Apps Script Trigger: How to get timer time?
I need to get the timer time of a trigger to show it on a Google Sheet. However, I cannot find the detail.
var triggers = ScriptApp.getProjectTriggers();
for (var i = 0; i < triggers.length; i++) {
if (triggers[i].getEventType() ==…

Thomason FAN
- 11
- 2
1
vote
0 answers
How to display array & object using a single line of code in PHP?
This is the example of an Array & Object:
$LObj = [
0 => (object) [
0 => 1,
1 => 'a',
3 => 'str',
],
1 => (object) [
0 => 2,
…

Ray Macz
- 85
- 2
- 9
1
vote
1 answer
Moving movieclips across the stage on FrameEnter
I'm making an image gallery and I want to have a bunch of thumbnails on the bottom of the screen that smoothly slide from side to side when the mouse moves.
I'm working with a custom class for the container (Tiles) and a custom class for the…

Moshe
- 57,511
- 78
- 272
- 425
1
vote
1 answer
Actionscript rotation on 2 axis different from 1 axis
I have 2 DisplayObject, one containing the other like the code below:
var sprite1:Sprite = new Sprite();
sprite1.addChild(loader1); // assume that I have load picture on to loader1
loader1.rotationZ = 30;
sprite1.rotationZ = -30;
If I run the code…

ohm
- 43
- 3
- 9
1
vote
2 answers
Is there a way to check if DisplayObject A is a descendant of DisplayObject B?
I would like to be able to quickly check if a given DisplayObject is a descendant (not in the inheritance sense - ie. child, grandchild, great-grandchild, great-great-grandchild, etc.) of another DisplayObject.
There doesn't seem to be a native way…

hamishtaplin
- 1,679
- 5
- 18
- 27
1
vote
1 answer
lua corona - how to disable touch events widget.newScrollView
I have a widget.newScrollView component and a widget.newButton in front of it. Unfortunately when i click my button it also calls my ScrollView "tap" handler. How do i stop my ScrollView from getting this event?
Here is some of the code I'm…

Jason Bullen
- 155
- 1
- 2
- 10
1
vote
1 answer
Data Transfer Object (DTO) to DisplayObject (DO) - How to flatten DTO's into a DO collection property
I would like to flatten a collection of DTO's into a single DO using LINQ, but my LINQ-fu is weak.
My DTO looks like this:
public class DTO {
Product product,
Location location,
MonthPeriod month,
double Data
}
and maps to a SQL…

squillman
- 13,363
- 3
- 41
- 60
1
vote
1 answer
How to remove copies of one object under the same variable name
Here is my code to start off:
numTrumps=100
local function startGame()
myTrump=display.newImageRect("tp.png",25,25)
myTrump.x=Random(50,_W-50)
myTrump.y=(_H+10)
…

RoBoTV
- 21
- 5
1
vote
1 answer
How to fix an error #1009 in a class added to Main?
I have a class called ChestScene that represents a scene/MovieClip in a .fla file I'm working on. I've had tons of issues that seem to be rooted in a fundamental misunderstanding of how to properly use objects that have code attached to them. It is…

freethought
- 31
- 4
1
vote
1 answer
Java JOptionPane with LIFO stack's
I'm taking a course in java and now I got stuck in a problem which is probably very obvious and clear, but I cant find any answer on the internet so i decided to come here and personally ask you guys.
So.. JOpitionPane to display LIFO (Last In First…

Iron Ingåt
- 11
- 2
1
vote
2 answers
Is it Necessary to use multiple Layouts(Linear layouts, Relative layouts ) in one .xml file
Hey there I am new in Android Studio and I have one question which makes me mad all the time..
whenever I use Single Layout for example Relative layout. then it works fine but sometime the components(contents) does not show properly while…

Zain1122
- 45
- 1
- 7
1
vote
1 answer
How to erase an object from window in case of multi object/structure X11 display?
In case of X11 display programming, I was wondering how to erase a structure from window once it is displayed. Let's say I want to draw a straight line, rectangle, and circle. However, I want the straight line to be vanished before rectangle is…

beginner
- 411
- 4
- 14
1
vote
2 answers
How can I make a symbol point at the mouse?
I want to make a symbol rotate to point at the mouse. I'm using this function, but it doesn't work below the symbol's pivot. The inverse tan function has a range of 180 degrees right? So how can i get 360 degrees of movement?
Would I need to add an…

AndyMoore
- 1,324
- 2
- 11
- 18