How to use the same DragonBones Armature several times - air

I have Adobe AIR application written with Starling framework and DragonBones library.
I'm loading an armature of teleport that I show when a character is enter into the screen.
In the game there can be a situation in which 4 characters enter at the same time.
Is there a way to load the teleport armature once and clone it to be able to show it 4 times on screen?

All I had to do it simply call factory.build several times.

Related

Use my own default picture on roboter Peppers tablet

I am using Aldebaran-Softbanks Pepper robot. Per default it's tablet shows an animtion with colored dots.
I want to change that to my own png-picture.
I still have a project/package with a "Show Image" behaviour which displays my picture without problems. I installed this package to the robot and set the autostart flag.
While starting Pepper the picture is shown for some seconds and then it disapears because of the deffault-start-pepper-behaviour which shows a softbank logo, an animated cloud of colored dots and fancy things like that.
My current workaround is to add a "Wait" box between the start-event and the "ShowImage" box. The wait is 22 seconds.
There is a similar looking question but the topic doesn't really fit.
Create empty application. Make a folder named 'html' and place your image inside it.
Add this setup to your robots database either here or via SSH
Restart the robot

Mouse event disturb by other activities on the screen - Excel-VBA

Context : I'm using some mouse events in excel-vba to interact with another software. My mouse is moving and clicking at different places and everything is working well. Meanwhile, the goal of these instructions is to ask my other software to open a pdf file. I am working on 2 screens; my software is on one screen and my pdf are opening on the other one.
Issue : When the pdf file opened, it disturbs the activity of my mouse on my first screen. Consequently, it's not responsive when my mouse continue to click.
Is there a way to keep my first screen active whatever is happening on the other one?
Thank you in advance for your answers!

how would i move a folder or the contents from one place to another Via code in Xcode?

Im trying to make a mac app that copies and pastes a folder to another location but i can find a tutorial on how i go along and make an app for the mac what its per pose is A app that makes it easy to move mod files to a games file system. Yes i know theres lots of apps that goes the same but i want to make my own. The structure is theres six NSTextFields three for the mods folders and three for the games folder system like (Mod's Parts Path, Mod's Plugin Path, Mod's Plugin Data Path, Game's Parts Path, Game's Plugin Path and Games's Plugin Data Path). Ive looked on stackflow and Google and couldn't find on tutorial on how to do this maybe im looking in the wrong places. The game that its manly for is for KSP (Kerbal Space Program)
What did you googled? You will need a simple gui application with 6 Labels, 6 TextFields and one Button. There will be one function linked with that button. That function will use data from TextFields and NSFileManager's copyItemAtPath:toPath:error: method.
Google something like "osx first app" or "xcode TextField tutorial" for the details on how to create an app with TextField and Button.

VB.Net automate flash in WebBrowser

I've passed many hours searching the web for a solution to something which seems obvious, but without results.
I need to automate a task in a Flash application running on my intranet.
I can't change the Flash application nor do I have access to the source code.
it's not a Flash movie but an application.
I can't download the swf.
I'm using a WebBrowser in a form. The Flash app is displaying without issues.
So far, I have been able to automate the task (clicking on some buttons, then inputting text and finally saving the results on a server). It works but it's not clean at all because I use hard-coded timers to wait a given action is done and then I click on very specific point at given coordinates in the application.
What I would like to do:
Avoid hard-coded timers. the Flash application takes some time to display all elements on the window (from 20 to 60+ sec). I would like to be able to detect when all elements are loaded. I tried to retrieve the text of the windows handle, but while I can retrieve the Flash hwnd, I can't retrieve the content (through messages).
In brief, instead of waiting 60sec (and not being 100% sure it's enough), if the last element to load in the Flash app has "ABC" written in it, I would like to detect it's displayed so that I can continue the sequence (click on the next button).
I'm using VB.net. Any hints to achieve that would be appreciated.
Lol. I am trying to do the same thing but with no results. You can try to see if there are POST/GET codes that can help you if the application has an online nature. Other than that you can only simulate clicks, because flash can't be easily interacted with. This is why most of the things are going to swap with HTML5 now.

Locking a screen in 10.6

How would I go about locking a screen like Keychain does, meaning preventing all access to Dock, menubar, desktop, etc. Basically just a black screen that I can add a password field to, for the user to return to the desktop? I am well aware of the Carbon method, but I want the NSApplication method because this is an all Cocoa application.
Thanks~
If you can get away with not writing this code yourself, all for the better. It is usually a terrible idea to write your own code to lock the screen, considering the number of vulnerabilities that have been found in screen locking code over the years. If you have a Carbon call that can do it, go ahead and use that... don't worry about the "purity" of your Cocoa code.
However, if you decide to write this yourself, here's what you do:
First, capture all the screens using CoreGraphics. See: http://developer.apple.com/mac/library/documentation/GraphicsImaging/Conceptual/QuartzDisplayServicesConceptual/Articles/DisplayCapture.html
Next, create a new NSWindow and put it in front of the window that's used for capturing the screens. You'll have to call a CG function to get the "order" of the black window covering each screen, and order the new window in front of that. Normally, the black window has an order so far forward that everything is behind it. Put a password field in the window. Do NOT use an ordinary text field or write your own code for password input. The password input field has a ton of special code in it so you can't copy text out of it, and other programs can't listen to keystrokes while you're typing into a password field. So use the one that Apple provides.
Last, put the computer in "kiosk mode". This mode allows you to disable alt-tab, user switching, the menubar and dock, and even the ability to force quit. See: http://developer.apple.com/mac/library/technotes/KioskMode/Introduction/Introduction.html
It's not a lot of code, it just uses a few different APIs so you'll spend most of your time bouncing between API docs. I suggest writing the screen lock code as its own application (just add a new application target to your Xcode project) and then put the screen locker inside your application bundle. This used to be (as of 10.4) how Apple Remote Desktop implemented the "Lock Screen" functionality, but I can't find the app anymore.
I believe the Cocoa replacement to the SetSystemUIMode API was not introduced until 10.6.
If you can live with Snow-Leopard-only code, the answer is - setPresentationOptions: on NSApplication.