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








Wierd Interuptions To A Tween Event


I have a tween and use continueTo() to move in clips. Everyonce and a while it will just freeze and not move. Is there any reason a continueTo would just stop even though it hasn't completed to where it was told to move to?




FlashKit > Flash Help > Actionscript 3.0
Posted on: 10-30-2007, 04:39 AM


View Complete Forum Thread with Replies

Sponsored Links:

AS3 Click Event Being Wierd
Im using a Click event on a linkaged movie clip so that when you click on it, it will run a function defined in root. That all works fine, but it seems to pass a different event target depending on where you click in the movie. If you click on the background it passes the movieclip instance itself, but if you click on a text field in the movieclip it passes that as the event target. The Click event is registered with the movieclip instance, shouldnt that be returned as the target no matter what other movies are in it? whats the deal?

This is the code on the first frame of the linkaged movie clip:

this.addEventListener(MouseEvent.CLICK, root.eventClick);

View Replies !    View Related
Um...I Need To Build A Wierd OnClick Event?
Hello,

Question:

How do I register which image I'm clicking on when the images are in a html-set textarea?

example:

I can set the text in an html active textarea to something like this:

cpage.htmlText = cpage.htmlText + "<img id = 'whatever' src='whatever'>";


How would I set up a function to figure out where the image is actually at in the textarea so I could grab the correct id num for it through an on-click event?

I was thinking of mabye the getTextExtent function, but I'm not sure how?

Any help would be appreciated, Thanks.

View Replies !    View Related
Tween Event Problem
Hi all,

I have the following code:


Code:
function test():void
{
var tween:Tween = new Tween(popup_mc, "alpha", Strong.easeOut, 1, 0, .15, true);
tween.addEventListener(TweenEvent.MOTION_FINISH, popupInvisible);
}
Sometimes, the event listener for the tween does not initiate the popupInvisible() function - is there something I am doing incorrect or could this be improved?

Thanks in advance for any support

View Replies !    View Related
AS3 - Tween On Mouse Event
If the code looks familiar to anyone, some of it is excerpted from a post by devonair. All it does is tween the x and y positions of a circle and textfield. I've tinkered with it a bit by putting the tween functions in a separate Tweener class and made it accept whatever display object is passed to it. For demonstration purposes, I have it set up so that the tweens occur as soon as the circle and textfield are created. The problem is that I would like the tweens to occur only when they are clicked on. I don't know how tp do this. How do I write _circle.addEventListener(MouseEvent.MOUSE_DOWN,... .) and _text.addEventListener(MouseEvent.MOUSE_DOWN, tweenerIt) so that they are the triggers?

It must be very simple, but I just don't get it. Could someone please explain?


Code:
package
{
import mx.effects.*;
import flash.display.*;
import flash.events.*;
import mx.effects.easing.*;
import flash.text.TextField;
import com.Tweener;

public class TweenTest extends Sprite {

private var _circle:Sprite;
private var _text:TextField;

function TweenTest() {
stage.frameRate = 31;
init();
}

private function init():void {
_circle = makeCircle();
_text = makeTextField();
var myTween:Tweener = new Tweener(_text, 40, 300, 150, 100, 4000);
var myTween2:Tweener = new Tweener(_circle, 0, 60, 300, 200, 8000);
// don't know what to put here...
//_circle.addEventListener(MouseEvent.MOUSE_DOWN, tweenerIt);
//_text.addEventListener(MouseEvent.MOUSE_DOWN, tweenerIt);
}

private function tweenerIt():void {
// don't know what to put here
}

private function makeCircle():Sprite {
var s:Sprite = new Sprite();
s.graphics.beginFill(0x660000);
s.graphics.drawCircle(20, 20, 20);
addChild(s);
return s;
}

private function makeTextField():TextField {
var t:TextField = new TextField();
t = new TextField();
t.text = "Hello";
t.x = 20;
t.y = 60;
addChild(t);
return t;
}
}
}

