Hi,
I am using an URLLoader to save a PNG to the server via php and all works well but is it possible to send 2 pictures in the same request (or possibly more relevantly separate them at the other end)?
Thanks in advance,
Norman
URLLoader 2 PNGs at Once
Sunday, July 1, 2012
[Action Script] URLLoader 2 PNGs at Once July,2012
Posted by Bimo Hery Prabowo at 11:13 AM 0 comments
[Action Script] Underlying windows don't detect clicks through transparent Windows June,2012
Users report that on OSX 10.6.8 clicks are not passed through the invisible window of my AIR application.
The application (Prioritizer) works fine on Windows and on my own MacBook but has a problem on some OSX 10.6.8 installations.
Prioritizer is a sticky notes-like app for creating an overview of projects, like a skin over your desktop wallpaper. Because it's meant to be always running, it should only show in the system tray (when on Windows) and not in the taskbar. The result is that you see little boxes with the titles of your projects alongside items on your desktop. Of course, clicking next to the projects, where desktop icons (or underlying windows) visible, should activate these windows/icons. This doesn't happen on the MacBooks of some of my users!
On my Windows laptop and my test MacBook the behavior is just as expected, under all OSX versions I tried: 10.5, 10.6, 10.6.8 and 10.7. On the users' MacBooks with OSX 10.6.8 I can reproduce the problem myself.
I have no idea if this is something I can fix, as it seems to have something to do with the permissions are granted to AIR by OSX... What do you think?
I also posted this issue on stackexchange, but so far nobody has replied even after a week. I hope over here somebody has a clue!
This is the code I wrote to make a maximized window without system chrome. I close the default window and create a new one (called trayedWindow):
ActionScript Code: function createTrayedWindow():void{ var nativeWindowOptions:NativeWindowInitOptions = new NativeWindowInitOptions(); nativeWindowOptions.type = NativeWindowType.UTILITY; nativeWindowOptions.systemChrome = NativeWindowSystemChrome.NONE; nativeWindowOptions.transparent = true; trayedWindow = new NativeWindow(nativeWindowOptions); trayedWindow.stage.align = "TL"; trayedWindow.stage.scaleMode = "noScale"; trayedWindow.title = "Prioritizer"; trayedWindow.visible = false; initializeInterface(); }On getprioritizer.com there are screenshots of the application which may clarify what I mean.
Underlying windows don't detect clicks through transparent Windows
Posted by Bimo Hery Prabowo at 7:13 AM 0 comments
[Action Script] on mouseclick logic for timeline animation June,2012
So there is a movieclip that goes through certain stages in a Breaking,BrokenLooping,Fixing,brokenPermenant animation cycle
I'm just starting to make the actionscript for it but I'm not sure how to go about it, or if the logic is sound. I am a bit new to actionscript
i assume i can make a function like this
Quote: function myButtonAction(eventObject:MouseEvent) {
trace("you clicked on the button ");
}
myButton.addEventListener(MouseEvent.CLICK, myButtonAction); where myButton is the instance of a button movieclip ontop of the movieclip
__________________________________________________ __________
The general idea is that randomly things will break and stick in a broken loop, then you have to start taping the screen to repair it until fixed or else it permanently breaks
*note that the fixing animation cycle is backwards so that positive on the timeline is it slowly breaking - you tap to reverse frames and "repair"
the logic goes like this (at the start of the looping broken animation)
on user input (mouseclick)
-goto frame (xx) (end of fixing animation)
-stop() for 1 second (stopping so it doesnt just enter next animation cycle)
..... -if user input yes (tap/click)
......... -go back one frame [currentframe -1]
......... -stop() for 0.100 seconds then play()
......... - or if time between taps is less than 0.100, then play
..... -if user input is no (no tap/click)
......... -play()
I'm not sure if that handles all the possibilities but i guess ill find out as i go.
does anyone have any advice on how to start this or if i am missing anything?
on mouseclick logic for timeline animation
Posted by Bimo Hery Prabowo at 3:13 AM 0 comments