Go Back To Frame 1 When A User Clicks Anywhere On The Stage?
Dec 11, 2009I want the ability to go back to frame 1 when a user clicks anywhere on the stage that doesn't contain an object. Is this possible?
View 2 RepliesI want the ability to go back to frame 1 when a user clicks anywhere on the stage that doesn't contain an object. Is this possible?
View 2 RepliesI'm a student at Drexel University and I just completed a basic platformer for a actionscript class. My professor docked me some points for the game not working until the user actually clicks within the swf. I've heard that this problem is caused on mac osx, but I don't have any concrete evidence to get the points back. Here's a link to the game if you want to check it out.
[URL]
What I want to achieve is active links like in HTML websites.I have 3 buttons on the stage, when the user clicks on the first button it should be highlighted and should remain in that position till the user clicks on the next button. When he clicks on the 2nd button the previous one should come in normal state and the 2nd one should become highlighted and so on....
View 3 Repliesi'm making a rollover menu with AS3, and when the user mouse clicks I want it to go to a certain frame in a movie clip and stop. It does this fine, however I have an animation for it to play on Mouse out. So when user mouse clicks then mouse outs from the button area it plays my mouse out animation and i'm back to square one. How can i tell it to ignore the mouse out animation if the user has clicked the button?
[Code]...
I'm trying to create a game where circles appear on the stage and when the user clicks on one it disappears and their score is updated. The circles appear for a short time then dissapear. If they dissapear before the user clicks the user looses points. The game is to last 20 seconds then the user will be shown their score and a little thanks for player message. This is what I have so far:
stop();
addEventListener(Event.ENTER_FRAME, playGame);
function playGame(Event):void {
[code]....
Now what I'm having trouble with is all the timing. I need a way to turn the visibility off the circles after a few seconds of being created and I also need to set the duration of the game for 20 seconds.
I have been trying to make a score counter for a small game where the user clicks on a button on the stage, each time the user presses the button the score increments by 10, however I cannot get the score to display on the dynamic text field.
var score:uint;
//scoreCounter is the instance name of the dynamic text box
function updateScore():void{
score += 10;
scoreCounter.text = score.toString();
}
I have a layer called "home_movie" and on that later on the end frame is a movie clip that plays, what i want to happen at the end of the animation is it to send the user back to the frame above they started at. which is layer: home_movie, frame id: main_movieopt but its not working.
[Code]....
I have multiple frames with stop-points and labels on my timeline and an action where if the user holds down the button for >1 sec it will go to one frame, if <1 sec it will "gotoAndPlay" a warning animation. after that animation plays i want them to be sent back to the initial frame that they were previously in.
View 3 RepliesI have a project in Flash Mx 2004. On the first frame there is a menu with 4 menu items. When the user clicks an item, they are taken to another frame with some text and an exit button that takes them back to the menu. The forward button will not become active until all of the menu items have been viewed. There is no particular order for the items to be viewed, just that they all be viewed before the forward arrow is active and the user can continue. I tried puttin an action on the exit button to disable the related menu item, however, the item just resets back to enabled each time a user re-enters the frame.
View 1 RepliesI have a problem with a dynamic video player that I have created in flash. The video player is "SCORM" compliant so that when the user clicks the "exit" button a class file is called to mark the user complete in an LMS.I have tested the SCORM Code previously and it works with out issue. Usually I have the completion code embedded in an Actions Layer of the movie. This is the first time I have attempted to call the completion status in a class file, I have added a "trace statement" when the movie is tested within flash it runs the trace statement properly, but when uploaded to the LMS environment the course does not complete properly
View 3 RepliesI use Flex 4 for writing swf part of my application... So I have some swf files loaded in container, and what I need is allow to change that swf by clicking in it.How can I detect in which swf user clicks?
View 1 RepliesI'm converting some old Director/Shockwave animations to Flash, and I'm setting up a navigation system. I have a simple animation that runs from from 1 to frame 110, and I'd like it to loop until the user clicks a button. The timeline goes on beyond frame 110 with other stuff. In an "actions" layer in frame 110, I have the following
gotoAndPlay(1);
I thought that this would lead to the looping, but it doesn't. The movie just moves on beyond frame 110. Just as a test, I put the following at frame 110 instead.
stop();
and when I test the movie, it doesn't stop. The commands don't seem to be seen.
In ActionScript 3, can I detect when the user has clicked their back or forward hardware buttons on their mouse?
View 2 RepliesWhat is the best way to delay user mouse clicks?
For example, I don't want the user to be able to click really fast or hold button down (a small delay between firing).
I am editing a template made with as2, flash8 and its controlled externally by a html file. I want to add a gallery when the end-user clicks on a picture. The main problem is the structure of the template. Its like that: There is a symbol named "pages" and in that there are 6 frames which one represents a page of the website except the main menu which is in another symbol. In the 4th layer 3rd frame there are 6 movie clips which are instances of another symbol named "p1_3 copy 2" which is a button and an instance of another button named "but_picts". One of those movie clips i want to make it a link for my gallery. So we there is the movie clips with the following actionscript attached:
ActionScript Code:
onClipEvent(load) {
loadMovie(_root.url + "_portfolio1.jpg", this.cont);
url=_root.url7;
[Code]....
this is probably a really simple code, (it might be javascript i dunno)... but i want a simple 'X' button that will close my window when the user clicks it.---------------------------------------------------
View 2 RepliesIs there a way to return what's hit when the user clicks? Like if what's hit is a movieClip or a button and so om...
View 1 RepliesI need to get some color info for where user clicks on the screen. can i use getPixel with an imported image file ? or does it need to be converted to a bitmap?
here is the code im using to import my image
PHP Code:
function loaderComplete(myEvent:Event)
{
var myQueryStrings=this.loaderInfo.parameters;
//Live URL
[Code]....
I have a 400 x 300 video on frame 20 when a user clicks a button named double_btn I want them to go to frame 21 with the video still playing but double the size. Any ideas on how to do this?
View 1 RepliesI have a flash file.i contains menu bar on top of it.i need to redirect the user if he clicks on the menu item.please help me in acomplish this task
View 1 RepliesI have a portfolio_mc that is inside of a content_mc (stage->content_mc->portfolio_mc). There are 3 buttons that take the user to an appropriate frame designated by a frame label and this loads up an FLV. The problem is that when I click on any of the navigation buttons on the main timeline, the FLV that is currently playing, is still playing (I can hear the audio). How to stop this.
Here is the code used for controlling the buttons in the motion_mc timeline:
stop();
var naviArr:Array = new Array(btn01, btn02, btn03);
btn01.addEventListener(MouseEvent.CLICK, navigate);
btn02.addEventListener(MouseEvent.CLICK, navigate);
btn03.addEventListener(MouseEvent.CLICK, navigate);
[Code] .....
I've made a flex 3 app that is sitting on my web server. People will be able to link to this flex app on my web server on their own sites/blogs/forums and so on. Is there any way I can log where a user that clicks on it comes from? Example: the URL to the flex app is [URL] User A links the flex app at his blog at [URL] Then User B comes in to User A's blog and clicks the flex app and finally ends up at my site. Any way I can log User B's click through the flex app?
View 2 RepliesI want to put two games in my website but they both start at the same time.How can I get them to start separately when the user clicks them?
View 1 RepliesI'm soon to be launching an Adobe AIR desktop app. To make the best out of future updates I need to get analytics of which features get used the most and which not. How to track what the user clicks?
View 2 RepliesI am trying to create a slider component where the thumb does not display until the user clicks on the bar. When the user does click on the bar the thumb would appear wherever the mouse is on the bar. I have no experience with the display package and since I am pretty new to using flash in general I cant think of any other creative way to do it. How to make objects display and display where the mouse is clicking.
View 0 RepliesI want to have different ContextMenus appear when the user right clicks on different objects in my application. Right now, I define a custom Context menu in each different class that needs a unique menu. This works, but seems unnecessary.Is there way to centralize this so as to handle all ContextMenus globally? Im looking for something similar to how you can handle click events globally by determining the type of the target.
View 0 RepliesI have an opening screen which asks the user to enter the first name and then they click the "start" button.This then loads an external swf into it and it starts a quiz on a timer.All that works except that the timer starts sometime during opening swf.I'm not sure if it's when the main swf is loaded or if when the user clicks in the input box but it is definitely not when the user clicks the "start" button like I have programmed.I even tried to stop the timer until the user clicks a button on the second swf (the external swf that is loaded into the main swf)[code]In the loaded swf I have a clock_mc that holds the timer.the first frame has a simple stop(); and the second holds all of the code that makes the clock run.I then have code setup so that when the user clicks a button the clock_mc.gotoAndPlay(2)[code]
View 5 RepliesI am using an array to load flvs when a user clicks a button, however the scrubber (seek bar) doesn't reset back to the beginning of the next video and the play button turns to a pause (meaning the user has to notice that and click the play button, which I don't want them to have to do). Is there a reset function that I can use for the seek bar and a way to keep the play button on and not switch itself to pause?
Code: Select allimport flash.events.*;
import fl.video.*;
//display.bufferingBar = bufferingBar_mc;
[code].....
I have an animation made on After Effects and I want to know how to trigger each step of my animation as a user clicks on a button.
If the user clicks on contact my animation would go to the contact animation.how do I do that?
I am trying to change the z-index when you a user clicks on one of my movieclips. I get this error and am not sure how to resolve it. If anyone has a few minutes to view the code I posted below that would be awesome.
Here is the error I am getting:
TypeError: Error #2007: Parameter child must be non-null.
[Code].....