Code:
package com
{
import mx.effects.*;
import flash.display.*;
import flash.events.*;
import mx.effects.easing.*;

public class Tweener extends Sprite {

private var _target:DisplayObject;
private var _target_dest_x:Number;
private var _target_dest_y:Number;
private var _target_start_x:Number;
private var _target_start_y:Number;
private var _duration:Number;

public function Tweener(target:DisplayObject, target_start_x:Number, target_start_y:Number, target_dest_x:Number, target_dest_y:Number, duration:Number) {
_target = target;
_target_dest_x = target_dest_x;
_target_dest_y = target_dest_y;
_target_start_x = target_start_x;
_target_start_y = target_start_y;
_duration = duration;
tweenMe();
}
private function updateTween(vals:Array):void {
_target.x = vals[0];
_target.y = vals[1];
}

private function endTween(vals:Array):void {
trace ("ending coordinates: " + vals);
}

private function tweenMe(/*e:Event*/):void {
var myTween:Tween = new Tween(_target, [_target_start_x, _target_start_y], [_target_dest_x, _target_dest_y], _duration, 31);
myTween.easingFunction = Elastic.easeOut;
myTween.setTweenHandlers(updateTween, endTween);

}
}
}
Fingers

View Replies !    View Related
AS3 - Tween On Mouse Event
Someone in another forum posted some code demonstrating tweens in AS3, which I had been having a lot of trouble figuring out. All it does is tween the x and y positions of a circle and textfield. The way it worked originally was a little different--for instance, I've tinkered a bit by putting the tween functions in a separate Tweener class and made it so it accepts whatever display object is passed to it.

The problem is that I would like the circle and textfield to tween only when clicked on. I don't know how to do this. How do I write _circle.addEventListener(MouseEvent.MOUSE_DOWN,....) and _text.addEventListener(MouseEvent.MOUSE_DOWN, tweenerIt) so that they are the triggers? Just so you will have an idea of what I'm talking about I've set it up so that the tweens occur as soon as the circle and textfield are created.

It must be very simple, but I just don't get it. Could someone please explain?

Code:

package
{
import mx.effects.*;
import flash.display.*;
import flash.events.*;
import mx.effects.easing.*;
import flash.text.TextField;
import com.Tweener;

public class TweenTest extends Sprite {

  private var _circle:Sprite;
  private var _text:TextField;

  function TweenTest() {
   stage.frameRate = 31;
   init();
  }

  private function init():void {
   _circle = makeCircle();
   _text = makeTextField();
   var myTween:Tweener = new Tweener(_text, 40, 300, 150, 100, 4000);
   var myTween2:Tweener = new Tweener(_circle, 0, 60, 300, 200, 8000);
   
// not sure what to put here...   //_circle.addEventListener(MouseEvent.MOUSE_DOWN, tweenerIt);
   //_text.addEventListener(MouseEvent.MOUSE_DOWN, tweenerIt);
  }
 
  private function tweenerIt():void {
// not sure what to put here..
  }
 
  private function makeCircle():Sprite {
   var s:Sprite = new Sprite();
   s.graphics.beginFill(0x660000);
   s.graphics.drawCircle(20, 20, 20);
   addChild(s);
   return s;
  }
 
  private function makeTextField():TextField {
   var t:TextField = new TextField();
   t = new TextField();
   t.text = "Hello";
   t.x = 20;
   t.y = 60;
   addChild(t);
   return t;
  }
}
}


Code:

package com
{
   import mx.effects.*;
   import flash.display.*;
   import flash.events.*;
   import mx.effects.easing.*;

   public class Tweener extends Sprite {
      
      private var _target:DisplayObject;
      private var _target_dest_x:Number;
      private var _target_dest_y:Number;
      private var _target_start_x:Number;
      private var _target_start_y:Number;
      private var _duration:Number;
      
      public function Tweener(target:DisplayObject, target_start_x:Number, target_start_y:Number, target_dest_x:Number, target_dest_y:Number, duration:Number) {
         _target = target;
         _target_dest_x = target_dest_x;
         _target_dest_y = target_dest_y;
         _target_start_x = target_start_x;
         _target_start_y = target_start_y;
         _duration = duration;
         tweenMe();
      }
      private function updateTween(vals:Array):void {
            _target.x = vals[0];
           _target.y = vals[1];
        }

        private function endTween(vals:Array):void {
            trace ("ending coordinates: " + vals);
        }
        
        private function tweenMe(/*e:Event*/):void {
            var myTween:Tween = new Tween(_target, [_target_start_x, _target_start_y], [_target_dest_x, _target_dest_y], _duration, 31);
            myTween.easingFunction = Elastic.easeOut;
            myTween.setTweenHandlers(updateTween, endTween);
      
      }
   }
}


Fingers

View Replies !    View Related
Mx.transitions.Tween Event Listener?
Hi,

I am using the mx.transitions.Tween class and need to know when tweening completes. Where can I find documentation for the event listeners that this class handles?

