Help changing Scroll Menu Values

This is a discussion on "Help changing Scroll Menu Values" within the Flash & Multimedia Forum section. This forum, and the thread "Help changing Scroll Menu Values are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 26th, 2007, 14:01
New Member
Join Date: Jul 2007
Location: Quebec
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Help changing Scroll Menu Values

Hi,

I've got this scroll menu system in my web site. I was wondering if anyone could lend me a hand understanding why I can't get my scrollMenu to start and stop at these coordinates, which you can see here:



if (this._x>= -600)
{
this._x = -1500;
}

if (this._x<= -1501)
{
this._x = -601;
}

What I want to have is 10 Icons scrolling, but if they don't totally got off screen it looks like they skip. Does anuyone have any ideas?

Thanks In Advance
Reply With Quote

  #2 (permalink)  
Old Jul 26th, 2007, 15:29
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Help changing Scroll Menu Values

Post the flash file so I can view this in action please? Is this based on mousemovement or just a standard scroll moving 1 direction? Does it change directions?
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #3 (permalink)  
Old Jul 26th, 2007, 16:01
New Member
Join Date: Jul 2007
Location: Quebec
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help changing Scroll Menu Values

Thanks for the reply,

This is based on mouseMouvement. It changes both directions. If you really wanna check it out. Go there:

http://www.redi2play.com/testing/work.zip

You'll have to add the music folder to preview stuff, which is here:

http://www.redi2play.com/music/music.zip

Just place the music folder in the that has the main file ( dock20 bmcc 3 mask.fla )

The scrollMenu.as file is a little different in the attachement I sent. I think that oine is a little closer to being corrrect.

Thanks a bunch dude
Attached Files
File Type: zip scrollMenu.zip (3.8 KB, 13 views)
Reply With Quote
  #4 (permalink)  
Old Jul 26th, 2007, 16:39
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Help changing Scroll Menu Values

I just finished building something like this, it was just a matter of me adjusting the values to get it where I wanted it. I'll take a look at it though. :-)
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #5 (permalink)  
Old Jul 26th, 2007, 16:40
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Help changing Scroll Menu Values

Does
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #6 (permalink)  
Old Jul 26th, 2007, 16:40
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Help changing Scroll Menu Values

Does your code look something like this? ( I am downloading them right now)

Code: Select all
mouseX = _xmouse; 
menuX = menu._x; 
  
if (mouseX > 430) { 
  diff = (mouseX-430)/30; 
} 
if (mouseX < 370) { 
  diff = (370-mouseX)/30; 
} 
if (mouseX <= 400 && menuX <= 1200) { 
  setProperty("menu", _x, menuX+diff); 
} 
if (mouseX >= 400 && menuX >= -40) { 
  setProperty("menu", _x, menuX-diff); 
} 
if (menu._x >= 275) { 
  menu._x = 275; 
} else if (menu._x <= -40) { 
  menu._x = -40;  
}
 
gotoAndPlay(2);
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #7 (permalink)  
Old Jul 26th, 2007, 17:07
New Member
Join Date: Jul 2007
Location: Quebec
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Post Re: Help changing Scroll Menu Values

Thanks for the quick response,

This is actually what I had used:


//--------------------------------------------------------//
//--------------------------------------------------------//
// FUNCTION TO MAKE THE MP3 MENU SCROLL ------------------//
//--------------------------------------------------------//
Code: Select all
 
 
function mover()
{
 if(_ymouse > 250 && _ymouse < 365)  
 {
  var xdist = _xmouse - Stage.width/2;
  this._x -= xdist / 15;
 }
 else 
 {
  if(_xmouse > centerX - 250)
  {
   this._x -= speed;
  }
  else
  {
   this._x += speed;
  }
 }
 if (this._x>=  -200) 
 {
  this._x =  -1325;
 
 } else {
 
 if (this._x<=  -1325)
 {
    this._x =  -201;
 }
}
I'm going to try and implement what you have gaven me. See if I can get her going with this. But if you still have any siggestions I'd be more then happy to hear them.

Thanks,
bmcc81
Reply With Quote
  #8 (permalink)  
Old Jul 26th, 2007, 17:44
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Help changing Scroll Menu Values

Ah I see what you are saying now. Let me take a look at it. :-)
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #9 (permalink)  
Old Jul 26th, 2007, 19:57
New Member
Join Date: Jul 2007
Location: Quebec
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Is it possible to add a nested loop to this function?

Hey I was wondering if its possible to add a nested loop to this function?

Something like:

Code: Select all
//------nested loops-------
//outer loop
for (i=0; i<2; i++){
        trace("outerloop");
        //inner loop
        for(j=0; j<2; j++){
                trace("innerloop");
        }
}  


How would I add it to here.

Code: Select all
if(_ymouse > 250 && _ymouse < 365)  
 {
  var xdist = _xmouse - Stage.width/2;
  this._x -= xdist / 15;
 }
 else 
 {
  if(_xmouse > centerX - 250)
  {
   this._x -= speed;
  }
  else
  {
   this._x += speed;
  }
 }
 if (this._x>= move.loop -100) 
 {
  this._x = move.loop -225;
  
 } else {
  
 if (this._x<= move.loop -226)
 {
    this._x = move.loop -101;
 }
}


I'm trying to get her to loop now

http://www.redi2play.com/testing2/


Would I just be using:
for (i=0; i<2; i++)

Would that be a good idea cause I'm trying it out and not getting much.

Just like to know if I'm on the right path

Thanks
Reply With Quote
Reply

Tags
appearing and disapearing

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Option values AdINo JavaScript Forum 2 Jul 5th, 2007 18:48
Setting Form Values to Previously Entered Values masonbarge PHP Forum 6 Oct 17th, 2006 17:36
Scroll button to scroll flash page helpmhost Flash & Multimedia Forum 3 Apr 26th, 2006 11:30
changing the scroll bar colour bruno89 Web Page Design 2 Oct 6th, 2005 15:12
Assign string values to integer values of a session variable Andy K Classic ASP 1 Jul 13th, 2005 08:29


All times are GMT. The time now is 01:50.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43