ActionScript 3.0 :: AIR Detect If User Pasted Clipboard?
Oct 31, 2009How can I know if the user pasted or pressed Ctrl+V? I found a PASTE event, but I can't figure out to which object i should add a listener too.
View 3 RepliesHow can I know if the user pasted or pressed Ctrl+V? I found a PASTE event, but I can't figure out to which object i should add a listener too.
View 3 RepliesI'm using Flex to generate text that will be copied to the clipboard so a user can paste a grid into Excel. For instance it might generate the following text which can be copied into Excel:
<html><body><table><thead><tr>
<th>COL1</th>
<th>COL2</th>
<th>COL3</th>
</tr></thead><tbody><tr>
[Code] .....
I have some columns that contain numbers that should be considered text, for instance they have leading zeros that shouldn't be removed. How do I set the formatting for these columns so the leading zeros don't get removed in Excel?
Is there a way to detect if an image from a folder was copied to the clipboard?
View 1 RepliesI used code that kglad suggested to add a button that copies the embed code for a SWF to the user's clipboard:
clip_btn.addEventListener(MouseEvent.CLICK,clipcopy);
function clipcopy(e:Event):void{
Clipboard.generalClipboard.setData(ClipboardFormats.TEXT_FORMAT, s);
[code].....
is there a way I can use javascript to detect if a user has a debugger version or a release version?
View 6 RepliesWhen a user does not have a flash player... and enters a flash website...is there a way flash can recognise this and with a click he/she can download the latest flash player from that site?
View 1 RepliesHow can I detect if a user stopped typing for about 2seconds?After those 2 seconds I want a mc to start playing.
View 5 RepliesJust wondering if anyone knew ofhand the AS3 code to detect whether a user is using a mobile device, so they can be redirected to the HTML version of my flash website.
View 4 RepliesUsing flash is there anyway to detect the users IP address as a means of identifying someone who tries to copy your work off the internet?
View 7 RepliesI need to check that the user has not muted the system before running my main movie (as indicated by the red bar over the speaker icon on the lower rgiht) and if so prompt to unmute with pop up. Is that something I can do with Actionscript 3 or is it sometihing that needs to be addressed with JavascriptWSH?
View 3 RepliesI have been searching for a simple way to detect if a user is connected to the internet. I have been told to download xmls and read from html is there anyway one proven way which I can use in my projector for both mac and pc?
I want to hold a user on a frame while flash detects if a connection is present, if not user is shown a message 'please try again' if connection is prsent button appears in center of the stage which takes the user to a URL when pressed.
At run time, Is it possible to detect the 'Connection Speed of the user' and change the way my preloader works? Say If the user is on a Dial up connection then play the initial 50% of the movie that has been loaded while loading the remaining 50% in background, If the user is on DSL or cable then load the entire 100% movie and so on.
View 4 RepliesMy site starts off with a splash page. I would like to have one link to enter the site.
A long shot, but anyway....is there an actionscript that can detect user screen resolution and then open a page accordingly?
At run time, Is it possible to detect the 'Connection Speed of the user' and change the way my preloader works? Say If the user is on a Dial up connection then play the initial 50% of the movie that has been loaded while loading the remaining 50% in background, If the user is on DSL or cable then load the entire 100% movie and so on.
View 2 RepliesThe secnario is simple if the user presses enter while in the password field, I would like to submit the login for for processing.How can I detect that event from with in the specific text box.
View 2 RepliesIs there a way in Flash to detect if the user has quit the application? For example if the user closes the browser window, or has not been active for 5 minutes, then so remove them from the list of active members.
View 0 RepliesI have an actionscript app which needs to use SharedObjects. I see how if the user doesn't allow the Flash Player to access local storage, the security settings panel automatically pops up and asks for user input.
My problem is that my app runs with a 1x1 pixel stage, because it doesn't display anything. So the user will never see that panel and the program will seem to hang.
What I want to do is to somehow detect that the user doesn't allow the Player to access local storage so that I can open a new window large enough to display that panel.
The only way I've been able to detect this so far is to try to call SharedObject.flush() and check the return value, but that displays the settings panel.
I have 3 flash button, and a touch screen LCD.how can I detect if user has touch + hold the button for 5 seconds?how to use timer + mouse down + mouse up for this?
1) mouse down
2) start timer (count 5 sec)
3) mouse up
4) user hold button for 5 sec detect
I have a text input box inside a movieclip. I want to detect when the user clicks inside and open up a modal window with the full form. I use the following line of code:
Code:
this.addEventListener(FocusEvent.FOCUS_IN, _onFocus);
And it works fine, but just the first time. When I close my modal window without entering any information and click on the input form again, nothing happens. The listener is there, but nothing happens. My guess is because the focus is already there. Should I be using another listener? MouseEvent.CLICK is not what I'm looking for because I only want the window to fire when inside the textbox is clicked, not the whole thing...
I also tried
Code:
stage.focus = null;
and it also doesn't work.
I have 3 flash button, and a touch screen LCD.how can I detect if user has touch + hold the button for 5 seconds?how to use timer + mouse down + mouse up for this?
1) mouse down
2) start timer (count 5 sec)
3) mouse up
4) user hold button for 5 sec detect
We have a custom flash video player. It uses streaming over a hosted FMS $50/month account.Some users are complaining that the video doesn't play at all.ith one of these users, we had them go to a speed test website and it was determined that they had a very slow connection which we are assuming is what is causing them to not be able view the video.So before we try to load the video we want to determine their connection speed. Then if they have a good enough connection we will play the video and if not then we will do something else like play a lower quality video or simply display a message and not play a video at all.
View 3 RepliesIs there a way for a Flash Facebook app in an iFrame to detect if the user is a fan of the page using the Graph API for Actionscript 3? If not can I achieve the same goal using Javascript? without asking the user for permission (no access token required).
View 2 RepliesCan flash detect when the user switchs focus to another window?
If it can then is there any event that fires when it does?
Is there any possibility/workaround to detect if user's webcam supports 16:9 aspect ratio?
View 4 RepliesIs there a way to detect when the user right-clicks to display the context menu?
View 6 RepliesI made a project (learning courseware for kids) in flash MX and want to distribute on a CD. what I want is When user runs the course it (.htm or script) should check whether flash player is installed or not. If its not there then it should prompt the user to install it which I m planning to distribute in my CD but I dont have any idea how can it be done...
View 1 Replieshave a question. Is it possible to detect whether the user used or is using ctrl+scroll to enlarge the screen? I was looking at an example of a mouse avoiding game, which could easily be cheated on using ctrl+scroll, so that the passages were larger etc.
Is there any way to detect this inside Flash, and perhaps prevent it?
I'm going to create a new website where i've a main swf that loads all the other that are called by the menu. I'm going to use swfaddress for deeplinkng, but my question is: when the user click on one menu voice the main swf load an external swf. now, when i click on another swf i must make a out-transition of the current loaded how can i detect in the external swf that the user click another menu voice? Or i must do the out-transition in the main swf?
View 1 RepliesAt run time, Is it possible to detect the 'Connection Speed of the user' and change the way my preloader works? Say If the user is on a Dial up connection then play the initial 50% of the movie that has been loaded while loading the remaining 50% in background, If the user is on DSL or cable then load the entire 100% movie and so on.
View 4 RepliesI created a drag and drop quiz following an online tutorial. It worked fine. Then I made a different one. I cut and pasted the code from the working file into the new one and changed the names of the movie clip instances. When exported (control +enter) I can pick up the MCs I want but I can't drop them; they just stay stuck to the cursor until I click on another MC. I have gone through the code and I can't find anything wrong. It just doesn't work I'm stumped. Here are the working and not working versions:
var counter:Number = 0;
var startX:Number;
var startY:Number;
[code].....