Thanks

View Replies !    View Related
Tween Class And Event Handlers
I am finally trying to learn how to get off of the timeline now that I am out of school for awhile. I've read up on the crude basics of the tween class and I am trying to redo my site in all AS. Anyway here's my very lauhable first few lines of code.


ActionScript Code:
box1_mc._alpha=0
box2_mc._alpha=0
box2_mc._y=15
box2_mc._x=52
bar1_mc._alpha=0
 
Box1 = new mx.transitions.Tween(box1_mc, "_x", mx.transitions.easing.Regular.easeInOut, 0, 50, .5, true)
Box1 = new mx.transitions.Tween(box1_mc, "_alpha", mx.transitions.easing.Regular.easeInOut, 0, 100, .5, true)
Box1.onMotionFinished = function() {
    Box2 = new mx.transitions.Tween(box2_mc, "_xscale", mx.transitions.easing.Regular.easeInOut, 0, 100, 1, true)
    Box2 = new mx.transitions.Tween(box2_mc, "_alpha", mx.transitions.easing.Regular.easeInOut, 0, 100, .25, true)
}
 
Box2.onMotionFinished = function() {
    Bar1 = new mx.transitions.Tween(bar1_mc, "_alpha", mx.transitions.easing.Regular.easeInOut, 0, 100, .25, true)
}


So far, I have 3 movie clips. And all I am trying to do is have one fade in/animate, then the next, then the next. The first two do, but the third one doesn't show up. Am I using the handler wrong or something? Any glaring errors?

View Replies !    View Related
Tween Class: Can One Tween More Than One Property Using The Same Tween
I want to scale both the _xscale and the _yscale properties of a clip, using a single execution of the Tween Class. See example below:


Code:
import mx.transitions.Tween;
var myTween:Tween = new Tween(myMovieClip_mc, "_xscale", Strong.easeOut, myMovieClip_mc._xscale, 300, 5, false);

Since one property at a time must be passed as a string to the constructor, I tried the following code, but it does not work quite as flawless as I expected:


Code:
myTween.onMotionChanged = function() {
//trace( this.position );
myMovieClip_mc._yscale += (300 - myMovieClip_mc._yscale)/12;
};
Any suggestions?

View Replies !    View Related
Adding Multiple Event Listeners To The ENTER_FRAME Event, Calling Different Functions
Is this going to slow my program down, or do all the references to these functions get added to a master ENTER_FRAME. I am trying to efficiently do this

View Replies !    View Related
MovieClipLoader OnLoadInit Event AND Loader Component Complete Event
What´s the difference beetwen the Loader complete event and MovieClipLoader onLoadInit. The manual says onLoadInit is called after the code on the first frame of the loaded clip gets executed, so, it´s better to use onLoadInit if you want to manipulate the loaded asset via code.

So, if anyone could clarify the following points to me, I would be grateful!

- Does the complete event of the Loader component have the same behaviour?
- How does MovieClipLoader knows that the code on the first frame of the loaded assets got executed?

Thanks,

Marcelo.

View Replies !    View Related
Custom Event Handlers - Triggering Event Listeners On Other Objects
I'm trying to update an object whenever something happens in another object. At the moment, I have the second object explicitly calling an update function on the first object, but this seems a little sloppy and it strikes me that this is the sort of scenario where I should be using custom event handlers.

I'm not quite sure how they work though. My first assumption is that if I built two objects, one like this which fires off an event:


Code:
public class eventFirer extends Sprite
{

public function eventFirer():void
{
dispatchEvent(new Event("customEvent"));
}
}
...and one like this which updates whenever the custom event happens:


Code:
public class eventListener extends Sprite
{

public function eventListener():void
{
trace ("main");
addEventListener("customEvent", eventFired);
}

private function eventFired(e:Event):void
{
trace ("ok");
}
}
...then eventListener.eventFired would automatically be set off whenever a new eventFirer is created. This seems not to be the case though.

Can anybody enlighten me as to how custom events bubble between otherwise unrelated objects?

View Replies !    View Related
Setting Up An Event Listener To Listen For An Event Inside Of Another Movieclip.
I'm trying to set up an event listener on the stage that will listen for a mouseEvent.CLICK on a certain button inside a movieclip on the stage, but i cant seem to figure out how to target that specific button. Any help would be greatly appreciated.

View Replies !    View Related
Passing Parameters From Event Listener To Event Handler
Hi Chaps,

