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




How To Move An Object Slowly And Smoothly From Location 1 To Location 2?



Hi,

I am new to ActionScript. I wish to use ActionScript to move an object slowly and smoothly from location 1 to location 2.

I learned that I can use the following to move an object to location 2 (x2, y2):

mThisObject.x = x2;
mThisObject.y = y2;

However the object just "swift" from location 1 to location 2, not moving slowly and smoothly from location 1 to location 2.

Could some experts here provide a guideline for me?

Thanks and best regards

Alex



KirupaForum > Flash > ActionScript 3.0
Posted on: 05-23-2008, 10:07 AM


View Complete Forum Thread with Replies

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

Making An Object Move To A Specified Location.
Hi. How do i make Obj1 move to Obj2 without easing?
I want it to move Obj1 to Obj2 "walking" not "directly" by setting its _x and _y values.

Example for code with easing:

onClipEvent (load) {
_x = 0;
_y = 0;
speed = 5;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}

Make Flash Object Move To Specified Location
I have a navigation setup in which I want a bar to follow the cursor when the cursor enters the navigation box area itself. (Basically it will follow up and down only. My question is when the cursor gets within the general vicinity of a menu item, I want the rolling bar to move to exactly over the menu item. So even if they don't have the cursor exactly over say, "Home", it would still move the bar exactly over it with the assumption that this is the menu choice they want. Hope this makes sense!

This is the code I have so far:

function moveMask () {
if(_root._xmouse >= 820 && _root._xmouse <= 1000 && _root._ymouse >= 80 && _root._ymouse <= 400) {
Bar._y -= (Bar._y-_ymouse)/5;
if ( Bar._y >=318){Bar._y=318;}
if ( Bar._y <= 110){Bar._y=110;}
if ( Bar._x >=1000){Bar._x=1000;}
if ( Bar._x <= 820){Bar._x=820;}
}
}

Navigation.setMask(Bar);

Thanks,
Dave

Move A MC To A Different Location With A Button
I am having a problem: I want to move a MC from one location to another, using a button on another menu. tab1 is the name of the instance. When I use
on ( rollover ) { tab1._y = _y+(280-_y);
}
It moves the MC to the correct location, but it keeps moveing back even if the mouse is still on the button.

On the MC there is the following code (because it should be activated also if someone is rolling over the MC, and not only on the separate button):
onClipEvent (load) {
headline = "test1";
text = "blablablablablablablablablablablablablablablablab la";
trigger = 0;
}
onClipEvent (enterFrame) {
if (trigger == 1) {
_y = _y+(300-_y)/6;

}
if (trigger == 0) {
_y = _y+(425-_y)/10;

}
}
Please help!
Thanks

Move Location Of Clip
hey all, is there any way to move a clip from one timeline to another? for example, i have a movieclip _root.egg, and one called _root.basket. i want to move _root.egg to _root.basket.egg.

is this possible?

thx
-depth

Playing A Move At Mouse Location: Almost There
Hello,

I have the below code which will give me the mouse location. How do I tell Movie Clip A to play at that location???

_root.OneDay.xdisplay = _root._xmouse;
_root.OneDay.ydisplay = _root._ymouse;

Please help
Thanks

Move To A Random Target Location
hi!! i'm using flash five and i need some help with making the following happen.

a movie clips actions:


loop

pick a random number with math.random for x
pick a random number with math.random for y

loop:
head towards x and y one pixel at a time
until -> has reached x and y, then

loop

please excuse my crappy psuedo code, hope someone can help!

Move Mouse Graphic To Specified Location ...
I have a movie clip (picture of some keys on a key ring) attached to my mouse pointer, and the mouse pointer is hidden. When the mouse pointer rolls over a button, which is a picture of a keyhole, I want the movie clip to turn into a graphic, move to a specified location on the stage, and then alpha to 0%.

I have everything done, except I don't know how to take the graphic from where ever it might be on the stage and move it to a particular spot on the keyhole picture. It should already be relatively close to where I want to move it, but I just don't want it to look jumpy.

Any suggestions?

Thanks.
S

MC Move Along Square To Mouse Location
im trying to make a movie clip that will move along a square path depending on where the mouse is positioned what would be the best way to accomplish this?

How Can I Move A Movie Clip To Specific Location?
I have a movie clip "map" and I want to move it to specific location here is my code:

map._xscale = 470;
map._yscale = 470;

map._x += -1350;
map._y = -230;

The code above does move the map to the localtion I want but no animation no movement it's just flick

I want to have the movieclip to "move with simple animation not just warp"

How do I do that?

Thank you

Choo

Xml Read From Dynamic Location Or Web Location
hello, i am working on a site which uses a flash menu i was handed
i have never worked with flash, but i suspect my problem is really easy to solve

the flash menu uses an xml file to generate, it works fine as long as one stays at the top-level dir of the site, say http://www.example.com/
when someone enters a page, say http://www.example.com/test/ the menu stops working, being unable to read the xml which is hardcoded to be in the same directory as the page it's called from (menu.xml is in /)

i must say that the locations visible to the browser are not real, everything non-top level in http://www.example.com/test/page/ is just mod-rewrite, thus none of the directories test or page really exist

i can see the reason why flash looks in the same directory as the one the client requested for the file (instead of looking at the same dir locally in example), but i can't seem to find a workaround to fix the menu myself without touching the flash code, so the two solutions i thought of:

1. is there a file_exists function i could use to make the flash recurse upper-level directories until the menu finds the xml file? as in:
quote:var menufile = menu.xml
while (!file_exists(menu.xml)) {
menufile = '../' + menufile
}
obviously this is not real code

2. is there a way to open the xml from a web location and not from a static path relative to the swf itself?

i googled for both but i could not find a clean or satisfying solution for either.. any answer on those and/or any other recommendations for a workaround would save me

URLRequest In The Code. Not Seeing The Images If Swf File Move To Other Location
Using URLRequest and Timer class i wrote a program about slide show and all images are in the same folder. It is taking the images from the path and executing. it is executing good. but, If i move the swf file to other location my swf file is not showing images. Here is my code can any one help to see the pictures if i move the swf file to other location.

var screenBox:CustomBox = new CustomBox(125, 25, 350, 150, 0x6f6f6f, 0x4f4f4f);
addChild(screenBox);

var screenBlackShade1:CustomBox = new CustomBox(126, 27, 348, 15, 0x000000, 0x000000);
screenBox.addChild(screenBlackShade1);

var screenBlackShade2:CustomBox = new CustomBox(126, 159, 348, 15, 0x000000, 0x000000);
screenBox.addChild(screenBlackShade2);

var navigationTextBox:CustomBox = new CustomBox(125, 200, 350, 25, 0x6f6f6f, 0x4f4f4f);
addChild(navigationTextBox);

var imageIndex:Array = new Array("image6.jpg",
"image7.jpg",
"image8.jpg",
"image1.jpg",
"image2.jpg",
"image4.jpg",
"image3.jpg",
"image5.jpg");



bStart.addEventListener(MouseEvent.CLICK, startSlideShow)

function startSlideShow(evt:MouseEvent):void
{
var imageQueue:Timer = new Timer(3000, imageIndex.length);
imageQueue.start();

imageQueue.addEventListener(TimerEvent.TIMER, onImageLoad);

}

function onImageLoad(evt:TimerEvent):void
{
//trace(evt.target.currentCount);
var imageLoader:Loader = new Loader();
imageLoader.load(new URLRequest(imageIndex[evt.target.currentCount-1]))
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);

}

