ActionScript 3.0 :: Record The Time The Mouse Is Over A Button?
Oct 21, 2010I want to record the time the mouse is over a button for time under 1.5 s and i want to use this number to be how much a movie clip is moved over.
View 2 RepliesI want to record the time the mouse is over a button for time under 1.5 s and i want to use this number to be how much a movie clip is moved over.
View 2 RepliesI am trying to figure out how to trigger a button's over state (i.e. play the over state movie clip for about 4 seconds and then return to the up state) without the mouse event.
The playing of the movie clip would occur when an Action Script cue point in an flv was reached. I think I have the right code for the cue point handling, but have no idea how to specify the over state of a button, or how to tell it to play for a specified time and then return to it's up state.[code]...
How a button can be deleted during run time by mouse right click.
View 3 RepliesI'm pretty new to flash media server (and adobe technologies in general). I have an Air app that publishes a camera stream to the server, that can be played live by the same app on another computer/device. I would like to record to disk all audio/video passing through the server (on the server side) while streaming it at the same time. How can I accomplish this?
View 9 RepliesHow to record Audio and Video at the same time into flv in Adobe air 2.0 ? So that Video and Audio will be sinchronised?
View 1 RepliesI see FMS has the ability to record live streams. I've done it and it works nicely.
Ideally I'd like people to watch my event live AND archive it while they watch.
I've read suggest naming the stream in the FMLE to something like mp4:mystream.mp4 or mp4:mystream.f4v but then you can no longer view the stream, and according my the admin console the stream will not even publish using this syntax.
I can view the published stream if I name the FMLE stream to something like mystream.mp4 or just mystream, but then it doesn't record at all or records as a FLV file depending on how I code the main.asc file.
So I have FMLE and FMS. to record and stream video at the same time.
On server side I have "main"
application.onPublish = function(client, potok){
potok.onStatus = function(info){
for(var i in info){
trace(i + "=" + info[i]);
[Code] .....
How do you record mouse path and speed like [URL]
View 7 RepliesI want to record the mouse's position on stage on entering the stage with out having to move the mouse.
In example:
I want to have an event occur only if the mouse Y position is greater than 200 when entering the stage.
The only way i know to do is is setting up a MOUSE_MOVE type, mouse event.
here is my code:
var Timer_Down2:Timer = new Timer(10000)
stage.addEventListener(Event.ENTER_FRAME, slider_down);
function slider_down(event):void{
[Code].....
I am querying to server through flex,first time its show the result but when I insert a new record and query next time,its shows previous results only(problem facing in IE but not in chrome).
View 2 Repliesi was trying to do in the above subject title... I have now decided to create a project using AS3 and would again be in any of your debts if you can guide me towards a similar code / function to the following:
var nTimeoutId:Number;var nTimeTolerance:Number = 6000;
import mx.utils.Delegate;
_root.onMouseDown = Delegate.create(this, setUserActivityTimeout);setUserActivityTimeout();
[code].....
i have an requirement ie. i have two panels(left,right).Left panel contains three fields(form).Right panel contains datagrid with three colums(one column contains edit bottons.I have done this using itemrenderer).My question is when i clicked on edit button,the corresponing row data will populated into in the form of left panel.How can i achieve this? How can i get the each row id of datagrid and how can i pass that row id to edit button?
View 0 Repliesim making a flash upload thingy for my site, it has options to set the expiry time of the file, each time has a button which needs to be made from an array (which comes forma php script, not really relevent)... here is my code..
ActionScript Code:
if (vars.options == undefined){[code]....
i know the x values are too small but they should still all appear on the stage right ?, only the final item in the array appears...i think i might be replacing the previous one with the new one.
Will there ever be the ability to add a 'Record' button to a player such as those used with Ustream, Justin.tv and other similar players? I run a live stream and would love for the viewers to have a 'Record' button so they may capture the video to their local hard drives for later playback.
View 1 Repliesi'm trying to build this as3 buttons with labels for the OVER_OUT_CLICK tweens i`ve designed but aparently there is some problem because the button dose not act the same the first time you go over and out as the second time
[Code]...
Looking to do a keypad in as3. So i have 10 numeric buttons, labelled num1-num10. I have a dynamic textbox that I'll show my presses. How do you record button clicks or keyboard presses of a certain number and display in the text box?
View 1 RepliesHow do you record / save a button press in Flash as3 and send it to moodle via scorm? I have two buttons, 'choice1' & 'choice2', and would like the users' choice to be recorded to SCORM. I just need to send 'some text' to moodle when the user presses either button.
Have been pointed to 'cmi.interactions' but after spending the entire day trying to find a working example, I'm completely lost. There appear to be no coded examples anywhere.
I develop failover fms application with server-side action script. But i have a problem that FMS can't continue to record stream with record mode "append".
Environment: FMS 4.5.1 r484 on CentOS 5.5/6.0
Goals:
I have 2 same data streams in failover application and republish primary to livepkgr application.
I have to store of last 10 hours intact recorded video (DVR).
Failover app logic:
1. I create NetConnection and NetStream to livepackager;
2. When primary stream is connected it attach the primary stream to livePackager NetStream
3. If primary stream is disconnected it reattach the backup stream to livePackager NetStream
Problem: I have testing environment. It stop primary stream every 5 min, and started primary stream 5 min after stopping.
It work's, fine, but after a few hours testing LIVEPACKAGER falls. It can't record a stream, NetStream.Record.Start -> NetStream.Record.NoAccess -> NetStream.Record.Stop
Search a solution: I try to relaunch recording process and have no success. try to shutdown/start livepackager, it's same, try to restart server, same no success.
I cant stream.clear() or record with mode "record" cause it clears my dvr cache, I cant clean stream directory in livepackager application.
[Code]....
I have a very simple piece of code but it has one very annoying bug. When I press the button a second time, the code doesn't work. The only way to get the code to work is by moving the mouse a tiny bit, or moving the mouse off the button and back on. make a button that can be clicked many times without moving the mouse?
Code:
randommultiquiz.onPress = randommultiquizOnPress;
function randommultiquizOnPress() {
_root.attachMovie("connect", "newconnect", 200);
newconnect._x = 0;
[code]....
I changed the mouse cursor using a tutoral from this forum, but when I press the right mouse button,the standard mouse cursor reapears.How to prevent that?
View 10 RepliesI would like to make a flash movie with a picture, where when the user holds down the mouse button, part of another picture will emerge in that general area (like a magnifying glass looking into another dimension).
Technically, my idea was to make a flash file with two images, and then code the mouse to be able to make the top picture transparent in a circle-like area around the cursor, while the mouse button is down.
But how to do that? I am using Flash CS4, but I don't really care if the solution is in AS2, or AS3, as long as it works
I need to perform an event when the mouse moves AND when the mouse button is down, how can I do that? What will happen is that when I click and drag the mouse, the width of an object will change. Here is what I have so far:
[Code]...
This is quite a complicated problem to explain.Basically I had some buttons with a on mouse out, and on mouse over effects.I wanted each button to load a different scene of the movie.For some reason the on mouse over and mouse out button effects work until I link them to load a scene in the movie.The only button I have linked to load a movie is the Drinks button. It loads the drinks scene, no problem, however the mouse over effects don't seem to work anymore.I have included the .fla file so if someone could maybe have a quick look at it, it is probably just a small bit of coding I have done wrong!
View 2 RepliesI changed the mouse cursor using a tutoral from this forum, but when I press the right mouse button, the standard mouse cursor reapears...
How to prevent that?
made a custom mouse cursor but the cliente wants that little hand when the mouse is over a button and/or links.
View 1 RepliesSo I'm creating this flash game for our company's 2010 halloween greeting card and I'm having some problems.All it is an swf that has balloons randomly moving upward.Each balloon is a movie clip that has another "button" movie clip inside of it. As you click on each balloon, the balloon pops and then recreates itself. The only problem is that the button inside the balloon is not acting like a button the entire time.
The upward movement is being called through an enterFrame event listener and the use of the button goes in and out as the balloon moves upward. It's a pain because you have to click the balloon multiple times in order to get the balloon to pop. Does anyone know why this is or if there is an alternative to enterFrame?
i made a small game. the player needs to press as past as he can on the mouse before time runsout.
well, i want to send the score of the player by post (php)
i have read alot of guids but i didn't mannaged to do thise, so i came here.
[Code]...
This is the place to discuss everything relating to the Hiding Mouse Cursor After Some Time tutorial.
View 7 RepliesI'm trying to have a very simple functionality added to MC's on the stage. Probably should have read more tuts on the subject, but I seem to be stuck in my newbieness.Here's what I'm trying to do. I have several MC's on stage. Every time a mouse rolls over I want each MC to goAndPlay frame in that MC. I put all the MCs in the array. Here's the code
ActionScript Code:
var movies:Array = [movie1_mc, movie2_mc, movie3_mc, movie4_mc];
function overClip(event:MouseEvent):void
{[code]...............