First of all, apologies as I know this question has been asked before, but I have spent the last twenty minutes reading this thread and still can't seem to figure out how to apply it to my situation - probably because I'm thick!

I have a number of objects which need to be rotated according to different parameters. I have a function which takes those parameters, then uses the tween class to handle the rotation. I'm then using the tweenEvent class to check for when the motion is complete. Then, I need access to those same parameters in the complete handler to do further operations. The problem I have is that the tween event class doesn't allow me to pass the parameters along to the cpmpleteHandler, so I'm stuck getting my parameters from the first function to the second function:


Code:
function rotate(parameters){

rotationTween = new Tween(object,parameter1,parameter2,........);

rotationTween.addEventListener(TweenEvent.MOTION_FINISH,completeHandler);

}

function completeHandler(e:TweenEvent){

//need access to the paremeters passed into the first function here!!

}
From reading the thread mentioned above, I have a feeling I may need a custom class to do this - please don't laugh but I've never written (or had the need to) write my own class before, so I really wouldn't know what to do. Any help greatly appreciated, but an actual code snippet which demonstrates this would be even better!

Ric.

View Replies !    View Related
Event Listener Mouse Event Click - Obstructions
This is an oversimplification of my problem.

I have an event listener on a sprite.
I then have portions of this sprite covered with other sprites or moveclips.

If I click a movieclip, it blocks my eventlistener on the sprite underneath it.

Is it possible to listen to the even click 'through' a movieclip. I dont want interaction with them, but I dont want them as bitmap data onto the base sprite either...

View Replies !    View Related
I Don't Understand The Keywords: This, Event.target, Event.currentTarget
I am almost a complete beginner to Actionscript 3.0.
I've been looking at tutorials and I now understand most of the basic principles and methods of this programing language (creating basic functions ect..).

However I do not understand the following keywords.

1. this
2. event.target
3. event.currentTarget

What do these words refer to?
How are they different from each-other?
When must i use them?

View Replies !    View Related
Event Propagation Vs. Event Blocking -- Confused, Even After Moock
I thought I understood the AS3 event scheme: capture, target, bubbling. That events (e.g. MouseEvents) travel from stage to the object clicked on and then back again, and all objects in the display chain receive and can check that event. But it's also true, it seems, that Interactive Objects in front of others will block and "absorb" events, and those beneath will never hear of the event (unless mouseEnabled for the blocking object is set to false). I don't understand this (seeming) contradiction.

On the Kirupa forums:

Along with event propagation in ActionScript 3 comes different phases of events with display objects. With propagation, you have events being propagated from display objects to other display objects, such as mouse click events being propagated from children to their parents. This lets clicks within children objects to be recognized by parents (since children make up the contents of their parents, its only natural for the parent to also have those same events). The phases of such an event represent the progression of the event as it makes its way through the parent and child objects.

Events actually start with parent objects (phase 1: capturing), starting with the top most parent (stage) and making its way down to the child where the event originated (phase 2: at target). Then after reaching the child it makes its way back up through all the parents again (phase 3: bubbling).

But also:

Though ActionScript 3 now supports event propagation (capturing, bubbling, etc). Events like mouse events still only occur for one specific target for each individual event. In other words, when you click the mouse button over some objects in a Flash movie, only one of those objects is going to recieve the event even though the mouse is physically over other objects as well.…One important thing to keep in mind is that, in ActionScript 3, mouseEnabled is true by default. This means, without any event handlers or listeners used in a movie, every InteractiveObject instance will capture mouse events and prevent them from reaching any other objects beneath them.

Any clarification much appreciated…

View Replies !    View Related
Using Stop(); On A Shape Tween Of A Swapped Movie Clip Symbol Within A Motion Tween
Thanks a lot for your time. I'm new to actionscript, and language syntax and I never really got along to begin with so I appreciate any help in the matter.

Basically the title says it all - I made a motion tween in the main scene, made a movie clip symbol (to shape tween a gradient) and added a stop(); inside the gradient-tweened-symbol. I then swapped the movie clip symbol with the motion tween in the main scene, and got exactly the effect I wanted (the item moved, then tweened itself) but the stop(); seems to have no effect.

I know this looks like one of those "that idiot didn't google before posting" questions, but I've been looking for about a half hour with different permutations of stop, doesn't work, actionscript, and flash, and I haven't found anything that seems to target this problem specifically.

If you've got any idea what's going wrong, please feel free to respond or show me how to better seek help on my own. Thanks again.

