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




Advanced Buttons W/ Loadmovie



does anybody know how to make an animated button load a movie with a preloader menu inside it that originated from the button and also scrolls with easing?



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 02-24-2005, 10:08 PM


View Complete Forum Thread with Replies

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

Advanced Buttons W/ Loadmovie
does anybody know how to make an animated button load a movie with a preloader menu inside it that originated from the button and also scrolls with easing?

Advanced LoadMovie
good day members

direct to the point

ok. i have main.swf which inside it 3 buttons which will load this is my problem a blank swf (nothing inside it ),this blank swf will load a.swf which is for button 1

button 2 will load b.swf but inside the blank swf i called it blank.swf

hope it is clear to you

now is it possible to do that???????

thanks alot

Advanced LoadMovie()
I have a huge SWF. Instead of loading every frame and playing from the beginning with loadMovie(), is it possible to load only say frames 100 to 120? Also, if I have a pause button, how do I make loadMovie() stop loading to conserve network bandwidth?

Advanced LoadMovie Question
Ok.. here is the problem ..

I,m loading a map into a container-movie

loadMovie("map.swf","_root.container");

Then after the movie is loaded I wan't to read the contents of that movie through :

for(i in _root.container){
trace("--"+i)
}

Okeey this is the strange part when I check with for example an:

on(load){totalbytes = _root.container. .... }

on(enterframe){
bytes2load = totalbytes -
if(bytes2load==0){
trace("It get's here!! ")
for(i in _root.container){
trace("--"+i)
}
}
}
}

It won't show the content of the loaded movie BUT when I put the same routine under a button:
for(i in _root.container){
trace("--"+i)
}
and press it after the movie is loaded it shows the content of the loaded movie ..

This is very very strange ..>> why would it work one a button and not on a enterframe... anyone can help me would be really apreciated!!

gr.Nyls

Advanced LoadMovie Question
I have a swf that is calling another swf onto level 1 on the 1st frame of the main timeline.

I test it in flash - the external swf loads in perfectly, then I test it in my html page online - nothing! I see my main flash movie, but the external .swf that is supposed to load on the first frame does not load.

To add complication to the matter, I try using my browser to view the swf directly (not inside the HTML page) by typing www.mypage.com/myflashfile.swf - and would you know it - it works perfectly again~!

Now I have to have this swf inside my company HTML template, and it's driving me crazzy!!

Happy Day, please help!

Advanced Problem With LoadMovie
I have some strange bug with loading images, and I would appreciate some advice.
Theres a page, I've made some time ago, and now I decided to improve it - the thing I imporooved was that list of files that must be loaded previously was contained in txt file, now I've made php file that dynamicly reads the contents of /img dir
Now I've noticed some strande bug - sometimes it just wont load any images, but after refresh everything is ok, all images load very correct, how can it be that under the same surcumpstances sometimes it fails to load images, sometime not?
And whats more, all loading and preloading happens with function called from certain place in moovie, so it should be absolutely the same action that take place each time ?!?!?!

url of page is http://austrapak.hosting.lv/lv
url of php variables: http://austrapak.hosting.lv/img/dirs.php


What a hell it can be???

tnx in advance

Advanced Slider Menu (on Old Version @ Yugop)--how To LoadMovie
hey,

i'm trying to make a navigation similar to the one on an old version of monocrafts, at yugop.com, you know, the sliding one. i used this tutorial: http://virtual-fx.net/vfx/tutorial/t...6_20020101.php

in the .fla file, when a button is hit, we go to a new scene and the sliding menu disappears.

all i want to do is load .swf files, without making the menu disappear. sounds horribly simple... :P

but i'm a horrible newb and took everything apart, but can't figure it out. plus, i'm not exactly an actionscript expert.

if anyone could help, that'd be great. thanks a lot.

--thuan

