Any Solution To Get A Smoother Slow Motion Tween On A Bitmap?
I have a jpeg of a map which will have a ~100px border on another layer covering up the edges, creating a 'map viewport' effect in the flash movie. There will be other content so I can't use the full movie size for the map. I need to move the map around very slowly, as I'm going to have the progress of a journey shown on another layer. My problem is that I can't get the map to move as smoothly as I'd like. It seems to jerk horribly, especially when moving diagonally it has a kind of step effect - like it's moving sideways one pixel then up one pixel instead of going directly to the diagonal. My framerate needs to be 21, but increasing it doesn't seem to help. Here's what I've tried so far: - enabling/disabling runtime bitmap caching- increasing the framerate to various values even as high as 50- tried a keyframe tween on one layer instead of the motion guide- tried using a motion guide instead of multiple keyframes None of it really made any difference unfortunately. I had read somewhere that you can use actionscript to control a tween which can give better results, but I can't find any good information on how to do that. Is there anything else I could try to get this map sliding around more smoothly? Thanks very much for any suggestions. :update - checking the 'allow smoothing' option in the properties of my original image made this work great. The only thing is that the movie uses a few more % CPU with smoothing on. I'm not sure if that is a problem or not?
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 09-19-2007, 06:06 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How Do I Slow Down A Motion Tween?
I have a stripe in an mc that moves vertically down the clip(looks like a racing stripe). I want it to slow down at the end before it stops. I've used the EASE property and eased it OUT 100 but I've seen this done on many pages and I can't get to look not even closely effective.
Does anyone know the actionscript to attach to this motion tween?, or how is it done?
thanks
Bitmap Motion Tween Shakes
Is there a decent way to smooth out a long motion tween with a bunch of photos? The photo bitmaps seem to jump from frame to frame rather than move smoothly. I've tried increasing frame rate up to 64, adding keyframes as well as orient/snap options, but nothing seems to work. Thanks for the advice!
[CS3] Motion Tween Bitmap Pixelation
Hello!
When ever I use a motion tween on a bitmap it gets extremely pixelated during the movement and is normal when it stops. Besides adding a slight blur, is there any way I can do this without the pixelation???
THANKS!!!
oh and im using asctionscript 2.0
Bitmap Scale Motion Tween
I am new to Flash (CS3) and am creating a fairly simple movie. This issue I have is creating a motion tween on a bitmap image that is scaled from 100% to 300% at a fps at 12 over 30 frames. The motion tween is not smooth but jerky and it needs to be a smooth transition. The size of the movie is 960 X 720 and needs to stay at that size for delivery to different formats.
Can this motion tween be smoother through ActionScrip or other methods? If yes, does anyone have and code or methods you can share with me to take care of this simple problem?
Thank you in advance - Sam
Help With Bitmap Motion/shape Tween
I have a book i'm attempting to animate. The cover opens and the problem is I need to distort the bitmap in order to make the animation completely realistic. Obviously, I could do a (size costly) frame by frame version, but I'm not too thrilled about that. I can obviously do a motion tween with scaling and the book cover closes fine. Problem is that with perspective, I need the height of the cover's edge to get larger as it approaches the 90 degree angle point. Get what I'm saying? How can I apply a tween that will allow me to scale AND distort the bitmap while retaining a good, clean tween on the bitmap (without unwanted affects)?
Slow Zoom & Motion Tween...
Hi
Does anyone know how i can make the zoom and motion tween when the green button is pressed smoother?
swf
fla
thanks
p.s. ive not concentrated on looks
Will Lots Of Motion Tween Slow Down On The Animation?
if i will to use quite a lot of motion tween in just 1 swf and i preload the entire swf.. will it run smoothly over the net?? or will it slow down the entire animation depending on the connection still?
side track.. i need to know if i can limit the number of lines in an input textfield.. is it possible? like just 4 line downs.. not the number of characters..
What Happend To My Motion Tween When I Changed Bitmap To Vector?
Hi, I am making an animation and it is starting to become complex and is staggering alot.
All of the elements are bitmaps and so I am trying to change then to vector graphics using trace bitmap. Although, when I do this the motin tweens etc. re taken away? They become dotted lines again.
How do i change the bitmaps to vector without having to redo all my animation?
Cheers guys.
[F8] Smoother Bitmap Tracing?
I always get pixelated lines, i want really smooth curves but i cannot get them.
I have tried every bitmap tracing option and it is still not very smooth.
Too Slow @ 60fps, Faster & Smoother At 90 HOW?
When I publish my swf @ 60 fps, the fps is jerky & slow (about 1/2 the speed as when I play it through the standalone player).
I had thought this was due to leaking, or too many transitions on-screen, and that IE simply couldn't render quickly enough.
When I publish at 120fps, however, the fps is almost the same, just a fraction quicker! ...
UNTIL I start moving the mouse cursor around, when the swf finally does start running something like twice the speed of what one would expect of the 60fps one!
What on earth is going on? Is this a documented bug? Have I somehow set up an unusual publishing setting?
My spec is 1g ram, p4, 60 Herz resolution & I am using Flash 8.
Please- put me out of my mysery what am I to do to get this thing to run @ a TRUE 60fps??
Large Images / Alfa Tween / Slow Slow Slow... Help Please
I'm working on a site at the moment and one of the main eyecatchers is there is a slideshow-type of animation running in the background the whole time.
There's a dozen (large in pixels, but not in kb) .jpgs that have a minute long fade between images, a few seconds pause and then onto the next fade.
I've tried just making a normal alfa tween, I've tried making the slideshow as a seperate .swf, I've tried dynamic images with .xml, I've even tried making the .fla background transparent and making the slideshow on the html page using javascript.
But all make the site run very slowly. Text scrolling is slow, short rollover animations are slow, etc. etc.
My question is: Is there a way of making a super light alfa tween with large images?
99% of the threads regarding slideshows here at Flashkit have many views but no replies. I need help, and soon. Many many thanx to anyone that can point me in the right (or any) direction.
Smoother Tween?
when tweening images, png, etc .. its a bit jerky... any other method to tween so it flows smoothly?... AS?
Smoother AS Tween And Alpha
Hi folks,
I'm pretty new on AS so I got some probs.
How can I make this Tween smoother?
PHP Code:
_root.attachMovie("mc", "cloud", 100, {_alpha:0, _x:200, _y:400});
cloud.onEnterFrame = function(){
this._y-= 6;
this._alpha+= 2;
if (this._y <= 110) {
delete this.onEnterFrame;
}
};
It would be great if somebody could help me with that.
thx a lot.
How Do You Create A Smoother Tween Movement
I have created a simple opening sequence on a Flash splash page. The background simply motion tweens from point A to point B (right to left) and stops on the stage. So far so good. The trouble is the tween movement over a ten second period appears jerky or choppy, even though I have it set at 24fps. Is there anyway to fix this problem?
Can't See A Bitmap Under A Mask When Moving The Bitmap With Elastic Motion
The um... title... kinda said it all. I have a mask. I have a bitmap under the mask. I want to move the bitmap around with elastic motion so I put it in an MC and cut and pasted some functions.
I can see it moving fine when i delete the mask. And I can see it masked fine when I delete the functions. But when both are there I just get emtpy space.
Is there something I don't know but shoud about elastic motion and masks or is there something ****y going down and I probably need to post the FLA?
Thanks all,
-damnit.
Frame Rate At Any Cost (RAM) - Dump MovieClip(s) To Bitmap(s) A Solution?
I'm thinking about pre-rendering an animated sequence (all in actionscript) to bitmaps and throw the bitmaps out in separate frames, essentially pre-calculating the entire sequence.
Is this actually possible in actionscript? Can I dump an entire frame of MovieClip(s) into a bitmap and place that on an arbitrary frame on the timeline? And is Flash (8) fast enough to swap bitmaps around at, say, 50fps, 768x576 pixels?
Oh, and if so, how?
Thanks in advance,
Peran.
Is It Possible? Motion Guide + Motion Tween + Actionscript Api Drawing
Hi
Im looking for some help I've done a lot of research and spent hours trying to find a way to do this so any input is appreciated.
I have drawn a shape in actionscript
_root.createEmptyMovieClip("myMoon",6);
with (myMoon){
beginFill(0x999999, 100);
drawCircle(50,120,30);
endFill();
}
new Tween(myMoon, "_x", Elastic.easeOut, 0, 300, 3, true);
Basically I have a tween on it that works fine but what I need to do is motion tween along a motion guide.
Of course I know how to achieve this through the normal way of drawing a circle through the tools box but I have to figure a way out to do this to the shape drawn in action script via the drawing api. How can I do this?
I presume I have to someway make this shape appear in my library as a symbol possibly? Hope someone has a soloution thanks a lot
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.
Jerky Tween- How To Get A Smooth Slow Tween- Help
I'm working with a very slow tween of an image (800 by 350px and 50 kb) over a time of 60 seconds and it's jerky.
Code:
Tweener.addTween(pic, {x:pic.x-100, time:60, transition:"linear"});
I tried upping the frame rate to 30, then 60, but it didn't seem to make a difference.
I also tried using TweenLite, Tweener, and the built-in Tween class. None really performed better than the other. Another thing I tried was importing the image as a swf, masking it, and then tweening it. None of those really made a difference, still jerky.
Any ideas?
Script Motion Vs Tween Motion Question
I have asked for help before on scripting that slows down text or smooths it out, etc.
My question is this.. (and i havent experimented yet so..)
If you were to use script to cause alpha changes and motion changes, as opposed to tweening everything, would it make the flash file move much smoother, especially if you had alot going on at one time???
It also should make the file quite abit smaller too correct?
Thanks
Tween Class Scaling Breaks Motion Tween?
I have a movie clip which uses a motion guide to animate the entry (and eventually the exit) of a bunch of other movie clips. These smaller clips contain buttons, and animate on rollOver and rollOut using the following code:
Code:
on(rollOver) {
this.swapDepths(2);
ParentxScale = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Back.easeOut, this._xscale, 100/.6, .5, true);
ParentyScale = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Back.easeOut, this._yscale, 100/.6, .5, true);
play();
}
on(rollOut) {
ParentxScale = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Bounce.easeOut, this._xscale, 100, .5, true);
ParentyScale = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Bounce.easeOut, this._yscale, 100, .5, true);
stop();
}
However, once an object has been moused over, it doesn't exit with the others. Any ideas why it seems to "fall off the track" of the motion guide?
Shape Tween Like A Motion Tween, Using Guide Layer
How if possible, can i make a shape tween behave and follow a set path (like using a guide layer)while morhping/tweening?
So far it seems as each time i try it always goes in a straight line from a to b and in this case that's not what i'm after.
Dynamic Tween Solution
I found the solution to my previous post:
This is what it looks like...
First frame=
a = 100;
Second frame=
if (a>=0) {
setProperty("/s1", _alpha, a);
a = a-2;
} else {
gotoAndStop(4);
}
third frame=
gotoAndPlay(2);
Thanks, Hope my question and solution helps someone else.
Do I Use A Shape Tween? Mask? Motion Tween?
How do I make this arrow grow into shape? I want it to slowly appear...but not fade in...
it's hard to explain...but here is the arrow, hopefully you will understand what I want...
I tried using a mask, but instead of revealing the arrow little by little, it dissapeared little by little...(basically the exact opposite)...
I also tried putting a white box over it & motion tweening the box to reveal the arrow...but that didn't look good...
any ideas?...suggestions?
thanks in advance...
Change From Motion Tween To Shape Tween
I am trying to have a motion tween of some text move on the page and then change into a shape (i.e, a shape tween). I can't seem to make this work. I put a keyframe at each end of the motion tween and that works fine. Then I add another keyframe, delete the text and replace it with my shape. Then I select just those frames and add the shape tween but nothing happens. How do I accomplish this successfully?
Thanks.
Shape Tween / Motion Tween Problem
I must be missing something very obvious.
I have created a movie that draws a box, fills in the box with color and then is supposed to have the menu swoop in from the right. Mind you this is for learnnig, not cosmetic appeal Why is it when I use tweens I get the dotted line versus a solid line in the time line?
If you take a peek at the FLA it is obvious what I am referring to. I must be using the tween function or symbols in an improper manner.
I have attached the FLA.
Any help appreciated.
Thanks,
Kerry
www.skurz.com
Shape Tween / Motion Tween Problem
I must be missing something very obvious.
I have created a movie that draws a box, fills in the box with color and then is supposed to have the menu swoop in from the right. Mind you this is for learnnig, not cosmetic appeal Why is it when I use tweens I get the dotted line versus a solid line in the time line?
If you take a peek at the FLA it is obvious what I am referring to. I must be using the tween function or symbols in an improper manner.
I have attached the FLA.
Any help appreciated.
Thanks,
Kerry
www.skurz.com
Seperating Motion Tween From Alpha Tween
I am trying to fade in the alpha on a graphic symbol rather quickly at the same time the symbol scrolls very slowly up the stage, but the two seem linked, so that a very slow scroll means a very slow opacity gain. How can I fade the photo in quickly while the photo motion tweens slowly?
How To Motion Tween Thats Not Linear Using Script Or MC Tween?
If you wanted to do an animation of a ball that goes from A to B but not linear, how would you do it by code or Mc tween. How would you make the ball go in a curve line for example instead of a straight line from A to B?
I understand you can use a guide to get all types of non linear motion tweens on a timeline, but how would you do it using MC tween or coding.
Slow Performance With Bitmap Erasing
Hello, for the past couple of weeks I've been learning AS3, and for a school project I'm doing a remake of the popular DOS game Liero. Everything is working fine, I got a layer of dirt that I am shooting away, but the problem is that after a few hundred bullets, the game starts to lag heavily whenever a shot is fired.
I'm using a simple bitmap and a brush to erase the parts where the bullets hit.
// Drawing stage
bmap = new BitmapData(1100,800, true, 0);
dispBmp = new Bitmap(bmap);
addChild(dispBmp);
brush = new Shape();
erase = new Shape();
brush.graphics.beginFill(0xBA7001);
brush.graphics.drawRect(0,0,1100,800 - 183);
brush.graphics.endFill();
bmap.draw(brush, null, null, "normal");
// Erasing place where bullet hits, I repeat this for all pixels surrounding the area in a certain radius
erase.graphics.drawRect(Math.round(bullets[i].x), Math.round(bullets[i].y), 1, 1);
Any thoughts? Am I going about this all wrong? I've been searching the internet for days trying to find some legible information on this, but I'm about to give up. Any help would be greatly appreciated!
Bitmap Animation Real Slow...
i remember Macromedia saying something about scalling/animating image files aren't recommended, and I understand why they say that cuz it does get pretty slow. Not only the animation is slow, but it slows down the whole system. So, my question is, what's that flash movie eatting up exactly? system memory? videocard memory? CPU?
Al
Two Bitmap Motion
Hello,
Does anybody know how to create a motion tween between two different bitmaps??
Slow Drop Shadow On XML Images, Bitmap Caching?
Alright, here's something I've been wanting to add to my site for a long time, but it slowed it down too much. Check out www.jbnight.com The images are loaded via XML. I really want a nice drop shadow behind each image (they are all different sizes) to seperate them from the background better. However, adding it in AS as the image loads slows the site down horribly. I've been working on an intro animation and am learning about the new bitmap caching feature. Would adding some AS to bitmap cache the DS help, or because they are all different DS, would it not help at all? If this would help, how would I implement the AS?
Here is the AS for the galleries. I believe I put the DS in the FadeIn function before, and it was very slow:
stop();
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
id = setInterval(preloadPic, 100);
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("behindthescenes.xml");
var p = 0;
var current;
var k = 0;
// ////////////////////////////////
function preloadPic() {
clearInterval(id);
var con = picture.duplicateMovieClip("con"+k, 9984+k);
con.loadMovie(image[p]);
preloader._visible = 1;
con._alpha = 0;
var temp = _root.createEmptyMovieClip("temp"+k, 99+k);
k++;
temp.onEnterFrame = function() {
var total = con.getBytesTotal();
var loaded = con.getBytesLoaded();
percent = Math.round(loaded/total*100);
preloader.preload_bar._xscale = percent;
if (con._width) {
con._x = Stage.width/2-(con._width/2)
preloader._visible = 0;
con.onEnterFrame = fadeIn;
delete this.onEnterFrame;
}
};
}
MovieClip.prototype.fadeIn = function() {
if (this._alpha<100) {
current._alpha -= 4;
this._alpha += 4;
} else {
current._visible = 0;
current = this;
delete this.onEnterFrame;
}
desc_txt.text = description[p];
picture_num();
};
function nextImage() {
p<total-1 ? (p++, preloadPic()) : null;
desc_txt.text = description[p];
picture_num();
}
function prevImage() {
p>0 ? (p--, preloadPic()) : null;
desc_txt.text = description[p];
picture_num();
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
listen = new Object();
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
Actions.gotoAndPlay = function(gotoAndPlay) {
if (_root.current != undefined) {
_root.current.onEnterFrame = function() {
this._alpha -= 7;
if (this._alpha<0) {
this._alpha = 0;
_root.gotoAndPlay(gotoAndPlay);
delete this.onEnterFrame;
}
};
} else {
_root.gotoAndPlay(gotoAndPlay);
}
};
My Motion Became Slow Down...
Hello, I have a problem with my motion. I made a movieClip and an other with a lot of action script inside-- I tested it in my preview screen and it works...but now that I have uploaded I observed that the motion Is slow down when the action became together---
What's hapent????
Is something easy that I don't know yet???
thank you very much---
Slow Motion
how do i do the matrix bullettime effect? i nedd the slowmotion and the ripple trails. thanks!!!!!!!!!!!
Slow Motion
Does anyone know if you can script a scene to run in slow motion, or would I have to just animate it to replicate slow motion? I'd be grateful if someone gave me the script for it if it is possible to do. (I'm using MX 2004 Professional with ActionScript 2.0) cheers.
Slow Motion - WHY?
hi.
i asked about my problem on seweral forums with no effect.
i've made project of my portfolio.
WWW
SWF
Why, the same swf lunched without html works with good speed?
I now that it is not problem of background. FrameRate is 30 and swf lunched from disc works with that speed.
WHAT I HAVE DONE WRONG?? or is it a problem of f***n browser?
-[+_+]-
mieszko
Motion Tween (fade) Text Converted To Symbol No "motion"
I am using flash mx and my file includes text that is supposed to fade in and out.
I do exactly as I do with images - alpha 0 fades into 100 % etc, and it looks fine on the stage, but when I publish the text simply pops on and off with no recognition of the alpha channel fading in and out.
I create the text as static text - old english font - and then I convert it to a symbol. I tween the symbol from 0 to 100 alpha and back again. Presumably making it a symbol essentially makes it an image, right? no?
I am relatively new to flash so I may be missing something obvious?
(yes I have checked out places like flashkit.com, but not exactly what I am looking for, want more control.)
Motion Tween & Shape Tween In Same MC? How?
I have created a shape tween on my first layer. On my second layer I would like to create a motion tween. But the motion tween says it will not occur with layers with shapes or more than one group. Can anybody enlighten me a little bit on this.
Thanks for any help that is given.
Derek
MOTION TWEEN Vs. SHAPE TWEEN
What slows down a .swf file more?
I have a site I'm re-doing from scratch, and I see quite a few places I got lazy and used a lot of Movie Clips. I could use shapes and have the same result. The main .swf did suffer from a little slow down...
I've read most of the literature there is on the net [on this subject], and I was wondering what first hand experience some of you had?
I know you're going to say, "It depends...", but I mean...
as a rule... which plays faster/more taxing on the browser?
G
Motion Tween, Tween Back
hey guys, its been a while.
i have a pretty strange problem, strange in the way that i dont understand why its happening, any help would be appreciated.
im creating a bejwelled game.
what im doing is:
when you click on two adjacent blocks, i call a function that uses a motion to swicth them. This works great. The i call a function to test whether the move has resulted in a combintion of >2 blocks. If it returns false, i recall the previouse tweening function to reverse the blocks to their original positions, this is where my script breaks down, it executes the function but nothing moves !
Heres the relavent code:
ActionScript Code:
import mx.transitions.*;
import mx.transitions.easing.*;
var bt1:Tween;
var bt2:Tween;
var initBlock:Object = new Object();
var b:Board = new Board(); //external classes no issues here
var g:Game = new Game(); //external classes no issues here
var counter:Number = 0;
var x1:Number;
var x2:Number;
var y1:Number;
var y2:Number;
initBlock.onEnterFrame = function() {
this.onRollOver = function() {
this.gotoAndPlay("rollOut");
};
this.onRollOut = function() {
gotoAndPlay("rollOut");
};
this.onRelease = function() {
var s:String = this._name;
getClickCoord(s);
_root.counter++;
if(_root.counter == 2){
_root.x1 = g.fromX;
_root.x2 = g.toX;
_root.y1 = g.fromY;
_root.y2 = g.toY;
if(g.isValidInput()){
swapBlocks();
updateMcName();
updateBlockArray();
if(isValidMove()){
/* ommited for space */
}else{
trace("no combination");
//switch position variables
var m:Number = _root.x1;
_root.x1 = _root._x2;
_root.x2 = m;
m = _root.y1;
_root.y1 = _root.y2;
_root.y2 = m;
//change everything back
swapBlocks();
updateMcName();
updateBlockArray();
}
}
//reset variables
_root.counter = 0;
g.fromX = g.fromY = -1;
g.toX = g.toY = -1;
}
}
};
/* ********************************************
* Display blocks
******************************************** */
function display(a:Array) {
var k:Number = 1;
for (var i:Number = 0; i<6; i++) {
for (var j:Number = 0; j<6; j++) {
var blockName:String = "Block"+k;
var blockDepth:Number = this.getNextHighestDepth();
this.attachMovie(a[i][j].__type, blockName, blockDepth,initBlock);
this[blockName]._x = j*50+100;
this[blockName]._y = i*50+50;
k++;
}
}
}
/* ********************************************
* Get co-ord of click block, from block name
******************************************** */
function getClickCoord(s:String):Void{
var x:Number;
var y:Number;
if(String((Number(s.substring(5)) / 6)).length == 1){
y = (Number(s.substring(5)/6) - 1)+1;
}else{
y = (Number(String(Number(s.substring(5))/6).charAt(0)))+1;
}
if(Number(s.substring(5) % 6) == 0){
x = 6;
}else{
x = Number(s.substring(5) % 6);
}
if(g.fromX > 0 && g.fromY > 0){
g.toX = x;
g.toY = y;
}else{
g.fromX = x;
g.fromY = y;
}
}
// i knows it an insain way to do it, but it works fine for the moment
/* ********************************************
* Swap Adjacent Block
* - From (x, y)
* - To (x, y)
* ******************************************** */
function swapBlocks():Void{
var s:Array = b.getBlock();
var block1:String = "Block" + String((_root.y1-1)*6 + _root.x1);
var block2:String = "Block" + String((_root.y2-1)*6 + _root.x2);
if(_root.x1 == _root.x2){
var blockTween1:Tween = new Tween(this[block1], "_y", None.easeNone, this[block1]._y, this[block2]._y, .5, true);
var blockTween2:Tween = new Tween(this[block2], "_y", None.easeNone, this[block2]._y, this[block1]._y, .5, true);
}else{
var blockTween1:Tween = new Tween(this[block1], "_x", None.easeNone, this[block1]._x, this[block2]._x, .5, true);
var blockTween2:Tween = new Tween(this[block2], "_x", None.easeNone, this[block2]._x, this[block1]._x, .5, true);
}
}
/* ********************************************
* Update MC names
******************************************** */
function updateMcName():Void{
var s1:String;
var s2:String;
var block1:String = "Block" + String((_root.y1-1)*6 + _root.x1);
var block2:String = "Block" + String((_root.y2-1)*6 + _root.x2);
s1 = block1;
s2 = block2;
this[block1]._name = "bob";
this[block2]._name = block1;
this["bob"]._name = block2;
}
// working fine
/* ********************************************
* Update block array
******************************************** */
function updateBlockArray():Void{ // working fine
var s:Array = b.getBlock();
var t:String = s[_root.y1-1][_root.x1-1].__type;
s[_root.y1-1][_root.x1-1].__type = s[_root.y2-1][_root.x2-1].__type;
s[_root.y2-1][_root.x2-1].__type = t;
}
display(b.getBlock()); // working fine
sorry for the size, i trie to cut out as much as possible.
ive debugged the code a hundred times everything else dose its job, as far as i can tell the tween AS just isnt working.
Thanx in advance.
Motion Tweening Bitmap Images
Hi there:
I was told yesterday by a friend that I should not really motion tween bitmap images because it will hang up the system. I have bitmaps motion tweening from the side and centering on stage. I have no problems running it on my computer but it does choke on older computers. I thought I would put recommendations on the CD runs best on Pentium II processor, Windows 98 and above. Is this reasonable or should I take the motion tweens out. I guess Flash is more of a vector based program than bitmap, she told me that I should have maybe done it in Director. Any recommendations?
Patti
|