View Replies !    View Related
Wierd Ish Going On>>
Why is it that when i have a dynamic text box that is supposed to display a variables contents it doesnt work when inside of a MC?

Need help fast!

View Replies !    View Related
Very Very Wierd
i have an MC on the main timeline. then i have it moving into the middle of the screen with motion tween. it works fine, except when it is a different color...there are buttons in the begining that change it color like this

Code:
colorTarget = "guy";
input = "000000";
newcolor = new Color(colorTarget);
newcolor.setRGB(parseInt(input, 16));
now the tween doesn't work...i don't understand.Can anyone help me?¿?¿?¿

View Replies !    View Related
Wierd One
Hi
I am using the following command so the return key and mouse can be used to submit:

on (release, keyPress "<Enter>") {
}

I am getting comment from clients like "press return key and computer is idol until the mouse is ‘jiggled’"

Anyone experience this problem or are they just running slow systems as I have no such problems

Any comments would be appreciated
Ol

View Replies !    View Related
Something Wierd I Am Not Getting This....
I am setting a flash animation to play 3 times and then if the cookie's counter i set goes past a certain number and less then a certain number the play head will go and stop to a frame.

Everything works until i drag a instance of a movieclip to the frame i want static .....IT does not show up. i have put text and boxes on the frame and it shows. as soon as i put something in from the library it does not. this is driving me nuts!

Can anyone help i have attached the fla file.

View Replies !    View Related
This Is Wierd
Check this out. I created a text document "testing" then i made it a symbol, then i created a simple motion tween where it fades in form frame 1. But everytime I play it it doesnt work check it out and play the movie, why does it do that

View Replies !    View Related
Am I Wierd?
does anyone else put subliminal messages in flash movies or is that just me?

View Replies !    View Related
Wierd If & Else
Ok, this is really wierd, or I'm just stupid. Either way, I need help...

I have a movieclip (ball) with a button inside. by clicking on the button, I want to be able to swich the balls y-position between two global values (_global.ballNorth & _global.ballSouth)

This is how I tried to solve it, but it didn't work out...

Actions for "root-frame":

_global.ballNorth = 10;
_global.ballSouth = 100;



Actions for button inside ball:

on (release) {
if (_root.ball._y=ballNorth) {
_root.ball._y = ballSouth;
} else {
_root.ball._y = ballNorth;
}
}



When I test the movie the balls y-pos is 10. Then I click on the button inside the ball, and the ball moves to y=100. So far so good.
But it won't move back to y=10 when I click on the button again!

I use Flash MX 2004 on Win XP SP1, so please tell me, am I stupid or is it a bug?
Help!

I'm attaching the file in case anyone don't understand what I mean...

Greetings
Kalliban

