ActionScript 1/2 :: Draggable Progress Bar For Swf?
Oct 12, 2011
I need to add a progress bar/playback controls for a presentation built in AS 2.0 which has such length voice over in it we've decided we need to give the user the ability to see where they are in the timeline and scrub through sections of the presentation. I'm familiar with stop and pause button code in situations like this, but it's the first time I've needed this kind of functionality. Presently, the first part of my project is set up with several scenes and is completely linear. The second section is interactive with swfs loaded into empty movieclips.
I've found a number of references to progress bars online, but they're all for loading content, not for navigating once content is downloaded.
My main swf file has about 2000 frames. I want to make a progress bar with playhead that when we drag it, the swf file will adjust appropriate position, similar to the progress bar in comman media players.
I have created a custom skin for a Flash video that I wish to use. I currently have a shape tween within an MC that acts as the progress bar for the Flash video. Is there code that will allow me to click and drag that shape tween and control the movie? My movie is embedded within my flash not streamed.
I have an SWF movie (1375 frames) and created a progress bar (248px wide) with a slider that moves according to the movie progress. I'm doing that next way:Calculating the distance for the slider to be moved each frame (248 / 1375) On each ENTER_FRAME moving the slider for the calculated distance The problem is - the movie ends far before the slider reaches the end of the progress bar.
I'm thinking that the distance (Step 1) is is somehow ends floored by Flash and the actual distance it moves the slider is smaller than required. That's why the movie ends, but the timeline control just passed the 2/3 of its way. My question is - is there any solution for the problem? Or any other way to go, if it's a wrong one?
I only started yesterday with no knowledge at all.How do you make draggable items? I looked around and I saw things about actionscript and all that but what do you do?
I have 4 buttons which i have to make them draggable. The problem is that i have 3 conditions
condition #1. Only 1 button/mclip is draggable in its axis [done].
condition #2 .The 4 button/mclip must be dragabble at the same time, that is, when i drag one, the others should drag at the same time in their own axis.
create a draggable interactive map using CS3 and using actionscript 2.1. We are creating an application for a touch screen device and we must provide a draggable map which contains 'hotspots' which when clicked provide additional information (text and pictures).
I need clickable buttons that stay in the same relative position over the map so that when it is dragged the buttons move with the map. (sorry if that sounds confusing) At present I can only get a static button working which stays in the same position and the map moves independently.
I got to create an app with 3 draggable circles. (Red,Green,Blue). At the centre overlay the RGB needs to display the mixed RGB. I.e if red and blue, overlay display magenta. If green and red overlay display yellow. If red, blue and green overlay display white, etc.
I keep jumbling it up so that one thing works but the other doesnt. But basicly I need it so that when I drag fish1_drag (instance name) over ISpace1 (which is within many MCs : _root.UI1_mc.UI1_mc2.inv_mc.ISpace1 but opens up so you can drag it over it) for it the drop on the ISpace1.
I have another MC in the library and il get that the attach to the ISpace1 but what im finding difficult is just being able to drag the fish1_drag over the ISpace1 and releasing.
Here is some other reandom code that I have in a comment on my AC panel:
/* this.onRelease = function() { stopDrag(); _root.UI1_mc.UI1_mc2.inv_mc.ISpace1.attachMovie("fish1_mc","attached1 ",this.getNextHighestDepth()); _root.invCount += 1; updateAfterEvent(); // I probly dont need this updateAfterEvent. but its there anyway. }; */
I'm working on a project where I have cards that need to be moved around and flipped. The cards themselves are on individual movie clips. I originally intended for a double-click to flip the card, and a click-and-drag to movem them around. That just wouldn't work; for some reason the double click wouldn't work even thogh I had doubleClickEnabled set to true. So what I'm currently trying is to have a button that flips the cards within the card movie clip; however that is also not working. Somehow, the button stays in place instead of being moved with the rest of the MC.
So I have a Big map that i can zoom in and out and draggable too.But I want on a corner a smaller version of the map and a square to show me where i am on the big map.
there was a tutorial that was here where it showed how to do a draggable zoom thingie. and i cant find it. and ive looked for it a billion times and i cant find it!so here is what i want to happen.ok, so the normal view, when you click on the magnifying glass, you can move it around, and showing a zoomed view of the picture. now i know that you have to have two pictures, one big and one small. and a mask. and, dragging. and thats about it.
I'm working on a project that requires a draggable map that has buttons that popup onrollover. Inside the popup will be a brief discription and and link that should carry you to another part of the move. Problem is, I don't know how to deal with the fact that buttons/rollover have become "inactive" because their in my draggable map. I am using startDrag for the map.
I have a text input box with a submit button. When the submit button is clicked, I'd like a draggable MC to be created on the stage that contains the input text.
Is there a way to turn off the transparent appearance of the toolbars when you drag them in Flash CS3. For example, when I drag the actionscript toolbar, it turns transparent and it's really lagging on my system
I just started making some simple banners for web sites. I got a new one to do this morning, and I was asked to make a button that says drag/pull here. as you drag/pull down, it reveals the layer below it. Also, as the button reaches halfway, it needs to go all the way automatically as well, so the users don't have to drag all the way down themselves. Is that something I need to do in actionscript
We are using CS3 and using actionscript 2.1. We are creating an application for a touch screen device and we must provide a draggable map. I have a map that is much larger than the screen size and I wish to be able to drag the map.Additionally the map needs to contain 'hotspots' which the user can click on and it shows additional information
I want to create a movie that allows boxes to be dragged around, and for lines to be connecting each box, wherever they are dragged. I have made the boxes draggable with the attached code.
what I mean, here is an example FLA: boxes.fla
I have no idea where to start on this, because searching for things like AS3 draggable movie clip with lines attaching, etc isn't very helpful.
I'm just trying to simply make a movie clip draggable (it was all oh so easy in AS2!) I'm getting "1120- access of undefined property "waves_mc"). Yes, I have the clip named waves_mc.
I've got 6 draggable movie clips that snap to a target - which works fine. If they don't hit the target area they snap back to their starting point- which also works fine.
My problem is that they can all be dragged to the target one after another, but I only want one movieclip to be at the target at any one time.
So,when I start dragging a new clip toward the target I want the movieclip thats already on the target to reset itself to it's starting position, thus being replaced by the incoming clip.
I want this to happen for all the draggable clips.
function dragSetup(clip, targ) { clip.onPress = function() { startDrag(this); this.beingDragged=true;
I am working on a video player with a selectable xml video playlist. I have successfully made the playlist draggable but can't seem to figure out how to allow the list (previously accessible outside the draggable movie clip) to be selectable. drag_mc is the movie clip which I have made draggable. Here is the part of code I am dealing with:
i am searching for a rope that has something attached at the bottom and i can swing it around by dragging the rope from the top(not from the object attached). it might be a rope(more flexible) or just a rigid line, like a draggable from top pendulum.
i came across the box2d physics engines and erik hagreis' site made with menus that are suspended with ropes. but im still stuck, i dont know how to make the ropes draggable from the top(instead of from the bottom, as in erik's site). if anyone has a hint or an alternative solution to using physics engines, let me know. im out of searches, i searched the whole net...
i have two draggable mclips on stage and need one of them two snap to the other whenever it passes over it. I tried with f(hitTestObject){ mc1.x = mc2.x; and mc1.y = mc2.y}, but it doesn�t work very nice.
ive got a text box a user can enter some information, an add_btn whcih will place the text onto an image inside a UILoader.i keep getting this error :
Quote:
TypeError: Error #1010: A term is undefined and has no properties. at DLS_fla::MainTimeline/onClickadd_btn()
when i hit the add_btn... why has it got no properties
ActionScript Code: function onClickadd_btn(evt:MouseEvent):void{ //and the work around for removing the old text when new confession is added. if(newTextBox!=null){
i'm trying to think through a little multi user game...how can i have some objects on the root, which are draggable, be shown to have movement when someone on a different computer is clicking them? i'd like to have the users mouse be visible to everyone... when you click and move an object... i can see your mouse moving, clicking, and moving the object.
I have a menu that i need to be able to drag, but the menu is only allowed to be dragged to a certain constraint. (i.e. before the menu can no longer be visible within the .swf) I have the basic drag ac:
on (press) { startDrag (""); } on (release) { stopDrag (); }
How would i go about adding constraints to this mc?