| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Member
Join Date: Jun 2006
Posts: 32
|
I'm pretty good at AS2, and just now learning AS3, but I'm super excited about working in AIR. I don't have Flex (which I've really only damped my hands with anyways), so I was ecstatic when Adobe released the the Flash CS3 update allowing me to package AIR straight out of my FLA.
I'm having trouble, though, figuring out how to get some common application functionality to work - drag and drop the transparent window, "always on top", etc. - that are comparatively easy to accomplish in Flex. I've poked about and most turorials and bloggers' focus still seem entirely Flex oriented. Does anyone have any ideas how to accomplish these functions? Exporting from Dreamweaver? Include an mxml in the AIR package? Cross-format APIs? Actionscripts? Beuller? Thanks in advance for any advice! ~gyz |
|
|
|
|
|
#3 | |
|
Member
Join Date: Jun 2006
Posts: 32
|
Of a transparent-windowed AIR application, yeah.
Right now, the Flash CS3 Package settings give you the option for a custom chrome (transparent), but nothing for draggable windows or "always on top" options, as you could otherwise define in a Flex mxml script, ie: Quote:
Am I way off? And thanks, Senocular, for helping me out for the second time in as many weeks! ![]() |
|
|
|
|
|
|
#4 |
|
six eyes
|
The Flash settings for AIR are, I think, a little limited. But they consist only of an interface to modify the actuall XML file that will ultimately be used to control your application. You can edit that by hand by finding it in the same folder as your FLA (FLA name + -app.xml).
Similarly, other actions in Flex specific to AIR will also exist in Flash since they are using the same player. stage.window.startMove() for example is the same in Flash. You just need to connect it to an event. ActionScript Code:
__________________
(6) |
|
|
|
|
|
#5 |
|
Member
Join Date: Jun 2006
Posts: 32
|
And that did it alright. It's always a little embarassing when the answer is something I really should have known already.
Thanks! I'll experiment with the XML to see if I can get the "always on top" to work ... unless you know a script for that too. ![]() |
|
|
|
|
|
#7 |
|
Member
Join Date: Jun 2006
Posts: 32
|
Awesome. Thanks!
|
|
|
|
|
|
#8 |
|
Geek Apprentice
Join Date: Jun 2007
Location: Greece
Posts: 148
|
why does this line of code give me a compile-time error?
Code:
stage.window.startMove(); Did something change from AIR CS3 plug-in beta1 to beta2? You seem to be easily using it here and i also saw it working on a tutorial at gotoandlearn.com. Anyone has any ideas? |
|
|
|
|
|
#9 |
|
Senior Member
|
stage.Window
to stage.nativeWindow |
|
|
|
|
|
#10 |
|
Geek Apprentice
Join Date: Jun 2007
Location: Greece
Posts: 148
|
that it! thanx alot
![]() |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| one template, many looks? | subquark | ActionScript 1.0 (and below) | 1161 | 09-03-2009 04:45 PM |
| Optimizing Flash Web Sites for Search Engines | rockcoastmedia | General Chat | 20 | 03-29-2009 10:31 PM |
| Backwards Compatability Issues with Flash Remoting and CS3 | dannyst | ActionScript 3.0 | 0 | 08-28-2007 12:56 AM |
| Flash Encrypt 1.2 Released. | SIntrix | General Chat | 14 | 04-21-2005 10:02 PM |
| [Q] Do we need those forums??? | CyanBlue | General Chat | 59 | 07-27-2004 12:13 PM |