View Replies !    View Related
Wierd MC's
Hey i got this little animation going on so its easy i got stuck with this my main timeline plays a MC a simple fade in so i give my main timeline some frames so the MC can play., now some frames ahead i want the same mc to fade out but i just can't
i gave my mc a instance, and try the my_clip.gotoandplay (#frames) code but i can't

View Replies !    View Related
Here's A Wierd One......
Hi guys,

I had a wierd one and I'm not sure if anyone else has come across this - or if I'm just being a muppet.

I wanted to send some variables to a php file. Easy enough

var lv:LoadVars = new LoadVars();

lv.dataOne = "Data one";
lv.dataTwo = "Data two";

lv.send ("myfile.php");

It didn't work.

I tried a few different variations and then thought, lets do a send an load for testing.

var lv:LoadVars = new LoadVars();
var test:LoadVars = new LoadVars();

lv.dataOne = "Data one";
lv.dataTwo = "Data two";

lv.sendAndLoad ("myfile.php",test);

test.onload = function () {

trace ("It's finally worked!!!!");

}

Ran it, got the trace and also it hit the php. So why on earth did sendAndLoad work, and not just send? I believed that leaving send with only the file to hit would POST the variables to it? Or for send to work do you HAVE to define a window to open?

I've only ever had this situation where I was sending variables only without waiting for a response so I've always used sendAndLoad up to now.

As it's working now it's not desperately pressing, but I have to confess I'm a bit stumped.

View Replies !    View Related
Something Really Wierd?
hey everyone - i have an interesting one for you.

i'm loading data from mysql, through php to flash. very simple data. each row in the table contains 4 fields. one of them has a name of an image to be loaded into flash.

i manage to load the data normally. i receive it in flash as a long string with different symbols separating them. i think split the string into an associative array. when i call the data, it reads it (and it traces properly) but it's as if the file isn't found! i'm trying to load pngs, but i also tried with jpgs and it still doesn't work!

here is the code when loading the image:

Code:
for (i=0;i<totalToLoad;i++) {
...load("images/" + mainMenu.groupVars.tG + "/" + theGroup[i][0] + ".png", tempGroupItems[i].hh)
}
the funny thing is, is when i use the following code it works:


Code:
for (i=0;i<totalToLoad;i++) {
...load("images/" + mainMenu.groupVars.tG + "/" + (i+1) + ".png", tempGroupItems[i].hh)
}
** the difference is that instead of using the name from the array, i'm just calling files named with numbers (ie 1.png, 2.png, etc.). i also tried hard coding the file name to the name of the file (ie "thefilename") instead of the array and it also works! its' got to be something with the array.

any idea what is going on!? the funny thing is, is that i've done this SO many times and it's worked!

thanks!

View Replies !    View Related
Wierd If & Else
Ok, this is really wierd, or I'm just stupid. Either way, I need help...

I have a movieclip (ball) with a button inside. by clicking on the button, I want to be able to swich the balls y-position between two global values (_global.ballNorth & _global.ballSouth)

This is how I tried to solve it, but it didn't work out...

Actions for "root-frame":

_global.ballNorth = 10;
_global.ballSouth = 100;



Actions for button inside ball:

on (release) {
if (_root.ball._y=ballNorth) {
_root.ball._y = ballSouth;
} else {
_root.ball._y = ballNorth;
}
}



When I test the movie the balls y-pos is 10. Then I click on the button inside the ball, and the ball moves to y=100. So far so good.
But it won't move back to y=10 when I click on the button again!

I use Flash MX 2004 on Win XP SP1, so please tell me, am I stupid or is it a bug?
Help!

I'm attaching the file in case anyone don't understand what I mean...

Greetings
Kalliban

View Replies !    View Related
Wierd MC's
Hey i got this little animation going on so its easy i got stuck with this my main timeline plays a MC a simple fade in so i give my main timeline some frames so the MC can play., now some frames ahead i want the same mc to fade out but i just can't
i gave my mc a instance, and try the my_clip.gotoandplay (#frames) code but i can't

View Replies !    View Related
Wierd...
I have created a square button which is the mask of a gradient bar. Now that works fine when i play it i see the gradient in the shape of the square button as it pases, but as it pases the other squares I added after that, theres no mask? What the heck is goin on. The other squares are the same tween and on the same layer. ? Herm

View Replies !    View Related
Wierd One...
I have a set of buttons that are buried deep into two movie clips.
>City (movie clip 1)
|
>CityBtns (Movie Clip 2)
|
> BtnRed (Button1)
> BtnBlue (Button2)
> BtnGreen (Button3)


Unfortunatly, due to the animation, there not really any way of putting those buttons into the root of the animation. The OnClipEvent(release) doesn't work either.

Is there any way to be able to utilize those buttons or do I need to go back and tell my art department to redo the animation?

Please help!!

SpecterCorp

View Replies !    View Related
Tween Class If Moved Mc Passed Point Start Another Tween
Hey Actionscript Gurus

Now I am using the Tween Class to move some boxes in my movie, now I can move the first mc and then another mc after the first tween has finished with onMotionFinished but I was hoping someone could help with how do I start the second tween when the first mc has passed a certain _x coordinate.

ie starting the second mc moving while the first tween is still moving.

I am trying to do a intro loader for my front page controlling around 7 boxes. So I need to repeat this a few times.

Regs,
Jacko

View Replies !    View Related
Tween Class If Moved Mc Passed Point Start Another Tween
Hey Kirupa Flash Gurus

Now I am using the Tween Class to move some boxes in my movie, now I can move the first mc and then another mc after the first tween has finished with onMotionFinished but I was hoping someone could help with how do I start the second tween when the first mc has passed a certain _x coordinate.

ie starting the second mc moving while the first tween is still moving.

Regs,
Jacko

View Replies !    View Related
Laco Tween Engine Versus Flash Native Tween
i am wondering if there is a way to put a delay (seconds) on the flashs' native tween class like you can on the laco tween engine... such as

Code:
#include "lmc_tween.as"
my_mc.tween("_x",100,1,"easeOutStrong",1.5,callbackFunction)
where "1.5" is would be the one and a half second delay before the tween starts. this is very useful to me because i dont have to use a callback function or an onMotionFinished function to start a new tween.

thanks in advance to anyone who can teach me

-frankf

View Replies !    View Related
Arrays = Wierd
Okay, Im not sure if Im missing something quirky about how you address arrays in flash or if its something blatant Ive missed, but this is wierd. I have an array:

month = new Array();
month[0, 0] = "January";
month[1, 0] = "February";
month[2, 0] = "March";
month[3, 0] = "April";
month[4, 0] = "May";
month[5, 0] = "June";
month[6, 0] = "July";
month[7, 0] = "August";
month[8, 0] = "September";
month[9, 0] = "October";
month[10, 0] = "November";
month[11, 0] = "December";

And then i get the date from this:

today = new Date();
currentmonth = today.getMonth();
currentday = today.getDate();

now i have a dynamic text box on stage called text1. If i say just

text1 = currentmonth;

then it sets the text box = 5 for June. But if i change it to

text1 = month[currentmonth,0];

then it puts in 'December' in the dynamic box. And I even tried just putting in 5 instead of currentmonth, with the same effect. Is their some trick to accessing data of multiedimensional arrays in flash? Or am I overlooking something stupid. Any help is appreciated...

View Replies !    View Related
PLEASE HELP: Wierd Problem
Has anyone experienced this problem, and if so what is the fix? I have a thumbnail button movieclip (named Thumbnail Menu) load into my portfolio website using the loadmovie command (loads into level 20). When one clicks on a thumbnail another SWF movieclip (named Slideshow) loads using the load movie command on top of the Thumbnail Menu SWF movieclip (also loads into level 20). What is weird is that anytime I drag my mouse in the area where the hot thumbnail buttons are located underneath Slideshow SWF movieclip this area remains hot eventhough the thumbnail buttons are beneath the movieclip Slideshow SWF. What is the right way to load movieclips so that they don't interfere with each other? Thank you in advance.

View Replies !    View Related
Wierd Problem
this is a wierd problem, i'm having a loadvariable swf that loads bunch of stuff from a cgi script. it works perfectly when i run it on my local drive, EVERYTHING is fine. but when upload it to my website, it doesnt work.

anyone has any clue about this wierd prob??

thanks alot
[Edited by dancinkid6 on 04-03-2002 at 03:14 AM]

View Replies !    View Related
Wierd Problem?
I dont know if anyone else has experienced this kind of thing,

i have a project that i have been working on for the last 2 months or so - some pretty intensive code but i am happy with it. So the coding side is perfect as far as i am concerned so i now use Photoshop to create imagery to give the movie a bit of "gloss"!!!

The funny thing now is that when i run my movie, my cpu starts to run at 35% where as before the adjustments it ran at 1 or 2 percent.

OK well it could be complex images that flash is having to redraw at the 36 fps frame rate - NO i checked this

The coding and the layer structure has remained the same as the prototype.

I know it is not the images that are causing the problem because i take them out of the new fla and still the thing runs at 35%.

(there are no cpu intensive animations occuring at all. There is complex coding but this only occurs as the user requests - the 35 % happens when no complexity is happening at all)

WIERD!!!!!!

anyone else have this trouble

Weirder still, if i take the top 4 layers from the movie, then the cpu returns to it's normal state, but these are the same top four layers as in the prototype and so should not add anymore cpu intensity......should it???


answers on a postcard......



gilesb

View Replies !    View Related
Just Plain WIERD (possible BUG?)
Hi,

This one is a little odd...

I have a multi-scene SWF.
On scen 01, I click a radio button and then a SUBMIT button. This does TWO major things. and 1 MINOR thing

MAJOR:
1) It grabs the value of the button (no problem, that part works)

2) It sends some info to a server (again, no problem it works).