function onComplete(evt:Event):void
{
//trace(imageLoader.content);
var image1:Bitmap = Bitmap(evt.target.content);
image1.x = 126;
image1.y = 26;
screenBox.addChild(image1);
}

Move Mouse Location With Action Script - MX 2004
Hi,

Can one move the mouse x,y location with actionScript? The reason I ask is I am trying to overcome a known bug in macromedia MX 2004 in which AS 1 and AS 2 buttons have a problem working together. After one selects an AS 2 button and then an AS 1 button – one has to move the mouse just a little before one can click on the AS 1 button and have it work. AHHH!!!!

So, I was thinking, if I AS could move the mouse for the user it would be a descent hack for this horrible BUG!

Move Mouse Location With Action Script - MX 2004
Hi,

Can one move the mouse x,y location with actionScript? The reason I ask is I am trying to overcome a known bug in macromedia MX 2004 in which AS 1 and AS 2 buttons have a problem working together. After one selects an AS 2 button and then an AS 1 button – one has to move the mouse just a little before one can click on the AS 1 button and have it work. AHHH!!!!

So, I was thinking, if I AS could move the mouse for the user it would be a descent hack for this horrible BUG!

Want An Object To Move Smoothly Across The Screen
When using motion tweening to move an object across the stage the object appears to move in a jerky manner. I have tried changing the Frame rate(fps)but the result is the same. Does it have something to do with the alpha setting?

