ActionScript 2.0 :: Stop Right Click - Forwards And Backwards Buttons?
Nov 3, 2010i need to stop users from right clicking to skip frames forwards & backwards. How can I AS2 code this?
View 1 Repliesi need to stop users from right clicking to skip frames forwards & backwards. How can I AS2 code this?
View 1 Replieshow do i get the backwards and forward buttons to work in firefox? I am using the anchors property but still doesnt work in firefox.IE is no problem though. I am a newbie,Been doing Flash for only 2 or 3 months. Trying to build a flash site for my business cause I can't stand HTML
View 5 RepliesI've used this code to go from one frame to the next
function backframe(event:MouseEvent):void
{
this.prevFrame()
[code]....
Now it works fine until I get to the last frame. Once I get to the last frame then click to go back, it won't let me go forward until I go all the way back to frame 1.
I know I can send symbols behind and to front of another symbols. But itīs not working!Is there some properties of symbols that doesnīt allow that?
View 6 RepliesI need to play forwards/backwards to target frame(or second) on my videoPlayer when I push a button. How would I do this?
Not sure how to tween the seek() property. I have TweenLite, which normally works great! But just not sure how to do it here..
I had the idea of a circular menu, and when the user clicks on a menu item, that one rotates to the top, and becomes highlighted (hopefully with easing). I've searched around here for reversing timelines, etc. but can only find ones that go to the next set frame.How do I get it to skip past the menu items in between? For example if #1 is at the top and I click on #4, I want it to skip past #2 and #3.
View 6 RepliesI am looking to control a movie clip with a backwards and forwards button.
I need the clip to stop at every 5 second increment both backwards and forwards. my movie clip is 25 seconds long.
I have found script for playing a movie in reverse
I have basic knowledge of action script and have access to flash cs5 so could work with as2 or 3.
I am looking to control a movie clip with a backwards and forwards button. I need the clip to stop at every 5 second increment both backwards and forwards. my movie clip is 25 seconds long.
I have found script for playing a movie in reverse and have tried to change this so it will stop in the above points instead of playing to the beginning or end, but my knowledge in as3 is very limited.
Do i need to put some script that plays with percentage?
I have some code done but it could be all wrong as I am not the best coder at all, just starting out.
Here it is:
package classes
{
import flash.display.*;
import flash.events.*;
import flash.display.MovieClip;
[code]....
I have multiple text input fields (up to 40, depending on visibility)that tab backwards instead of forwards. Is there a simple solution to this mis-direction?
View 2 RepliesI have a flow chart, the Flash works perfectly, no problems, however i am using the multiple screens on Powerpoint slides in a program called Articulate (a simple program to house things like this as a whole media object on a website etc).The only issue with this is that i need to add links on top of each button on the page, which link to other slides in the presentation. So not hyperlinks in the Flash code, slide-hyperlinks in Powerpoint.
The Flash code should be enough to make the shapes have hover states, but not be a 'button', if that makes any sense? The hyperlink shapes i add on afterwards in Powerpoint should be the clickable areas with the cursor turning to a hand, but the Flash code by itself should just have a hover state with the cursor staying as an arrow.
Here's the code -
var tl:MovieClip=this;
for(var i = 1; i < 30; i++){
[code]......
I am building a flash interface and I would like a menu where it is hidden to begin with (just a tab). You click the tab to expand it, and click again to collapse it. I've made a movieclip with animation of the menu opening up and closing, but I can't seem to work out how I'd go about making the movieclip open and close properly.
View 4 RepliesI'm making a website using flash,And on my movie it says Welcome to Blah Blah Blah,And then a button appears, To make sure my button works,The writing turns to bold and goes bigger,When the button appears it works and goes bigger, Until it reaches the point in the timeline where it has stop();It stops my movie from looping or restarting which is what i want, But it stops my buttons from working aswell, How to keep my button working but movie stops,If you want me to explain more just ask
View 1 RepliesI am creating a navigation bar in Flash (which will then be used in Dreamweaver). When you mouse over each topic in menu (ex. Products), i want it play a movie clip (so it shoots out a sub-menu underneath). so far so good, but the only thing is, the sub-menu won't stay open in order for me to click on buttons in it. For each button, I assigned it the Behavior to go to a url. Also, I tested the buttons within the mc and they don't seem to direct me to url. do you think maybe it's because it's nested within the movie clip?? Is there an easier way to go about this?
[Code]....
I have 4 buttons , one container and one background movieClip as the attached file shows. Well.. at the Gallery movieclip displayList I add the other three BLACK buttons like this:
[Code]...
Everything I need consist on swap the buttons when i CLICK or ROLL_OVER those buttons, how do I do on thats circunstance? With a container and a background at the same displaylist.
I want to make a picture gallery and use buttons that move you from picture to picture and backwards, but I don't want to tell button 1 to go to frame 2 and button 2 to got to frame 3 and so on (I hope you know what I mean)Can I use on button on a separate layer with the same action set? I tried something like that, but it didn't work:
on (release) {
thisframe =+1
}
[code]........
but it didn't work. I'm kind of new to any action script other than gotAndPlay, easy functions and all that.
what wrong with the functin 'stopFish' Without this function the fish in the tank swims but when I add it, it doesnt anymore. I just want the fish to stop swimming after I clicked it and start swimming after another click.
View 1 RepliesI have three buttons and when I click the second one, the first stops working (e.g. no trace event and it won't go back to the frame "tab1") but the third still works. Then when I press the third button both the first and second no longer work. If I take out the gotoAndStop lines, the buttons work fine. The subsequent frames simply have stops on them.
b1.addEventListener(MouseEvent.MOUSE_UP,b1Pressed);b2.addEventListener(MouseEvent.MOUSE_UP,b2Pressed);b3.addEventListener(MouseEvent.MOUSE_UP,b3Pressed);
function b1Pressed(event:MouseEvent){ trace("b1 pressed");
[Code]....
I have place a movieclip in several locations (scenes). When I click from one place to another it seems to be catching up to a location in time. The location of the site is: [URL]..
View 7 RepliesI have a image gallery where you can click a foward button or a backwards one. I have each image on every 15th frame. So when the person clicks the next button it plays from 1-15 where it stops if they click back it will go to 15-1 etc. I got it working with the 2 images so I can go between them but when I add a third it won't do anything. I execpt it's something to do with removing the event listener, but I'm not sure.
Code:
stop();
var bRewind:Boolean = false;
this.back_mc.addEventListener(MouseEvent.CLICK, onMouseOver);
this.forward_mc.addEventListener(MouseEvent.CLICK, onMouseOut);
function fireEvent(event:Event):void{
[Code] .....
does anyone know the code/actions for buttons so that when the button is pressed it forwards onto an email address?
View 3 RepliesI have AS2 code that does the following:
1. The Main .swf loads a new .swf into a higher layer (level5)
2. That new .swf is a holder for a movie controls - which play through the quicktime and...
3. At the end of the movie there is code that Unloads the movieplayer .swf and forwards the Main .swf to a new frame marker.
I now need to change this to AS3.My loading code in the Main .swf for AS3 is this (and it seems to work fine):
Actionscript Code:
var MOVIEloader:Loader = new Loader();MOVIEloader.load(new URLRequest("ANIMATION_01.swf"));MOVIEloader.x = 0;MOVIEloader.y = 0;addChild(MOVIEloader)[code]...........
I have a goofy issue going on with a drag/drop scroller. When i stop dragging the following onEnterFrame will not clear/stop unless you click on the movieclip again, then it clears.
Can one of you coder minded people see anything wrong with this? It works great, but i need it to clear as it's taking up that precious memory [code]...
I couldn't come up with a good title for this question but basically the problem is this - I've got a series of thumbnails and clicking on a thumbnail loads a larger picture into a holder movieclip on the main stage. However, if you click another thumbnail while the first picture is still loading, then both pictures load and it goes on from there. How can I make my code so that clicking a new thumbnail cancels any actions from previous clicks?
View 7 RepliesI just want to play and stop my movie on a key click.I don't want to have the drop menu open and have the user click 'play'. Isn't there some way they can just press any key and the animation will progress forward?
View 4 RepliesI created a slideshow in flash cs4 that continues to play infinitely. I am looking for a strip of coding to stop the movie on a thumbnail click, so the pictures can just be browsed through instead of playing automatically. The problem is, if I set autoplay to false, then it doesn't play at all. I want it to play automatically until someone clicks on a thumbnail.The coding needed is below.
var auto_play:Boolean = true; // true (OR) false
var auto_play_duration:Number = 6400; // 1 second equals 1000
var folder:String = "photos/";
[code]......
How do i stop a TIMER? i want to stop it on click
ActionScript Code:
var nextImagen:Timer = new Timer (5000);
nextImagen.addEventListener (TimerEvent.TIMER, playNext);
[Code].....
I have a presentation which is one movie clip in one frame on the main timeline. The movie clip has quite a lengthy timeline. What I need to do is stop the movie at a frame then play on mouse click and in some cases gotoandplay, then stop again. There are no other movie clips inside the main movie clip and I want there to be no buttons. Just proceed to the next bit on mouse click.
View 2 Repliesi have a plane with movie material on it, im trying to make when i click on that plane. im trying to make if i click on that plain and material is playing that stop play and if is not playing that srarts.may plane is named 'film' and material on it 'movieAssetMaterial2', can someone explain me how to do it? i have tryed to make it myself but cant find out how.[code]
View 1 RepliesI need to add ac2 to a movie clip. When the movie clip is clicked on I want it to play and when it is clicked again that it will stop. This is the code that I have on the button already -
onClipEvent(enterFrame) {
this._rotation += 5}