MINOR:
it goes to scene 02. (no problem it works)


In the first frame of scene 2, the SWF makes a request for some XML from a server. (no problem it works)

PROBLEM:
UNFORTUNATELY and without REASON when I test the movie, It makes the scene 02 request first, THEN sends the info from scene 01 !!!!!!!!!!!!!!

Please help if you can I'm at a total loss, without any answers on the net that I can find. No book I've read/got even mentions this!!!

THANK YOU SO MUCH FOR ANY HELP

View Replies !    View Related
Wierd Loadvariables?
question about loadvariables, i am sending and loading some variables from php/mysql, kinda like registeration. so its like loadvariable("url/blah.php?name=dd&pwd=ddd",this), and php code reads it, if everything is fine, it returns var like sucess=1 means it suceeded,

so now, i use loadvariables to get this var sucess, but somehow it has a wierd type, i tried to convert it with String(), but it cant be recognized in if condition,
which means like if(String(sucess)=="2") would return false even tho "sucess" is shown as 2 in trace function. anyone has any clue?
[Edited by dancinkid6 on 08-10-2002 at 07:27 PM]

View Replies !    View Related
Wierd JPG Loads But Sometimes Don't
Im working on a gallery and on my way i've found this freaking issue!!! i got 3 jpg's named esc01.jpg esc02.jpg and esc03.jpg <-- these 3 jpg's loads perfectly but the ones named g101.jpg thru g109.jpg just dont load !!!! im using this code --> loadMovieNum("g109.jpg", _root.myPic);

can someone tell me whats happening ?

View Replies !    View Related
?wierd Problem?
on my website, in the drawings section, i have several pictures.however when i go on the site, the drawings dont seem to appear in the drawings section, until i refresh the page.
can anyone solve the prob??
sims
oh yeh www.geocities.com/sims_web

View Replies !    View Related
Quiet Wierd.. But Can Some One Help
The pannel siez of my flash 5 application has changed drastically...
I tried a lot of options.. But it is not returning to its normal size.. can some one say. what's the problem with it??

My resoulution is : 1024 x 768
For your understanding, i am attching a sample gif, which will give u some idea..

Thanks in advance

View Replies !    View Related
Wierd Tab Problem
I'm having a problem with my tabs and I don't really understand why, hopefully someone can help.

I set the tabEnabled and tabIndex's up the way I want them.

Then I decided to get rid of that yellow selected box that appears over my buttons when I tab to them by using

_focusrect=false;

Ok so now the selected box is gone, good thats what I wanted.

But since getting rid of the selected box now pressing enter when I've tabed over to a button doesn't push the button.
I know the button is selected because it's in the over state.

If I enabled the selected box again( _focusrect=true; ) it works fine.

Does anyone know how to fix this?

View Replies !    View Related
Wierd Thing
Hi all!

i've got a mask layer (with animated mask) and beside, i've got 2 layer (pix1 and pix2).
These 2 layer contain empty mc and i load external swf inside it. But, i don't know why, i don't see the mask animation.

It seem that the external swf are place above the layer mask ... but it can't be ???

Can someone please help me .... very urgent

Steve

View Replies !    View Related
Wierd Problem
ok! i got this wierd problem , none of my buttons work in the output file ( the swf )

but in the fla they work? i don't know why ?


can anybody help ? thanks in advance

View Replies !    View Related
Wierd One With SwapDepths() ?
Hi
I have a strange problem with swapDepths()
I have a load of movieClips that can be dragged around. The last one to be dragged id the highest. When I move forward on the _root timeline all is fine, as soon I move backward on the timeline they duplicate themselves?!?
Can anyone explain this
Cheers
Ol

View Replies !    View Related
Wierd Problem
i have encountered a wierd problem... and i cant imagine whats wrong.. thats why im turning to the professionals..

take a look at this
http://www.xylophex.com/eaw

nothing wrong with it so far... but try pressing the digital art link fast about 4 times.. its not just that.. its any link you press fast multiple times...

evrything just starts rambling.. evrywhere.. i have absolutly no clue what is doing this.. all the code is solid and there should be no way it could get past the stop places..

im really hoping on some help on this matter.. i cant have it like this.. i spent alot of hours on this site and i dont want it ruined couse a stupid bug

thnx in advance for any help you may be able to offer..

View Replies !    View Related
Wierd Thing...please Help
Hi i have recently started developing the site click for site
if you enter the site and click on the dates or the chart menu tab its loads the text from an external file. But it does a wierd thing of loading some text really quickly that you cant read and then displaying the correct text.

I cant work out where the text is coming from or why its doing it. Can anyone help me.

Thanks
Jon O

View Replies !    View Related
Wierd Thing...please Help
Hi i have recently started developing the site http://www.jongurd.com if you enter the site and click on the dates or the chart menu tab its loads the text from an external file. But it does a wierd thing of loading some text really quickly that you cant read and then displaying the correct text.

I cant work out where the text is coming from or why its doing it. Can anyone help me.

Thanks
Jon O

View Replies !    View Related
Wierd Masking
anyone have anyidea how you would go about doing a "sun" mask like the one one www.aperfectcircle.com i tried a few different things, but i cant seem to make it loop correctly and such.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved