Web Design and Development Forums

How to slow down actionscript?

This is a discussion on "How to slow down actionscript?" within the Flash & Multimedia Forum section. This forum, and the thread "How to slow down actionscript? are both part of the Design Your Website category.

Old Mar 24th, 2008, 16:58   #1 (permalink)
Junior Member
 
Join Date: May 2007
Location: france
Posts: 17
Send a message via MSN to nikising Send a message via Skype™ to nikising
How to slow down actionscript?

Hello there,

I have this mouse controlled sliding menu holding images for photogallery :

Code: Select all
stop();

panel.onRollOver = panelOver;

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

var b = stroke.getBounds(_root);

function scrollPanel() {
	if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
		this.onRollOver = panelOver;
		delete this.onEnterFrame;
	}
	
	if(panel._x >= 10) {
		panel._x = 10;
	}
	
	if(panel._x <= -1480) {
		panel._x = -1480;
	}
	
	var xdist = _xmouse - 330;
	
	panel._x += Math.round(-xdist / 7);
}
One problem is , is that it slides too quickly. Does anyone know how to write in a speed variable?

The second problem is that my friend wants the script to not stop at the end of the pics but to rotate the images. A little more difficult , but if anyone has the answer I would owe you bigtime!

This script is in the photo pages here:
http://nikising.bravehost.com/

Thanks so much for any help you can offer!

Nikising
nikising is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
website too slow mugatea Flash & Multimedia Forum 12 Jul 26th, 2007 23:02
Pages Loading Slow in IE ? sdonline HTML Forum 5 Apr 11th, 2007 22:38
Slow Subreport in Access Imara96 MSSQL & Access 1 Oct 6th, 2006 16:47



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 11:45.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59