jerryj
May 16th, 2005, 03:14 PM
Hi,
could someone please tell me why my "nieuws.swf' is not going to frame 2 or not showing at all when i press the button with the second piece of code on it? The nieuws.swf has a stop on frame 1 and on frame 2. I can see it right away when i take away the first stop. I use the function playNieuws, to make it all happen.
Code in main movie, first frame:
#include "lmc_tween.as"
this.createEmptyMovieClip('hok1', 1);
with (_root.hok1) {
lineStyle(0.1, 0x666666, 100);
_x = 265;
_y = 216;
beginFill(0xFFFFFF);
lineTo(10, 0);
lineTo(10, 10);
lineTo(0, 10);
endFill();
}
hok1._alpha = 30;
this.createEmptyMovieClip('content', 2);
content.loadMovie("nieuws.swf", 2);
playNieuws = function () {
_level2.gotoAndPlay(2);
};
Code on button in main movie:
on (press) {
sneeMC.alphaTo(0, 0.6);
lamp1MC.tween('_y', 80, 0.4, 'easeOutSine');
lamp1MC.scaleTo(90, 0.4, 'easeOutSine');
lamp1MC.gloeiMC.alphaTo(99, 7, 'linear');
hok1.alphaTo(99, 0.5, 'linear', 0.5);
hok1.tween('_y', 353, 0.4, 'easeOutBack', 1);
hok1.tween('_x', 395, 0.4, 'easeOutBack', 1.4);
hok1.tween('_width', 356, 0.4, 'easeOutBack', 1.9);
hok1.tween('_x', 217, 0.4, 'easeOutBack', 1.9);
hok1.tween('_height', 243, 0.4, 'easeOutBack', 2.4);
hok1.tween('_y', 233, 0.4, 'easeOutBack', 2.4, playNieuws);
hok1.alphaTo(30, 0.4, 'linear', 2.5);
sneeMC.alphaTo(99, 0.6, 'linear', 2.8);
}
could someone please tell me why my "nieuws.swf' is not going to frame 2 or not showing at all when i press the button with the second piece of code on it? The nieuws.swf has a stop on frame 1 and on frame 2. I can see it right away when i take away the first stop. I use the function playNieuws, to make it all happen.
Code in main movie, first frame:
#include "lmc_tween.as"
this.createEmptyMovieClip('hok1', 1);
with (_root.hok1) {
lineStyle(0.1, 0x666666, 100);
_x = 265;
_y = 216;
beginFill(0xFFFFFF);
lineTo(10, 0);
lineTo(10, 10);
lineTo(0, 10);
endFill();
}
hok1._alpha = 30;
this.createEmptyMovieClip('content', 2);
content.loadMovie("nieuws.swf", 2);
playNieuws = function () {
_level2.gotoAndPlay(2);
};
Code on button in main movie:
on (press) {
sneeMC.alphaTo(0, 0.6);
lamp1MC.tween('_y', 80, 0.4, 'easeOutSine');
lamp1MC.scaleTo(90, 0.4, 'easeOutSine');
lamp1MC.gloeiMC.alphaTo(99, 7, 'linear');
hok1.alphaTo(99, 0.5, 'linear', 0.5);
hok1.tween('_y', 353, 0.4, 'easeOutBack', 1);
hok1.tween('_x', 395, 0.4, 'easeOutBack', 1.4);
hok1.tween('_width', 356, 0.4, 'easeOutBack', 1.9);
hok1.tween('_x', 217, 0.4, 'easeOutBack', 1.9);
hok1.tween('_height', 243, 0.4, 'easeOutBack', 2.4);
hok1.tween('_y', 233, 0.4, 'easeOutBack', 2.4, playNieuws);
hok1.alphaTo(30, 0.4, 'linear', 2.5);
sneeMC.alphaTo(99, 0.6, 'linear', 2.8);
}