To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 01-02-2006, 09:12 PM   #1
CNL83
Tech Designs CEO
 
CNL83's Avatar
 
Join Date: Jun 2000
Posts: 992
Panorama controls on buttons

http://www.scormsource.com/downloads/pan.zip

The panorama works on the above file, but Id like to scroll at a certain speed automatically and put the controls on buttons.

Can anyone lend some help with that?

Code:
 /*
=================================================================
PANORAMA 360 START
------------------
Rob @ Republic of Panama / 2004 11 16
*/

onClipEvent (load) {
/* myPanoramaDuplicates: 
	i know this variable can be programmed 
	to be set automatically depending on the 
	movie stage width ... any volunteers?
*/
_root.myPanoramaDuplicates = "2"; // duplicates necesary for visual continuity of your panorama image
}

onClipEvent (enterFrame) {
	/* myStageWidth:
		i know this variable can be programmed 
		to be set automatically depending on the 
		movie stage width ... any volunteers?*/
	myStageWidth = 487.9; // the width of your Flash Movie
	
	/* myPanoramaSpeed:
	
	*/
	myPanoramaSpeed = 150;
	
	//
	panObj = this;
	panObjWidth = panObj._width;
	panObjHalf = panObjWidth/2;
	xPos = _root._xmouse; 
	// next line centers the menu drag to the screen
	xPos = xPos-(myStageWidth/395);
	panObj._x = panObj._x-(xPos/myPanoramaSpeed);
	if (panObj._x<-panObjHalf) {
		panObj._x = 0.01;
	} else if (panObj._x>9) {
		panObj._x = -panObjHalf;
	}
}

/*
PANORAMA 360 END
=================================================================
*/
__________________
UPS' official RIPP-OFF
See full complaint here > www.actionfx.net/complaint.htm
CNL83 is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 06:11 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.