Professional :: Sliders For Controlling A Movie

Dec 8, 2010

I have spent 2 1/2 days now looking for a way to make a movie of 16 pictures where the progress of the movie can be controlled by a slider.  This is either not a very common use of flash, or a very advanced project to take on.  I know nothing of action script, and am trying to learn how to make this happen.  I have been able to do this with buttons to go forward and back a frame when pushed, but I can't get the slider component to corelate with frames. 

View 2 Replies


Similar Posts:


Professional :: Listeners That Responds To Button / Sliders On Frame

Feb 19, 2011

I am writing a little app, and have buttons and sliders on one frame 1 of the stage, and then a help screen on frame 2 of the stage. I have some event listeners attached to the objects of the first frame. When I move to the second frame, and then go back to the first frame, all the event listeners have gone out of scope, and no longer work. (at least that is what I think is happening). I think the best way would be to add something like add Event.ADDED_TO_STAGE listeners to each object, and have the listener function add the event listeners that I want for each item.

So I would have:
public function Document(){
super();
iSlider.addEventListener(Event.ADDED_TO_STAGE, added);
iSlider.removeEventListener(Event.REMOVED_FROM_STAGE, removed);
myButton.addEventListener(Event.ADDED_TO_STAGE, buttonAdded);
myButton.addEventListener(Event.REMOVED_FROM_STAGE, buttonRemoved);
}
In each of the listeners, I would add / remove the listeners that actually respond to the button / slider.

View 2 Replies

Professional :: Button Inside A Movie Clip Controlling Main Timeline?

Mar 10, 2010

I have a movie clip on the main stage- inside that movie clip is a button- I want that button to contol a function on the main timeline-

example: Button Script

closeAll_btn.addEventListener(MouseEvent.MOUSE_DOWN, goCloseAll);
 
function goCloseAll(e:MouseEvent):void {
****don't know what to put here to activate "closeAllOpenMovieClips" function on main stage****
}
 
example: Main Stage Timeline Script
 
function closeAllOpenMovieClips():void {  trek_mc.gotoAndStop(1); lost_arts_mc.gotoAndStop(1);  rain_mc.gotoAndStop(1);  vintage_mc.gotoAndStop(1);}

***don't know if I need more script on Main Stage Timeline that just "function" ***

View 5 Replies

ActionScript 2.0 :: [Flash MX] Loaded Movie Controlling The Source Movie?

Apr 28, 2003

say i have a main movie, into this movie is loaded another movie on level_1.

is there any actionscript that allows a button inside the loaded movie control the main movie? i.o.w. can a button inside the loaded movie tell the main movie to go to another scene?

+ i am looking for code for that same button to unload the movie it is in itself..

View 10 Replies

ActionScript 2.0 :: Controlling Main Movie From Movie Clip

Jun 16, 2005

I have instances in my movie layed out as such

_root contains
[sliderX] which contains
[holder]

Where X is a number from 1-500 inside [holder] is a button that when pressed should load an image into new browser (does this fine) then move the main movie to it's next scene. this is when it fails. I have tried

[Code]...

View 1 Replies

ActionScript 2.0 :: Why Can't I Do Volume Sliders

Dec 15, 2004

I've been trying to create a volume slider for about two hours now and it just doesn't work. I followed Ilyas' slider tute and Kirupa's volume control tute both to the letter and now no sound loads, the slider doesn't control anything and it sticks to the mouse when you let go i.e. it still drags left and right across the slider after you release the mouse button.I can't show you my code unfortunately as I just got really angry and wiped it.Could someone please either show me exactly how to load a sound and control it's volume in one tute (Kirupa uses a different method from the "load sounds using AS" tute to load his sound in the volume tute but he doesn't explain it. I don't want his source .fla+mp3.) or make me a .fla that loads a sound called "music" (linkage name) and controls it's volume.

View 3 Replies

ActionScript 2.0 :: Lock Two Sliders Together?

Jul 6, 2007

I've created a slider control (using the excellent tute on kirupa) and am using two instances of it on my stage. I also have a lock that sets the variable locked to true or false. What I want to do is if locked == true have both sliders move simultaneously to the same values if either one of them is dragged...

View 1 Replies

ActionScript 2.0 :: Different Sliders For Different Robots?

Jul 8, 2003

I'm going to have the user choose how many robots he wants to generate. These robots are their own little movie clips, and they work on input variables like "speed" "path" "bump" etc. I want these variables to be controled by a bunch of sliders.

When someone clicks on a robot, I want that robot's control panel to come up, and show the settings for that robot. Then if I click a different one, I want it's own control panel to come up, with that robot's settings.

So, I'm wondering how to get these control panel MCs to retain their settings. Should I just use a bunch of _visible = true/false statements? How is this typically done?

View 4 Replies

ActionScript 2.0 :: 4 Sliders To Represent 100%?

Jan 20, 2009

I have 4 Sliders that I want to represent 100% of a total Number; Say the number is 100 and you start all the sliders off at 25. Each Slider has a Min of 0 and a Max of 100, to represent 0 to 100 percent of the Total number.So if one slider is all the way to 100% the rest of the 3 are at 0%;

Example: All Sliders are set to 25, and you slide the top slider to the right (increasing) say to 40%; The Sliders should say 40%, 20%,20%, and 20% since it would decrease the rest of the sliders accordingly, so they all add up to 100%;.

View 4 Replies

Professional :: Controlling One Swf With Another

Aug 23, 2010

I have a site I am working on which has a Flash intro.  The other pages of the site hold a menu that's created in Flash.  For some reason my client wants the ability to go back and view the intro again, which is easily accomplished with navigateToURL.  HOWEVER the intro is broken into two distinct parts and I need to target the second part, which would require something along the lines of gotoAndPlay(500); or something to that effect.
 
What I am having problems with is how do I target a specific frame in a completely different movie, the intro, using a button from the Flash menu within the site.  I'll try to explain it a bit easier.  The top button on staticMenu.swf, which is placed throughout the site (aboutus.aspx, portfolio.aspx, etc...) needs to target frame 500 of mainIntro.swf which is embedded in default.aspx.

View 1 Replies

ActionScript 2.0 :: 3 Sliders - Changing Value Of TextBox

Jan 15, 2009

I'm trying to make 3 sliders that, depending on each other, changes the value of a text-box. Example:
If Slider A moves to 150, the value in the text-box changes to 150.
If you then move Slider B to 40, the value in the text-box changes to (150+40) 190.
Same thing for Slider C.
So basically I want the value of what you select in each Slider to be added together in real time like this: [URL]. Only this shows just one slider, and I want three, added together.

View 1 Replies

ActionScript 3.0 :: Make 3 Sliders To Work Together?

Sep 8, 2009

I have three sliders and they are generating numbers. What I am trying to do is, liderOne.value is divided by sliderTwo.value. And that gives me a number named density... Everything is okay for now...ActionScript Code:var density:Number = sliderOne.value / sliderTwo.value ;But I want the third slider to change the alue density by itself. I mean, in the purpose of doing that, I tried;ActionScript Code:sliderThree.value = density;but by this way, sliderThree is showing me the values of density. Everytime I change the values of sliderOne or sliderTwo, sliderThree is changed as density changes. But when I test the movie and try to change the sliderThree , it was like a big rock and not even moving

View 2 Replies

ActionScript 3.0 :: Controlling A Movie Within A Movie?

May 7, 2011

Here's my problem. I have a movie on a stage (MyMovie) that I can control with start and stop buttons. Let's call it MyMovie. Inside that movie there are 4 layers. Layer one has movie1 which contains a movie created with a movie clip symbol that has been tweened over 60 frames. Layer 2 has a movie clip which has the movement generated by action script using a simple aray. That movie has start and stop buttons controlling the action script movie. Layer 3 has a movie clip (movie3) that is generated using the built feature copy motion as actionscript 3.
 
I know it's kind of confusing so here's a screenshot of the MyMovie timeline:

Here is the Scene timeline:

The problem I'm running into seems like it should have a simple solution. The first line in the Actionscript for Scene 1 is stop(). I expect MyMovie not to play. The blue outline around the yellow circle is actually a blue circle below the yellow circle. It is the only component of MyMovie that derives it's animation from a tween. It is also the only part of the animation that is stopped. The yellow circle, motion by a tweening a simple array will play with the stop and go buttons and the orange circle animates all the time. Pressing the big go button causes the blue circle to animate, pressing the stop button causes the blue circle to stop, but all the other animations inside MyMovie keep running. I have no control over the embedded movies.
 
I seems to me that it should be easy to start and stop all elements embedded inside MyMovie by simply stopping MyMovie. There's obviously something that I'm missing here.

View 3 Replies

ActionScript 3.0 :: Run Movie With More Controlling?

Dec 5, 2010

i want to run movie with more controlling If I have a time line displaying some motions Every motion have a number

Is it possible that the user of swf flash select the number of motions he want to run by input the beginning motion number and the end motion number ?

And can he choose a number to repeat that motion he have chosen ?

it is working very well as it is but when i manipulate it and the time line enlarged .. it doesn't work

View 2 Replies

ActionScript 2.0 :: FMX: Controlling Another Movie?

Feb 21, 2003

I'm having a 2 flash movies in my web page (let's say index.html , movie01.swf and movie02.swf). Is there a way, when something happens on movie01 (like a click) that movie02 does something as well like plays a MC? My HTML page has 3 frames, 1 top, 1 left, 1 main. Movie01 on top and Movie02 just a small area in left frame.

View 8 Replies

Flash Sliders To Effect Numerical Values?

Feb 11, 2011

I used to use flash years ago, and have only recently come back to it in my course in university so im very rusty.

What i am looking to do is in flash create two sliders where the user can slide along to their shoe size, and their weight, so that as they do that, the numbers in two other boxes will periodically change to help indicate what size snowboard they need to get.

eg. as user makes shoe size slider go along to larger sizes, at certain points the number in a box labelled board width will increase.

also as an added touch I would like a character to actually increase in size as the slider is used, I'd imagine for this I would need to have a movieclip of the character getting bigger and allow the slider to progress through the frames of this movieclip.

View 2 Replies

ActionScript 3.0 :: Creating Featured Content Sliders?

May 20, 2009

how to develop a featured content slider.  The following web sites are examples of what I'd like to create:

[URL]
 
the following behaviors are desired -  using nothing but pure ActionScript 3.0 and Flash CS3.  I realize some of these use jQuery or JW Image Rotator - we are not looking to do that.Preloader for each slideAuto play for each slide with fade transitions to the next slide. Markers (highlighted) indicating which slide is currently playingNavigation (back, forward and the ability to select each marker)Display corresponding HTML content underneath the graphic [URL].

View 1 Replies

ActionScript 3.0 :: Can't Get The Volume And Balance Sliders To Work Right

Sep 27, 2008

So i am working on a widget and I cant seem to get the volume and balance sliders to work right. Can someone take a look at my code and see if you know what going wrong. The web address of the widget is [URL] . The only slider that works is the first one for now. Till i figure out why this one wont work. and the action script is below.

View 6 Replies

ActionScript 3.0 :: Create Custom Sliders Angle

Jun 30, 2009

I'm creating a group of sliders that control the opacity of several MCs in the .fla file. Right now they move straight up or down, along the y axis. However, I would like to be able to customize the angle that each moves at (e.g., tilt slider01 45 degrees, slider 02 50 degrees, etc.).

I'm assuming that I would have to create a custom math class to do this, but I have no idea what logic to go off.

The class for my sliders is below.

Code:
package
{
import flash.display.MovieClip;
import flash.display.*;

[Code]....

View 2 Replies

ActionScript 3.0 :: Create Dynamic Sliders Like Ones In Attached?

Feb 15, 2011

I can't figure out how to create dynamic sliders like the ones in the attached.

For the sliders there are 100 points available. The three sliders can only have 100 points between them. For example, if slider 1 has 50 points. Slider 2 and 3 would only have 25 points between them.

View 9 Replies

ActionScript 2.0 :: RGB Values Change With Horizontal Sliders

Sep 27, 2007

I have an Image which should be color changed by sum kind of sliders.I tried several things (like quasimondos or gskinners stuff) but these demos are to heavy for me needs.

View 1 Replies

ActionScript 2.0 :: Developing Sliders That Load Movies?

Oct 27, 2003

I want to be able to have a slider that loads movies. I am a newbie to Flash MX 2004 but I am a quick learn and have a very technical background in mathematics.

View 5 Replies

ActionScript 2.0 :: Sliders To Adjust MC / Tint Level?

Oct 19, 2004

I am looking for sliders that let you adjust an MC (or graphic) through the interior hue specturm as well as another slider that will adjust tint level (brightness.)

View 1 Replies

Professional :: Controlling Audio In Flash CS3?

Feb 1, 2010

I've a number of audio files and six menu items in my presentation.respond with instruction on how to stop the currently running audio when a new menu item is clicked (launching a new audio file)?

View 2 Replies

Professional :: Controlling Flash Through HTML/JS?

Mar 29, 2010

Is there a way to control Flash using HTML or JavaScript?
 
The example in question is to click on a link in a web page that launches a flash .swf and changes scene once loaded.

View 3 Replies

Professional :: Controlling Sound Of An External SWF?

Jan 11, 2011

I'm trynig to control an sound of a external SWF but I can't seem to get it right,here is the code i'm using to import the sound
 
mport flash.media.Sound;import flash.net.URLRequest;import flash.display.Sprite;import flash.media.SoundChannel;import flash.events.Event;import flash.events.MouseEvent;var _som1:Sound;var _channel1:SoundChannel;var _playing1:Boolean = false;var[code]...

View 16 Replies

Professional :: Controlling MovieClip Loaded From SWC

Aug 25, 2011

I'm loading assets from a swc and I need to loop through every frame of the movieclip and find a certain instance so I can colorize it. Is this possible? It seems that with a swc I loose the ability to control the movieclips playback. It just plays and repeats no matter what I do.

View 4 Replies

ActionScript 3.0 :: Controlling Object In Another Movie

Mar 6, 2009

I'm pretty sure this is possible, but I can't get it to work. I have a main movie and in one frame I am loading in another swf. The user goes through the activity in the loaded swf and then needs to continue on in the main movie. I've added code in the last scene of the loaded swf that I thought would allow it to navigate to the next frame in the main movie:

PHP Code:
function next4(evt:MouseEvent):void {
this.parent.parent.gotoAndStop(4);
} continue2_btn.addEventListener(MouseEvent.CLICK, next4);

But when I play the main movie, I get the error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at ELC_fla::MainTimeline/frame3()
I have tried to communicate to the continue button in the loaded swf from the main movie, but that didn't work either.

View 7 Replies

ActionScript 2.0 :: CS3 Controlling All Movie Clips

May 19, 2009

Im working on a quiz kind of game in which if you click an object, you get a question (the object is a movie clip and the question is within it). If you answer it, the movie clip stops at a particular frame. And so go all the objects in the game. Now, because you cant predict which object the user will click on last, I dont know how to bring in an ending screen saying that they've completed it successfully.

View 1 Replies

ActionScript 3.0 :: Controlling A Movie Clip With Another?

Mar 22, 2010

Problem:I have my main Scene 1.In that scene I have 2 layers.Layer 1 has a movie clip named ca.Layer 2 has a movie clip named tutorial.When a button is clicked in movie clip ca I want it to tell movie clip tutorial to gotoAndPlay("31")

I was using the code:
btn_ca.addEventListener(MouseEvent.CLICK,click01);
function click01(e:MouseEvent):void {

[code].....

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved