Flash Adobe AIR - Overwrite Standard Command C KeyEquivalent?
Dec 28, 2009
I'm currently trying to built a little Air Application where I want to set the normal Command-C key to call a function? Is this even possible to use a standard Menu Command?
function createMenu():NativeMenu{
var menu:NativeMenu = new NativeMenu();
var menuOneCommand: NativeMenuItem = menu.addItem(new NativeMenuItem("Menu 1"));
menuOneCommand.keyEquivalent = "C"; //Command Shift C
menuOneCommand.addEventListener(Event.SELECT, myfunction);
return menu;
}
Moreover I would love to know how I can call a function (myfunction) which is actually a MouseEvent Handler?
function myfunction(e:MouseEvent = null) {
trace('Throws Errors at the moment')}
View 2 Replies
Similar Posts:
Jan 13, 2012
i have a trouble while making menu in adobe air i want to use f2, f3, f4 shortcut, but when i use keyEquivalent = 'f2' property it showing in the menu but not working. when i press f2 it does not work but when i press f it works it means it just taking first character does any one can solve this problem.
View 1 Replies
Jan 11, 2010
I've written few Fireworks commands (jsfw files) and Flash commands that I use for my image processing. Is it possible to run them from the command line without launching the whole UI app for Fireworks or Flash?
View 2 Replies
Sep 27, 2009
I just got Flash CS4.i think it is supposed to have several categories of templates.I only have the advertising category. How can I get the standard Adobe CS4 sample templates, like the photo slideshow? I cannot find anyplace on the [url]... site for template downloads.
View 1 Replies
Jul 9, 2008
I have been trying for days to write my own custom NCManager class that allows us to connect to a Limelight stream. We have to issue a NetCOnnect.call() that has the command "FCSubscribe" and the stream name. I've written a 100% custom player(url...) (have to register!) but what I want to to resolve that player with the video-on-demand player(url...) into a single Flash project.I want to allow our Graphics guys (aka Flash developers) to be able to use the standard Adobe FLVPlayback components and skins and also be able to p lay back files, streaming content and Limelight content. To this end I thought that writing a custom NCManager class would be the way to go.
I have 99.9% succeeded: my class gets the connectToURL(),connects to Limelight, subscribes and all is well but I am really really stuck now on how to tell the FLVPlayback component that it .can start playing back now that the stream is connected.FLVPlayback and VideoPlayer parts appear to be AS2 and I cannot call the rtmpStatusInfo() function on the VideoPlayer part to tell it that it is good to go.I am so close I can taste it: If I create a NetStream object and play() it, I can hear the content to I know that if I could only get the FLVPlayback / VideoPlayer dynamic duo to playback then the job would be done.
I have attached the code, warts and all in the hope that either somebody has done this before or can tell me what I have misunderstood about the internal state-machine / FSM logistics that VideoPlayer et al implement.By reading the source code and my debugging statements I can see that I have maneuvered it towards the ultimate goal of playback but I don't know how to make that final step.
PS: I *know* that reconnect() is non-functional but if I uncomment the call all it does is go around the loop again; the real problem is I cannot tell the VideoPlayer that it can play (via rtmpStatusInfo) the data etc
PPS: The meta-data related stuff *only* gets called if I uncomment the NetStream code; this was to check that I had a valid playback stream, which I do at that point.
View 13 Replies
May 20, 2011
I am using adobe air sdk 2.6 and i'm using command line to build my application.What is the command to compile the application.I tried amxmlc its not working.If i see the sdk's bin folder i dont see the amxmlc file there
View 2 Replies
Aug 29, 2011
I have a native (Obj-C, standard Xcode project) application and I'd like to integrate a partners iOS application (or specifically, it's functionality) into it as just another view in my application. The problem is that their application is a Flex/Air app. I really don't understand the Adobe compilation process on how it gets from a bunch of flex code down to an IPA. I don't see intermediate projects, shared objects, etc on the disk to produce that IPA. It looks like it doesn't rely on the Apple tool chain... as I understand it, you can produce the IPA on Windows as well. Is there any way to build that Flex app in such a way that I can import it into Xcode so I can link against it and use it as a library from within my application? While I specifically used iOS as an example since that is the most important platform, we'll want to apply this solution to our respective Android and Blackberry 6 apps as well.
View 1 Replies
Jul 15, 2010
I have a bitmapdata object that is filled with n rectangles of a width of 1 pixel and of varying heights.
I want to run through a loop and remove the old rectangle and replace it with a different one.
Should I do something like reset the each bitmap column of pixels to a background color and then add the rect i want?
[Code]...
View 1 Replies
Apr 30, 2011
I'm using the build in Flex Dataservice to connect to a BlazeDS server. Flex is using the *.fml file within the model folder for the connection details, within that file you can find the following:
<annotation name="ServiceConfig">
<item name="DEFAULT_ENTITY_PACKAGE">valueObjects</item>
<item name="contextRoot">/MYWEBAPP</item>
<item name="rootUrl">http://192.168.178.21:8080/MYWEBAPP</item>
[code]....
the _super_Database class created by Flex DataService uses that configuration to setup a remote object for communications.Now i'm looking for a way to overwrite those settings within the Database class which extends the _super_Database class.
View 1 Replies
Feb 11, 2010
How would I make a counter using Greensocks TweenMax or TweenLite? Does anyone understand the overwrite manager?
My code will be in AS3. I want it to be timer based, and be capable or resetting it's self and looping.[code]...
View 2 Replies
Jun 6, 2011
I have table named "highscore" like this:
nameQL scoreQL
piotr 50
And flash game with NAME and SCORE exported to PHP with this names.How to make this in PHP file:
IF (NAME exists in database (nameQL)AND SCORE> this.name.scoreQL){Raplace scoreQL with SCORE WHERE nameQL=NAME}
IF (NAME doesn't exists){Create new row with NAME and SCORE)
View 1 Replies
Mar 16, 2011
how to update xml node value with a text box value in flash dynamically.
my xml is:
Code:
<root scrolling="Yes">
<!-- <root scrolling="No"> -->
<news_tag>
[Code]....
View 2 Replies
Oct 4, 2004
I am using attachMovie function to dynamic attached MCs depending on the database. How can I overwrite the current attachMovie MCs with a new set of MCs at the same position and location after a click on a next button?
View 4 Replies
Aug 5, 2010
Well i have an adobe air which runs vlc-player at background as service. i check that in Windows Task Manager , the service runs when air application launches.
here is the code
processArgs.push("--extraintf");
processArgs.push("rc"); //Remote control
processArgs.push("--rc-fake-tty"); //Use terminal as output
[code]......
View 1 Replies
Mar 2, 2011
I want to call 3 commands one by one , the relation between each commands are command should execute one by one in the previous command result. How to Queue Command's? What is the best practice to handle Queue command , my requirement is adding n number of commands and execute them.Main -> Execute c1c1 got the Result - Execute c2c2 got the Result - Execute c3
View 2 Replies
Jan 4, 2008
Simple question: I have numerous transitional xhtml pages marked up and ready to go. The code is basic but uses a few tags that are not recognized in Flash via HTML import- <h1>,<div> etc. Is there a best practice method for using this code without having to "dummy" down the code for use in Flash? Is there any advantage to importing the xhtml pages as XML and going that route or will I have the same problem?
View 1 Replies
Apr 12, 2010
To my knowledge this doesn't break Liskov's Substitution Principle as an instance of a subclass can do all the things that an instance of a superclass can do.
View 1 Replies
Jun 19, 2011
i have rectangle movie and i want to make it triangle or round so it show round in the page. can i do so with i embed it or it must be done in flash before i export swf?Also i forgot how you make transparent area in flash?
View 1 Replies
Oct 4, 2004
I am using attachMovie function to dynamic attached MCs depending on the database. How can I overwrite the current attachMovie MCs with a new set of MCs at the same position and location after a click on a next button?
View 4 Replies
Jan 1, 2010
Can someone tell me the simplest way to add a rollover sound to a standard button in flash ? I was trying to get a small chirp sound to play on rollover of a button. Im using the standard flash button creation hierarchy. Once the fourstages of the button are set. I created a layer above it called sounds then added a blankkeyframe to the over position and dragged the chirp mp3 file onto the stage over the button. Then when i run the webpage the sound effect doesnt play a expected. I tried playing with the dropdownlist of property settings too such as Sound : and theres a dropdown list. I chose chirp.mp3 there but still no luck. Tried some other sync settings too but not able to make this work.
View 1 Replies
Nov 20, 2008
I was following this tutorial. He uses the following line for Tweening:
Tweener.addTween(currentContainer, {alpha:1, time:FADE_TIME,
onComplete:function() { slideTimer.start(); }});
Instead of using this special designed class for Tweening, how do I use the standard/regular Tweening within Flash so I don't have to always include the .as file with my project? One other thing is, he uses something like this: intSlideCount = xmlSlideshow..image.length();
What are the two dots between the xmlSlideShow and image.length(); means?
View 1 Replies
Jul 14, 2009
Where can I get or buy the flash video component I keep seeing around the web which has the extra function of making the flash video go full screen.
View 4 Replies
Nov 13, 2010
Is there any way of being able to use the standard iOS interfaces in Flash CS5? i.e blue title, grey striped background, popup keyboard, standard alert message? etc p.s where would one find example code and tutorials for writing the iphone apps as there seems to be nothing available.
View 1 Replies
Feb 22, 2010
Are there any standard practices for Video encoding, streaming, etc?
View 1 Replies
Apr 19, 2010
Flash has a scrollbar class, documented here: http:[url].......However, besides listing functions and variables, there's no real explanation of how to hook an instance of this class to a textfield.Everything I've tried either ends up in errors or the scrollbar not showing. The documentation lacks a clear way of how you should bind the textfield and the scrollbar toghether, and CS4 isn't providing any help either.how scrollbars work with textfield?
View 2 Replies
Jul 17, 2009
Is there a standard equivalent to the Flex HTTPService class in Flash CS4?
View 2 Replies
Apr 15, 2010
and is flash being replaced by another standard like html 5 completely?
View 5 Replies
Apr 26, 2011
confirm that Flash Builder 4 STANDARD comes bundled with FlexUnit 4 just like Flash Builder 4 Premium trial does? My company is interested in buying a few copies just for unit testing an existing code base. Don't want to spend the extra money if not necessary and Adobe support was completely useless. Also, any other considerations you can think of regarding Flash Builder 4 Standard & FlexUnit 4?
View 1 Replies
Nov 22, 2011
Specifically flash.display.BitmapData.
I've seen the swc file, header-like classes, and some implementation files for
fl.*, but not flash.*!
View 1 Replies
Jan 19, 2012
We need to convert the sound file in (.dss Format i.e Digital Speech Standard),in flash
View 2 Replies