Advanced Buttons
This is my issue - I have a horizontal scrolling image which fits in a specified space. This is working fine. (please see attached). The issue I'm having is that I need each of those "button" states, which currently have roll over, etc. actions to additionally act as buttons in the "real" sense. As I roll over each thumbnail, I need it to show a name under each one, and I need to be able to click on each one and have it call a javascript popup window function. I've tried placing "invisible" buttons on seperate layer underneath the image movie layer, on top of it, all to no avail. Either it makes the name function and javascript, but the rollover scroll doesn't owrk or vice versa - can somebody please help? I'm using Flash 5 but also have access to Flash MX 2004 if that helps.

Advanced Buttons? I Think :|
How can i add a specific roll over area on a button? Right now i have a movie file of a glowing ball to the left of the text that it is using as the roll over area, very annoying. I want to make it so when the mouse rolls over the text the action starts. any ideas how to do this?

Advanced Buttons
how do you create buttons with the roll out effect
like they have done on this site http://www.kelisonline.com & http://www.digisensor.com.br/root.html

I want to be able to use the button in the main flash file, not just in the animation.

thanks

(sorry if i posted the topic in the wrong cat.)

Advanced Buttons
i created a button with mc in it.

when the curser is over the button, it starts to animate.

when the curser goes off the button the animation just goes to its first frame.

how to i make the animation run backwards to its first frame, when i take the curser off the button.

sorry if i am not using proper term, but i hope someone understand my problem and can please HELP me out.

thanx in advanced

Advanced Buttons
To see an example of my question, please go to http://www.coloronenyc.com I am trying to figure out how to have the buttons interact with eachother so to speak such as this. Very flustered and cannot find any tutorials on this situation. Any help would be OUTSTANDING!

Advanced Buttons
Hi All,

I have a movie clip acting as a button with 40 frames. On rollover the movie plays to the end point, but I want it stop at frame 20 if the cursor is still over the button, then play to frame 40 on rollout. I am guessing something along the lines of

AS on the mc itself:
on(rollOver){
play();
}

AS in frame 1 of the movie:
stop();

AS in frame 20:
Something to the effect of:
if (cursor is over) {
stop();
on(rollOut){
play();
}
} else {
play ();
}

Any help appreciated

TIA,
Paul

2 Advanced-like Buttons
Anyone know an easy way to recreate the rollover effect on the buttons at 2advanced.com. I bet it's something really simple but I just can't get it to look anything like it.

Cheers,

Advanced Buttons
ok so i used this tutorial and everything worked fine but when i tried to re-create it myself for my own website the az keeps saying "Target not found: Target="/rollover" Base="_level0"............? i never specified any level. whats going on. im using flash Mx.

Advanced Buttons
i made an advanced button with this code
stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}

this.onRelease = function(){
getURL("http://redemptiondesigns.net/gallery.html");
}







it works exactly how i want it to work
my only problem is, since it is not a typical button, but a movie clip
the only hit area is the letters themselves

i want to extend the hit area to be a large area around the text but no matter what symbols i convert to buttons and drag the rectangle tool over to indictate a hit area

same result



help <3

Advanced Buttons
I found this site where they tell you how to do 'Tell Target Buttons'.

Heres the site : http://www.echoecho.com/flashbuttons02.htm

Anyway, about a quarter of the way down the page they have a button where you move your mouse over it and it expands then goes small again.

I would like to be able to use this effect but have the button stop when its fully expanded, and then go back to being small when the mouse is taken off it.

I downloaded the fla and played about with it, but as you can probably tell, I couldn't figure out how to do what I wanted.

Can anyone explain to me what extra script I need to put in to this, or give me a link to other tutorials?

Thanks

Advanced Buttons
Mmm, K. ok. I need help with animated buttons. Ok, I need to create a button so that when you roll over it it fades out, but when you rollout, it fades in. Ok, and after this is created, it'll prob be just a movie clip with a button in it then has it send to different frames with the animater part, but how will i have the object on the stage, button or not, have the actions of a button if it isnt, and if this confuses anyone, then go to Fantasy Interfaces , on the left, there menu system, its all constructed of what i would want to create. Is there a .fla, or tutorial that someone can help me with. Thanks
UnSa

