| beyondthebrand 2006-03-09, 6:23 pm |
| Hi All,
Probably best in the actionscript part of the forum but no one has responded
yet?
I have finished my interactive graph but it seems to load up all the ellements
first and show them before it pays any attension to the actionscript i have
posted below. Is this because i have everything on frame 1? or does that not
matter?
This only happens on a pc mainly in firefox but it loads the speech bubles and
the graph icons then the graph and then does what the actionscript says to do.
So instead of making the speech bubbles visible = false from the start it loads
each of the speech bubbles and then they all dissapear and the alpha tweens
start to work:
Really need to make this work!
Thanks
Neil
I have // hide bubbles
mcTotalamberBubble._visible = false;
mcRecruitmentBubble._visible = false;
mcVendorBubble._visible = false;
mcSoftwareBubble._visible = false;
mcOutsourceBubble._visible = false;
mcTotalamaberSpanArea._visible = false;
// import the tween class and Regular easing class
import mx.transitions.Tween;
import mx.transitions.easing.Regular;
// at start, set each clip's visibility property to zero
mcScreenGraph._visible = 0;
mcTotalamberIcon1._visible = 0;
mcRecruitmentIcon2._visible = 0;
mcSoftwareConIcon3._visible = 0;
mcVendorIcon4._visible = 0;
mcOutsourceIcon5._visible = 0;
mcInvestmentDescription._visible = 0;
mcValueProposition._visible = 0;
mcTAGradient._visible = 0;
// first tween, brings the graph from 0 to 100 alpha over 1 second
mcScreenGraph._visible = 1;
var graphTween:Tween = new Tween(mcScreenGraph, "_alpha", Regular.easeIn, 0,
100, .5, true);
// when that tween is done animating, create the next tween
// and make it come in over half a second, for fun
graphTween.onMotionFinished = function() {
mcTotalamberIcon1._visible = 1;
var icon1Tween = new Tween(mcTotalamberIcon1, "_alpha", Regular.easeIn, 0,
100, .25, true);
// still inside this function, the next on motion finished event and the next
tween
icon1Tween.onMotionFinished = function() {
mcRecruitmentIcon2._visible = 1;
var icon2Tween = new Tween(mcRecruitmentIcon2, "_alpha", Regular.easeIn, 0,
100, .25, true);
// inside this function, create the next
icon2Tween.onMotionFinished = function() {
mcSoftwareConIcon3._visible = 1;
var icon3Tween = new Tween(mcSoftwareConIcon3, "_alpha", Regular.easeIn, 0,
100, .25, true);
// inside this function, create the next
icon3Tween.onMotionFinished = function() {
mcVendorIcon4._visible = 1;
var icon4Tween = new Tween(mcVendorIcon4, "_alpha", Regular.easeIn, 0, 100,
..25, true);
icon4Tween.onMotionFinished = function() {
mcOutsourceIcon5._visible = 1;
var icon5Tween = new Tween(mcOutsourceIcon5, "_alpha", Regular.easeIn, 0, 100,
..25, true);
// close all functions
};
};
};
};
};
|