Determining When Object Gets To New Location?
Hi!

I'm trying to figure out how to tell when an object gets to it's target location? I have a title area that I am moving using.

_level0.title.ypos = 360;
there is some other script on the title but that works fine so I don't think it is necessary to post.

The next part is I have the new section loading along with the button which makes the title area move. The images on the new section interfere with the title area moving and I know that depending on loading time, cpu power etc. it won't take the same amount of time to move on everyone's machine so I was wondering how I would find out when the title area gets to it's final location (i.e. y 360)

I've tried variations of this on the section that is being loaded placing the content on frame 3

if (_root.title._y = 360) {
gotoAndPlay(3);
} else {
gotoAndPlay(1);
}


Any help would be greatly appreciated

Set Shared Object Location?
Is it possible to make flash create shared objects in the local directory where the swf/exe resides?

Tea

Shared Object Location
Hello all, Does anyone know of a way to save a Shared Object to a specific folder? Or even if this is possible?... Just trying to find an alternative to writing to .txt files, because I've learned that you can't with strictly flash...

Thanks in advance for anyones help!

Peace,
~Bill

Set Location Of A Draggable Object?
Hi all,
Is it possible to set the starting location of a draggable moviclip (or make a draggable mc go to a specific location in any way)??

Whenever I create one, it seems to go to the absolute left side of the draggable area (unless of course the user drags it somewhere else).

I don't know if it matters, but for my specific project, I'll need it to go to the center of it's draggable area.

Any help would be appreciated - Thanks!

- Kent

[F8] Shared Object Location
can anybody tell me if you can save a shared object to USB memory key or an external hardrive, and then read it from that location. i no you can set the local path but it wont work, it will only let me save it in the flash player folder.

Location Of An Object Over A Movie
Hi all

I am producing a festive game, based on the sport of curling. I want to detect where an object ends in a movie.

The object will slide into position over a target. Each area of the taget will have differing values (points).

I need to work out where the object is and therefore how many points the player has won.

I hope this makes sense, as always, any help would great

thanks

Local Shared Object Location?
in flash mx, why doesn't this work?

myLocalSO = sharedobject.getLocal("flashcookie","//NetworkPC/shared/test" );

in other words, how can i get the shared object to be saved in the "test" folder on my network drive. the .swf that's saving the shared object is also in the "test" folder.

thanks!

Bringing An Object To The Stage At A Set Location?
Hey;

I need for flash to put an object from the library at a set location when another object (which is falling) hits the ground. Basically I need to know if there is a way to bring an object in, at a certain place from a command line placed in another object in actionscript.???

Moving An Object To Another Objects Location
hi, i am creating a vertical shooter adaptation.

i am trying to create the enemy units to fire in a direction at the main unit.

The problem is that the bullet follows the main unit instead of moving in a straight direction where the unit used to stand.

I am using timers for creating the animation and i have tried changing the rotation of the bullets. I have got it to rotate in the direction i want it to but it doesnt move there.

i am also trying out this temp object thing where an object is left at the main units last location and the bullet travels to that location. its not working yet but i am going to give it another try.

How To Make The Object Move Back Down Slowly?
ok you know when on a button it may "move up" or somthing and then you get off the button and it pops righ back into place.. how do u make it move slowly and fluently back to the posision.. liek if the is a block and then you but the mouse over it and it moves slowly taller then you take it off of the button and it slowly moves back to the orignal state? what code do i need for this...?

How To Make An Object Move Slowly Then Stop ;_;
Hello,

This is my first time to post here.. and am new to Flash ^_^;;
ummm.. i want to make an object that moves horizentally in a movie clip..but I dont know how to make it move slowly then gradually stop..! I tryed playing around with the ActionScript ..but no luck ;_; plz help..

Thanks Alot..
OniHime

Different Shared Object Question, Can You Change Their Location?
Can the location of shared objects be changed (say to My documents?)

I need it for a network, I would like every machine to access the sol file , as my user may pic any machine in the room (when they log on).

At the moment my app is working fin, and reading the sol, providing they use that specific machine. Every machine has its own sol file, where I would like1 file that covers the entire network (such as my documents)