Advanced Buttons
ok. i need help with these movie clips that act as buttons. when u roll over, the object changes color or movies or whatever, and when u roll out, it goes back to its first stage. how do i make it so that i assign this movie clip actions such as gotoandplay on release, press, or releaseoutside?

Need Some Direction On Advanced Buttons
Hi
I am trying to make a menu/navigation bar something similar to the one at the top of the page on www.criticalfuse.com but after 5 hrs still cant get it to work..

i was trying to make buttons and embed a movie script but no luck.. i think i'm going about it the wrong way.. can anybody just give me some direction and tell me how to approach this.. any help would be appreciated
Jacq.

How..?those Magical Advanced Buttons...how?
Hey peeps
I'm kinda new to flash and stuff but i understand most of the mechanics. What i don't understand is how to create those fancy buttons that perform smooth animations on mouse over and then return to original state in another smooth animation on mouse out. I know basic buttons and using movie clips in buttons and stuff but i don't get the way the animation flies in...then flies out with precision. u know what i mean..HELPPP

Advanced Flash Buttons
Can anyone tell me where I can find a tutorial about how to build those really nice buttons that play a movie. The simple up.over ,down I can do but when trying to make a more advanced button I get into such a pickle I now need help so I can get some sleep.

Regards OPS

Making Advanced Buttons
Well, I have looked through many of the tutorials on this site, and haven't really found anything that focuses on the questions that I have. I read a couple tutorials on how to actually make the button, but all the ones that I have seen are explain this next part in flash 4.0 (I have 5.0) or assume I already know the following (my questions).

1. How do I properly embed a flash button into my .html page so that if I click on it, it leads to a different page on my site?

2. The better flash buttons have animations when you mouse over them, such as water flowing through a tube, I am wondering if anyone can explain this pretty in-depth for me... I know it has something to do with a small movie in the button, but don't know how to go about it.

3. If someone doesn't have the proper flash installed, is there something that will allow me to display an "html version" link in place of the flash navigation bar?

Thanks for any help.

Please Help - Web Page Nav Bar Buttons (Advanced)
Please could someone assist me in trying to get my nav bar buttons to work properly.

Logon to my site to see what im talking about : www.interactivesolutions.co.nz

Im trying to get the buttons to load properly and moving the other buttons accordingly.

What would be the easiest way? Would it need to all be using variables with"if" "else" commands for each button throughout or is there an easier way.

Thanks alot

Questions About Advanced Buttons?
Hey I was wondering.

I have made a set of buttons that are movie clips. They have animations that they go through when you interact with them. This part works fine.

This question that I have is fairly simple but I have not found the best way to achieve my goals. I want to control the main time line with these buttons but because they are movie clips the on () function does not work with them. If there is a way around this feel free to let me know.

Thanks...

Advanced Tell Target Buttons.
i dont really know if my vision is able to be made by buttons, but here's what id like to do :

i got like black square block with something wrote on it. id like this square to grow up, when the rollover is detected on the inscription. when the big block will be ready, there should appear more inscriptions.

i mean something like :
me:
->photos
->my family
->etc...

ive already tryied to do it with tell target but when i had that second inscription and i wanted to click it, the block came back to the place that he is growing up.

i think that this is because i put 2 buttons, and the movie clip has onrollover go to and play (2) and when i try to reach the second inscription he makes that action but i would like that buton to make different action. is there any other possibility to do it or am i doing something wrong ?

Advanced HitTest With Buttons...
I am using the following code for 5 different buttons:

ActionScript Code:
onClipEvent (enterFrame) {       if (this.hitTest(_root._xmouse, _root._ymouse, true)) {        this.nextFrame();    } else {        this.prevFrame();    }}


Is there a way to make it so when one button is clicked ) with the above AS attached, i can make it stay on the last frame or at least gotoAndStop on a frame? Then when a different button is pressed it is reset and the button pressed stops on its last frame. Any idea how this can be done? I have seen it on several sites.

