I really don't need happening after spending a week figuring out why some code didn't work, only to rewrite it and have it suddenly start working. I guess it's the classic case of running into more, more serious problems right after making an extremely good breakthrough!.Anyways, my problem is that my dynamically drawn sprites with the PerspectiveProjection property set on each, all of which are contained in a movieclip (which is at stage-level), no longer have MouseEvent functionality - at this point, I think anything past regular Events no longer work, but my stack of important issues eats up all time I have to test.
Before I started having issues, I was using just a scale effect to simulate the 3D-ness of the movie. After figuring out why past attempts at using Z axis on these sprites failed, I decided to add the perspective part to the transforming of each of these sprites. Ever since then, Mouse functionality just simply does not work. No errors are thrown, no runtime errors are displayed, yet the trace function does NOT work within the functions (meaning it isn't the content of the function not working) - simply does not want to do anything!Other animations and such work perfectly fine - i.e. tweening the X, and Y values, etc
I've created some animated buttons (using movieclips of keyframe animation) and when the mouse goes over the button it starts a new animation sequence.now I would like to add some text when the mouse goes over the button but I tried adding the text I want to a new layer of the animation but obviously this just plays for the duration of the animation sequence or if I add another keyframe so it only shows for a short time then it will flash up each time the sequence loops around (I don't want the overstate sequence just to play once - I want it to keep going while the mouse is over the button)
How would I go about using an external video in which the video would scrub (or move forward or rewind) when the user clicks on an object and drags the object left or right? I want to make a site in which the user has control over the movie, and when they choose left or right, the video will scrub to a certain cue point. wants it hits that cue point, the video will seek to another cue point and the story will continue. I want to make it so when the user clicks on the person, and drags them, it scrubs through the video as if the person is walking in a certain direction. I think I have the cue points set up properly, now to just figure out the rest.
In Flash/ActionScript2, is it possible to capture the mousemove, buttonup and down event but only within one MovieClip? At present, i can capture mousemove etc. via a listener, but only for the entire stage..I need to draw a rectangle for selecten, and then press a save button. The problem is i save the coordinates on mousedown and up, but when I press on the save button, it saves the coordinates of when you pressed on the save button...I've tried mc.onXY, but that either listened not at all or to the entire stage...
Edit: Code as requested mc.onMouseDown should be mcImageToCrop.onMouseDown
I did change it back to mc when mcImageToCrop didn't work...
import flash.geom.Rectangle; Create a container by calling the setUpContainer functie wich will return a movieclip with a needed propeties set. var container:MovieClip = setUpContainer();[code].................
Some 360 degree animation is spinning on screen. Now: I would like to control the rotation with the XY of the mouse: e.g. I move the mouse to the left side, the animation is spinning leftwards. I move the mouse farther left, the anim. is spinning leftwards and faster. Naturally the same thing should work for the right side.
I need to control the timeline with the mouse. For example, if the user rolls the mouse from left to right. it'll play the movie to the end frame. and if they go back, it'll rewind them to the original frame. Think of it this way, a (faked) 3d enviroment (series of separate images) which is rotating in back and forth and controlled by direction of the mouse. (i'm aware that i could potentially do invisible buttons along different parts of the interface, but that'll not work as smoothly as i need) I've searched for a lot of tutorials and examples, but can't seem to find anything that I'm looking for.
Some 360 degree animation is spinning on screen. Now:I would like to control the rotation with the XY of the mouse: e.g.I move the mouse to the left side, the animation is spinning leftwards.I move the mouse farther left, the anim. is spinning leftwards and faster. Naturally the same thing should work for the right side.
I have a flash menu.It has 8 buttons on the stage.Each button has a up state and over state.To show the user how this menu works i want to simulate a mouse over on each button, from button 1 through to button 8. With perhaps a few seconds delay between each mouse over. I found some action script that advances the frame after a specified time but it doesn't actually trigger the mouse over state.
I want to take a folder with 20 pictures, in some way convert them into a movie. And then apply so that I can navigate the frames one by one in the movieclip by moving the mouse right and left (move mouse left - navigate backwards frame by frame, move mouse right - navigate forward frame by frame).
So I've been following a youtube tutorial to make a mouse controlled scrolling slideshow. [URL] I cannot get the thumbnails to slide...I used this action code:
I've been searching through here constantly for a thread about a horizontal scrolling menu for actionscript 3, but I can't find any that are what I need. I have something that has been written for AS2, but I don't know how to write it for AS3.
This is the script I have now, that I got from a website called Sitepoint (Flash Script - Scrolling Menu With A Scrolling Background, I'd link but this is my first post here).
xm = 0; function xpos(bar_length,mul) { hpos = 400;
[Code].....
I like it because its all based on the x position of the mouse which I feel makes the scrolling easier to control than a variable speed, not that it matters too much.
Does anyone know how to control an mc's timeline with the mouse position? So, when you click and drag right it plays the timeline forward and vice versa? I know how to do it with a slider, but I'm stuck on replacing the slider position with the coordinate where you click your mouse...if that makes any sense.
I am creating a text field via actionscript that imports external text. I have to use the UIScrollBar to scroll the text. how to control the scroll by using the mouse wheel?
Right now all the sounds (78 of them) on my guitar play using the roll_over event but that doesn't give the user much control over what sound is played.
The actionscript im using to play my sounds is this;
I'm using PanZoomComponent in my application. When a user holds down control key with mouse press, I want to show hand tool by making PanZoomComponent object's property childPreventsPan = false; In short at combination of control key and mouse press I want to show Hand tool if not cursor.
I have some Movieclips that play sounds on mouse over, and end the sound on mouse out. That has worked fine for me.I just implemented some tween animations on the rollover (they enlarge), but now I am having problems because the animations cause multiple mouse over/out events.
how can i control my line thickness with the speed of the cursor?Right now ive got this code, but how can i convert (speed) into something that can be translated into thickness?
ActionScript Code: var prevPt:Point=new Point(mouseX,mouseY); addEventListener(Event.ENTER_FRAME,mouseSpeed); function mouseSpeed(e:Event){
basically i want an action to take place when my mouse is within a certain amount of pixels of the edge of the screen (or boundaries). I know the AS2 code, but need it in AS3.I realise that listeners are going to be needed, so if anyone is kind enough to help me out convert this code
heres the as2 code:
root.onEnterFrame = function if(_root._xmouse<50){ instanceName.prevFrame(); }
Because here in my game the main character is controlled through mouse and i want it to be controlled in left and right arrow keys. Here are the codes:
I am trying to make an animation where the user can mouse over a small MC at the top of the stage, which controls the movement of another larger MC at the bottom of the stage.I am thinking that 'points' (which I know nothing about) might be the way to go. The other thing is that it needs to be fluid motion. Am I at least on the right track with points and mouse_move or is there a better approach for this?