I have the shared object working fine, and have used the tutorials and search facility (so i dont need help with that side of things)

Please help

[F8] Shared Object Location And Write File
Hello,
I'm developing applications with Flash 8 and ActionScript 2 and I would like to know if it is possible:
1 - to change a shared object file(.sol) path to the swfs path for example?

I want to do this because when I use the swf in an other computer I want to have the .sol together. I've investigated and it looks like it isn't possible but maybe someone has a solution

2 - But if this doesn't work does someone know any alternative?

Because, I have 2 swfs, 1 "activates" the other. So I want the swf that activates only to work once. But in my actual solution it works only once if on the same computer if I change computer it works again.

3 - Writing to files is only possible with third-party solutions isn't it?

Thanks in advance,
M.Anturio

Snapping To Location And Object Duplicating / Deleting
Hi... As you can tell, I'm new here, and I wanted to know if someone could provide me with some assistance. What I am trying to do is create a SWF file to make Pokemon cards. (Don't laugh, please...)

First, I want to set up is a grid of lockable locations and Energy symbols...

http://pokemonpalace.net/tcg/images/...-col-basic.jpg

Now, the idea is to have invisible movies over each of the transparent gray circles on the left side. The movie clip to be 10 frames, 1 blank at the beginning, and the other 9 being the Energy symbols. Then, from an area of symbols (nine different Energy symbols of equal size), the user would drag a copy of the movie clip (or button) containing the Energy symbol to the transparent gray circle. When the cursor is released, and the Energy collides with the movie, the symbol being dragged would disappear, and the movie clip would advance to that frame. (On a layer above it is a button to return it to the first blank frame, in case the symbol is misplaced and needs to be deleted.)

This is the first step in my project. Any assistance would be very much appreciated.

Send An Object To A Specific Location On Main Stage?
im still pretty new to the terminology for this program, so my attempts to search for this topic have been unsuccessful.

I have a movie clip within another movie clip and I want one of the objects in the embedded movie clip to end at a particular spot on the main stage. Is this possible?

thank you so much in advance.

Location-location Movement
Well... I'm working on a new game, which is sort of like a pokemon/golden sun etc. style RPG, but isn't tile-based. I have been setting up the actual moving from one screen (location) to another, and it all goes fine if i have just 3 arranged like this:
<1><2>
<3>
but if i add a fourth below screen <2> it all suddenly goes haywire.
move right from <1> and u end up in <4>, move left from <2> and you end up in <3>, move up from <3> and you end up in <2>.... you get the idea. can anyone help?
this is my code:

ActionScript Code:
if (grim._x<0) {
    grim._x = 306;
    if(bg._currentframe=2) {
        bg.gotoAndStop(1);
    }
    if(bg._currentframe=4) {
        bg.gotoAndStop(3);
    }
}
if (grim._x>306) {
    grim._x = 1;
    if(bg._currentframe=1) {
        bg.gotoAndStop(2);
    }
    if(bg._currentframe=3) {
        bg.gotoAndStop(4);
    }
}
if (grim._y<0) {
    grim._y = 212;
    if(bg._currentframe=3) {
        bg.gotoAndStop(1);
    }
    if(bg._currentframe=4) {
        bg.gotoAndStop(2);
    }
}
if (grim._y>213) {
    grim._y = 1;
    if(bg._currentframe=1) {
        bg.gotoAndStop(3);
    }
    if(bg._currentframe=2) {
        bg.gotoAndStop(4);
    }
}

('grim' is the character and 'bg' the set of locations, each location set on a different frame)

Any Way Of Scaling Up A Graphic Slowly AND Smoothly?
Hello - just tweening the scale of a graphic at 30fps with a slow tween and it's JUMPS everywhere - it's jittery!

bleh!

how do I do a smooth scale?

Thanks for any help!!

// jayse

Moving A Picture Slowly, But Smoothly... Ideas?
I have a .gif placed in a MC that I am using as a background for my flash movie.
I wanted the background to have a scrolling effect, so I added the following script to it's instance:


onClipEvent (load) {
_x = -100;
}
onClipEvent (enterFrame) {
_x += .5;
if (_x == -2) {
_x = -100;
}
}

This makes it so that the picture starts at -100, scrolls right until it reaches -2, then jumps back. Giving it a continuous scrolling look.
Anyway, I think it is a little too fast, so when I tried to slow it down some by changing the _x += .5; statement to _x += .25;, It does slow down, but it gets really jumpy-looking.

Is there any way for me to slow this down and have it still retain it's smoothness?

(I'm using Flash MX and this movie is at 30fps.)
Go here to see what it looks like now when it is set to .5

Thanks!
Lee

Controlling Clip Location With Other Clip Location
That title was admittedly confusing...but I don't know a better way of putting it. I want to create an effect like is on http://www.lennon.net/familytree/familytree.html The small map in the right hand corner controls the large map in the middle. I have a version that is a little bit different, but essentially the same. It has a clip in the middle (mine is a drag and drop instead of having scrolling buttons), and it has a zoom in and out function. The zoom is where I get completely lost because I don't know how to relate the two objects with the correct equation especially when the size will be changable. If anyone can point me to a tutorial or another thread that discusses any of this, that would be fantastic...I don't expect you to write all of the script for me, but just point me in the right direction.

Thanks.

Slowly Moving Smoothly - Moving Photos And Pixel Smoothing
So, I'm slowly....very slowly moving a small thumbnail across my stage. The problem is that when the pic moves over a pixel it looks choppy, I want it to look smooth. The border of it looks especially choppy, it's distracting from the site.

Is there a pixel-smoothing option for the stage? or some equivalent?

Does my question even make sense?

Please help.
Thanks

Location, Location
I have a cd presentation where I have loaded an external .swf into scene 4 of my main movie in a new layer using :

on (release) {
loadMovieNum ("indo.swf",1);
gotoAndPlay ("Scene 4", 2);
}

The .swf positions it self as default in the top left hand corner. I have tried to repositioning it by adding:

on (release) {
loadMovieNum ("indo.swf" , 1);
_level1._x=350;
_level1._y=275;
gotoAndPlay ("Scene 4",2)
}

It still shows the .swf in the top left corner. Is this the right action script in the wrong palce or the wrong action script in the wrong palce?? I want the .swf to play roughly in the centre of the screen. Any suggestions.....
Thanks.

Location, Location
I have a cd presentation where I have loaded an external .swf into scene 4 of my main movie in a new layer using :

on (release) {
loadMovieNum ("indo.swf",1);
gotoAndPlay ("Scene 4", 2);
}

The .swf positions it self as default in the top left hand corner. I have tried to repositioning it by adding:

on (release) {
loadMovieNum ("indo.swf" , 1);
_level1._x=350;
_level1._y=275;
gotoAndPlay ("Scene 4",2)
}

It still shows the .swf in the top left corner. Is this the right action script in the wrong palce or the wrong action script in the wrong palce?? I want the .swf to play roughly in the centre of the screen. Any suggestions.....
Thanks.

This.location();
In flash MX I was wondering how to get tell flash to return the current URL location.

For example in php the var $PHP_SELF would return the current URL location. Or in javascript it would be something like this.location.

Does flash MX have some sort of function that would return the current URL? Thanks in advance..

Location Chk
Hello,

how can i know if my swf file is loaded on my domain name and if its not i wish to know how to redirect to my domain name

thank you for any input,
George

Get Location Of MC
I am unsure how to make an MC appear at the location of another MC, I am unsure how to put it on the MC without interfering with the MC's other animations for example if going left, play left animation etc etc, or if that is even the proper way to do it,
unless there is a simple way Get MC coordinate command?

and if so how to put it on a specific part of the MC

Location Of A Hit
Hi,

I'm doing some physics simulation work, and I want to be able to find tangent lines to points of collision for arbitrary shapes. I'm thinking about doing this by manually trying to find points on the boundary lines of the shapes near the point of the collision. However, at this point I don't even know of a simple way to get the coordinates of where a collision happens (for a hitTest collision with another clip as an argument). I'd appreciate any suggestions for this. Thanks.

X And Y Location Between MCs
I want an MC that will remain locked within the bounds of another MC's perimiter once its dragged in. To do this, I set bounds as follows below:

this.startDrag(false, _parent._parent.PL_Drop_Zone._x-6, _parent._parent.PL_Drop_Zone._y-40, _parent._parent.PL_Drop_Zone._x-6, (_parent._parent.PL_Drop_Zone._y+_parent._parent.P L_Drop_Zone._height-60));

Two questions:
1)
To get the line above, I spent some time tweaking, as for some reason

_parent._parent.PL_Drop_Zone._y

didn't exactly mean the top of the other MC (where the other MC is PL_Drop_Zone).

Why did I need to do this tweaking? Why does the difference of the upper bounds and lower bounds of the PL_Drop_Zone not match the height of it?

2)
I have duplicates of the original MC I want to move. I have found that their location determines the bounds also. For example, after I tweaked the above line to display correctly, I put the same code in a duplicate movie, positioned right below the first one. It moves the bounds down just a little, equal to it difference in position relative to the first MC.

Why would an MC's position affect the startDrag boundaries, if its properties are not used in the actual bounds?


Sorry for the longwinded explanation! Even a link to a page explaining coordinates and MC location properties could be helpful.

Thanks!

Location Of The Pop Up
Hi!
I just have one question is there a way to give the pop up window loacation where on screen it has to pop up....

CSS Var Location?
How do you change this code so that it works when the swf timeline its on, is loaded into a movieclip on a main swf stage (_root.loadarea)

It works fine on its own but dont when loaded into the loadarea mc.


Code:
var format = new TextField.StyleSheet();
var path = "http://www.kirupa.com/developer/mx2004/code/flash.css";
var quick = "<br><p class='one'>The quick Kirupa jumps over the lazy dog.</p>
format.load(path);
format.onLoad = function(success) {
if (success) {
output.styleSheet = format;
output.text = quick;
} else {
output.text = "Error loading CSS file!";
}
};
Also can someone alter it for text that's being loaded in from txt file?!.....ta!

HELP : X, Y Location
Hello,

I have a MENU that only plays if an INVISIBLE BUTTON is hovered. However, I wanted that there will be no invisible buttons but when the MOUSE moves around the entire movie area, it will play the MENU.

Any tutorial for this?


Thanks

CSS Var Location?
How do you change this code so that it works when the swf timeline its on, is loaded into a movieclip on a main swf stage (_root.loadarea)

It works fine on its own but dont when loaded into the loadarea mc.


Code:
var format = new TextField.StyleSheet();
var path = "http://www.kirupa.com/developer/mx2004/code/flash.css";
var quick = "<br><p class='one'>The quick Kirupa jumps over the lazy dog.</p>
format.load(path);
format.onLoad = function(success) {
if (success) {
output.styleSheet = format;
output.text = quick;
} else {
output.text = "Error loading CSS file!";
}
};
Also can someone alter it for text that's being loaded in from txt file?!.....ta!

Mc Location Help

Hey everyone I have a scroller which works fine but im looking to update text in a dynamic text box depending on the position of the scrollbar movie clip

im guessing that i need to use something like:

if (dragMC._x = 100){
title_txt.text = "hello";
}

i know that is terribly sloppy but im new to this xpos stuff

anyone have any ideas on this? any input greatly apreciated!

download file: www.vectorsesh.com/printscrollertest.fla

CSS Var Location?
Hey up all!

Ive got this code:


ActionScript Code:
var.format = new TextField.StyleSheet();
var.path = "http://www.mywebsite.com/flash.css";
var.quick = "<br><p class='one'>The quick Fox jumps over the lazy dog.</p>
format.load(path);
format.onLoad = function(loaded) {
    if (loaded) {
        output.styleSheet = format;
        output.text = _global.quick;
    } else {
        output.text = "Error loading CSS file!";
    }
};


Which is loading in the var.quick as CSS formatted txt. which works fine when tested at _root level....but the swf file I have it in is being loaded into:


ActionScript Code:
_root.loadarea


Which makes it stop working. Ive figured its down to the level where the variables are being stored....but Im having a bit of a thick moment and forgotten how to target them with this code!

Any ideas?

Also....if I want to CSS format some dynamic txt loaded in from a txt file....what do I need to change/add above?

Thanks all!

How To Make A MC Move Smoothly ?
This is my problem...

I have a Movie Clip with instance name fullimage, containing 7 images.
I also have 7 buttons with the thumbnail of each image.
I managed to move the MC and see the desired image (when pressing a button), using the _x property.
I can't make the MC to move smoothly from one position to the other.
I've tried this._x = this._x + 1; or -1; within a loop, but every time i press a button
i get an error message that the script made the MC slowly etc.

Can anyone suggest a solution please?

Movieclip Move Not Smoothly
Is it because too many frame inside? I tried to use 2 movie clip to load in different layer. But they load very slowly when the scene load them. Then I delete one of it. The movieclip load ok. Do anyone what happens with it?

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