Problem With MC Buttons (advanced)
Hi all

I've made animated buttons using the advanced rollover techniques so rollover colour fades in and then out fades out - the only problem is...HOW the heck to I add a on release function to it so I can tell it to go to the next scene?!!! its driving me mental!

I've attached the .fla I don't suppose someone can link one of the buttons for me so I can have a butchers can you?

I'm also trying to recreate the ipod people silhouette dance thing in Flash if anybody knows how its done?

cheers everybody

Dips

Advanced Buttons Linking
I have made some advanced buttons and want to use then to navigate to a different frame in the site this is what have

b1.onRelease = function() {
this.gotoAndStop(10);
}

can anyone tell me why this isnt working?

Thanks
Jake

Advanced HitTest With Buttons...
I am using the following code for 5 different buttons:

ActionScript Code:
onClipEvent (enterFrame) {       if (this.hitTest(_root._xmouse, _root._ymouse, true)) {        this.nextFrame();    } else {        this.prevFrame();    }}


Is there a way to make it so when one button is clicked ) with the above AS attached, i can make it stay on the last frame or at least gotoAndStop on a frame? Then when a different button is pressed it is reset and the button pressed stops on its last frame. Any idea how this can be done? I have seen it on several sites.

Fading Buttons Advanced?
Ok... I have tried un-succesfully many a time to do this... I want to make an object (lets say a circle) grow when I have the mouse over it and fade out as it grows till its alpha is 0%.

When I move the mouse cursor off of it though I want it to shrink back to its original size and become opaque again.

Lets say its at 200 width and height and at 30% opaque and I move the cursor off of it, it will then shrink from 200 to its original size and from its 30% alpha back to 100%



I have tried using methods but never found one that works, i have seen this on lots of sites and wondering how its done.

Please give me some help, thanks!

Creating Advanced Buttons
Hi guys, I want to have a go and create buttons like this website:

http://www.mjstar.co.uk/asp_news/news.asp?start=1

Anyone help? Is there a simple piece of actionscript I can attach to a button to create this effect?

Can anyone point me in the right direction?

Many thanks!!!

Problem With Advanced Buttons
I followed the tutorial, and everything works fine except once I've taken the mouse off of the button and then put the mouse back on the button I expect it to go through the fade in/fade out again but it doesn't. Also, if I click on the button it just disappears.
Help?

Please Help - Web Page Nav Bar Buttons (Advanced)
Please could someone assist me in trying to get my nav bar buttons to work properly.

Logon to my site to see what im talking about : www.interactivesolutions.co.nz

Im trying to get the buttons to load properly and moving the other buttons accordingly.

What would be the easiest way? Would it need to all be using variables with"if" "else" commands for each button throughout or is there an easier way.

Thanks alot

Advanced Flash Buttons.
How do i go about creating flash buttons like... www.infopropr.com

Advanced Button Question Two Buttons Three MC's
If I have 2 buttons that control 3 movie clips

Buttons 1 controls targets MC1
Buttons 2 controls targets MC2
Button 1&2 on second click will target MC3

If I click on Button 1, it will play MC1, if I click again it will play MC3

If I click on Button 2, it will play MC2, if I click again it will play MC3

If I click Buttons 1, then click Button 2, it will play MC3 then MC2

If I click Buttons 2, then click Button 1, it will play MC3 then MC1

This is what i am trying to achieve I think? is, if button 1 or 2 is not visible play the MC associated to the button clicked, if button 1or 2 is visible play MC3 then play the MC associated to the button clicked and hide other button

I hope someone out there can help me through this?

2 Advanced Buttons With Variables To Controll 3 MC's
button 1
button 2

Button 1 controls MC1
Button 2 controls MC2

What I am trying to do is

if I click on (button 1) MC1 plays. If I click on button 1 and MC1 is visible it plays MC3 and hides MC1

if I click on (button 2) MC2 plays. If I click on button 2 and MC2 is visible it plays MC3 and hides MC2

If I click on button 1 and MC2 is visible it hides MC2 and plays MC3 and MC1

If I click on button 2 and MC1 is visible it hides MC1 and plays MC3 and MC2

Here is what I think I have to do

I have to control the movements by creating two variables. I have to know what MC is opened before doing the second step and then change the variables accordingly.

If anyone can help me with the code that would be great I understand the thinking I just don't understand the actionscript.. Im not asking for the answers just some help to get me started.

Advanced Buttons Navigation Problem
hey guys, this seems real simple.
i have a navigation that has a color fade in when you roll over the buttons, then it is supposed to fade out when you roll out of the button. if i go real slow it does it right.

now the buttons themselves are all the same button but the tell target movie clip for the tell target fade is differant for every button. the problem is i got it to fade in just fine but if i go off the button kind of fast it stays solid red (it fades in the color but it just stays there instead of fading out) now i know you can fix this with some complicated if statments to see if the mouse is over the button. i was wanting an easier answer though. (i dont know much about actionscript) this project is in flash 5.

Random _X Positions For Buttons (Advanced)
I have 6 buttons aligned horizontally. When I press one button, I want all of the buttons to move to different _X positions with easing that would be specified in an array or in a variable. I'm looking for the easiest code. I had the code and a fla. for this a few years ago when I was deep into Flash, mastering actionscript. Now, it's like starting over.

Also, can anyone assist me with a similar, more advanced code? It's the same as above, but when one presses a button, that button pressed would move to a specified _X position, and the button that was previously in that _X position would get back in line, to the far left of all the buttons...

This is advanced scripting, so I came home to where the I learned Flash from, FlashKit.com.

In any event, any assistance would be vastly appreciated.

Can I Use Fadecontrol For Advanced Roll Over Buttons?
I'm trying to create rollover buttons that will fade in on roll over and fade out on roll out. I'd like the fade out to smooth no matter if the fade in was complete or not. I'm a relative flash newbie, so any additional explaination is appreciated

here's a link to the project I'm trying to put this to use in: http://www.colditz-moore.com/matt/mueller

Thanks!

Matt

Advanced Rollover Buttons Howto?
I need code for a movieclip (20 frames) controlled by a button and i used the following code (see below)
it doesn't work... the else function doesn't work. Can anybody help me out please??



on (rollOver) {
with(_root.but)
if (_currentframe = 1){
gotoAndPlay(2);
}
else {
gotoAndPlay(19-_currentframe);

}
}

on (rollOut) {
with(_root.but)
if (_currentframe = 10){
gotoAndPlay(11);
}

else {
gotoAndPlay(19-_currentframe);

}
}

How To Code Advanced Buttons Propertly?
Hello everyone,

I am running into few issues with my site and would really appreciate any input. First question is I have a navigation bar with a series of buttons on it. When you rollover any other these buttons there is and action on them saying :

on (rollOver) {
this.gotoAndPlay("over");
}
on (rollOut) {
this.gotoAndPlay("out");

on (press) {
_root.main_menu_mc.features_button_mc.enabled=fals e;
this.gotoAndStop("out")
}

Now I want to create some AS that when a button is click and disabled and then the user clicks on another button all buttons will reset themselves and play "out" if they were previously clicked (enabled=false)

So in the end I am just looking to say "Hey flash if a button 1 is clicked and disbaled and then button 2 is click then button 1 needs to enabled itself and play "out".

I am open to any clean proper ways of coding this. I am trying to become more clean and intuitive with my AS so any suggestion would be great. THANKS!

Random _X Positions For Buttons (Advanced)
I have 6 buttons aligned horizontally. When I press one button, I want all of the buttons to move to different _X positions with easing that would be specified in an array or in a variable. I'm looking for the easiest code. I had the code and a fla. for this a few years ago when I was deep into Flash, mastering actionscript. Now, it's like starting over.

Also, can anyone assist me with a similar, more advanced code? It's the same as above, but when one presses a button, that button pressed would move to a specified _X position, and the button that was previously in that _X position would get back in line, to the far left of all the buttons...

This is advanced scripting, so I came home to one of the places where I learned Flash from, Kirupa.com.

In any event, any assistance would be vastly appreciated.

Linking Advanced Rollover Buttons
I've just finished making advanced rollover buttons, but I just realized that apparently, I don't know how to link them. Can someone explain to me how to link rollover buttons and exactly where to place the code?

Advanced: Multiple Hit Areas For Buttons
I have an image of a map which I've cut into certain regions (russia, south america, etc.) Each region is a button. For each button, I've included a movie clip that apears after a second. The movie clip is a menu, with 3 buttons in it itself.
Here's the problem:
Firstly, the buttons in the menu clip do not work.
Secondly, by default the clip disappears when the mouse cursor is moved anywhere. I need it to remain active so that the user can choose one of the 3 buttons inside the clip.
Lastly, the buttons for each region are all on different layers. However, when I test the movie, some of the menu clips for certain regions go behind the image of other regions...changing the order will modify it but it always blocks 2 or 3 regions' menu movies so that you can only see some of it.
Hope yall can help!! Email me for the .swf or .fla file, if you're feeling generous or just up to a challenge. Thanks!

Advanced Rollover Buttons Howto?
I need code for a movieclip (20 frames) controlled by a button and i used the following code (see below)
it doesn't work... the else function doesn't work. Can anybody help me out please??



on (rollOver) {
with(_root.but)
if (_currentframe = 1){
gotoAndPlay(2);
}
else {
gotoAndPlay(19-_currentframe);

}
}

on (rollOut) {
with(_root.but)
if (_currentframe = 10){
gotoAndPlay(11);
}

else {
gotoAndPlay(19-_currentframe);

}
}

Random _X Positions For Buttons (Advanced)
I have 6 buttons aligned horizontally. When I press one button, I want all of the buttons to move to different _X positions with easing that would be specified in an array or in a variable. I'm looking for the easiest code. I had the code and a fla. for this a few years ago when I was deep into Flash, mastering actionscript. Now, it's like starting over.

Also, can anyone assist me with a similar, more advanced code? It's the same as above, but when one presses a button, that button pressed would move to a specified _X position, and the button that was previously in that _X position would get back in line, to the far left of all the buttons...

This is advanced scripting, so I came home to one of the places where I learned Flash from, Ultrashock.com.

In any event, any assistance would be vastly appreciated.

Advanced Video List With Buttons (up And Down)
Hello again,

Finally got some time of from homework and tests so I've been working with my media player again.
Anyways, I've been adding two buttons to the video list from Todd Lajoie videoList tutorial. And I can get the buttons to alpha down if your at the top and the other way around. But I want them to be clickable. so instead of a scrolling panel I wanna get a panel you can click up and down. Like the one at http://www.gametrailers.com/ (but that list move left and right)
Anyways is there an easy way to add a command that will move the list down to the next part?

Heres the code that I got:
Code:

var vlist:XML = new XML();
vlist.ignoreWhite = true;
var listClips:Array = new Array;
var whoIsOn:Number = 0;
var yBegin:Number = videoList._y;

vlist.onLoad = function() {
   var videos:Array = this.firstChild.childNodes;
   for(i=0;i<videos.length;i++) {
      var a = videoList.attachMovie("listEntry", "listEntry"+i, videoList.getNextHighestDepth());
      listClips.push(a);
      a._y = a._height*i;
      a._alpha = 100;
      loadMovie(videos[i].attributes.thumb, a.tHolder);
      a.vName.text = videos[i].attributes.name;
      a.vDesc.text = videos[i].attributes.desc;
      a.numb = i;
      a.urlLink = videos[i].attributes.url
      a.yLoc = (yBegin + (mask._height/2)) - (a._y + (a._height/2));
      a.onRelease = function() {
         getNewVid(this)
      }
      a.onRollOver = function() {
         if (this.numb <> whoIsOn) {
            this._alpha = 100;
         this.onover._alpha = 100;
         this.butt._alpha = 0;
         this.butttext._alpha = 0;
            this.accent._alpha = 100;
            this.back._alpha = 0;
         }
      }
      a.onRollOut = a.onReleaseOutside = function() {
         if (this.numb <> whoIsOn) {
            this._alpha = 100;
         this.butt._alpha = 0;
         this.onover._alpha = 0;
         this.butttext._alpha = 0;
            this.accent._alpha = 0;
            this.back._alpha = 100;
         }
      }
      a.onRelease = function() {
         if (this.numb <> whoIsOn) {
         this.butt._alpha = 100;
         this.onover._alpha = 0;
            getNewVid(this);
         PB.gotoAndStop("on");
         isPlaying = true;
         }
      }
   }
   yEnd = yBegin - videoList._height + mask._height + 5;
   getNewVid(listClips[whoIsOn]);
}
   
vlist.load("videos.xml");

videoList.onRollOver = scrollPanel;

function panelOver() {
   speed = 9;
   this.onEnterFrame = scrollPanel;
   delete this.onRollOver;
}

var b = mask.getBounds(_root);

function scrollPanel() {
   if (_xmouse<b.xMin||_xmouse>b.xMax||_ymouse<b.yMin||_ymouse>b.yMax) {
      this.onRollOver = panelOver;
      delete this.onEnterFrame;
   }
   
   var yDist = _ymouse - 200;
   videoList._y += -yDist/speed;
   
   if (videoList._y >= yBegin) {
      videoList._y = yBegin;
     up._alpha = 40;
   }else {
      up._alpha = 100;
      }
   
   if (videoList._y <= yEnd) {
      videoList._y = yEnd;
       down._alpha = 40;
   } else {
      down._alpha = 100;
      }
}

function getNewVid(who) {
   ns.play(who.urlLink);
   whoIsOn = who.numb;
   z = who.yLoc;
   if (z >= yBegin) {
      z = yBegin;
   }
   if (z <= yEnd) {
      z = yEnd;
   }
   easeList(z);
   for (i=0; i<listClips.length; i++) {
      if ( listClips[i].numb == whoIsOn ) {
         listClips[i]._alpha = 100;
         listClips[i].frame._alpha = 100;
         listClips[i].back._alpha = 0;
         listClips[i].accent._alpha = 0;
      }else {
         listClips[i]._alpha = 100;
       listClips[i].onover._alpha = 0;
         listClips[i].butt._alpha = 0;
       listClips[i].butttext._alpha = 0;
         listClips[i].frame._alpha = 0;
         listClips[i].back._alpha = 100;
         listClips[i].accent._alpha = 0;
      }
   }
}

function easeList(where) {
   delete videoList.onRollOver;
   delete videoList.onEnterFrame;
   videoList.onEnterFrame = function() {
      yDist = (videoList._y - where)/7;
      videoList._y-=yDist;
      if ((videoList._y < (where+2)) && (videoList._y > (where-2))) {
         delete videoList.onEnterFrame;
         videoList.onRollOver = panelOver;
      }
   }
}



The only thing I added to Todd Lajoies code was this.
if (videoList._y >= yBegin) {
videoList._y = yBegin;
up._alpha = 40;
}else {
up._alpha = 100;
}

if (videoList._y <= yEnd) {
videoList._y = yEnd;
down._alpha = 40;
} else {
down._alpha = 100;
}

Advanced Scrollbox/panel, MC + Buttons.
Hey guys. I was making a scrollbox for my site with the kirupa tutorial. But I wanted to add some extra things, a normal box is working fine, but I want to have a button in the scrolling tekst, or a movieclip that you can play when you put the mouse in it. But as far as I know every scrollbar works with a MC, and you cant make somphing move inside the MC.



Is that possible? To add those kind of actions to a scrollbox.

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