Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Sliders As Navigation Tool



Hey, Theres a slider code featured in one of the tutorials on this website which makes the animation increase in size as the slider moves up. Here's the link: http://www.kirupa.com/developer/mx/volume_slider.htm (I've eliminated the volume control). I wanted to know if it's possible to make it into a navigation tool where the user can navigate by pushing the sliders up to the top (once the sliders slide to the top, the page changes)??? Here's the code: this.ratio = 0;dragger.onPress = function() { //actions this.startDrag(true, 0, 0, line._width, 0); this.onEnterFrame = function() { ratio = Math.round(this._x*100/line._width); _root.volume = ratio; }; };dragger.onRelease = dragger.onreleaseOutside=stopDrag;



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 12-09-2007, 09:56 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Complcated Navigation/menu Tool
HELP...please

I am currently trying to create a rotating menu.
This menu is a cirular with buttons around the edge.
I would like the menu to rotate in oposite direction depending upon mouse position. I would also like the buttons to stay upright during the rotation. Once a user
rolls over a button I'm after a small movie to play, on roll off I then want it too disapear, when they click on the button I would like the same movie to play but not if the movie has already loaded.

The main problem I have is that I can get all of these things to work but not together in the same file, i.e. I can get the menu to rotate in opposite directions depending upon mouse position but I can get the buttons to stay upright although I have created a seperate file where they do.

Any Ideas? I'd live to hear from anyone.

Cheers

Brush Tool And Eraser Tool Troubles
i've been using flash for over a year and a half and i've NEVER came across this problem.

when i go inside a movieclip to edit it, it won't let me use the brush tool or eraser.

unless i draw a circle around the area i want brushed or erased.

what the crap did i do?

keep in mind that it works normal when i'm on the main timeline.

thanks for any help!

-nolen

Sliders
I am looking for some advice on how to create a naviagation marker that slides left and right depending on where you are. For example: If I have a bar with an arrow and markers with location names above that. I want the arrow to slide to the section that I am in. Very similar to the item on Macromedia's home page where you select which mx product you want info about. The arrow slides left and right. I am in dire need of any help on this. Thank you in advance.

Sliders
How do you create a slider that when move it from one side to the other will make the movie play faster on slower depending on the way you move it?

Thanks

Sliders
Hi,

I have a slider, same as for changing the volume of a clip, but instead i want it to change the alpha of a video clip but dont know how to tell the slider to change the alpha, if that makes any sense. any ideas?? also i was wondering if this slider could be changed so it changes the alpha and volume of the clip at the same time, if anyone has any ideas that would be great thanks.

Sliders?
I know there must be a tutorial for this, but I don't know what its called. I am looking for a way to make a menu with a sliding box that follows the cursor, but stays on a path and locks into place, basically sliding there to the area that the mouse is in. Sorry if this description is all over the place, I hope this rings a bell with someone, it is fairly common on webpages, i will post an example if i can find one.
chris

Sliders
Hi guys,

I made a basic slider on Flash MX, and it is sliding on a line from 1 to 100. What I want to do is devide the line in 10 portions. When I slide my slider I want it to stop at these fixed places. So lets say I am sliding from 1 to 10 and I stop at 6, I want it automatically go to 10, and if I stop at 3 I want it to go to 1. Same thing for any other portions. Is there a way to check an object's position, and change its position depending on a condition.

Any input is greately appriciated!!

Help Sliders In Flash 4
I am trying to create a user-activated slider that pans an image as the slider is pulled across. I am using Flash 4 and am a bit new to action scripting. I borrowed the code from someone else but it isn't working properly. The image won't slide and then some weird thing shows up at the end. Ultimately, this will be a placed movie clip into a mother document.

Here is a link to where the .fla file and its linked images can be found.

Please help!

http://www.blink.halfempty.com/playb...indspring.com/

Thanks,
kvogs

My Sliders Out Of Control
...I don't know what I'm missing in my code, but my slider is positioned to move along the X axis. The problem is that it's moving ALL THE TIME!. I want it to "dock" itself on the left side of the page and only shoot out when the mouse is over the links on my link bar. Here, take a look:

http://www.geocities.com/kampher1/index.html

Any suggestions gus? Your help is greatly appreciated...

Volume Sliders....
I've been working WAY too long on this volume slider, and i can't get it to attach to the sound. If anyone can please offer help i'd really appreciate it. I've gone through 4 online tutorials, and none of them seem to work.

Thanks!

4 Sliders To Represent 100%
Ok 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 50%; The Sliders should say 50%, 16.6%,16.6%, and 16.6% since it would decrease the rest of the sliders accordingly, so they all add up to 100%;

I've writing code for it, but it's just crap.

I was wondering if anyone has a good answer on how to do this.

I'm just stumped on an easy way to accomplish this. Maybe I need a new shot of caffeine.

Write any ideas!

Incremental Sliders..
How do I make an incremental slider? Any help would be greatly appreciated.. Thanks.
Cheers, d0t

Sliders Problem?
Hi

I am trying to create two custom sliders that are exlusive. I got stuff in place but since I set value of one slider to opposite value of the other it actually disables the drag option on that slider. So it kinda works like, once first slider moved to the right second moves to the left but then I can't drag second slider?

//this is in the frame of the main movie
setProperty("rotate.slider", _x, -trans.slider._x);

where slider bar one is "rotate" with movie "slider"

each "slider" movie has this actionscript
----------------------------------------------------------
on (press) {
startDrag("", false, -145, 0, 145, 0);


}
on (release, releaseOutside) {
stopDrag();
}
-----------------------------------------------------------

Any ideas??? Cheers

Sliders Please Help1111
Hi everyone can someone please showmehow i would make a slider. for example as the slider moves the information changes or code sends the playhead to a label on the timeline.

please help urgent

cheers

sean

How Do I Add The Component Sliders In MX?
flash MX 2004 comes with sliders but I don't know how to make the bastards work?
help!

Sliders Problem
here is a part of the code for some sliders i'm trying to make:


num=3;

for (i=0;i<num;i++) {
nm = this["k" + i];
nm.a = false;
trace(nm._name);
nm.knob.onPress = function() {
trace(nm);
offx = this._x;
this.a = true;
}


nm is the instance name of each slider on the stage(k0, k1, k2). When the knob of the slider is pressed, nm.knob.a = true should be returned but the onPress event is only registering for "_level0._level0.ops.k2" as shown in the output window for the trace(nm) statement in the onPress event. Why is this? and how can i fix it so i can get an onPress event for each instance of the slider?

Sliders For Dummies
Can someone please help me with a super simple slider?
I can't seem to figure this out on my own.

I want the track to be a black rectangle and the slider to be an orange rectangle of the same width.
When it slides, a masked image moves up and down.
That's simple, right?



Thanks for any help you can give!

How To Do Image Sliders?
hey guys,
I'm having a little bit of a difficulty with this tutorial. I need to add more than the 7 pics that are already in the tutorial. I have added an aqua box but when I go to play the movie, it just stops at the 7th pic. How can I add more pics?
http://redolent.net/stuff/testscroll/gallery.fla
http://redolent.net/stuff/testscroll/gallery.swf

Or does anyone know how to do this effect
http://www.cundari.com/index2.html

Where it scrolls automatically, and then it stops when you put your mouse over it, and then when you click on any image no there it'll take you to the website that's related to that item.

TWEENING With Sliders
Hi everyone,

Download FLA Here

so I have this very simple slider which when you drag it, it switches between 5 MCs. What I want to do is when the slider is at the point where it should switch the MCs a simple fade tweening happens.

I have been going crazy trying to figure it out. Please any help is very much appreciated. I am sure it's an easy fix, but I really can't figure it out.

Thanks a Million!!



Here's the CODE that's on the frame 1 in the stage:









Attach Code

stop();

// What's Visible

import mx.transitions.*;
import mx.transitions.easing.*;


mc01._alpha = 100;
mc02._alpha = 0;
mc03._alpha = 0;
mc04._alpha = 0;
mc05._alpha = 0;


// Slider MC interaction
this.onEnterFrame=function(){

if (sliding.ratio >= 0)
{

new Tween(mc01, "_alpha", Regular.easeOut, 0, 100, 1, true);
mc02._alpha = 0;
mc03._alpha = 0;
mc04._alpha = 0;
mc05._alpha = 0;


if (sliding.ratio >= 20)
{

new Tween(mc01, "_alpha", Regular.easeOut, 100, 0, 1, true);
new Tween(mc02, "_alpha", Regular.easeOut, 0, 100, 1, true);
mc03._alpha = 0;
mc04._alpha = 0;
mc05._alpha = 0;

if (sliding.ratio >= 40)
{
mc01._alpha = 0;
new Tween(mc02, "_alpha", Regular.easeOut, 100, 0, 1, true);
new Tween(mc03, "_alpha", Regular.easeOut, 0, 100, 1, true);
mc04._alpha = 0;
mc05._alpha = 0;


if (sliding.ratio >= 60)
{
mc01._alpha = 0;
mc02._alpha = 0;
new Tween(mc03, "_alpha", Regular.easeOut, 100, 0, 1, true);
new Tween(mc04, "_alpha", Regular.easeOut, 0, 100, 1, true);
mc05._alpha = 0;

if (sliding.ratio >= 80)
{
mc01._alpha = 0;
mc02._alpha = 0;
mc03._alpha = 0;
new Tween(mc04, "_alpha", Regular.easeOut, 100, 0, 1, true);
new Tween(mc05, "_alpha", Regular.easeOut, 0, 100, 1, true);
}
}
}
}
}
}

Custom Sliders
Hi,

I would like to make my own custom slider. How do i do this ?. Can someone please help me ?

Greatfull of any help.

Why Can't I Do Volume Sliders?
Okay, here's the deal, 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. Sorry.

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.

Sorry to ask for someone to DO this for me but I've been trying unsuccessfully for so long now and I can't identify the problem. I hope you can help me.

TIA
Paddy

Buttons And Sliders And AS, Oh My
Hi there!

I just finished the sliding menu tutorial (http://www.kirupa.com/developer/flash8/slidingMenu.htm) and it's great but i am wanting to customize it and was wondering if any of you could help me.

what I am trying to accomplish is having only 2 buttons, a forward and a backward, instead of having 4-5, etc.. buttons/thumbnails which you have to press independently in order to view/advance to the next image in my gallery of 5 + images.

no more than two buttons to advance/ go back to next/previous image

is this possible?
what would the actionscripting be?

thanks,

rex

Lock Two Sliders Together
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...
Any suggestions?

Please HELP Tweening / Sliders
Hi everyone,

(FLA file is attached)

so I have this very simple slider which when you drag it, it switches between 5 MCs. What I want to do is when the slider is at the point where it should switch the MCs a simple fade tweening happens.

I have been going crazy trying to figure it out. Please any help is very much appreciated. I am sure it's an easy fix, but I really can't figure it out.

Thanks a Million!!



Here's the CODE that's on the frame 1 in the stage:


Code:
stop();

// What's Visible

import mx.transitions.*;
import mx.transitions.easing.*;


mc01._alpha = 100;
mc02._alpha = 0;
mc03._alpha = 0;
mc04._alpha = 0;
mc05._alpha = 0;


// Slider MC interaction
this.onEnterFrame=function(){

if (sliding.ratio >= 0)
{

new Tween(mc01, "_alpha", Regular.easeOut, 0, 100, 1, true);
mc02._alpha = 0;
mc03._alpha = 0;
mc04._alpha = 0;
mc05._alpha = 0;


if (sliding.ratio >= 20)
{

new Tween(mc01, "_alpha", Regular.easeOut, 100, 0, 1, true);
new Tween(mc02, "_alpha", Regular.easeOut, 0, 100, 1, true);
mc03._alpha = 0;
mc04._alpha = 0;
mc05._alpha = 0;

if (sliding.ratio >= 40)
{
mc01._alpha = 0;
new Tween(mc02, "_alpha", Regular.easeOut, 100, 0, 1, true);
new Tween(mc03, "_alpha", Regular.easeOut, 0, 100, 1, true);
mc04._alpha = 0;
mc05._alpha = 0;


if (sliding.ratio >= 60)
{
mc01._alpha = 0;
mc02._alpha = 0;
new Tween(mc03, "_alpha", Regular.easeOut, 100, 0, 1, true);
new Tween(mc04, "_alpha", Regular.easeOut, 0, 100, 1, true);
mc05._alpha = 0;

if (sliding.ratio >= 80)
{
mc01._alpha = 0;
mc02._alpha = 0;
mc03._alpha = 0;
new Tween(mc04, "_alpha", Regular.easeOut, 100, 0, 1, true);
new Tween(mc05, "_alpha", Regular.easeOut, 0, 100, 1, true);
}
}
}
}
}
}

4 Sliders To Represent 100%
Ok, 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%;

I've been trying to crack the math, but without any luck. I have a feeling that this should be fairly simple, but that just adds to the frustration...

Any ideas?

Custom Sliders
Hi,

I would like to make my own custom slider. How do i do this ?. Can someone please help me ?

Greatfull of any help.

Why Can't I Do Volume Sliders?
Okay, here's the deal, 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. Sorry.

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.

Sorry to ask for someone to DO this for me but I've been trying unsuccessfully for so long now and I can't identify the problem. I hope you can help me.

TIA
Paddy

Sliders And Layers
Hi flash people,

I'm by no means a Flash developer, but I've been asked to look into creating a history timeline in flash,

The basic layout i'm after is a view panel where all the events on the timeline would slide in from the side at the top and a slider at the bottom which will shift the events for the selected time into view.

Code:
-----------
| |
| | ->
-----------
-----------
I'm really unsure how complex this is to create so am just wanting a basic overview of how I create this kind of timeline.

Also, I've seen multiple layers in the background which shift into view at different speeds, I imagine this is easing controlled with actionscript - though I'm unsure how that's done.

Here's something similiar - only mine will be more pretty
http://www.doncesar.com/timeline/Flash/

Tweening With Sliders
Hi everyone,

You can download the file from here:
http://iz.myftp.org/flash/slider_mc.zip

so I have this very simple slider which when you drag it, it switches between 5 MCs. What I want to do is when the slider is at the point where it should switch the MCs a simple fade tweening happens.

I have been going crazy trying to figure it out. Please any help is very much appreciated. I am sure it's an easy fix, but I really can't figure it out.

Thanks a Million!!



Here's the CODE that's on the frame 1 in the stage:


stop();

// What's Visible

import mx.transitions.*;
import mx.transitions.easing.*;


mc01._alpha = 100;
mc02._alpha = 0;
mc03._alpha = 0;
mc04._alpha = 0;
mc05._alpha = 0;


// Slider MC interaction
this.onEnterFrame=function(){
    
    if (sliding.ratio >= 0)
    {                

        new Tween(mc01, "_alpha", Regular.easeOut, 0, 100, 1, true);
        mc02._alpha = 0;
        mc03._alpha = 0;
        mc04._alpha = 0;
        mc05._alpha = 0;
        
        
        if (sliding.ratio >= 20)
        {                
            
            new Tween(mc01, "_alpha", Regular.easeOut, 100, 0, 1, true);
            new Tween(mc02, "_alpha", Regular.easeOut, 0, 100, 1, true);
            mc03._alpha = 0;
            mc04._alpha = 0;
            mc05._alpha = 0;
            
            if (sliding.ratio >= 40)
            {                
                mc01._alpha = 0;
                new Tween(mc02, "_alpha", Regular.easeOut, 100, 0, 1, true);
                new Tween(mc03, "_alpha", Regular.easeOut, 0, 100, 1, true);
                mc04._alpha = 0;
                mc05._alpha = 0;
                
                                    
                if (sliding.ratio >= 60)
                {                
                    mc01._alpha = 0;
                    mc02._alpha = 0;
                    new Tween(mc03, "_alpha", Regular.easeOut, 100, 0, 1, true);
                    new Tween(mc04, "_alpha", Regular.easeOut, 0, 100, 1, true);
                    mc05._alpha = 0;
                    
                    if (sliding.ratio >= 80)
                    {                
                        mc01._alpha = 0;
                        mc02._alpha = 0;
                        mc03._alpha = 0;
                        new Tween(mc04, "_alpha", Regular.easeOut, 100, 0, 1, true);
                        new Tween(mc05, "_alpha", Regular.easeOut, 0, 100, 1, true);
                    }
                }
            }    
        }                
    }
}


How To Connect Two Sliders With ActionScript
I am creating a mortgage calculator. The user must be able to set yearly income, personal money, price of the house and the max. mortgage with a slider. But my question is:
How can you create a slider that, when you change his value, an other slider is changing too (because: the more personal money, the less mortgage is needed).

Please mail me (Maurits@2die4.com)
Maurits Lourens
The Netherlands

[F8] How To Stop 3 Sliders From Exceeding A Value
Hi there,

I'm developing an application that has 3 vertical sliders that the user can independently move up and down. Moving any of them modifies a number that corresponds to the position of slider. I then add all values from all three sliders and am presented with a total for all three sliders (ratio). The total here then represents which of 5 options the user can select. So for example if the 3 sliders total 150 they are recommended to go with option 2, 350 recommends optin 3 etc.
The tricky bit which I cannot work out is how to limit the sliders to 950 in TOTAL. So the user can move the first slider to 950 but then he shouldn't be able to move the other two UNTIL he moves the first one down slightly. This process would be the same for all 3 sliders.

The code I'm using for the slider control is:

PHP Code:



for (i = 1; i<4; i++)
{
    var d = _root["slider"+i].dragger;
    _root["slider"+i].ratio.text = 0;
    
    d.id = i;
    d.onPress = function()
    {
        this.onEnterFrame=function()
        {
            _global.ratio=Math.round((-this._y)*5) ;
        }
        this.startDrag(true,0,0,0,-190);
    }
    
    d.onRelease = d.onReleaseOutside = function()
    {
        delete this.onEnterFrame;
        stopDrag();
    }    
}




I hope that makes sense and someone can help me out here.

Many thanks
Matt

[CS3] Three Sliders Generating 1 Combined Value
Ok, this is my first post here so please be kind. This will go well if we all work together

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: http://www.kirupa.com/developer/mx/slider.htm. Only this shows just one slider, and I want three, added together

Thanks for all the help I can get, tutorials, tips or just a cheer.

Jonas

Sliders And Numbers With Commas
I have a slider and an input field with a numerical value that has commas in it.

The input field works fine but flash crashes when I move the slider.

The initial value is 250,000 . Set as a variable on the time line.
I cant use commas in the slider parameters though.

Do I have to do anything particular to have a slider and keep the commas in number?

Fill Tool - THE MOST ANNOYING TOOL EVER
I'm trying to draw stuff, but the fill tool never works when I want it to. I try to fill something in, so I mess with the options till it works, but sometimes.. I CANT FILL IT IN AT ALL! Soo, then I have to do it manually which is really annoying. I CANT WORK LIKE THIS! Is there any way to make it not stupid?

Image Tweening And Sliders Project
Apols for being a bit dense but trying to do the following:
Want a create a flash simulation by using bitmapped grayscale image with ~6 objects that can have their intensity adjusted individually or in combination by using 4 sliders.

The sliders mimic changes in conditions from the +/- extremes and the norm. The - should have the intensities of all objects at zero. The norm should only reveal one object and when some of the sliders are at max all six objects should have maximum intensities.

I figure this would use tweening with ~6 or more images. Along with something like Colour_Slider found her on this site at http://www.flashkit.com/movies/Inter...v-60/index.php

Any suggestions greatly appreciated.

Dynamic ScrollPane Sliders Help Needed
I'm trying to do something like what you see in the link below. Most of which I can do without a problem with one exception. I can't seem to figure out how to get the vertical and horizontal sliders to resize when you move the slider to zoom in on the image in the scrollPane. Does anyone know how to achieve this?

Thanks

ABC Map

[F8] Dynamic RGB Sliders / Color Transform
I built a dynamic RGB slider using colorTranform, but I'm running into a glitch when the strings go from 1 character (ex: 9) to two or 3 characters (ex: 27 or 255) or three characters. you will have to play with the sliders to see what I'm talking about.



I attached the fla but if you want to follow this link, you can view it on my site. Click on number 13. http://www.logoglobe.com/opensource.html

thanks in advance for any help.

Levels, Huge Movies And Sliders
I had constructed a movie slider, which controls a movie called in levels. Its works perfect when I have a movie of 700 frames. But, when i increased the frames..to 10000, the slider strucks and while dragging backwards the movie strucks at the frame 20 and dont goto 19 to 1 frames. I dont know why this thing occur. Can some body please guide me?

Here is the code..

_global.moveFactor=0;
mcBar.useHandCursor=false;
mcDragger.useHandCursor=false;
var initPos:Object=new Object();
initPos.x=mcDragger._x;
initPos.y=mcDragger._y;
moveFactor =(1/_level3._root._totalframes)*(mcBar._width-mcDragger._width);

function h() {
mcDragger._x += moveFactor;
if (mcDragger._x>=mcBar._width) {
mcDragger._x = mcBar._width;
}
}
actionTrigger.onEnterFrame = function() {
h();
};
mcDragger.onPress = function() {
this.startDrag(true, 0, 0, mcBar._width, 0);
this.onEnterFrame = function() {
ti = Math.round((this._x/mcBar._width)*_level3._root._totalframes);
_level3._root.gotoAndStop(ti);
delete actionTrigger.onEnterFrame;
};
};
mcDragger.onRelease = mcDragger.onReleaseOutside=function () {
this.stopDrag();
delete this.onEnterFrame;
_level3._root.play();
actionTrigger.onEnterFrame=function()
{
h();
}
if (_level3._root._currentframe>=_level3._root._total frames) {
_level3._root.stop();
} else {
_level3._root.play();
}
};
mcBar.onPress = function() {
var pt = new Object();
pt.x = _root._xmouse;
pt.y = _root._ymouse;
this.globalToLocal(pt);

mcDragger._x = pt.x;
t = Math.round(((mcDragger._x-mcDragger._width)/mcBar._width)*_level3._root._totalframes);
delete actionTrigger.onEnterFrame;
_level3._root.gotoAndStop(t);

_level3._root.play()
actionTrigger.onEnterFrame=function()
{
h();
}
};

btnPause.onRelease = function() {
_level3._root.stop();
delete actionTrigger.onEnterFrame;
};
btnPlay.onRelease = function() {
if(mcDragger._x >= mcBar._width)
{
mcDragger._x=initPos.x;
_level3._root.play();
actionTrigger.onEnterFrame = function() {
h();
}
}
else {
_level3._root.play();
actionTrigger.onEnterFrame = function() {
h();
}
};
};

Dynamic ScrollPane Sliders Help Needed
I'm trying to do something like what you see in the link below. Most of which I can do without a problem with one exception. I can't seem to figure out how to get the vertical and horizontal sliders to resize when you move the slider to zoom in on the image in the scrollPane. Does anyone know how to achieve this?

Thanks

ABC Map

Levels, Huge Movies And Sliders
I had constructed a movie slider, which controls a movie called in levels. Its works perfect when I have a movie of 700 frames. But, when i increased the frames..to 10000, the slider strucks and while dragging backwards the movie strucks at the frame 20 and dont goto 19 to 1 frames. I dont know why this thing occur. Can some body please guide me?

Here is the code..

_global.moveFactor=0;
mcBar.useHandCursor=false;
mcDragger.useHandCursor=false;
var initPos:Object=new Object();
initPos.x=mcDragger._x;
initPos.y=mcDragger._y;
moveFactor =(1/_level3._root._totalframes)*(mcBar._width-mcDragger._width);

function h() {
mcDragger._x += moveFactor;
if (mcDragger._x>=mcBar._width) {
mcDragger._x = mcBar._width;
}
}
actionTrigger.onEnterFrame = function() {
h();
};
mcDragger.onPress = function() {
this.startDrag(true, 0, 0, mcBar._width, 0);
this.onEnterFrame = function() {
ti = Math.round((this._x/mcBar._width)*_level3._root._totalframes);
_level3._root.gotoAndStop(ti);
delete actionTrigger.onEnterFrame;
};
};
mcDragger.onRelease = mcDragger.onReleaseOutside=function () {
this.stopDrag();
delete this.onEnterFrame;
_level3._root.play();
actionTrigger.onEnterFrame=function()
{
h();
}
if (_level3._root._currentframe>=_level3._root._total frames) {
_level3._root.stop();
} else {
_level3._root.play();
}
};
mcBar.onPress = function() {
var pt = new Object();
pt.x = _root._xmouse;
pt.y = _root._ymouse;
this.globalToLocal(pt);

mcDragger._x = pt.x;
t = Math.round(((mcDragger._x-mcDragger._width)/mcBar._width)*_level3._root._totalframes);
delete actionTrigger.onEnterFrame;
_level3._root.gotoAndStop(t);

_level3._root.play()
actionTrigger.onEnterFrame=function()
{
h();
}
};

btnPause.onRelease = function() {
_level3._root.stop();
delete actionTrigger.onEnterFrame;
};
btnPlay.onRelease = function() {
if(mcDragger._x >= mcBar._width)
{
mcDragger._x=initPos.x;
_level3._root.play();
actionTrigger.onEnterFrame = function() {
h();
}
}
else {
_level3._root.play();
actionTrigger.onEnterFrame = function() {
h();
}
};
};

RGB Values Change With Horizontal Sliders
Any1 did this and can give me a pointer??

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

thanx in advance

Using Sliders To Control An MPEG Movie
Hi,

Was wondering if any of you guys has a quick and simple example on how I can do this.

I've imported an MPEG file into a Flash Movie. Actually, that's all that it contains.

I wanted to ability to control at which part of the movie it would play (while playing) through a slide rule (very much like the Windows Media Player).

How do I do this? :-

Thanks.

Dynamic ScrollPane Sliders Help Needed
I'm trying to do something like what you see in the link below. Most of which I can do without a problem with one exception. I can't seem to figure out how to get the vertical and horizontal sliders to resize when you move the slider to zoom in on the image in the scrollPane. Does anyone know how to achieve this?

Thanks

ABC Map

[AS3] Use The Right Mouse Button To Emulate Sliders
Righty, question number 2!

I have got the application set up as I want it to and now am improving the functionality for the end user.
One of these improvements is to allow them to use the mouse as well as the sliders to manipulate the images.

OK, I have 4 sliders - Zoom, Brightness, Contrast and Speed.
They all do what they are supposed to do and in the way they are supposed to do it.

What I am looking at is:

Right Click + drag Horizontal = alter contrast
Right Click + drag Vertical = alter Brightness
Right Click + drag Diagonal = zoom

Is this possible or should I forget about it?!

Volume Sliders Controlling External SWFs. [includes FLA]
Okay, I'm working in Flash MX and want to control the volume/panning of an externally loaded SWF with the sliders I've built. Just download the FLA below and then publish preview it (be sure to preview in HTML)...then play one of the clips, it'll automatically retrieve the SWF from my webspace. My problem is, I don't know the proper script/target to put on those volume/panning sliders in order to make them control the sounds (which are loading into Level 1, incidentally).

http://www.souldivine.net/version2/soundproblem.fla

If you could take the time to pop this file open, it'd probably be an easy problem to fix, but I just can't seem to get the right script. I'd definitely owe you one if you can help me with this. Thanks a bunch...

[AS3] SliderUI - Make Draggable Sliders Easily And Quickly
View Example
View Documentation
View Post/Download

If you’re anything like me, you hate using components and try to steer clear of them WHENEVER you can. The SliderUI was spawned from this hate and is a super easy way to create a slider (the equivalent to the Slider component, except it weighs in at a whopping 1KB compared to the 17KB of the component). The SliderUI has pretty much all of the same functionality of the Slider component.

[AS3] SliderUI - Make Draggable Sliders Easily And Quickly
View Example
View Documentation
View Post/Download

If you’re anything like me, you hate using components and try to steer clear of them WHENEVER you can. The SliderUI was spawned from this hate and is a super easy way to create a slider (the equivalent to the Slider component, except it weighs in at a whopping 1KB compared to the 17KB of the component). The SliderUI has pretty much all of the same functionality of the Slider component.

PMX04 - Multiple Volume Sliders - Define MC Problem? (newbie)
Hi there, first I wanted to say that I love the flashkit.com site, tons of great information, I love it!
But why I am posting here is:

For my school project I need to make a kind of flash mixer with actionscript. The code for the volume slider works perfect, but only when I am trying to put more volume sliders in my flashfile, it goes wrong.
Flash will put all the sounds in one volumeslider, instead of making diffrents.
Now I found out on inet, that the problem should be with defining my sounds in movieclip containers. As I will show you my code; I guess i did define these empty mc; though my flash is not working...

Could anyone please help me?
Thank you very much!!
Leonie


Code:
_root.createEmptyMovieclip("geluid1mc",100);
var geluidje1:Sound = new Sound (geluid1mc);
geluidje1.attachSound("s1");
setInterval(geluidje1, "interval", 1000 );
geluidje1.start(0,99);
_root.createEmptyMovieclip("geluid2mc",100);
var geluidje2:Sound = new Sound (geluid2mc);
geluidje2.attachSound("s2");
setInterval(geluidje2, "interval", 1000 );
geluidje2.start(0,99);
_root.createEmptyMovieclip("geluid3mc",100);
var geluidje3:Sound = new Sound (geluid3mc);
geluidje3.attachSound("s3");
setInterval(geluidje3, "interval", 1000 );
geluidje3.start(0,99);
_root.createEmptyMovieclip("geluid4mc",100);
var geluidje4:Sound = new Sound (geluid4mc);
geluidje4.attachSound("s4");
setInterval(geluidje4, "interval", 1000 );
geluidje4.start(0,99);


the whole script with sliders and stuff --> http://www.altertude.com/flashopdracht.zip

How To Create Sliders? How To Generate Results Based On User's Answers?
im interested with this site (bauer.com/Content/Gear/stick_advisor.html or if you couldn't go directly to the site, you could type in bauer.com then locate GEAR, and then STICKS, then FIND YOUR STICK.) so, if you're willing to help me out you could check out this site to understand what i wanted to do.

this site sells hockey equipments and there's this portion of the site that help visitors find the stick that matches their character. Basically, there were 5 questions that you're gonna answer (you'll be using the slider in answering). now, this is my question. If i'm gonna make something like this, what should i do first? do i need a database for this? how am i going to generate the results based on the user's answers? and what if i put a scale from 0% to 100%?

thanks a lot to those of you who paid attention to this thread. tnx so much! youre such a big help. and uhmm.. sorry then if some or even all my questions seem stupid to you coz im just a newbie.

tnx!

Copyright © 2005-08 www.BigResource.com, All rights reserved