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




Carousel Visible On One Frame By Mc Button



I have coded a carousel for a portfolio that will take the user to different examples of work. I would like to have this carousel visible only on one frame, which will be the portfolio page. I have a movieClip button that will take you to that page, and I can get it to show up on that correct frame. But then when I click another button to go to another frame, I need it to go away. I tried some things as simple as:

item0._visible = false;

item0._visible = true;

on different frames, but then if I leaev the frame I want everything on, thrn come back, it puts two on top of each other which won't work. Below is the code for the carousel which works fine. If anyone has any ideas how to make the carousel only show up on this one frame that I can have my buttoin go to, I would appreciate it. Here is the URL if you need to see whats going on.

http://www.arocreative.com

var numOfItems:Number = 6;
var radiusX:Number = 50;
var radiusY:Number = 150;
var centerX:Number = 200;
var centerY:Number = 275;
var speed:Number = 0.015;

for(var i=0;i<numOfItems;i++)
{
var t = this.attachMovie("item"+i,"item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
}

function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s:Number = this._x / (centerX+radiusX);
this._xscale = this._yscale = s * 100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
}

this.onMouseMove = function()
{
speed = (this._ymouse-centerY)/7000;
}

item0.onRollOver = function(){
new mx.transitions.Tween;
new mx.transitions.Tween;
}


item0.onRollOut = function(){
new mx.transitions.Tween;
new mx.transitions.Tween;
}



item0.onRelease = function(){
_root.gotoAndStop("movie0");

}


item1.onRollOver = function(){
new mx.transitions.Tween;
new mx.transitions.Tween;
}


item1.onRollOut = function(){
new mx.transitions.Tween;
new mx.transitions.Tween;
}



item1.onRelease = function(){
_root.gotoAndStop("movie1");

}

item2.onRollOver = function(){
new mx.transitions.Tween;
new mx.transitions.Tween;
}


item2.onRollOut = function(){
new mx.transitions.Tween;
new mx.transitions.Tween;
}



item2.onRelease = function(){
_root.gotoAndStop("movie2");

}

item3.onRollOver = function(){
new mx.transitions.Tween;
new mx.transitions.Tween;
}


item3.onRollOut = function(){
new mx.transitions.Tween;
new mx.transitions.Tween;
}



item3.onRelease = function(){
_root.gotoAndStop("movie3");

}

item4.onRollOver = function(){
new mx.transitions.Tween;
new mx.transitions.Tween;
}


item4.onRollOut = function(){
new mx.transitions.Tween;
new mx.transitions.Tween;
}



item4.onRelease = function(){
_root.gotoAndStop("movie4");

}

item5.onRollOver = function(){
new mx.transitions.Tween;
new mx.transitions.Tween;
}


item5.onRollOut = function(){
new mx.transitions.Tween;
new mx.transitions.Tween;
}



item5.onRelease = function(){
_root.gotoAndStop("movie5");

}

Thanks you anyone who can help.



FlashKit > Flash Help > Flash ActionScript
Posted on: 07-18-2006, 02:29 PM


View Complete Forum Thread with Replies

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

Make A Button Visible Only In A Particular Frame
hey this is nithin...im working on flash cs3

my as3 code is:
Code:
Code:

function eventResponse1(evt:MouseEvent):void {
gotoAndStop(30);}
lab_but1.addEventListener(MouseEvent.MOUSE_UP,eventResponse1);

function eventResponse2(evt:MouseEvent):void {
gotoAndStop(60);}
lab_but2.addEventListener(MouseEvent.MOUSE_UP,eventResponse2);

function eventResponse3(evt:MouseEvent):void {
gotoAndStop(126);}
lab_but3.addEventListener(MouseEvent.MOUSE_UP,eventResponse3);

function eventResponse4(evt:MouseEvent):void {
gotoAndStop(121);}
lab_but4.addEventListener(MouseEvent.MOUSE_UP,eventResponse4);


Now i made a button on Frame 130...and added this code to above one's..
Code:


Code:
function eventResponse5(evt:MouseEvent):void {
gotoAndStop(133);}
lab_but5.addEventListener(MouseEvent.MOUSE_UP,eventResponse5);


Im getting this error...and that button is also not working...
Code:

Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at gotit10_fla::MainTimeline/gotit10_fla::frame1()


here is the fla file...http://nithin1234.googlepages.com/gotit10.fla

Any help....plzzz

Make A Button Visible Only In A Particular Frame
hey this is nithin...im working on flash cs3

my as3 code is:
Code:
function eventResponse1(evt:MouseEvent):void {
gotoAndStop(30);}
lab_but1.addEventListener(MouseEvent.MOUSE_UP,eventResponse1);

function eventResponse2(evt:MouseEvent):void {
gotoAndStop(60);}
lab_but2.addEventListener(MouseEvent.MOUSE_UP,eventResponse2);

function eventResponse3(evt:MouseEvent):void {
gotoAndStop(126);}
lab_but3.addEventListener(MouseEvent.MOUSE_UP,eventResponse3);

function eventResponse4(evt:MouseEvent):void {
gotoAndStop(121);}
lab_but4.addEventListener(MouseEvent.MOUSE_UP,eventResponse4);
Now i made a button on Frame 130...and added this code to above one's..

Code:
function eventResponse5(evt:MouseEvent):void {
gotoAndStop(133);}
lab_but5.addEventListener(MouseEvent.MOUSE_UP,eventResponse5);
Im getting this error...and that button is also not working...

Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at gotit10_fla::MainTimeline/gotit10_fla::frame1()
here is the fla file...http://nithin1234.googlepages.com/gotit10.fla

Any help....plzzz

