Flash Clicks
I'm currently finishing a new website in Flash MX 2004 Pro. And now my client wants to be able to track what buttons/movieclips where clicked. Is it possible to write a function using a listener that checks every mousePress to see what movieclip was clicked and send that name to a PHP script to add one up? The PHP script I can write. But I'm wondering how to write the function(s) to register the clicks in Flash.
FlashKit > Flash Help > Flash ActionScript
Posted on: 10-29-2004, 09:10 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Handling Double Clicks And Mis-clicks In AS3
Hi
I am making point n clicked based game. From time to time my moving objects stop and I assume this is happening due to me not handling double mouse clicks and mouse mis clicks. I would like to know how I can handle double click and mis clicks in AS3.
Thanks
P.S. To get a better understanding of what I mean, play my game at:
http://freelancer.987mb.com/download/fla/Gool/Gool.html
Its still under development.
Tracking Flash Clicks
Hi
I've a client who has had a promotional site built by a design team to promote a product. The site was intended to capture data of what people where looking at on the site, 'what they were interested in', 'where the product had come from' etc etc.
if they had built the site in html then they could've tracked the html pages from on server, but as the site was built as one whole flash file, they have been unable to see what area the users where looking at.
So, is there a way, if I was to build a site purely in flash to track the usage of pages etc?
Many thanks
TasviNoooooo
Flash Tracking Clicks
Ok, I've been looking for hours on this one. Can't seem to find how to track clicks in flash??? I've found plenty of third party type stuff, but we can't use that, nore can we use any php. So what I thought would be simple, would be to have flash talk to a .txt and simply count the number of clicks. Has anyone done this? Can someone show me an example?
Thanks
Ry
Advertising Within Flash(pay-per-clicks)...
Sorry if this is in the wrong forum, but I was wondering if anyone here has advertisements within their Flash games. By advertisements, I mean ads where you get paid for clicks...kinda like Google Adsense. Is this even possible?
I believe Adsense has to be on an actual webpage to find useful keywords, but are their any other similar pay-per-click advertisers that would accept hits from within your Flash games? Even if it's a simple banner somewhere on your game/movie that contains the url with your referrerID. Thanks.
Handle All Clicks From Flash
Hi,
I'm looking for a flash that will load other movies (.swf on the same site)
but I want to make sure I control the clicks by myself.
let's say I have container.swf that loads sub.swf,
I don't have the source code of sub.swf,
I want all clicks to go to counter.php (even if there are other buttons in sub.swf)
loadMovie(...) and
_root.onMouseDown=function(){
//_root is a reference to the main timeline
getURL("...")
but here is the thing, if there's a button in the sub movie, it still goes to the button location ...
any idea ?
thanks in advance
Counting Clicks In Flash
Can anyone tell me how I can count the number of clicks that people have made on a link in a flash movie. Not just the number of clicks one person makes within the movie but the number of clicks everyone has made...
am I making sense here?
I'm guessing I'm going to need to use php or some server side stuff, so if anyone could point me to a good tutorial?
Thanks.
[An Idea] Allow Right Clicks For Flash
I was looking through my archives and I did a little CSS trick before to disable right clicks for Flash. It's basically putting a layer on top of the Flash so the Flash can't receive right clicks to make that menu.
But then I thought again, technically it would be possible to let Javascript handle right clicks and pass it onto Flash right? Then both left and right clicks become available for a flash movie. This would be especially useful for games involving the mouse.
Is There A Way To Do Something If The User Right-clicks And Clicks "forward"?
i have a game that im submitting somewhere. and i dont want anyone cheating by right-clicking and going forward. i know you can disable the menu, but for some reason once it is submitted, the window in which it is viewed in puts the menu back..and i have no control to edit the html in it...so, is there anyway to fix this? or , is there anyway to do a certain action when "forward" is clicked? thanks.
Tracking Clicks On A Flash Movie
Hi All,
My company is creating a series of Flash emails using the sattionary feature in Outlook and Outlook express. These are HTML pages with the Flash movie residing on a server.
Users must click a button in order to play the animation. My question is:
How do you track that click?
I know there must be some simple script somewhere and I probably have to keep a database.... I have been looking but I can't find anything simple enough.
All I want is to count the number of times this Flash piece has been played.... Thats it
thanks
Views & Clicks In FLASH Banner (how To?)
Hi to all !
I have one problem. I am making a flash banner for our club to put to a variety of advertisers. They all offer a statistic of clickthroughs & views ...but ... I just want to insert some action script to log this info to. ... just to compare their statistics & ours.
Banner will be on their server so I have to call my server for some action.
I want to call some php on our page to add count to views when banner is loaded. Same for clicks (some action for "on mouse click"...)
I thought that this is the best place to ask for help.
How to implement & which script to log clicks & views of a flash banner on a remote server ?
Thanks in advance.
Send Mouse Clicks Through FLASH APP
We are using Zinc 2.5 and have a transparent project. We want to forward mouse clicks that happen in various areas of the flash control to the application underneath. When it floats on the desktop, we want people to click through the flash application in certain places and, for instance, activate an icon on their desktop.
How do we do this?
Jan
Tracking Clicks Within Flash Movies
Is it possible to detect click throughs within Flash movies? I know you can check the main HTML file that is housing the SWF, but what about if you have a SWF with many parts and you want to track the clicks on a particular frame or scene. Is there such a way??
Jiffy Loop
How To Track Clicks With Code In Flash CS3
Hi,
I am very confused. I have created a flash banner using Flash CS3. I have been told by the website master to add the following code to my advert so they can track how many clicks my advert is getting.
This is the message they sent me back.
Unfortunately the click tag for the Flash script is still incorrect as it needs to have:
on (release) {
getURL (clickTag, "_blank");
}
I pasted this code into my flash document using AS1 & 2. On an invisble box which covers the whole of my advert on layer 1.
Am I missing something? Also very new to this Flash business!
Recording Button Clicks In Flash
Hey there,
I'm making a header in flash that has a button the user has to click to go to the next scene to learn about the product.
Is there some sort of way I can record the amount of clicks the header receives without leaving the page to see how many people are actually going to the next scene?
Best way? Writing to a txt file? Please help me
How To Keep Track Of Clicks/hits In Flash
I work for a newspaper and have been trying to get us to swtich to Flash photo gallery templates.
They don't want to switch because right now everytime a user clicks through to the next photo it counts as a hit. If we switched to Flash we would only get one hit for each gallery.
Does anyone have experience with something like this?
Tracking The Clicks On Banner Ads Made In Flash
Hello.
I've made some flash ads for my web site and want to gather the click trough numbers on them. is there anyway to do this?? This problem has been like the black plague to me I just can't figure it out
Any help would be Greatly appreciated.
Brian99_1
Two Clicks From Just One - Changing HTML & Flash From A Single Click
Hey Folks:
I have an HTML page with a Flash button that pops a window.
I want the HTML page to change when the user clicks the flash button and the window is popped.
I believe that this functionality would need to be contained in the flash button as that is what the user clicks on.
Any help will be greatly appreciated.
Stop Flash Animation When User Clicks HTML Link
Hi there,
I have a page that contains an SWF. Beneath this SWF are a series of links that open new _blank windows that also contain their own SWFs. What I would like to do is stop the first SWF when a user clicks on a link so that we don't have two SWFs playing at once (as it could get a bit noisy!).
So basically something included in the link that can control the SWF using Javascript would be great. I found some code that looks something like this (see below) but doesn't appear to work.
HTML Code:
<a href='javascript:example.TStopPlay("_level0/InstanceNameOfMC")'>Stop First Movie</a>
Any advice much appreciated
Right Clicks
Anyone got an actionscript that disables right clicks and certain keys? working on a lil cartoon.
Why 2 Clicks?
Hi everyone, I'm running into an interesting problem.
I want to resize an image, but there is a problem when the movie is run. It takes 2 clicks of the button, not just one, to aquire the dynamic image size.
here is the link to the movie:
http://www.athenianvp.com/gb/flash/holders-2click.swf
and here is the code:
on (release) {
holder.loadMovie("night.jpg");
oldWidth=getProperty(holder,_width);
oldHeight = getProperty(holder,_height);
d.text="HolderW= "+oldWidth +" HolderH= "+oldHeight;
w = mov1._width;
h = mov1._height;
w1=((oldWidth/w)*100);
h1=((oldHeight/h)*100);
d1.text="mov1.W= "+w+" mov1.H= "+h;
d3.text="w1= "+w1+" h1= "+h1;
does anyone know why it takes 2 clicks to get the values for oldWidth and oldHeight?? my only guess is that the image doesn't have time to load before the rest of the code is processed, but somehow i would figure that the software is smarter than me.
Thanks again,
wetodit
Need 2 Clicks?
Help! I can't figure this out. When you click on the PRINT button once, nothing happens. When you click it a second time, the correct action plays (the HISPANIC button drops and the submenu opens up). What's up with this???
Thanks!
Caren
Clicks Per Second
i need a fla file that shows the clicks per second some one is getting. any help?
Two Clicks When I Want One.
So I am in the process of building my first flash web site and I am having some issues with buttons. My site is one long movie that I have divided into 5 sections. It plays the first section as you enter the page and stop and waits for the user to click one of the 4 buttons on the menu. When the user clicks a button the video jumps to the corresponding screen. Pretty strait forward stuff. The problem that I am running into is that I have to double click the button to get it to go to the screen if there is animation on it. If it is just still text, I only have to click the button once. So basically one side of my site has to be double clicked and the other single clicked. I know it is not a huge deal but consistency would be nice. Ideally, I would like everything to work with one click. Any suggestions would be great.
Right Clicks, How To Do It?
Hello, Iīm trying to do a kind of interactive small game, very simple, the user has to click on the 5 buttons which are correct, within other incorrects, then when found the good ones just go to a frame or scene.
It is hard to explain, so I put a swf showing how it would be, more or less. only the two buttons are working.
Please someone can give a light, how to do or how to start it??
I have NO experience with this kind of thing in Flash
Thanks a lot.
Too Many Clicks To Get URL
I have a scrolling msg which links to a page in our site. For some reason, it's taking two clicks to get into the link, rather than one link (for most people, not all). My client hates this! Can't figure out why this is happening. Can anyone help?
I have an object action on the text. Nothing complicated.
Mouse Clicks
I want to be able to have a certain frame load when the user clicks on a 'button' but I don't have On Mouse Event action available when I have the text button selected. How do you I get it to check for a mouse release over the button?
1 Click To 2 Clicks
Is it possible for a mouse event to effect two things at once...I am doing layered buttons. and I want it to activate both of them without having to click twice really quickly.
Rigth Clicks
Anyone have an actionscript that disables the right click in flash. Also one that disable key strokes while flash movie is active. Chad
This is sort of a toughy
Mouse Clicks?
Ok i am aware of mouseDown and MouseUp, but is there anyway to be more specific such as detecting left, middle or right mouse clicks?
Thanks!
Clicks Are Stored?
Hey has any one else come across the problem of clicks being stored??
I've built a scrolling selector (kinda like a slot machine). its simple enough, a display window with a scroll up arrow above and a scroll down arrow below. The selection changes the appearance of a movie clip below. Clicking on the arrows lets you customise a character below. This bit works fine.
BUT
When I click the accept button below.
The timeline races off down the movie ignoring all the stops and condition statements. Its as if the clicks are stored up as "true" values and plugged into all the conditionals. I've been trying to debug this for the last 2 days and I'm absolutly flummmoxed? Any suggestions??
Cheers
Connor
Mouse Clicks
Is there a way to differentiate between a rightclick and a leftclick on the mouse?
Button Needs 2 Clicks....
I'm using this code on a frame:
_root.seventy5.onRollOver = function(){
killMusic.text = ("Vol. 75%");
_root.seventy5.onRollOut = function(){
killMusic.text = ("");
_root.seventy5.onRelease = function(){
mySound.setVolume(75);
}
}
}
Not sure if it's the order or what, cause it works, sort of, but only after one press, move the mouse off and back on and press again, then it works fine. These are buttons, should this frame code be for MC's?
Button Clicks
for some reason I have to double ckick on my buttons for them to go to the go.............. why is this? and how can i change this annoyance?
3 Clicks And Game Over
hey, does anyone know how tom make it so that when u click anywhere in my game its game over (takes you 2 another scene)
Tracking Clicks
Is there anyway to track how many times buttons in my swf clips are clicked?
I'm sure there is someway. I'd like to see which sections get the most traffic.
thanks.
Simulate 2 Clicks..
Hi!
I've a little problem to use the code for 2 clicks in ONE button...
Click(1)[button pic change]---gotoAndPlay(1);
Click(2)[button pic change]---stopAllSounds();
So there are 2 clicks in one button, 1 click shows Button picture 1, on a secound click it shows the 2nd Button pic.
Pls help me out. Thanx in advance.
Intercepting Clicks
I need some help with a problem...here goes.
I'm constructing an interface to play video in flash, and everything is hunky dory so far. I've based the functionality on the quicktime player, so that anyone familiar with the workings of a standard videoplayer will be able to use it without needing to read instructions first.
I have a scrub bar, comprising a draggable playhead, which in turn moves along a timeline track (on a layer behind the playhead). Both of these elements are movie clips.
The user can drag the playhead along the timeline which scrubs to any time within the video. The user can also click the timeline track along it's length to jump to a relative position instead of dragging the playhead to that point. When the timeline track is clicked, the playhead jumps to that position. So far so good.
This is my problem; what i want to happen is that when the timeline track is clicked (jumping the playhead to underneath my mouse position) I want the control to pass to the playhead. For example, click the timeline track to jump to that point, and whilst the mouse is down be able to scrub with the playhead from that point. However, I can't transfer the mouse down/click event to the playhead. Even though I've kept the mouse down after clicking the timeline and the playhead is under my mouse pointer, it ignores it and plays on regardless (usually holding down the mouse on the playhead pauses the playback).
I've tried setting the trackAsMenu property on the playhead and timeline track movie clips to "true", but the playhead still ignores the mouse state initiated from the timeline track.
Any ideas? Do I need to use a listener to transfer events captured from one movie clip to another?
Many thanks!
Mouse Clicks
hi, sorri i cnt remember if i posted this question or not once before, but i cant find where.
i just want to know how do you count the total number of mouse clicks in flash and then store that number in a varialbe. i dont really want to be using a hittest method, does any1 know a simpler way???
thanks
---Sri---
Stop Right Clicks
Hey!
I just wanted to know, how do i get ride of the options when u right click on a flash movie. on some websites when u try to right click on a flash movie, it only displays the option, "about flash...".
How do I do this?
Thanks in advance!
Blue Dragon
Counting Clicks ?
i setup some banners on my site and was wondering, how I can get info on how many clicks each banner got per month or per day even if that's possible ?
Clicks Per Second Calculator
hey, i am trying to make a clicks per second calculator in flash. i already have an AS that counts the total number of clicks, and then displays it in a text box. i need to have another text box that can display the total clicks, divided by one second. check my download if you dont get what i mean.
thanks
-maball54
Count Clicks
How do I count the mousedowns of a symbol?
Code:
score = 5;
circle.onMouseDown = PlusOne;
PlusOne = function(){
scorebox.score +=1;
};
Thanks
[F8] Stop After 4 Clicks
In this game you will pack four things for your travel. There are 8 things to choose from. When You click the things they appear on the person. You can unpack the things by clicking on the on the person.
When you choose wrong the character_mc will _yscale a little. The game is to find the right stuff to pack without getting the character tp _yscale.
Itīs almost finished but I canīt find a good way to make it impossible to click more things after 4 has been choosen.
Is there a way to remove the function of the functions when the clickamount comes to 4 and that they works again after unpacking one things ( amount turns to 3 )
Very happy for a answer.
I enclosed a file in mx-format.
Count Clicks
hi
Iam Kishore i need your help
that the actionscript required to count the number of Mouse clicks
and display it to the user
if any body know the answer then plz say
bye
abyu.kishore@gmail.com
Time In Between Clicks
Hi,
I am having trouble getting flash to read the time in between mouse clicks. If anyone has a suggestion where to start, that would be cool.
-junk
Button Clicks
I'd like to have a button go to different frames each time the button is clicked. SO click on frame 1350, click two frame 2610, click three well you get the idea.
on (release) {
gotoAndStop(1350);
}
on (release) {
gotoAndStop(2610);
}
Button Clicks
I'd like to have a button go to different frames each time the button is clicked. SO click on frame 1350, second click go to frame 2610, click three well you get the idea.
ActionScript Code:
on (release) {
gotoAndStop(1350);
}
on (release) {
gotoAndStop(2610);
}
|