Incremental Sliders..
How do I make an incremental slider? Any help would be greatly appreciated.. Thanks.Cheers, d0t
FlashKit > Flash Help > Flash MX
Posted on: 03-04-2003, 08:28 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Incremental Preloader
any tutes on incremental preloaders? i want to advance preloader m/c one frame for every 10% bytes_loaded of a m/c.
any help would be appreciated.
Incremental Rotation Over 180°?
Hi,
I'm using the action ".rotateTo" to make incremental rotations to an object (let's say 45° each). When I reach 180° and go over with the same action, flash (MX 2004) won't perform just the increment as before but will instead make the whole angle roation. The final position is actually correct, but I'd like the object to just rotate the incremental amount.
I know Flash's range is -180°/180°...how do I solve the problem?
If anyone could help me I'd be quite thankful!
Thanks guys,
Lucas
Incremental Percentage
hi guys
I want to get an 'incremental percentage' growing effect on a MC that uses a hit test code. eg if an MC hit my MainMC, my MainMC will grow ( so after all the hits have completed i would have a approx 70% bigger mainMC. The following code is on my mainMC:
onClipEvent (enterFrame) {
if (this, hitTest(_root.d1)) {
_root.text = "Collision Detected";
unloadMovie("_root.d1");
//grow 10%
}
else if
(this, hitTest(_root.d2)){
_root.text = "Collision Detected2";
unloadMovie("_root.d2");
//grow 10%
}
else if
(this, hitTest(_root.d3)){
unloadMovie("_root.d3");
_root.text = "Collision Detected3";
//grow 10%
}
else if
(this, hitTest(_root.d4)){
unloadMovie("_root.d4");
_root.text = "Collision Detected4";
//grow 10%
}
else if
(this, hitTest(_root.d5)){
_root.text = "Collision Detected5";
unloadMovie("_root.d5");
//grow 10%
}
else if
(this, hitTest(_root.d6)){
_root.text = "Collision Detected6";
unloadMovie("_root.d6");
//grow 10%
}
else if
(this, hitTest(_root.d7)){
_root.text = "Collision Detected7";
unloadMovie("_root.d7");
//grow 10%
}
}
it would be even better if i could use the tween class to make the grow smooooth!:
function shoot(clipName)
{
extendTween = new TweenExtended(clipName,["_height","_width"],
easingType2,[clipName._height,clipName._width],[400,400],1.6,true);
}
Incremental Enlargment
I have a set interval that makes the bus_mc come in quickly and ease into to stop. How would I make it do the opposite? Start slowly and then gradually pick up speed?
PHP Code:
var busDistance:Number = 200;busMovie = function() { bus_mc._x += (busDistance - bus_mc._x)/busDistance; updateAfterEvent; trace(bus_mc._x)} setInterval(busMovie,1);
Incremental Rotation Over 180°
Hi,
I'm using the action ".rotateTo" to make incremental rotations to an object (let's say 45° each). When I reach 180° and go over with the same action, flash (MX 2004) won't perform just the increment as before but will instead make the whole angle roation. The final position is actually correct, but I'd like the object to just rotate the incremental amount.
I know Flash's range is -180°/180°...how do I solve the problem?
Can anyone help me?pleaaaseee
Thanks guys,
Lucas
Incremental Rotation Over 180°
Hi,
I'm using the action ".rotateTo" to make incremental rotations to an object (let's say 45° each). When I reach 180° and go over with the same action, flash (MX 2004) won't perform just the increment as before but will instead make the whole angle roation. The final position is actually correct, but I'd like the object to just rotate the incremental amount.
I know Flash's range is -180°/180°...how do I solve the problem?
Can anyone help me?pleaaaseee
Thanks guys,
Lucas
Incremental Scrollbar For Flash MC?
I have recently created a movieClip which can be scrolled over by a sliding scrollbar (you click on the scrollbar and slide it up or down). Is it possible to add some up and down buttons to this so that the movie can be scrolled by increments as well?
Cheers,
GetURL Incremental Linkage?
I'd like to make "<<Previous" and "Next>>" buttons that don't require coding every single instance of them.
The linked files in a particular directory increase by one digit sequentially at the end of the file name...for example
ne01_l01_u04_01.html
ne01_l01_u04_02.html
ne01_l01_u04_03.html
etc.
So right now...on every single page, I've been making buttons like so
on (release) {
getURL("ne01_l01_u04_01.html", "main");
}
...and
on (release) {
getURL("ne01_l01_u04_02.html", "main");
}
Is it possible to take the standard getURL code
on (release) {
getURL("ne01_l01_u04_01.html", "main");
}
...and make the link more generic so that it ignores everything except the last two digits? For example...
forget_all_this01.html
or even someway to just make it go to the next or previous files without embedding the code...so that the buttons become more drag and drop?
Thanks!
How To Add Incremental Ruler Marks?
Not sure how to do this, I have a mc that displays a long string of numbers (over 20) which can include spaces, characters, etc.
Some of my users need to count positions within this string, and they said that if there was a "ruler" type effect above or below the string, that would help their accuracy in counting.
Is there a way to take an image, and duplicate it right next to itself so that for every character in this string (numbers, letters, characters, etc.) it shows and numbers each space?
For example, if the string looks like this:
?12345678910987654321^ 000000000000345600000000?/
Then my new mc would look something like this:
|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|2 0|21|22|23|24|
?12345678910987654321^ 000000000000345600000000?/
So that just by looking you could see how many spaces there are, or that string '3456' is in the 20-24th position?
Any suggestions are appreciated, thanks!
[F8] Incremental Loading With Loop
Howdy,
I'm trying to fade in 5 movieclips but I want them to fade in incrementally so that the second movieclip doesn't start fading in until the first one is done.
I've tried using a setInterval within a for loop, as well as an onEnterFrame within a for loop, but no luck so far.
Here's what I have that fades in the first movie but stops after that:
Code:
function bringInFidgets() {
for (i=1; i<6; i++) {
var fidgetClip = fidgetRoot["fidget"+i+"_mc"].fidgetContainer;
fidgetClip.onEnterFrame = function() {
fidgetClip._alpha += 10;
if (fidgetClip._alpha>=100) {
delete this.onEnterFrame;
}
};
}
}
thanks
Incremental Percentage Buffering
Hi,
I'm building a site using lots of live action footage similar to this (http://www.shaveeverywhere.com), and want a buffering system, whereby say 10% of the FLV loads, then gets the video to play. I'd like a constant check on the percentage loaded, so that there is always an extra 10% of the video loaded to ensure smooth playback. If that percentage loaded drops below the 10% extra mark, the video should pause and a buffering message appear, while the percentage loaded gets above that extra 10% buffer mark.
I can't use the netStream setBuffer property, as it screws with cue points I have in the video.
This is the start of the code I've got at the moment:
if (_root.getBytesLoaded() > 0)
{
percentDone = Math.floor(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
loaderVideo.gotoAndStop(percentDone);
trace("percentDone: " + percentDone);
if (percentDone >= 1)
{
if (percentDone < (percentDone + 2)) {
stop();
currentLoaded = percentDone;
buffering._visible = true;
} else {
buffering._visible = false;
play();
}
clearInterval(intervalID);
All this code is in an interval. At the moment, every time that statement is checked, it is going to be working from a new percentageLoaded number, so it needs to lock in a number from the instant that percentage falls BELOW the 10% buffer, and keep working from that same percentage until the buffer goes above the 10% mark.
I used 1% as a test, and added 2% on to that for checking the buffer.
I'm not entirely sure I've explained this properly, in fact I'm almost positive I haven't as I've confused myself, but if anyone has any idea what I'm talking about, and can offer a solution, I'd be massively grateful.
Olly.
If/else Statement With Incremental Condition? I Think
Code:
if (this._parent._currentframe == 18) {
gotoAndStop (1);
} else {
gotoAndPlay(2);
}
this is the 3rd frame code for a "prevFrame" looping controller movieclip.
This works perfectly. but how do you make it so that the script checks to see if the current frame is the 18th frame OR any 11th frame thereafter (e.g. frame 29, 40, 51, etc.)?
Loading Incremental PHP Scripts
Please HELP! I needed this answer yesterday.
I've created a site that utilizes php/mysql for the backend. I have everything loading correctly EXCEPT.........
I have a schedule page (dates, events, location variables, etc). The first page is /schedule.php?page=1. My flash movie loads all the variable from this page correctly.
What I'm looking to accomplish is: By using "Next" and "Back" buttons, navigate back and forth through the series of "schedule" php scripts.
ie- The flash page loads /schedule.php?page=1. I need my "Next" button's actionscripting to tell the server to load the next page in the sequence /schedule.php?page=2, /schedule.php?page=3, etc. And likewise, after /schedule.php?page=2 has been loaded, the option of hitting the "Back" button and reloading /schedule.php?page=1.
Can you help? I'm at the end of my rope on this one.
Thanks in advance.
Flash Incremental Loading
Hi,
I am having a problem with flash movies and document classes. My document classes have no access to any instance variables defined in the movie except in frame1,
I think this is due to the incremental loading of flash movies, is there a way to stop it and ask the whole movie to be downloaded and initialized. I don't need the incremental feature anyway.
If this still doesn't fix it then I think the document class feature is really pretty broken for all practical purposes. I wish Macromedia/Adobe would hire some decent developers to design their API's as the whole flash api seems to have been written by somebody who doesn't have a clue on on how to write an api. API's are supposed to provide a coherent set of functionality not a whole bunch of kludges.
Also why don't those jerks design some decent components (dialog boxes, panes, etc.), instead of wasting their time on Flex/Central which haven't got a chance in hell of succeeding. All they need is a fully functional API set (e.g. maybe look at Java), support for more types of media and better project support. If they could do this then Silverlight would have no traction with me, as it is I am seriously looking at it. The only thing stopping me is the lack of peneration and the fact that my project has to be live in a couple of months.
Incremental Preloader _alpha
How can I script a preloader bar where the percentage loaded is directly proportionate the the _alpha of the bar so that 0% loaded would make the preloader bar 0% alpha (fully transparent) and...well you get the point.
How could I do this?
Incremental Variable Names
I'm having a few issues with incrementing numbers in variable names, was wondering if I could get some help
The below code is what I'm trying to implement, but I keep getting errors.
Code:
for( var i = 0; i < __values.length-1; i++)
{
this.createTextField("__intervalVal"+i, i*200, 0, 0, 20, 20);
["__intervalVal"+i].text = *codestuff*;
["__intervalVal"+i]._x = *codestuff*;
["__intervalVal"+i]._y = *codestuff*;
}
The error I get with this code is:
**Error** Unexpected '.' encountered
["__intervalVal"+i].text = *codestuff*
**Error** Unexpected '.' encountered
["__intervalVal"+i]._y = *codestuff*
So the main question(s) are: What's the correct syntax for altering the text field I created with the incremental variable?
And why am I not getting an error message for the ["__intervalVal"+i]._x line? 0.o
Incremental Scroller A-la Flashlevel
http://www.flashlevel.com/indexv4.html
Does anyone know who to add this sort of functionality to a scoller or how to make one from scratch? It's a standard looking scrollbar but scrolls content by a set amount of pixels when the bar reaches a certain point.
Thanks,
Jamie
Incremental Search Demo (.NET/WPF)
Hey everyone,
I was browsing through some programs I wrote for fun, and one such program is an Incremental Search demo that filters through a list of words as characters are entered into an input field. Here are the screenshots of the app in Vista and XP:
I also went ahead and used ClickOnce [tutorial] to create an automatic installer, so those of you on XP/Vista can test it out on your own machines: http://www.kirupafx.com/IncrementalSearch/publish.htm
The source files for this can be accessed from the following location: http://www.kirupa.com/net/code/IncrementalSearch.zip
The XAML code:
Code:
<Window
xmlns="http://schemas.microsoft.com/winfx/2...l/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xml:lang="en-US"
x:Class="IncrementalSearch.Window1"
x:Name="Window"
Title="Incremental Search"
Width="262" Height="365" Icon=" ext_align_left.png" ResizeMode="NoResize" WindowStyle="SingleBorderWindow">
<Window.Background>
<LinearGradientBrush EndPoint="0.555,1.098" StartPoint="0.274,0.258" SpreadMethod="Pad">
<GradientStop Color="#FFF6F6F8" Offset="0"/>
<GradientStop Color="#FFCADEF6" Offset="0.779"/>
</LinearGradientBrush>
</Window.Background>
<Grid x:Name="LayoutRoot">
<Label Margin="19,3,5,0" x:Name="lblInfo" VerticalAlignment="Top" Height="29" FontSize="14" FontWeight="Normal" Content="Start typing a word below:" Background="#00F4C2C2"/>
<TextBox Margin="20,36,19,0" x:Name="txtInput" VerticalAlignment="Top" Height="23" Background="#BFFFFFFF" BorderThickness="2,2,2,2" Text="" TextWrapping="NoWrap" TextChanged="inputChanged"/>
<ListView Margin="20,76,19,16" x:Name="lstResults" IsSynchronizedWithCurrentItem="True">
<ListView.View>
<GridView>
<GridViewColumn Header="GridViewColumn"/>
</GridView>
</ListView.View>
</ListView>
<Image HorizontalAlignment="Left" Margin="5,10,0,0" VerticalAlignment="Top" Width="16" Height="16" Source="magnifier.png" Stretch="Fill"/>
</Grid>
</Window>
And the C# code is:
Code:
using System;
using System.IO;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Navigation;
using System.Collections.Generic;
using System.Resources;
using System.Reflection;
namespace IncrementalSearch
{
public partial class Window1
{
List<string> wordList;
public Window1()
{
this.InitializeComponent();
// Insert code required on object creation below this point.
loadText();
setupColumn();
}
private void inputChanged(object sender, TextChangedEventArgs e)
{
string searchString = txtInput.Text.ToLower();
lstResults.Items.Clear();
foreach (string currentWord in wordList)
{
if (currentWord.IndexOf(searchString) != -1)
{
displayWord(currentWord);
}
}
}
private void displayWord(string wordToAdd)
{
lstResults.Items.Add(wordToAdd);
}
private void loadText()
{
TextReader tr = new StreamReader(Assembly.GetExecutingAssembly().GetManifestResourceStream("IncrementalSearch.words.txt"));
string currentLine = tr.ReadLine();
wordList = new List<string>();
while (currentLine != null)
{
wordList.Add(currentLine.ToLower());
displayWord(currentLine.ToLower());
currentLine = tr.ReadLine();
}
}
private void setupColumn()
{
GridViewColumn column = (lstResults.View as GridView).Columns[0];
column.Header = "Results";
column.Width = 150;
}
}
}
For the XAML, I used Expression Blend, and for the C#, I used Visual Studio with the WPF Extensions. The WPF Extensions are required if you want to open the entire project in Visual Studio.
If there are any questions, feel free to ask!
Cheers!
Kirupa
Incremental Percentage Buffering
Hi,
I'm building a site using lots of live action footage similar to this (http://www.shaveeverywhere.com), and want a buffering system, whereby say 10% of the FLV loads, then gets the video to play. I'd like a constant check on the percentage loaded, so that there is always an extra 10% of the video loaded to ensure smooth playback. If that percentage loaded drops below the 10% extra mark, the video should pause and a buffering message appear, while the percentage loaded gets above that extra 10% buffer mark.
I can't use the netStream setBuffer property, as it screws with cue points I have in the video.
This is the start of the code I've got at the moment:
if (_root.getBytesLoaded() > 0)
{
percentDone = Math.floor(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
loaderVideo.gotoAndStop(percentDone);
trace("percentDone: " + percentDone);
if (percentDone >= 1)
{
if (percentDone < (percentDone + 2)) {
stop();
currentLoaded = percentDone;
buffering._visible = true;
} else {
buffering._visible = false;
play();
}
clearInterval(intervalID);
All this code is in an interval. At the moment, every time that statement is checked, it is going to be working from a new percentageLoaded number, so it needs to lock in a number from the instant that percentage falls BELOW the 10% buffer, and keep working from that same percentage until the buffer goes above the 10% mark.
I used 1% as a test, and added 2% on to that for checking the buffer.
I'm not entirely sure I've explained this properly, in fact I'm almost positive I haven't as I've confused myself, but if anyone has any idea what I'm talking about, and can offer a solution, I'd be massively grateful.
Olly.
Incremental Preloader _alpha
How can I script a preloader bar where the percentage loaded is directly proportionate the the _alpha of the bar so that 0% loaded would make the preloader bar 0% alpha (fully transparent) and...well you get the point.
How could I do this?
Set SwapDepths With Incremental Values
Is there a way to use swapDepths to step something through various levels... like up a level, up a level, up a level, etc?
Also, is there a way to test what level something is on?
frozenpeas
Incremental Grid Builder
I'm really struggling with this situation and i know it's been done a thousand times but i just can't seem to wrap my head around it!
Basically i have some code which will build a grid of movieclips in a specific order. For now, the pattern is 3 on the 1st row and 5 on the 2nd and 3rd rows. I have this code to accomplish that:
Code:
function buildRow ()
{
var hold : MovieClip = this.createEmptyMovieClip ("holder", 1);
var cont : MovieClip;
var depthCount : Number = 100;
var rows : Array = [["1a", "2a", "3a"] , ["4b", "5b", "6b", "7b", "8b"] , ["9c", "10c", "11c", "12c", "13c"]];
var mcA : Array = [];
var nX : Number = 20;
var nY : Number = 10;
var lastTime : Number = getTimer () - 1000;
for (var i : Number = 0; i < rows.length; i ++)
{
nY = 10;
nY += (i * 150);
nX = 20;
for (var j = 0; j < rows [i].length; j ++)
{
var cont = hold.attachMovie ("circ", "container" + rows [i][j] , depthCount ++);
cont._x = nX;
cont._y = nY;
nX += cont._width + 30;
cont._rotation = - 20;
}
}
}
buildRow()
This works fine as expected. What i'm trying to do is have it build each movieclip incrementally so that you see the first clip appear then the next one appears after a 1/2 second wait and then the third and so on... So that the grid builds up over the space of maybe 2 or 3 seconds.
Thing is i can't seem to get the incremental part down. I can get the grid done but only all at once or i can get the incremental part down but only in a single row. Here's code I've used to build in a single row and incrementing every 200th of a second:
Code:
function buildRow (n:Number,nx:Number,ny:Number)
{
var _this = targ;
var _n : Number = n;
var i : Number = 0;
var lastTime : Number = getTimer () - 1000;
var nX : Number = nx;
var nY : Number = ny;
var hold : MovieClip;
var j : Number = 0;
var menuDepth : Number = 900;
hold = this.createEmptyMovieClip ("hold", this.getNextHighestDepth ());
this.onEnterFrame = function ()
{
if (getTimer () - lastTime >= 200)
{
// reset
lastTime = getTimer ();
if ( ++ i <= n)
{
var pic : String = String (i);
var star : BitmapData = BitmapData.loadBitmap (pic);
var mcStar : MovieClip = this.createEmptyMovieClip ("mc", menuDepth);
mcStar.attachBitmap (star, menuDepth ++);
mcStar._visible = false;
var circ : MovieClip = mcStar.duplicateMovieClip ("a1" + i, menuDepth ++);
circ.attachBitmap (star, menuDepth ++);
circ._x = nX;
nX += (circ._width + 10);
circ._y = nY;
//circ._yscale = circ._xscale = 50;
circ.onRollOver = function ()
{
coolMenuRollOver (this);
trace (this._name);
};
circ.onRollOut = function ()
{
coolMenuRollOut (this);
};
} else
{
delete this.onEnterFrame;
//trace ("done");
dir = 0;
}
}
}
}
Does anyone know of a way i can combine the two codes into one cuz this is driving me crazy!!!
Any help would be really, really appreciated!!
thx
sb
Loop Incremental Failure?
Last edited by Codemonkey : 2005-01-22 at 06:49.
Hi, I'm having some weird thing going on with a while loop. Was wondering if anyone has experienced this before.
Here's what works:
ActionScript Code:
// remove all doubles
var i:Number = -1;
while (++i < array.length) {
trace("i: " + i);
var index:Number;
while ((index = doInsignificantStuff(myArray, i)) != -1) {
index++;
}
}
/*
Trace will display:
0, 1, 2, 3, 4, etc.
*/
Here's what isn't working:
ActionScript Code:
// remove all doubles
var i:Number = -1;
while (++i < array.length) {
trace("i: " + i);
var index:Number;
while ((index = getIndexDouble(myArray, i)) != -1) {
index++;
}
}
/*
Trace will display:
0, 0, 0, 0, 0, [0, ->]
*/
As you can see the only difference is the function being called. Here are the two different called functions:
ActionScript Code:
function doInsignificantStuff(array:Array, index:Number):Number {
if (random(2) == 0) {
return array.length + index;
} else {
return -1;
}
}
function getIndexDouble(array:Array, index:Number):Number {
for (i = 0; i < array.length; i++) {
if (array[i] == array[index] && i != index) {
return i;
}
}
// double not found
return -1;
}
After alot of testing, trying different declarations, different parameter passing methods and whatnot, it will always trace 0 with the getIndexDouble function and I can't figure out why...
Anyone please?
SF.
<edit> I forgot to mention the trace 0,0,0,0 [0,->] is because the code is executed onEnterFrame alot of times... </edit>
Incremental Preloader With Independant Animation - How?
I have a incremental preloader that works beautifully, however I want to have a spinning animation running allong side, at the moment every time the scripts check the frames loaded and GoTo back, the spinning animation stops and starts again as well. is there any way I can make the spinning animation its own movie independant of the preloaders timeline?
How Do I Create INCREMENTAL FLV Videoplayer Components
I am trying to run through a do...while script that will create empy videoplayer components with incremental names such as my_FLVPlybk1, my_FLVPlybk2, my_FLVPlybk3, etc...
Then based on an array I want to fill these videoplayers with different flv clips. With a statement such as this:
eval("my_FLVPlybk" + _global.num).contentPath = _global.vidName[_global.num] + ".flv";
Does this make sense?
Please help
Ron R.
Incremental Line That Advances And Retreats?
Making a line chart with 20 increments that draws itself across the screen as the user drags an icon.
Works great using lineTo as the user moves the icon to the right.
But I do not see a method to get the line to disappear step by step as the user drags the icon the opposite way, to the left.
I could always animate with a non-actionscript line, using a mask that moves left and right, but I was hoping there was some actionscript command that could clear the previous segment of the line drawn, without having to redraw the entire line. clear(); gets rid of the entire line, not individual segments.
Selecting Instances With Incremental Names
hey guys
was just wondering if there's a way of using a for loop to select instances that have an incremental name.
something like
Code:
for (var i:int = 0; i < 10; i++)
{
someInstance.["myInstance" + i].alpha = 0;
}
Incremental Counter Needs To Motion Tween And Fade In And Out
Hello to All :
I am very new at this AS thing and need to do this for a deadline that I have ... really close, but I have complete faith ...
basically I have a MC var (numbers) that is going to be used as an effect as a counter. The MC has to move from one side of the stage to the next and fade in and out. I have the AS for the counter down but when I use tweens to do the fading and motion the numbers get really funky. I attached the fla to this post ... can anyone help?
thanks
Precise Button Activated Incremental Tweening?
Last edited by danstrombo : 2005-10-20 at 20:00.
I'm having trouble with a scrollable thumbnail view on (yet another) portfolio site I'm working on (CLICK HERE)
if you go into Portfolio, then either Book One or Book Two, you'll see the thumbnails and up/down arrows. (note: the thumbnails are not all linked)
The arrows work great, nice tweens into place, but a problem arises if you click the up/down arrows too fast. The MC will not have slid all the way into position (in increments of 61 pixels). Eventually, the rows are no longer aligned correctly.
Is there a way, without creating a MC with seperate frames (with individual movement commands assigned to each frame) to say:
"Ok, when the user hits the up arrow, move up 61 pixels. But don't stop until you hit pixel 61, then let the user hit the button again"
or
"Only stop on these pixels [0,61,122,183,etc..]"
I was offered some help on this prior(EDIT: BadSanta was the generous helper), but discovered the issue after the he had left the forum. What I'm working with (using Laco's tween prototype btw)
ActionScript Code:
function activateTnailbuttons(){
var STEP:Number = 61;//sets the incremental number
mc_downArrow.button.onRelease = function() {
var clip:MovieClip = mc_tnailSelection;//declares the variable "clip". "clip" is a MovieClip called "mc_tnailSelection"
checkSelectionLoc(clip._y-STEP);//checks the location of the mc "mc_tnailSelection"
mc_tnailSelection.slideTo(clip._x,clip._y-STEP, 0.7);// uses Laco's .slideTo scripts--"clip" is unchanged in X, and takes "clips" current Y value and subtracts 61 (as declared in the var STEP) over a period of .7 seconds
};
mc_upArrow.button.onRelease = function() {
var clip:MovieClip = mc_tnailSelection;//declares the variable "clip". "clip" is a MovieClip called "mc_tnailSelection"
checkSelectionLoc(clip._y+STEP);//checks the location of the mc "mc_tnailSelection"
mc_tnailSelection.slideTo(clip._x,clip._y+STEP, 0.7);// uses Laco's .slideTo scripts--"clip" is unchanged in X, and takes it's current Y value and adds 61 (as declared in the var STEP) over a period of .7 seconds
};
};
function checkSelectionLoc(endPoint:Number){
//check Y value of thumbnail clip / "mc_tnailSelection"
if (endPoint >= 578){//if the endpoint is greater than 578
mc_upArrow.button._visible = false;//toggle button off
mc_upArrowFake._visible = true;//toggle button on
} else {//otherwise do this
mc_upArrow.button._visible = true;//turn button on
mc_upArrowFake._visible = false;//toggle button off
}
//check Y value of thumbnail clip / "mc_tnailSelection"
if (endPoint <= 334){
mc_downArrow.button._visible = false;
mc_downArrowFake._visible = true;
} else {
mc_downArrow.button._visible = true;
mc_downArrowFake._visible = false;
}
};
muchas gracias everyone
ps-I wasn't sure as to whether to post this in the Newbies section or not, I'm somewhere between a newbie and something else...
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!
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
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?
|