How To Make Text Visible When A Button Is Pressed?(and Not Visible At All Other Times
My unfinished .swf can be found here:
http://blitzing.5u.com/Untitled-1.htm
What do i have to do to have the correpsonding text appear when i push a button? I got
on (release) {
}
down but pretty much no clue what to do from there. Btw, each text-field-thingy is on a separate layer. Thanks

Why Does A Draggable MC Become Visible Where The 'make Visible' Button Is Clicked?
Hello, i have a MC which is draggable and controlled by the code below.
The first time the user opens the draggable mc, it is positioned nicely on the screen (where i have placed the instance of the MC, then made it invisible).

But if the user closes the draggable MC, then click on the 'open' button, it appears where the user clicks the button.

This looks very ugly.

How can i tell the MC to become visible where the initial MC is placed on the screen?

code i'm using


Code:
largeimg._visible = false

largeimg.onPress = function() {
this.startDrag();
if (this.closeMC.hitTest(_xmouse, _ymouse, true)) {
this._visible = false
largeimg.gotoAndPlay(1)
}

};
largeimg.onRelease = stopDrag;
The window is reopened when a button is clicked


Code:
enlarge.onRelease = function() {
_root.largeimg._visible = true
_root.largeimg.gotoAndPlay(2)
}
Thanks a lot for any help in advance

Visible Not Visible On Button Controlling Mc
I am trying to make a movie clip visible or invisible useing a button. I want the button to check and see if the mc is visible if it is than make it disappear. If it is not visible make it appear. The is the code that I have on the button and it does disappear, but not reappear. Please help, I know this code looks horrible, but I am winging it.
on (release) {
pt._visible = false;
if (pt._visible=false) {
} else {
pt_visible = "true";
}
}

MC Visible=false On First Frame?
Simple Q:
In a one frame movie I want to have movie clip (movie 2)
appear on the stage with visibility set to false.
This isn't working for me:

movie2.onEnterFrame = function(_visible=false) {

};

Embedded Flv Still Visible Off Frame
I have a website I'm making, each segment loads an external flv, for the image gallery I had just added - the images are still visible on other frames once the frames holding the flv for the image gallery is no longer being played.

The images are in a MC if that makes a difference, I am assuming there is a code to disable the FLV once its left, but where would I put this code? on other buttons, or within the frames the FLV that needs to be disbaled on?

Thanks again

[F8] Carousel On Frame 2
Hey,

When I place my carousel code/script on another frame than one it does not show. Does anyone, just from seeing my code/script spot a possible reason?


Code:
stop ();
//*************************************IMPORTS****************************************\
import mx.transitions.Tween;
import mx.transitions.easing.*;
import mx.utils.Delegate;
import flash.filters.BlurFilter;

//*************************************CAROUSEL****************************************\
var blur:BlurFilter = new BlurFilter (0, 0, 1);
var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 70;
var centerX:Number = (Stage.width / 2);
var centerY:Number = (Stage.height / 2);
var speed:Number = 0.0015;
var speed2 = speed + 0.05;
var perspective:Number = 114;
var home:MovieClip = this;

var tooltips:Array = new Array ("tooltip1", "tooltip2", "tooltip3", "tooltip4", "tooltip5", "tooltip6", "tooltip7", "tooltip8", "tooltip9", "tooltip10", "tooltip11");

var const:Array = new Array ("const1", "const2", "const3", "const4", "const5", "const6", "const7", "const8", "const9", "const10", "const11");

var tooltip:MovieClip = this.attachMovie ("tooltip", "tooltip", 10000);
tooltip._alpha = 0;
//**********************CAROUSEL XML*******************************\
this.onLoad = function () {
numOfItems = 11;//11 items

for (var i = 0; i < numOfItems; i++) {
var t = home.attachMovie ("item", "item" + i, i + 1);
t._alpha = 85;
t.angle = i * ((Math.PI * 2) / numOfItems);
t.onEnterFrame = mover;
t.toolText = tooltips[i];
t.const = const[i];
home.tooltip._xscale = home.tooltip._yscale = this._parent._xscale;
t.icon.inner.attachMovie ("bitmap" + i,"bitmap",1000 + i);
t.r.inner.attachMovie ("bitmap" + i,"whatever" + i,6000 + i);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
};
//********************CAROUSEL TOOLTIP***********************\
function over () {

home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x + 4;
home.tooltip._y = this._parent._y - this._parent._height / 2;
home.tooltip.onEnterFrame = Delegate.create (this, moveTip);
home.tooltip._alpha = 95;
var s = (home.tooltip._y - perspective) / (centerY + radiusY - perspective);
home.tooltip._xscale = home.tooltip._yscale = s * 700;
home.tooltip._xscale = home.tooltip._yscale = this._parent._xscale;//Scaling Tooltip
}
function out () {

delete home.tooltip.onEnterFrame;
delete home.tooltip.tipText.text;
home.tooltip._alpha = 0;
}

function released () {

home.tooltip._alpha = 0;
for (var i = 0; i < numOfItems; i++) {
var t:MovieClip = home["item" + i];
t.xPos = t._x;
t.yPos = t._y;
t.theScale = t._xscale;
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;
delete t.onEnterFrame;
if (t != this._parent) {
//If it's not the item we clicked on, fade it away
var tw:Tween = new Tween (t, "_xscale", Strong.easeOut, t._xscale, 0, 1, true);
var tw2:Tween = new Tween (t, "_yscale", Strong.easeOut, t._yscale, 0, 1, true);
var tw3:Tween = new Tween (t, "_alpha", Strong.easeOut, 100, 0, 1, true);

} else {
//If it is the item we clicked on
blur.blurX = 0.25;
blur.blurY = 0.25;
t.filters = [blur];
t._alpha = 100;
if (t.const == "const1" or "const2" or "const3" or "const4" or "const5" or "const6" or "const7" or "const8" or "const9" or "const10" or "const11") {
t.icon.inner.bitmap.gotoAndStop (2);
}
//Enlarge the object
var tw:Tween = new Tween (t, "_xscale", Strong.easeOut, t._xscale, 466.5, 1, true);
var tw2:Tween = new Tween (t, "_yscale", Strong.easeOut, t._yscale, 466.5, 1, true);
var tw3:Tween = new Tween (t, "_x", Strong.easeOut, t._x, 350, 1, true);
var tw4:Tween = new Tween (t, "_y", Strong.easeOut, t._y, 240, 1, true);
var tw5:Tween = new Tween (theText, "_alpha", Strong.easeOut, 0, 100, 1, true);


theText.text = t.const;
var s:Object = this;
var pixel:Object = t.icon.inner.bitmap.instance1.btn;
tw.onMotionStopped = function () {

item0.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item1.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item2.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item3.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item4.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item5.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item6.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item7.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item8.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item9.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item10.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
};
}
}
}

function unReleashed () {
delete this.onRelease;

var tw5:Tween = new Tween (theText, "_alpha", Strong.easeOut, 100, 0, 0.6, true);

for (var i = 0; i < numOfItems; i++) {
var t:MovieClip = home["item" + i];
if (t != this._parent) {
var tw:Tween = new Tween (t, "_xscale", Strong.easeOut, 0, t.theScale, 1, true);
var tw2:Tween = new Tween (t, "_yscale", Strong.easeOut, 0, t.theScale, 1, true);
var tw3:Tween = new Tween (t, "_alpha", Strong.easeOut, 0, 85, 1, true);


} else {
t._alpha = 85;
var tw:Tween = new Tween (t, "_xscale", Strong.easeOut, 100, t.theScale, 1, true);
var tw2:Tween = new Tween (t, "_yscale", Strong.easeOut, 100, t.theScale, 1, true);
var tw3:Tween = new Tween (t, "_x", Strong.easeOut, t._x, t.xPos, 1, true);
var tw4:Tween = new Tween (t, "_y", Strong.easeOut, t._y, t.yPos, 1, true);


t.icon.inner.bitmap.gotoAndStop (1);//Return to pixel version

tw.onMotionStopped = function () {
for (var i = 0; i < numOfItems; i++) {
var t:MovieClip = home["item" + i];
t.icon.onRollOver = Delegate.create (t.icon, over);
t.icon.onRollOut = Delegate.create (t.icon, out);
t.icon.onRelease = Delegate.create (t.icon, released);
t.onEnterFrame = mover;

}
};
}
}
}

function moveTip () {

home.tooltip._x = this._parent._x;
home.tooltip._xscale = home.tooltip._yscale = this._parent._xscale;
home.tooltip._y = this._parent._y - this._parent._height / 2;

}
//********************IMAGE MOVER***********************\
//Circle Area
function mover () {
this._x = Math.cos (this.angle) * radiusX + centerX;
this._y = Math.sin (this.angle) * radiusY + centerY;
var s:Number = (this._y - perspective) / (centerY + radiusY - perspective);
this._xscale = this._yscale = s * 100;
this.angle += this._parent.speed;
this.swapDepths (Math.round (this._xscale) + 100);
//Blur
blur.blurX = Math.round (Math.sin (this.angle - Math.PI) * 1.50);
blur.blurY = Math.round (Math.sin (this.angle - Math.PI) * 1.50);
this.filters = [blur];

}
//Speed
this.onMouseMove = function () {
if (_ymouse <= 380) {
speed = (this._xmouse - (centerX) - 10) / 8300;
speed2 = (this._xmouse - (centerX / 3 + 500) - 10) / 1900;
}
};

Carousel On Frame 2
Hey,

When I place my carousel code/script on another frame than one it does not show. Does anyone, just from seeing my code/script spot a possible reason?


Code:
stop ();
//*************************************IMPORTS****************************************\
import mx.transitions.Tween;
import mx.transitions.easing.*;
import mx.utils.Delegate;
import flash.filters.BlurFilter;

//*************************************CAROUSEL****************************************\
var blur:BlurFilter = new BlurFilter (0, 0, 1);
var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 70;
var centerX:Number = (Stage.width / 2);
var centerY:Number = (Stage.height / 2);
var speed:Number = 0.0015;
var speed2 = speed + 0.05;
var perspective:Number = 114;
var home:MovieClip = this;

var tooltips:Array = new Array ("tooltip1", "tooltip2", "tooltip3", "tooltip4", "tooltip5", "tooltip6", "tooltip7", "tooltip8", "tooltip9", "tooltip10", "tooltip11");

var const:Array = new Array ("const1", "const2", "const3", "const4", "const5", "const6", "const7", "const8", "const9", "const10", "const11");

var tooltip:MovieClip = this.attachMovie ("tooltip", "tooltip", 10000);
tooltip._alpha = 0;
//**********************CAROUSEL XML*******************************\
this.onLoad = function () {
numOfItems = 11;//11 items

for (var i = 0; i < numOfItems; i++) {
var t = home.attachMovie ("item", "item" + i, i + 1);
t._alpha = 85;
t.angle = i * ((Math.PI * 2) / numOfItems);
t.onEnterFrame = mover;
t.toolText = tooltips[i];
t.const = const[i];
home.tooltip._xscale = home.tooltip._yscale = this._parent._xscale;
t.icon.inner.attachMovie ("bitmap" + i,"bitmap",1000 + i);
t.r.inner.attachMovie ("bitmap" + i,"whatever" + i,6000 + i);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
};
//********************CAROUSEL TOOLTIP***********************\
function over () {

home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x + 4;
home.tooltip._y = this._parent._y - this._parent._height / 2;
home.tooltip.onEnterFrame = Delegate.create (this, moveTip);
home.tooltip._alpha = 95;
var s = (home.tooltip._y - perspective) / (centerY + radiusY - perspective);
home.tooltip._xscale = home.tooltip._yscale = s * 700;
home.tooltip._xscale = home.tooltip._yscale = this._parent._xscale;//Scaling Tooltip
}
function out () {

delete home.tooltip.onEnterFrame;
delete home.tooltip.tipText.text;
home.tooltip._alpha = 0;
}

function released () {

home.tooltip._alpha = 0;
for (var i = 0; i < numOfItems; i++) {
var t:MovieClip = home["item" + i];
t.xPos = t._x;
t.yPos = t._y;
t.theScale = t._xscale;
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;
delete t.onEnterFrame;
if (t != this._parent) {
//If it's not the item we clicked on, fade it away
var tw:Tween = new Tween (t, "_xscale", Strong.easeOut, t._xscale, 0, 1, true);
var tw2:Tween = new Tween (t, "_yscale", Strong.easeOut, t._yscale, 0, 1, true);
var tw3:Tween = new Tween (t, "_alpha", Strong.easeOut, 100, 0, 1, true);

} else {
//If it is the item we clicked on
blur.blurX = 0.25;
blur.blurY = 0.25;
t.filters = [blur];
t._alpha = 100;
if (t.const == "const1" or "const2" or "const3" or "const4" or "const5" or "const6" or "const7" or "const8" or "const9" or "const10" or "const11") {
t.icon.inner.bitmap.gotoAndStop (2);
}
//Enlarge the object
var tw:Tween = new Tween (t, "_xscale", Strong.easeOut, t._xscale, 466.5, 1, true);
var tw2:Tween = new Tween (t, "_yscale", Strong.easeOut, t._yscale, 466.5, 1, true);
var tw3:Tween = new Tween (t, "_x", Strong.easeOut, t._x, 350, 1, true);
var tw4:Tween = new Tween (t, "_y", Strong.easeOut, t._y, 240, 1, true);
var tw5:Tween = new Tween (theText, "_alpha", Strong.easeOut, 0, 100, 1, true);


theText.text = t.const;
var s:Object = this;
var pixel:Object = t.icon.inner.bitmap.instance1.btn;
tw.onMotionStopped = function () {

item0.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item1.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item2.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item3.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item4.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item5.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item6.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item7.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item8.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item9.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item10.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
};
}
}
}

function unReleashed () {
delete this.onRelease;

var tw5:Tween = new Tween (theText, "_alpha", Strong.easeOut, 100, 0, 0.6, true);

for (var i = 0; i < numOfItems; i++) {
var t:MovieClip = home["item" + i];
if (t != this._parent) {
var tw:Tween = new Tween (t, "_xscale", Strong.easeOut, 0, t.theScale, 1, true);
var tw2:Tween = new Tween (t, "_yscale", Strong.easeOut, 0, t.theScale, 1, true);
var tw3:Tween = new Tween (t, "_alpha", Strong.easeOut, 0, 85, 1, true);


} else {
t._alpha = 85;
var tw:Tween = new Tween (t, "_xscale", Strong.easeOut, 100, t.theScale, 1, true);
var tw2:Tween = new Tween (t, "_yscale", Strong.easeOut, 100, t.theScale, 1, true);
var tw3:Tween = new Tween (t, "_x", Strong.easeOut, t._x, t.xPos, 1, true);
var tw4:Tween = new Tween (t, "_y", Strong.easeOut, t._y, t.yPos, 1, true);


t.icon.inner.bitmap.gotoAndStop (1);//Return to pixel version

tw.onMotionStopped = function () {
for (var i = 0; i < numOfItems; i++) {
var t:MovieClip = home["item" + i];
t.icon.onRollOver = Delegate.create (t.icon, over);
t.icon.onRollOut = Delegate.create (t.icon, out);
t.icon.onRelease = Delegate.create (t.icon, released);
t.onEnterFrame = mover;

}
};
}
}
}

function moveTip () {

home.tooltip._x = this._parent._x;
home.tooltip._xscale = home.tooltip._yscale = this._parent._xscale;
home.tooltip._y = this._parent._y - this._parent._height / 2;

}
//********************IMAGE MOVER***********************\
//Circle Area
function mover () {
this._x = Math.cos (this.angle) * radiusX + centerX;
this._y = Math.sin (this.angle) * radiusY + centerY;
var s:Number = (this._y - perspective) / (centerY + radiusY - perspective);
this._xscale = this._yscale = s * 100;
this.angle += this._parent.speed;
this.swapDepths (Math.round (this._xscale) + 100);
//Blur
blur.blurX = Math.round (Math.sin (this.angle - Math.PI) * 1.50);
blur.blurY = Math.round (Math.sin (this.angle - Math.PI) * 1.50);
this.filters = [blur];

}
//Speed
this.onMouseMove = function () {
if (_ymouse <= 380) {
speed = (this._xmouse - (centerX) - 10) / 8300;
speed2 = (this._xmouse - (centerX / 3 + 500) - 10) / 1900;
}
};

Carousel On Frame 2
Hey,

When I place my carousel code/script on another frame than one it does not show. Does anyone, just from seeing my code/script spot a possible reason?


Code:
stop ();
//*************************************IMPORTS****************************************\
import mx.transitions.Tween;
import mx.transitions.easing.*;
import mx.utils.Delegate;
import flash.filters.BlurFilter;

//*************************************CAROUSEL****************************************\
var blur:BlurFilter = new BlurFilter (0, 0, 1);
var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 70;
var centerX:Number = (Stage.width / 2);
var centerY:Number = (Stage.height / 2);
var speed:Number = 0.0015;
var speed2 = speed + 0.05;
var perspective:Number = 114;
var home:MovieClip = this;

var tooltips:Array = new Array ("tooltip1", "tooltip2", "tooltip3", "tooltip4", "tooltip5", "tooltip6", "tooltip7", "tooltip8", "tooltip9", "tooltip10", "tooltip11");

var const:Array = new Array ("const1", "const2", "const3", "const4", "const5", "const6", "const7", "const8", "const9", "const10", "const11");

var tooltip:MovieClip = this.attachMovie ("tooltip", "tooltip", 10000);
tooltip._alpha = 0;
//**********************CAROUSEL XML*******************************\
this.onLoad = function () {
numOfItems = 11;//11 items

for (var i = 0; i < numOfItems; i++) {
var t = home.attachMovie ("item", "item" + i, i + 1);
t._alpha = 85;
t.angle = i * ((Math.PI * 2) / numOfItems);
t.onEnterFrame = mover;
t.toolText = tooltips[i];
t.const = const[i];
home.tooltip._xscale = home.tooltip._yscale = this._parent._xscale;
t.icon.inner.attachMovie ("bitmap" + i,"bitmap",1000 + i);
t.r.inner.attachMovie ("bitmap" + i,"whatever" + i,6000 + i);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
};
//********************CAROUSEL TOOLTIP***********************\
function over () {

home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x + 4;
home.tooltip._y = this._parent._y - this._parent._height / 2;
home.tooltip.onEnterFrame = Delegate.create (this, moveTip);
home.tooltip._alpha = 95;
var s = (home.tooltip._y - perspective) / (centerY + radiusY - perspective);
home.tooltip._xscale = home.tooltip._yscale = s * 700;
home.tooltip._xscale = home.tooltip._yscale = this._parent._xscale;//Scaling Tooltip
}
function out () {

delete home.tooltip.onEnterFrame;
delete home.tooltip.tipText.text;
home.tooltip._alpha = 0;
}

function released () {

home.tooltip._alpha = 0;
for (var i = 0; i < numOfItems; i++) {
var t:MovieClip = home["item" + i];
t.xPos = t._x;
t.yPos = t._y;
t.theScale = t._xscale;
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;
delete t.onEnterFrame;
if (t != this._parent) {
//If it's not the item we clicked on, fade it away
var tw:Tween = new Tween (t, "_xscale", Strong.easeOut, t._xscale, 0, 1, true);
var tw2:Tween = new Tween (t, "_yscale", Strong.easeOut, t._yscale, 0, 1, true);
var tw3:Tween = new Tween (t, "_alpha", Strong.easeOut, 100, 0, 1, true);

} else {
//If it is the item we clicked on
blur.blurX = 0.25;
blur.blurY = 0.25;
t.filters = [blur];
t._alpha = 100;
if (t.const == "const1" or "const2" or "const3" or "const4" or "const5" or "const6" or "const7" or "const8" or "const9" or "const10" or "const11") {
t.icon.inner.bitmap.gotoAndStop (2);
}
//Enlarge the object
var tw:Tween = new Tween (t, "_xscale", Strong.easeOut, t._xscale, 466.5, 1, true);
var tw2:Tween = new Tween (t, "_yscale", Strong.easeOut, t._yscale, 466.5, 1, true);
var tw3:Tween = new Tween (t, "_x", Strong.easeOut, t._x, 350, 1, true);
var tw4:Tween = new Tween (t, "_y", Strong.easeOut, t._y, 240, 1, true);
var tw5:Tween = new Tween (theText, "_alpha", Strong.easeOut, 0, 100, 1, true);


theText.text = t.const;
var s:Object = this;
var pixel:Object = t.icon.inner.bitmap.instance1.btn;
tw.onMotionStopped = function () {

item0.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item1.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item2.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item3.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item4.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item5.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item6.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item7.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item8.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item9.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
item10.icon.inner.bitmap.vectpage1.btn.onRelease = Delegate.create (s, unReleashed);
};
}
}
}

function unReleashed () {
delete this.onRelease;

var tw5:Tween = new Tween (theText, "_alpha", Strong.easeOut, 100, 0, 0.6, true);

for (var i = 0; i < numOfItems; i++) {
var t:MovieClip = home["item" + i];
if (t != this._parent) {
var tw:Tween = new Tween (t, "_xscale", Strong.easeOut, 0, t.theScale, 1, true);
var tw2:Tween = new Tween (t, "_yscale", Strong.easeOut, 0, t.theScale, 1, true);
var tw3:Tween = new Tween (t, "_alpha", Strong.easeOut, 0, 85, 1, true);


} else {
t._alpha = 85;
var tw:Tween = new Tween (t, "_xscale", Strong.easeOut, 100, t.theScale, 1, true);
var tw2:Tween = new Tween (t, "_yscale", Strong.easeOut, 100, t.theScale, 1, true);
var tw3:Tween = new Tween (t, "_x", Strong.easeOut, t._x, t.xPos, 1, true);
var tw4:Tween = new Tween (t, "_y", Strong.easeOut, t._y, t.yPos, 1, true);


t.icon.inner.bitmap.gotoAndStop (1);//Return to pixel version

tw.onMotionStopped = function () {
for (var i = 0; i < numOfItems; i++) {
var t:MovieClip = home["item" + i];
t.icon.onRollOver = Delegate.create (t.icon, over);
t.icon.onRollOut = Delegate.create (t.icon, out);
t.icon.onRelease = Delegate.create (t.icon, released);
t.onEnterFrame = mover;

}
};
}
}
}

function moveTip () {

home.tooltip._x = this._parent._x;
home.tooltip._xscale = home.tooltip._yscale = this._parent._xscale;
home.tooltip._y = this._parent._y - this._parent._height / 2;

}
//********************IMAGE MOVER***********************\
//Circle Area
function mover () {
this._x = Math.cos (this.angle) * radiusX + centerX;
this._y = Math.sin (this.angle) * radiusY + centerY;
var s:Number = (this._y - perspective) / (centerY + radiusY - perspective);
this._xscale = this._yscale = s * 100;
this.angle += this._parent.speed;
this.swapDepths (Math.round (this._xscale) + 100);
//Blur
blur.blurX = Math.round (Math.sin (this.angle - Math.PI) * 1.50);
blur.blurY = Math.round (Math.sin (this.angle - Math.PI) * 1.50);
this.filters = [blur];

}
//Speed
this.onMouseMove = function () {
if (_ymouse <= 380) {
speed = (this._xmouse - (centerX) - 10) / 8300;
speed2 = (this._xmouse - (centerX / 3 + 500) - 10) / 1900;
}
};

Carousel On Other Frame Than 1
Hey,

When I place the carousel code/script on another frame than 1 it doesn't show - Why? & is there a way to fix this?

More Than One Frame For Carousel?
Hello,
I am using the Carousel as the main page for my flash site (Thanks Lee!)
And Since it's a site, I preferabbly want to put a preloader.

I've already watched both preloader videos and they are helpful.
However, since Lee uses some onEnterFrame functions, but if I were to have
three frames, then the timeline would keep going and the carousel wouldn't
function properly... (Carousel would blink really fast)

Does anyone have a fix to this? Maybe, change all onEnterFrame to some
function that would only trigger when the 3rd frame is triggered?
Or is there a way so that the preloader frames aren't viewed more than once? (so the flash movie only triggers frame 3 the whole time)

Thanks!
Keehun Nam

How To Add Visible Frame Counter To Animation?
I am trying to create a invisible rollover button in my flash animation that displays the current frame so when my client and I are discussing the animation we can determine which frame to make changes on.

When I set a variable to _currentframe, it stores only the frame on which the action occurs, which makes sense. Is there any simple (and low-bandwidth) way to have that repeat so a variable is constantly loaded with the frame number of the main timeline? Or is there some other way of doing it?

Any input on this would much appreciated.

Thanks!

Visible Property = True On Frame 100
I have a series of (6) buttons placed directly on the stage that I don't want to see until frame 100, or basically after "100 frames in time" which is when everything on the stage is settled in and done animating. I can't seem to get this seemingly simple task to work. I have an "actions" layer on the first frame with this statement for (1) of the (6) buttons as an example:

btnSoundIsOff.visible = false;

This of course works like a champ, you can't see this button at all. Unfortunately I can't seem to get it to become visible. I tried placing this statement on Frame 100 of the main timeline and realized that it can't possibly work:

btnSoundIsOff.visible = true;

I only have (1) Frame on the main timeline not including a preloader, so of course Frame 100 never gets played. I have also tried adding the visible button statements at frame 100 of my last movie clip animation but then I get run-time errors of undefined this and that. I am not grasping a important fundamental concept of AS3 apparently. I need the buttons to appear after 100 frames and also be able to work. What am I missing? Thank you, I hope I have explained enough of my crisis if not please let me know.

[F8] Carousel - Export Other Frame Than 1
Hey all,

I have created a flash-based guide for AdBux.org, and with "all" the graphics and compressed images it has gotten rather big. The problem is that to make the most of it work I have to check the "Export in first frame", which means 75% of the content is loaded before anything is shown. Is there a way to load the first 2-3 frames before the carousel or anything?

Carousel guide: http://www.swfupload.com/view/102783.htm
Carousel code: (If anyone could optimize it in any way, that would be great as well)
Code:
//*************************************IMPORTS****************************************\
import mx.transitions.Tween;
import mx.transitions.easing.*;
import mx.utils.Delegate;
import flash.filters.BlurFilter;
//*********************************CAROUSEL ALPHA IN****************************\
new Tween (mt, "_alpha", Strong.easeInOut, 0, 100, 1.85, true);
//*************************************CAROUSEL****************************************\
var he:MovieClip = mt;
var blur:BlurFilter = new BlurFilter (0, 0, 1);
var numOfItems:Number;
var radX:Number = 300;
var radY:Number = 70;
var cenX:Number = (Stage.width / 2);
var cenY:Number = (Stage.height / 2);
var speed:Number = 0.00177;
he.speed = speed;
var spd = speed + 0.07;
var pes:Number = 115;

var tooltips:Array = new Array ("How do I register", "How do I earn money", "How do I log in", "How do I upgrade", "What are referrals", "Profile settings", "How to advertise", "Support tickets");

var const:Array = new Array ("const1", "const2", "const3", "const4", "const5", "const6", "const7", "const8", "const9", "const10", "const11");

var tooltip:MovieClip = he.attachMovie ("tooltip", "tooltip", 10000);

tooltip._visible = false;
//**********************CAROUSEL XML*******************************\
this.onLoad = function () {

numOfItems = 8;//11 items

for (var i = 0; i < numOfItems; i++) {
var t = he.attachMovie ("item", "item" + i, i + 1);
t.angle = i * ((Math.PI * 2) / numOfItems);
t.onEnterFrame = mover;
t.toolText = tooltips[i];
t.const = const[i];
he.tooltip._xscale = he.tooltip._yscale = this._parent._xscale;
t.icon.inner.attachMovie ("bitmap" + i,"bitmap",1000 + i);
t.r.inner.attachMovie ("bitmap" + i,"whatever" + i,6000 + i);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;

}
};
//********************CAROUSEL TOOLTIP***********************\
function over () {

he.tooltip.tipText.text = this._parent.toolText;
he.tooltip._x = this._parent._x + 4;
he.tooltip._y = this._parent._y - this._parent._height / 2;
he.tooltip.onEnterFrame = Delegate.create (this, moveTip);
he.tooltip._visible = true;

if (he.tooltip.tipText.text == "How do I register") {
mt.item0.icon.inner.bitmap.gotoAndStop (2);
} else if (he.tooltip.tipText.text == "How do I earn money") {
mt.item1.icon.inner.bitmap.gotoAndStop (2);
} else if (he.tooltip.tipText.text == "How do I log in") {
mt.item2.icon.inner.bitmap.gotoAndStop (2);
} else if (he.tooltip.tipText.text == "How do I upgrade") {
mt.item3.icon.inner.bitmap.gotoAndStop (2);
} else if (he.tooltip.tipText.text == "What are referrals") {
mt.item4.icon.inner.bitmap.gotoAndStop (2);
} else if (he.tooltip.tipText.text == "Profile settings") {
mt.item5.icon.inner.bitmap.gotoAndStop (2);
} else if (he.tooltip.tipText.text == "How to advertise") {
mt.item6.icon.inner.bitmap.gotoAndStop (2);
} else if (he.tooltip.tipText.text == "Support tickets") {
mt.item7.icon.inner.bitmap.gotoAndStop (2);
}
var s = (he.tooltip._y - pes) / (cenY + radY - pes);
he.tooltip._xscale = he.tooltip._yscale = s * 700;

//Scaling Tooltip
he.tooltip._xscale = he.tooltip._yscale = this._parent._xscale;

//Sound
var VolScale = he.tooltip._xscale = he.tooltip._yscale = this._parent._xscale;
var menuOverMC = this.createEmptyMovieClip ("menuOverMC", this.getNextHighestDepth ());
var menuOver:Sound = new Sound (menuOverMC);
menuOver.attachSound ("menuOver");
menuOver.start ();
menuOver.setVolume (VolScale + 7.5);
}
function out () {

delete he.tooltip.onEnterFrame;
delete he.tooltip.tipText.text;
he.tooltip._visible = false;

mt.item0.icon.inner.bitmap.gotoAndStop (1);
mt.item1.icon.inner.bitmap.gotoAndStop (1);
mt.item2.icon.inner.bitmap.gotoAndStop (1);
mt.item3.icon.inner.bitmap.gotoAndStop (1);
mt.item4.icon.inner.bitmap.gotoAndStop (1);
mt.item5.icon.inner.bitmap.gotoAndStop (1);
mt.item6.icon.inner.bitmap.gotoAndStop (1);
mt.item7.icon.inner.bitmap.gotoAndStop (1);
mt.item8.icon.inner.bitmap.gotoAndStop (1);
mt.item9.icon.inner.bitmap.gotoAndStop (1);
mt.item10.icon.inner.bitmap.gotoAndStop (1);
mt.item11.icon.inner.bitmap.gotoAndStop (1);
}

function released () {

he.tooltip._visible = false;

mt.item0.r._visible = false;
mt.item1.r._visible = false;
mt.item2.r._visible = false;
mt.item3.r._visible = false;
mt.item4.r._visible = false;
mt.item5.r._visible = false;
mt.item6.r._visible = false;
mt.item7.r._visible = false;
mt.item8.r._visible = false;
mt.item9.r._visible = false;
mt.item10.r._visible = false;


for (var i = 0; i < numOfItems; i++) {
var t:MovieClip = he["item" + i];
t.xPos = t._x;
t.yPos = t._y;
t.theScale = t._xscale;
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;
delete t.onEnterFrame;
if (t != this._parent) {
//If it"s not the item we clicked on, fade it away
var tw:Tween = new Tween (t, "_xscale", Strong.easeOut, t._xscale, 0, 0.018, true);
var tw2:Tween = new Tween (t, "_yscale", Strong.easeOut, t._yscale, 0, 0.018, true);
var tw3:Tween = new Tween (t, "_alpha", Strong.easeOut, 100, 0, 0.01, true);

} else {
//If it is the item we clicked on
t._quality = "LOW";
_quality = "LOW";

//Sound
var VolScale = he.tooltip._xscale = he.tooltip._yscale = this._parent._xscale;
var clickSoundMC = this.createEmptyMovieClip ("clickSoundMC", this.getNextHighestDepth ());
var clickSound:Sound = new Sound (clickSoundMC);
clickSound.attachSound ("buttonClick");
clickSound.start ();
clickSound.setVolume (VolScale - 35);

blur.blurX = 0.00;
blur.blurY = 0.00;
t.filters = [blur];
t.icon.inner.bitmap.gotoAndStop (3);
//Enlarge the object
var tw:Tween = new Tween (t, "_xscale", Regular.easeInOut, t._xscale, 466.5, 1.114, true);
var tw2:Tween = new Tween (t, "_yscale", Regular.easeInOut, t._yscale, 466.5, 1.114, true);
var tw3:Tween = new Tween (t, "_x", Regular.easeInOut, t._x, 350, 1.114, true);
var tw4:Tween = new Tween (t, "_y", Regular.easeInOut, t._y, 240, 1.114, true);
var tw5:Tween = new Tween (theText, "_alpha", Regular.easeInOut, 0, 100, 1.114, true);

theText.text = t.const;
var s:Object = this;
var pixel:Object = t.icon.inner.bitmap.instance1.btn;
tw.onMotionStopped = function () {
t._quality = "HIGH";
_quality = "HIGH";

mt.item0.icon.inner.bitmap.vects.MenuButton.onRelease = Delegate.create (s, unReleashed);
mt.item1.icon.inner.bitmap.vects.MenuButton.onRelease = Delegate.create (s, unReleashed);
mt.item2.icon.inner.bitmap.vects.MenuButton.onRelease = Delegate.create (s, unReleashed);
mt.item3.icon.inner.bitmap.vects.MenuButton.onRelease = Delegate.create (s, unReleashed);
mt.item4.icon.inner.bitmap.vects.MenuButton.onRelease = Delegate.create (s, unReleashed);
mt.item5.icon.inner.bitmap.vects.MenuButton.onRelease = Delegate.create (s, unReleashed);
mt.item6.icon.inner.bitmap.vects.MenuButton.onRelease = Delegate.create (s, unReleashed);
mt.item7.icon.inner.bitmap.vects.MenuButton.onRelease = Delegate.create (s, unReleashed);
mt.item8.icon.inner.bitmap.vects.MenuButton.onRelease = Delegate.create (s, unReleashed);
mt.item9.icon.inner.bitmap.vects.MenuButton.onRelease = Delegate.create (s, unReleashed);
mt.item10.icon.inner.bitmap.vects.MenuButton.onRelease = Delegate.create (s, unReleashed);
};
}
}
}

function unReleashed () {
delete this.onRelease;

mt.item0.r._visible = true;
mt.item1.r._visible = true;
mt.item2.r._visible = true;
mt.item3.r._visible = true;
mt.item4.r._visible = true;
mt.item5.r._visible = true;
mt.item6.r._visible = true;
mt.item7.r._visible = true;
mt.item8.r._visible = true;
mt.item9.r._visible = true;
mt.item10.r._visible = true;

var tw5:Tween = new Tween (theText, "_alpha", Strong.easeOut, 100, 0, 0.6, true);

for (var i = 0; i < numOfItems; i++) {
var t:MovieClip = he["item" + i];
if (t != this._parent) {
var tw:Tween = new Tween (t, "_xscale", Strong.easeOut, 0, t.theScale, 1, true);
var tw2:Tween = new Tween (t, "_yscale", Strong.easeOut, 0, t.theScale, 1, true);
var tw3:Tween = new Tween (t, "_alpha", Strong.easeOut, 0, 100, 1, true);


} else {
var tw:Tween = new Tween (t, "_xscale", Strong.easeOut, 100, t.theScale, 1, true);
var tw2:Tween = new Tween (t, "_yscale", Strong.easeOut, 100, t.theScale, 1, true);
var tw3:Tween = new Tween (t, "_x", Strong.easeOut, t._x, t.xPos, 1, true);
var tw4:Tween = new Tween (t, "_y", Strong.easeOut, t._y, t.yPos, 1, true);


t.icon.inner.bitmap.gotoAndStop (1);//Return to pixel version

tw.onMotionStopped = function () {
for (var i = 0; i < numOfItems; i++) {
var t:MovieClip = he["item" + i];
t.icon.onRollOver = Delegate.create (t.icon, over);
t.icon.onRollOut = Delegate.create (t.icon, out);
t.icon.onRelease = Delegate.create (t.icon, released);
t.onEnterFrame = mover;

}
};
}
}
}

function moveTip () {

he.tooltip._x = this._parent._x;
he.tooltip._xscale = he.tooltip._yscale = this._parent._xscale;
he.tooltip._y = this._parent._y - this._parent._height / 2;

}
//********************IMAGE MOVER***********************\
//Circle Area
function mover () {
this._x = Math.cos (this.angle) * radX + cenX;
this._y = Math.sin (this.angle) * radY + cenY;
var s:Number = (this._y - pes) / (cenY + radY - pes);
this._xscale = this._yscale = s * 100;
this.angle += speed;
this.swapDepths (Math.round (this._xscale) + 100);
//Blur
blur.blurX = Math.round (Math.sin (this.angle - Math.PI) * 2.5);
blur.blurY = Math.round (Math.sin (this.angle - Math.PI) * 2.5);
this.filters = [blur];

}
//Speed
this.onMouseMove = function () {
if (_ymouse <= 380) {
speed = (this._xmouse - (cenX) - 10) / 7500;
spd = (this._xmouse - (cenX / 3 + 500) - 10) / 1725;
}

};
onLoad ();

Carousel-how To Navigate From One Frame To Another?
Hello
I really need help for the carousel that i made using the tutorial in gotoandlearn. How do i change the code so that when i click an icon, it navigates to another frame and the whole carousel is gone?

I have been trying for the past 2 days... i managed to navigate to another frame but the carousel just stays there. How do i remove it? Heres my code:

stop();

import mx.utils.Delegate;

var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 75;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 0.05;
var perspective:Number = 130;
var home:MovieClip = this;

var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
tooltip._alpha = 0;

var xml:XML = new XML();
xml.ignoreWhite = true;

xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0;i<numOfItems;i++)
{
var t = home.attachMovie("item","item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
t.toolText = nodes[i].attributes.tooltip;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.link = nodes[i].attributes.link;
t.r.inner.loadMovie(nodes[i].attributes.image);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
}
function out()
{
delete home.tooltip.onEnterFrame;
home.tooltip._alpha = 0;
}

function released()
{
gotoAndStop(this._parent.link);
}

function over()
{
home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
home.tooltip._alpha = 100;
}

function moveTip()
{
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
}

xml.load("icons.xml");

function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = (this._y - perspective) /(centerY+radiusY-perspective);
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)/3500;
}

Help is appreciated!

Carousel Load On Another Frame Other Then 1
is it possible to have the carousel load on another frame instead of frame 1 i've been trying to stick it on frame 3 but once it loads in the icons do not show so i'm left with staring at a blank screen my code is the original code for carousel part3 except a very slit modification so it loads in external swfs
looking around the code i can't seem to find anything that would limit it to only being able to load on frame 1 and when watching the tutorials i dont remember anything he saide limiting it to this but i can't seem to find why it won't load properly in frame 3

How Can I Make One Button To Make A Mc Visible. The Mc Is Not Visible In The Beginnin
How can i make one button to make a mc visible. The mc is not visible in the beginning.

Deleting The Carousel When Leaving The Frame
Hi there,

I'm also trying to put the carousel into my fla. In my fla I work with scenes. whitch works perfectly untill now.. (the carousel is still exactly the same as in the carousel 3 tutorial)

So I have a number of different scenes. In scene 4 I have put the carousel on frame 22..

When I test the movie I click on a button that brings me to scene 4 when it reaches frame 22 the carousel begins.. But whem i'm done with the carousel en I want to go to another scene of my movie the carousel continues to play. Then when i click on the button again to go to scene 4 a second carousel begins, so now I have 2 carousels on top of each other.

My question is how can delete the carousel when I'm done with scene 4(the carousel scene) and click on a button for another scene?

by the way i have searched the forums and I think there is one other topic about this but nobody replied to it yet..

hopefully someone can help me, thanks :)

Can We Print Everything That Is Visible In Current Frame Irrespective Of Any Level
Hi Gurus,

Here are some print functionality problems I'm facing.

A) My interface is divided into two flash movies.
One is "main.swf", which contains the left part of the interface.
From this "main.swf", I'm loading "cotent.swf" movie on level 1, which contains the right part of the interface.

My problem is..
I want to print the whole interface, but when I give command like..

Code:
printAsBitmapNum (0, "bframe");
where "0" represents level 0 (that is main movie "main.swf") then it prints left part of the interface only.

is there any solution, so that we can print everything that is visible in current frame irrespective of any levels/MCs?

B) my second problem is..
I'm unable to control the scale of the printout.
My movie prints cotent of single frame on single page.
That is, if I'm printing 5 frames, then printout will be on 5 pages.

But my main concern is, if my content is less than A4 size paper, then also flash scales it up, to utilize all space on A4 size paper.
and if my content is more than A4 size paper, then flash scales it down, to accomodate it on A4 size paper.

is there any way to control this?

[CS3] Problem With 3D Rotating Carousel On Opening Frame
This is my code for a carousel I am making. It has 9 different png images that are pulled in externally. It rotates 360 degrees and when you click on an icon it brings up a short blurb that is pulled from an xml file.

My Problem: When the SWF is first executed it spins like crazy, going very fast. When I roll over it, it stops. This is a problem being It might be used on a website. Does anyone know a fix from looking at my code?

Thanks.



Quote:





import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;

var numOfItems:Number;
var radiusX:Number = 200;
var radiusY:Number = 75;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 1;
var perspective:Number = 130;
var home:MovieClip = this;
theText._alpha = 0;

var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
tooltip._alpha = 0;

var xml:XML = new XML();
xml.ignoreWhite = true;

xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0;i<numOfItems;i++)
{
var t = home.attachMovie("item","item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
t.toolText = nodes[i].attributes.tooltip;
t.content = nodes[i].attributes.content;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.r.inner.loadMovie(nodes[i].attributes.image);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
}

function over()
{
//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sover");
sou.start();

home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
home.tooltip._alpha = 100;
}

function out()
{
delete home.tooltip.onEnterFrame;
home.tooltip._alpha = 0;
}

function released()
{
//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sdown");
sou.start();

home.tooltip._alpha = 0;
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home["item"+i];
t.xPos = t._x;
t.yPos = t._y;
t.theScale = t._xscale;
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;
delete t.onEnterFrame;
if(t != this._parent)
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,0,1,tru e);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,0,1,tru e);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,100,0,1,true);
}
else
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,t rue);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,t rue);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,200,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,320,1,true);
var tw5:Tween = new Tween(theText,"_alpha",Strong.easeOut,0,100,1,true );
theText.text = t.content;
var s:Object = this;
tw.onMotionStopped = function()
{
s.onRelease = unReleased;
}
}
}
}

function unReleased()
{
//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sdown");
sou.start();

delete this.onRelease;
var tw:Tween = new Tween(theText,"_alpha",Strong.easeOut,100,0,0.5,tr ue);
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home["item"+i];
if(t != this._parent)
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,tr ue);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,tr ue);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
}
else
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1, true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1, true);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
tw.onMotionStopped = function()
{
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home["item"+i];
t.icon.onRollOver = Delegate.create(t.icon,over);
t.icon.onRollOut = Delegate.create(t.icon,out);
t.icon.onRelease = Delegate.create(t.icon,released);
t.onEnterFrame = mover;
}
}
}
}
}


function moveTip()
{
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
}

xml.load("icons.xml");

function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = (this._y - perspective) /(centerY+radiusY-perspective);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 1);
}

this.onMouseMove = function()
{
speed = (this._xmouse-centerX)/5500;
}

Problem With 3D Rotating Carousel On Opening Frame
This is my code for a carousel I am making. It has 9 different png images that are pulled in externally. It rotates 360 degrees and when you click on an icon it brings up a short blurb that is pulled from an xml file.

My Problem: When the SWF is first executed it spins like crazy, going very fast. When I roll over it, it stops. This is a problem being It might be used on a website. Does anyone know a fix from looking at my code?

Thanks.







Attach Code

import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;

var numOfItems:Number;
var radiusX:Number = 200;
var radiusY:Number = 75;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 1;
var perspective:Number = 130;
var home:MovieClip = this;
theText._alpha = 0;

var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
tooltip._alpha = 0;

var xml:XML = new XML();
xml.ignoreWhite = true;

xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0;i<numOfItems;i++)
{
var t = home.attachMovie("item","item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
t.toolText = nodes[i].attributes.tooltip;
t.content = nodes[i].attributes.content;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.r.inner.loadMovie(nodes[i].attributes.image);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
}

function over()
{
//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sover");
sou.start();

home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
home.tooltip._alpha = 100;
}

function out()
{
delete home.tooltip.onEnterFrame;
home.tooltip._alpha = 0;
}

function released()
{
//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sdown");
sou.start();

home.tooltip._alpha = 0;
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home["item"+i];
t.xPos = t._x;
t.yPos = t._y;
t.theScale = t._xscale;
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;
delete t.onEnterFrame;
if(t != this._parent)
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,0,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,0,1,true);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,100,0,1,true);
}
else
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,true);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,200,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,320,1,true);
var tw5:Tween = new Tween(theText,"_alpha",Strong.easeOut,0,100,1,true);
theText.text = t.content;
var s:Object = this;
tw.onMotionStopped = function()
{
s.onRelease = unReleased;
}
}
}
}

function unReleased()
{
//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sdown");
sou.start();

delete this.onRelease;
var tw:Tween = new Tween(theText,"_alpha",Strong.easeOut,100,0,0.5,true);
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home["item"+i];
if(t != this._parent)
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,true);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
}
else
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1,true);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
tw.onMotionStopped = function()
{
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home["item"+i];
t.icon.onRollOver = Delegate.create(t.icon,over);
t.icon.onRollOut = Delegate.create(t.icon,out);
t.icon.onRelease = Delegate.create(t.icon,released);
t.onEnterFrame = mover;
}
}
}
}
}


function moveTip()
{
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
}

xml.load("icons.xml");

function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = (this._y - perspective) /(centerY+radiusY-perspective);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 1);
}

this.onMouseMove = function()
{
speed = (this._xmouse-centerX)/5500;
}

Make Button Visible Only When Pressing Another Button
Hi Everybody, 1 question.

How do I make it so when you press a button another button appears?

Example:
I have a button that shows a picture.
After pressing that button I need another button to apear that zooms the picture.

I have both button created.. Only I want the second button only to be visible AFTER the 1st button is released.

How do I do that without placeing the buttons on seperate frames?

PLEASE HELP.. THANKS

Button Visible?
I'm having a bit of a problem with this action script in this moive

I'm using on the button:

on (rollOver) {
button1._visible = 0;
tellTarget ("mov1") {
play();
}
}

and then on the end of the movie clip I'm using
button1._visible = 0;

But I cant get it to work, any suggestions?

Thanks,
Mark

Button Visible?
I'm trying to make a button visible. I have an invisible button in a movie clip called blueRibbon. I want that invisible button to make a button called nextBtn within a movie clip called buttonPhotos to be seen as visible.

When I put the following action script in it does NOT work.

Any help would greatly be appreciated.

Thanks


Code:
on (rollOver){
this.next.nextBtn._visible = true;
}

on(release){

gotoAndPlay("p1");


}

Visible Button Question
is there any way to make a button visible/non-visible using the _visible command
if so, can you please tell me what it is
thanx

Invisible Button Is Visible
I have button on my main timeline. Each button has nothing in the up over or down state... however there is a black square that is a graphic symbol in the hit state. When on the timeline the hitstate is visible as a cyan like blue. What gives?

Thanks,
mperla

Button Visible On Top Most Layer
Hi, I have a template for showcasing 6 movieclips(video). On click of any movieclip thumbnails the video will get maximized and start playing on top of other thumbnails. the issue is when i do mouseover on the maximized video. i get a hand cursor symbol which belongs to other movieclips which is under the maximized video.

can any one help on this???? please....

Visible=false / Visible=true Not Working For Buttons
I have a button when pressed loads a movie into a level above the root. I put this code on the button and it works fine.

on (release) {
loadMovieNum("links.swf", 1);
_root.button1._visible=false;
_root.button2._visible=false;
_root.button3._visible=false;
}

Unloading my movie from level 1, however, I have this...

on (release) {
unloadMovieNum(1);
_root.button1._visible=true;
_root.button2._visible=true;
_root.button3._visible=true;
}

This is not working and I'm ready to freak out. Does anyone know what I'm doing wrong? I just don't want the buttons from the root to be active under level 1.

My kingdom for any help

Help With Visible=true/visible=false Animated Movie
in my main timline
action layer:

PHP Code:



stop();
_root.attachMovie("mcNavi","mcNavi",1);
mcNavi._visible=false;
_root.attachMovie("mcContact","mcContact",2);
mcContact._visible=false;




in another layer labeled buttons, one button "Contact Us" has the following script:

PHP Code:



on(release){
    mcContact._visible=true;
    mcContact._x=115.8;
    mcContact._y=165.3;
    mcNavi._visible=true;
    mcNavi._x=459.6;
    mcNavi._y=29.1;
    }




in the mcNavi movie clip there is a button labeled Close Window with:

PHP Code:



on (release){
    _parent.mcNavi._visible=false;
    _parent.mcContact._visible=false;
}





all the movies can be seen when needed however, once you click "Contact Us" to see mcContact and click "Close Window" to remove it, then every time you open "Contact Us" to see mcContact it won't show the animation, it will only show the end frames.

how do i get around this. is there other actionscript i should use for animated movie clips other than:
visible=false; and visible=true;

??????

[mx] Dynamic Text On WWW Not Visible (visible On Local Machine)
Thank you for reading this. I hope you can help me.

I have an mp3 player (learned from the Golden Mean) that works great. It loads text from an xml file that displays the track name (list of tracks available from xml file) and gets the track path. I've successfully edited it to now display lyrics/song notes as well. These visual displays are listBoxes with scroll bars. It also displays song length and current position (h/m/s) in dynamic text boxes.

I've edited the source and have a small compact player, a single player (one song only, if you will), that reads the xml file and displays the song length and current position, plays the song, but I'm not happy with the display fo the track title. I don't need a scroll bar for a single song, and I can't get rid of it.

What I am trying to do is load the song title from either the xml file or a simple text file and display in a dynamic text window. I've done it, tested the movie, and published the movie. These all work great. I can see everything in the swf by itself, and I can see everything when I call the html that has the swf embeded. I upload it to our intranet server and everything works as expected except the song title in the Dynamic Text box: I get nothing. Song plays, position and duration show fine.

I have done a search here in the forum and come up with a few possible solutions, none of which work for my situation:Paths correct? (yes, everything is where is should be relative to the swf file - in the same directory)
Mime type (server servers swf - the mp3 player works except the title)
Embed font (yes, I have embeded outline for all)
Font type is the same as the currently working duration/position and larger movie's title
I am using the same machine to view the file locally and the remote file (do I have to code multiple files for different platforms???)
Failure is consistent with every viewing machine available to me: Windows (XP, 2000), Fedora (core 1 & core 4), Redhat 9 and cross browser: Opera 8, Netscape 7.1, Firefox 1.0.4, Explorer 5 & 6, Mozilla 1.0.

I've been trying without success to google answers, and searching multiple fora. I thank you in advance for any help you might offer,

JW

Invisible Button But Visible Roll Over
Hi,
Im doing a flash animation with a map of a country and i need to convert each state into a button. This button should be invisible and on roll over i need to see a small paragraph.
What i tried doing is drawing a shape and reduced the alpha. I put the paragraph in the over and hit frames of the button. But what i realised later was the whole button (including the rollover) was alpha-ed out.
Any help? Plz? I know its not fair to ask for help asap, but as fast as possible would be appreciated. Thanx

[F8] Sound Button Not Visible On Website
Hi - first time posting. Beating head against a wall with what may be a simple problem. I want to control background sound for the home page of a website with on and off buttons. Took the compressed music file and selected the on/off buttons from the Library to use with this. Was successful with this process - when tested, the buttons work with the sound and when saved and placed onto my Dreamweaver page, it works on the browser preview. But, when it is uploaded onto the site, it is not visible at all. Have checked and double checked and made sure the swf and html files were on the server, but can't figure out what I am doing wrong or what is missing. Funny thing is that I had been able to upload and view a "test" button on the site previously, but don't know what I did then that I'm not doing now. (deleted the file, unfortunately)
Any help would be greatly appreciated!

[F8] Button Layer Which Only Functions When Visible
Hi,
I found a flash book component which I am implementing here: http://dev.funnyoldworld.net/portfolio/wedding-books

My flash file is one frame long and is split up into layers.
1st (top) layer - book component actions
2nd layer - book component
3rd layer - image file (instructions text)
4th layer - button with link behavior to make "prices & services" link work
(on release, gotourl)

My problem is that the button on the 4th layer still functions even when the Flash component (i.e. the book pages) are open on top. How can I make a button which only works when the layer it's on is visible?

Maybe this isn't the approach I should take, but from what I've said you can see the effect I'm trying to create. Any advice would be greatly appreciated.

I'm sorry I've just signed up to ask this question and honestly don't intend to become a regular member of the forum. I wont lie and promise to return, but instead in the spirit of Christmas I'll donate £10 to a registered charity chosen by whoever resolves this for me. T.I.A.

2 Button Become Visible False Independantly.
i am curruntly trying to creat a simple mathcing pairs memory game. at the mometent i have a 4*4 grid of 8 shapes pair up on stage. icover these chapes with buttons. what i want to happen is when one button is pressed it goes invisible when a second button is pressed if it is the button to a pair they both become invisible and stay invisible. if the 2nd button that is pressed is not the 1st partner they both become visible with out effecting any other buttons on stage.
this is the if statement ive been fiddling with and getting no were if anyone could help and point me in the right direction thx

How To Make Something Visible On Click Of Button
Hi,

I am trying to make a menu appear within my movie. The menu in question is in the library of the same movie. I simply want the user to be able to click a button and then the menu appears. Here is the code I have came up with but it does not work, I am new to actionscript so probably got it all wrong.

if (menu_btn.onPress)
{menu._visible = true;}
else if
(menu._visible = false


I would appreciate any help.

Dynamic Button Problem -- Always Visible
Hi everyone, I'm new to this forum and I'm new to advanced ActionScript so I was hoping someone could help with this strange problem, which I'll try to explain:

I borrowed a code off of a tutorial online that creates a dynamic XML photo gallery. The gallery produces one new button for each image in the XML file. This gallery is one of 3 galleries on a Flash site that I've created. The gallery in question is contained on a single layer. That is, all the graphics and movie clips are on one layer in the Timeline, and the same is true for the other galleries. All the galleries are on separate layers.

The problem is that the buttons appear at the bottom of the gallery when the user clicks to view the gallery, but then when the user clicks to view another page (i.e. a different gallery) the buttons from this gallery STAY AT THE BOTTOM. That is, even though they are dynamically created on a certain layer, in a certain frame number, they also continue to appear on the other frames. It seems that if a user is brought back one frame, that all the elements from the current gallery (even dynamic elements) should disappear... no? The images are also produced dynamically, yet they only appear on the one frame, then disappear when the user visits another frame.

Here is the code that creates these buttons:

newBut = _root.attachMovie('numTemplate', 'num'+i, i);
newBut._y = sliderHolder_mc._y+sliderHolder_mc._height+25;
newBut._x = (i*newBut._width)+sliderHolder_mc._x;
newBut.myNum = i;
newBut.num_txt.text = i+1;
newBut.onRelease = function() {
targX = 0-(this.myNum*275);
};

What do I need to do/understand in order to make these buttons go away when the user clicks to view another section of the flash site?

If anyone needs me to send them the whole movie in order to check this out more fully, please PM me.

Thanks,

Louis.

Dynamic Text On Visible Button
hi,

I have been wondering about this for a while:

is it possible to make a visible button, for instance a colored circle,
with dynamic text on it, without making the mouse react on the text instead of the button?

I don't want to use static text because it looks blurry.

thanks,

Jerryj.

Button Label Becomes NOT Visible After Placed On Top Of Movieclips
Hi,

does someone know why the label of a button I am placing on the stage doesn't appear?
I have several layers of components on the stage, and when I place the Button component on the stage on top of a movie clip on a lower layer, the button label doesn't appear. The button border is visible but not the label inside. This is driving me crazy. Does someone know why this is happening?

thanks

-malena

Carousel With Button Navigation?
Hello-
I've recently been mess'n aroud with the carousel tutorial from gotoandlearn.com. I've learned a lot, but I can't seem to figure something out. Instead of having the icons rotate continuously and relying on the mouse position...I would like the rotation to be driven by button clicks. So there would be navigation to click through each icon. I've attached an .fla that I've put buttons in it to further demonstrate what i mean. Any help much appreciated...

[3d Carousel] How To Add A Back Button ?
Hello everyone

i just discovered this place (through a friend of mine) & i love it !!

i followed 2 tutorials this far and i have learnt lots of different stuff !

i have a question concerning the 3d carousel :

is it possible to make a 'back button' appear somewhere on the scene after we click on an icon of the carousel ?

i know that clicking on the icon itself sends back to the spinning carousel but it may not seem obvious to people not used to flash the web in general.

i have some more questions but i'll wait 'til i don't find out myself

thank you !!

Button In Carousel Tutorial?
I have used the tutorials to create the carousel. This works great. There is only one thing that I really would like to accomplish but haven't been able to yet:

What happens now is that when you click on an item it moves to your left, and a text box becomes visible (as in the tut.). What I would like is to be able to click on a button there and go to a detailed php or html page on that subject.

So there must be a button, like 'more info' wich has an getUrl action, and that url will also be loaded in thru the xml.
It shouldn't be too hard, but i don't know how.....

any tips?

Carousel Add A Button After Toolbar
Hi,

I’m new to Flash, but I’m so lucky I found this fantastic site.

I have been doing the lessons on Carousel 1-2-3 and I have 3 questions.

Is it possible to add another icon once you are inside the toolbar giving the option of going to a new web page without altering the option of going back to the Carousel?

The other question I have is it possible to add a logo to run in the background behind the Carousel and how can I make the stage smaller i.e. 700X250 and keep all things in prospective?
Thanks for any help. :shock:

Carousel With Button Navigation?
Hello, I've been playing around with the wonderful carousel tutorial. I am learning a lot and have been racking my brain on trying to modify it. Instead of the icons constantly moving with the mouse, is there a way to only move the icons when a button is clicked? For example, All icons will be stopped until I hit a "next" or "previous" button, and it will move and position the next icon in line. I hope this makes sense ;). Has anyone done something similar? Thanks in advance...my brain is fried!

I Want My Invisible Upstate Button To Be Visible On Return
I want my invisible upstate button, on scen one to be visible on return to scen one. how can i do that?

Invisible Upstate Button Becomes Visible On Return?
Invisible upstate button becomes visible on return????


i have eight buttons on the first scen and they are all invisible. In the upstate of the button it´s nothing, in the overstate it´s a picture.

When i go over the buttons i can see a picture and when i click, i go to a new scen. When i go back i want the button to be visible in the upstate .

I want the buttons to light up in the first scen, and showing me where i have been.

Please help

Cant Make Symbol Visible With Button Click
this is so simple its embarresing, but it dosn't work.

I am trying to create an effect where I press a button, a symbol become visible.
So, i created two buttons called blue and green.
on the blue button i placed this code.

on(release){
blu=1
grn=0
}


on the green button I placed this code.

on(release){
blu=1
grn=0
}

I inserted a layer called lyr_blue and inserted this code.

setProperty("_root.blue", _visible, "0");
if (blu==1) {
setProperty("_root.blue", _visible, "1");
}


I inserted a layer called lyr_green and iserted this code.

setProperty("_root.green", _visible, "0");
if (grn==1) {
setProperty("_root.grn", _visible, "1");
}

but it doesn't work for some reason.

I have read SAMS teach yourself Macromedia MX in 24 hours and I am currently reading friends of Ed's Foundation Action Script for Macromedia Flash MX.

So far none of the books have helped.

Please can someone help
Tricia

Cant Make Symbol Visible With Button Click
this is so simple its embarresing, but it dosn't work.

I am trying to create an effect where I press a button, a symbol become visible.
So, i created two buttons called blue and green.
on the blue button i placed this code.

on(release){
blu=1
grn=0
}


on the green button I placed this code.

on(release){
blu=1
grn=0
}

I inserted a layer called lyr_blue and inserted this code.

setProperty("_root.blue", _visible, "0");
if (blu==1) {
setProperty("_root.blue", _visible, "1");
}


I inserted a layer called lyr_green and iserted this code.

setProperty("_root.green", _visible, "0");
if (grn==1) {
setProperty("_root.grn", _visible, "1");
}

but it doesn't work for some reason.

I have read SAMS teach yourself Macromedia MX in 24 hours and I am currently reading friends of Ed's Foundation Action Script for Macromedia Flash MX.

So far none of the books have helped.

Please can someone help
Tricia

Making Something Visible/Invisible After Pressing A Button
Its like this

I have 3 buttons on one frame, and each of those buttons should be linked to a background. the background isn't on the same frame, the backgrounds are on 3 sequential frames after another frame between the background choice frame and the 3 sequential frames with the backgrounds on it.

so the build up is like this:

first frame with the choice buttons (3 buttons for every movieclip background)

(a) frame(s) in between

1 frame with the 3 background movie clips
another frame with the 3 background movie clips
last frame with the 3 background movie clips

Now what I would like to know is how to program in actionscript that when I press the button the backgroundmovie clip button, that it shows the movie clip in those 3 sequential frames and not the other back ground movie clips in those 3 frames

I would be very pleased if you could help me out
could some moderator move this to the actionscript forum?

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