-
Need help modifying flash carousel
I downloaded a carousel from flashmo.com
Im no flash expert. All i need to change is that when you click on a thumbnail the link opens up in a new window.
This is the actionscript:
Code:
// Code Credit: Lee Brimelow
// Tutorial Reference URL: www.gotoandlearn.com
// Modified by www.flashmo.com
stop();
// total is length of label_list OR link_list
// OR total frames inside "flashmo thumbnails"
var total:Number = 16;
// length of label_list array and length of link_list array must be equal
// to length of frames inside "flashmo thumbnails" movieclip
var label_list:Array = new Array( "Print Work", "Lindberg Belts webpage", "Platinum Spa webpage", "Hercules Auto Parts webpage", "Vividxenons webpage", "VividXenons Custom Ebay Marketing Template" , "Web work", "John Abbott College Vernissage Trade fair flyer", "custom invitation", "Elite Party Bus promo flyer", "Custom Water bottle Labels", "Custom Water bottle Labels", "Golden Paradise Casino Logo creation", "Hercules Auto Parts custom return form", "Lindberg Belts double sided Matte style business card", "Mebu double sided glossy business card");
var link_list:Array = new Array("Print Work", "http://www.lindbergbelts.com", "https://jag-designs.sslpowered.com/platinumspa.com/index.html", "http://www.herculesautoparts.ca", "http://www.vividxenons.com", "http://vividxenons.com/ebay/index.html", "http://pearlwhitemedia.com/portfolio/JohnAbbottflyer.jpg", "http://pearlwhitemedia.com/portfolio/card.jpg", "http://pearlwhitemedia.com/portfolio/elitepartybusflyer.jpg", "http://pearlwhitemedia.com/portfolio/waterbottlelabels1.pdf", "http://pearlwhitemedia.com/portfolio/waterbottlelabels2.pdf", "http://pearlwhitemedia.com/portfolio/goldenparadiselogo.jpg", "http://pearlwhitemedia.com/portfolio/herculesautopartsform.jpg", "http://pearlwhitemedia.com/portfolio/lindbergcard.JPG", "http://pearlwhitemedia.com/portfolio/mebucard.JPG");
var radiusX:Number = 330;
var radiusY:Number = 90;
var centerX:Number = 400;
var centerY:Number = 140;
var speed:Number = 0.003;
tn_group_mc._visible = false;
info.text = ""; fm_label.text = "";
for( var i = 0; i < total; i++)
{
var t = tn_group_mc.duplicateMovieClip("tn"+i, i);
t.tn_mc.gotoAndStop(i+1); t.tn_shadow_mc.gotoAndStop(i+1);
t.fm_label = label_list[i];
t.fm_url = link_list[i];
t.angle = i * ((Math.PI*2)/total);
t.onEnterFrame = mover;
t.fm_button.onRollOver = function()
{
fm_label.text = "Title: " + this._parent.fm_label;
info.text = "URL: " + this._parent.fm_url;
}
t.fm_button.onRollOut = function()
{
info.text = ""; fm_label.text = "";
}
t.fm_button.onRelease = function()
{
getURL( this._parent.fm_url );
}
}
function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = this._y /(centerY+radiusY);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
}
this.onMouseMove = function()
{
speed = (this._xmouse-centerX) * 0.0001;
}
Any ideas?
-
getURL( this._parent.fm_url, "_blank" );
-
agree's with dawsonk
Change:
t.fm_button.onRelease = function()
{
getURL( this._parent.fm_url );
}
To:
t.fm_button.onRelease = function()
{
getURL( this._parent.fm_url, "_blank" );
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|