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




Loading Movie And Changing Its Position?



Hi flashers!


Got stuck with my website for the following reason, please bail me out!

I am loading a flash file(dummy.swf) into level 5 using Loadmovie as below

loadMovieNum("dummy.swf", 5);

Now if i want to change the x,y position of this loaded movie how do i do it?

Though I could achieve this by loading it into a target in my main movie, the preloader in the incoming movie wasnt working. What could be the problem?

Please help me!!!!! Thanx in advance!



FlashKit > Flash Help > Flash ActionScript
Posted on: 10-29-2003, 05:56 AM


View Complete Forum Thread with Replies

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

Changing Position Of Movie Loaded With LoadMovieNum?
Hey i have a preloader that randomly loads a bg pic using loadMovieNum, but it currently puts the top left corner of the movie in the dead center of the main swf. Can someone tell me how i can move that to the top left (0,0) so the image fits in the frame?

Thanks!

Changing Y Position Of A Movie Clip With An Easing Effect
Hi everybody

I have 6 buttons which are supposed to control the movement of a MC; on each button I set a variable for the y position, ie:

on (press) {
firstvar = -427;
}

My MC has 3 frames, and thatīs how the code looks like on each:

1) fri = .1;
2) dify = _root.firstvar-fou._y;
speedy = dify*fri;
fou._y = fou._y + (speedy*1,5);
3) call ("2");

The problem is it just donīt work at all. Is there any way to solve it, or can this be achieved some other way?

Thanks!

Loading A Movie To A Certain Position
How would I load a movie onto a certain position on my main movie? The scripting would be very helpful!

Loading Movie In Position..
trying to load a swf into the main movie at a particular position (rather than just 0,0) . Is it possible to define the x and y coordinates or do you have to make the movie your loading in the same size as the main one??

After Loading A Movie, How To I Set Its X And Y Position?
okees, after using the loadmovie command to load a external .jpg in my movie. how do i position it, where i want it? cause its size is smaller than my mainmovie, and it loads in the top right corner...

am pretty sure its witht the _x,_y ; but i dont know exactly how to write it...help!!

Loading A Ext. Movie Position
Umm well hi, when i load and external movie into an empty movie clip, i just can't control it's position, i mean i can't load it in the right position i desire. so then i have to drag that empty movie clip and change it's postion, then preview it again, then move it again until i get the right position.

I'm sure it's a silly thing, but i haven't search for it so hard.

Thanks in advance

How Do I Manually Position A Movie That I Am Loading
I know this is probably simple to many of you, but how do I position an external .swf when using a loadmovie action.

In my case I have an action loadmovie("movie.swf",1)
i.e. load the movie, movie.swf, in level 1. This gets the movie in, but how can I use actionScript to give put the movie in the exact position I want. I know that there are _x and _y properties but I can't find anything that explains how to use this with a loadmovie action. Just a note, I am not using a button to call this, it is simply an action on the main timeline.

Any help would be greatly appreciated. Thanks.

Phi463

Help Loading A Movie To A Specific Position
Hi there.

I hope you flash masters can help me.

I have a movie (experiment) and I want other movie (little)to be played in a specific frame and in a specific place on the main movie(experiment).

I tryed to load "little.swf" in the frame that i want and after unload it when i want it. That was easy.

On frame 3 I puted:

LoadmovieNum("little.swf",1)

And on frame 6 I puted:

Unloadmovie(1)

Till here everything is nice... but the "little" movie is always loaded on the lef top of the stage.

How can I make it be loaded in the right place that I want?


I tryed the setproperty but with no sucess.

Please help me because I' trying to solve this problem for more than 3 days.

Thanks in advance.

Loading Movie Into Specific Position
Hi,

This question is similar to one just posted... I am trying to load a new .swf into level one but I need it to go to a specific position, I am not using buttons I am loading the movie with the last frame of the previous movie...

Thank you!

Loading Movie Into Movie With Precise Position
I know this is a newbie thing but I've struggled and searched and still haven't found my answer. I'm working in MX.

Here's what I want to do...

I want a main menu movie that is visible and active all the time (menu on side or top that can be selected even when another movie is playing. (level 0?) This movie will launch the content movies below.

I want the content movies to run in a selected space (precise x/y coordinates) on top of the menu movie but not covering the menu controls from the level 0 movie. (level 1?)

My problem is figuring out how to tell the content movies exactly where to postion themselves on the screen. I've been told that levels are no longer the best way to go but I don't know what the alternative might be...and I can't figure out how to position the content movies.

Suggestions or tutorials that might help? Thanks in advance.

LM

Loading Movie Into Position ? (No Movie Clip)
Hello , can you guys help me out with this ? I searche all over the website for the answer but i didnt find it. It probably a simple thing to do or maybe not .

What i want to do is to load an external movie.swf for example on level2 and position it in a determined location without have to load the movie into a movie clip. I want the movie on the bear stage. Dont wont to use movie clip to house it.

I was trying to do this but doesnt seem to work.

loadMovieNum("panel.swf", 3);
_level3._y = 600 ;


Ill arpeciate any possible help ! thanks !

Saving / Loading A Position Of Movie Clip?
Hello.

I'm trying to have a save and load feature for a flash game.
I'm thinking like when you hit F5, a position in movie clip will be saved and the player will also be able to load the saved position.

Is this feasible?
How would I do this?

TIA

URGENT Movie Loading Into Wrong Position
i have seperate web pages that i'm loading into movies via buttons, everything's working ok apart from a few buttons which are located in movieclips. when these buttons are pressed the movie is loading into the wrong position. it should lay directly over what is already there but instead is appearing halfway down the stage.

eeeek!
help!!!

Loading External Movie With A Specific Position
I have a SWF with a map with a number of cities on it, each city has a corresponding swf with certain information regarding that particular city, clicking the city/button I would like to open that 2nd swf as an external one in a different position in the same webpage.As it now opens in the same space of the first swf since I only know the -load movie- actionscript. I have seen what I'm trying to do in the following website:
www.pandora.com
I would appreciate suggestions in how to accomplish that task. Thank you.

Wait Until Movie Clip Moves To Certain Position Before Loading SWF?
Hi,

I have this code that waits a second, then moves the background around when buttons are clicked:


Code:
_root.currMovie = "home";
container.loadMovie(_root.currMovie+".swf");

bgTargetX = 42;
bgTargetY = 117;
onEnterFrame = function(){
backGround2._x = backGround2._x - ((backGround2._x-bgTargetX)/16);
backGround2._y = backGround2._y - ((backGround2._y-bgTargetY)/16);
}
newsbutton.onPress = function(){
clearInterval(moveI);
moveI=setInterval(moveF,1100,-648,117);
}

homebutton.onPress = function(){
clearInterval(moveI);
moveI=setInterval(moveF,1100,42,117);
}
personnelbutton.onPress = function(){
clearInterval(moveI);
moveI=setInterval(moveF,1100,-1338,117);
}
studiosbutton.onPress = function(){
clearInterval(moveI);
moveI=setInterval(moveF,1100,-2028,117);
}
contactbutton.onPress = function(){
clearInterval(moveI);
moveI=setInterval(moveF,1100,-2718,117);
}
function moveF(x,y){
clearInterval(moveI);
bgTargetX = x;
bgTargetY = y;
}
On my buttons, I have this code:


Code:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "news";
container.loadMovie("news.swf");
} else if (_root.currMovie != "news") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "news";
container.play();
}
}
}
What I would like to do is wait until the background has moved to 1100,-648 before loading the external SWF when the news button is clicked (and so on for the rest of the buttons). Can someone please help me out with the code for that?

Thanks, Matt

Externally Loading SWF Into Position On A Single Movie Clip
No one seems to have ever posted how to do this, and I have been searching multiple forums as well as the web in general. I am trying to externally load swf files into a single position that i define in a specific movie clip in my main fla. Can anyone help me? Thanks. *Man I hate AS3 its so much more complicated*

Wait Until Movie Clip Moves To Certain Position Before Loading SWF?
Hi,

I have this code that waits a second, then moves the background around when buttons are clicked:


Code:
_root.currMovie = "home";
container.loadMovie(_root.currMovie+".swf");

bgTargetX = 42;
bgTargetY = 117;
onEnterFrame = function(){
backGround2._x = backGround2._x - ((backGround2._x-bgTargetX)/16);
backGround2._y = backGround2._y - ((backGround2._y-bgTargetY)/16);
}
newsbutton.onPress = function(){
clearInterval(moveI);
moveI=setInterval(moveF,1100,-648,117);
}

homebutton.onPress = function(){
clearInterval(moveI);
moveI=setInterval(moveF,1100,42,117);
}
personnelbutton.onPress = function(){
clearInterval(moveI);
moveI=setInterval(moveF,1100,-1338,117);
}
studiosbutton.onPress = function(){
clearInterval(moveI);
moveI=setInterval(moveF,1100,-2028,117);
}
contactbutton.onPress = function(){
clearInterval(moveI);
moveI=setInterval(moveF,1100,-2718,117);
}
function moveF(x,y){
clearInterval(moveI);
bgTargetX = x;
bgTargetY = y;
}
On my buttons, I have this code:


Code:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "news";
container.loadMovie("news.swf");
} else if (_root.currMovie != "news") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "news";
container.play();
}
}
}
What I would like to do is wait until the background has moved to 1100,-648 before loading the external SWF when the news button is clicked (and so on for the rest of the buttons). Can someone please help me out with the code for that?

Thanks, Matt

Externally Loading SWF Into Position On A Single Movie Clip
I realize that title sounds a little confusing, but what I am trying to do is copy this style of site, http://www.flashden.net/files/14545/index.html . I have created all of the swf's for the main index of the site, but am way out of my league on how to load them into a certain position in a single movie clip so that a drag bar can slide the movie clip left and right. I have read a few posts on external loading, but am not really sure on how to implement them to achieve this look. Any help as soon as possible would be great.

Loading Seperate Sections Of A Website In A Certain Position Of The Current Movie
hello, i posted about this earlier and was given suggestions. The first was to create a blank movieclip and add the loadmovie function in that movie clicp. So i did just that. The moviecclip had two frames. One with the code stop and the other with the loadmovie code:

Loadmoie("example.swf",1);

Now with that set up i have a button on the main movie clip that when clicked uses a tell target to load the blankmovieclip and gotoandstop on frame 2. It all works fine except one thing. The reason i posted the question was to ask how to make the movie appear in a certain spot or position in the current movie. No matter where i put the blank movieclip it didn't change a thing.

Now the second suggestion was to use the loadmovie code but add x and y coordinates. But how do i do this with the loadmovie code? all i can do is change what level the external movie loads on and thats it. And thats my question. Please help if you can. If you have any suggestions or have examples of this being done on yours or another site please also let me know. Like i said http://www.estudio.com has this and i love it. Flash examples i think would help me the most though but if you can't please try and explain. thank you

Changing The Position Using Actionscript
Hi there

I have a symbol(graphic) of a circle with an instance name 'ball'.

Now, I want to make 'ball' move very slowly upwards over a period of about 20 secs...

Rather than make a very long motion tween over say, 350 frames, is there a way - using actionscript - to move ball's y position over a specified time?

i.e if it began at y position -50, I want it to take 20 seconds to move to y position +50

Cheers
Joe

AS: Changing The Position Of A Button
I am trying to change the position of a button, but when I use ActionScript's <button's instance>._x, it apparently moves the button according to the registration point coordinates. Is there any way to either:

1. Move the button with ActionScript using the coordinates of the top leftmost corner of the symbol (as it is always done with symbols)?
2. Display see the position of the registration point over the stage?

Or else, how would you move a button with ActionScript? I appreciate in advance any help.

Regards,

RCarlton

[F8] Changing Position With Scale...
hellloooooo

I'm having a little trouble with a flash. I want to have it filling an entire html page. Now obviously getting it to change size is determined by the code in the HTML page, but what I want to do is achieve the same effect as this site:

http://coolbreathpower.com/

If you change the size of the page, some of the items such as the menu stay the same size, but move around so that they stay visible. If you look at the page you'll see what I'm trying to explain!

I can't find a tutorial or guide anywhere on how to achieve this. Has anyone found one before, or would know a way of doing this?

Any help would be greatly appreciated. Cheers,

Matt

[F8] Changing Position Of Submenu
Hi to all happy flashers ...

Here is some question (probably verry easy but i keep getting stuck on it)
I have a working xml dropdown menu system.. right now when klicking a mainmenu option the submenu items apear beneath the main menu button...
I need them to apear above.... how to get this done...


See attachment for files (changes should be made to the .as file)
*You might need to reconfigure file lokations in the fla. for correct loading*


thanx in advance
Norman

[F8] Changing The Position Of My Movieclip HELP
Hi guys,

This is very basic and for some reason it's not working. I am doing a very basic zoom in/out map thing and I have a button where i just want to reset the map to it's original position. So on the reset button I have:

on (release) {
lowestScale = 100;// lowest desired scale of map2 in %
highestScale = 300;// highest desired scale of map2 in %
_root.position=_root.map2._x=456.3, _root.map2._y=109.8;

function reset() {
// calculates scale and sets it

_root.scale = _root.map2._xscale=_root.map2._yscale=lowestScale;
_root.slider.scrollMin = _root.range._y-_root.range._height;// minimum _y value possiible for scrollbar
_root.slider.scrollMax = _root.range._y;// maximum _y value possiible for scrollbar
_root.slider._y = _root.slider.scrollMin+(_root.slider.scrollMax-_root.slider.scrollMin)/1;// sets starting position of scrollbar (currently half-way)
scaleFactor = Math.pow(highestScale/lowestScale, 1/(_root.slider.scrollMax-_root.slider.scrollMin));// variable for SetScale
}

reset();

}

For testing I did the following but it's still didn't work:

on (release) {
_root.map2._x=456.3
_root.map2._y=109.8;
}

Any ideas as to what I am doing wrong, this is so basic it's embarrassing.

Cheers

Changing Frame Position
I have 77 frames total which run in a sequence and are place right on top one another so the object is in teh exact same location each time, when i change the size of my document the frames are no longer in it but would fit in the new document size, thing is if i select all the frames and drag them to that spot on the first and last frame go there, is there an easy way to move all the frames? if not how do i set it up so that when i redo it every frame is on the exact same spot, because i imported images and they are in the default area now, i want them out of that area, is there an easy way to define the default placement of an item?

Changing The X Position Of Graphic
hi guys,

i have anotyher query, im reading data from an xml document that i am using to genrate the co-ordinates of markers on the stage.

i have a graphic called gr_marker, so basically my question is how to i change the x position according to teh field from the xml (we'll called it bob).

Appreciate any and all help.

thanks guys

andy

Reset Movie Clip X-position & Y-position Back To Original
Is there a command to reset x-position, y-position and rotation all at once...like reset command?...or would I have to find the original x-positions and y-positions to all elements and hardcode that back....EEEK!!

Many Thanks
Andrea

Changing The Position Of A Gradient Fill
Is it possible to change the location of the gradient fill in a shape. I know how to create the gradient fill but can I change how it appears in the shape. I have a star with a gradient fill and the center of the fill is off to the side, I want it in the middle(dark) so that the tips of the star are white. Can it be done?

Changing Frames With Mouse Position
Could someone please help me with this. I have a image of a face on the right side of my flash movie. What I want is to give the impression that the face is turning to follow the mouse cursor. RIght now I have invisible buttons setup and have a mouseover scipt to go to the appropriate frame. There is problems with that though..

1. Is changes the mouse cursor to an active state. (cursor changes to a hand)
2. I cannot interact with things behind the invisible buttons. (which makes this method useless since I need to track the mouse over the entire website.

What I need is for something that would say if the mouse is in this X, Y box move to frame X.

I do not know if I am explaining this well. Please check out what I have now. (Its real cheesy right now, just testing the procedure.)

66.27.2.70/luna.html

I will be posting a tutorial for the A.I. bot that is on my site later, if anyone is interested.

Changing _X Position Of An Entire Level
Anyone know if this is possible?

I'm going to keep playing around, but I haven't figured it out yet. I can easily change a movie clip's _x and _y values.

Thanks.

Changing ScrollPane Arrows Position
Hi guys!
Here's my problem: I changed the look of the arrows to match my needs, but now I also want to change their position so it would look like this:

How do I do that???
Thanks in advance!

Changing Layer Position On Mouse Over
I've created a flash intro that has a collage of images. Now I would like to have it so that when I mouse over one of the images, that image comes to the front. As I have it, each image is a button that goes to a link. Is there a way for me to mouseover one of the images and have it come to the front?

Thanks to the person who knows.

here's a link of what I have so far:
http://www.specialtypub.com/intro2.swf

Mc Size Changing According To Mouse Position
I have a square mc that I want to change size according to where the mouse is.

So, - when I press the mouse that position will be the topLeft position of the square.

When I drag the mouse the buttomRight should follow the mouse pointer.

I have tried this:

_root.myMc_mc._yscale -= (_root.myMc_mc._y-_root._ymouse)/50;
_root.myMc_mc._xscale -= (_root.myMc_mc._x-_root._xmouse)/50;


But it's not working so well..


Kind regards

Godowsky

Changing Perspective With Mouse Position
Hi,
I want to create a movie clip that appears to change perspective as you move your mouse over it. I have created the perspective change by simply creating a tween, but I want to tie the mouse position to a frame. I am at a loss with this, this is probably not the correct way to do this, I don't mind starting from scratch.
Input hugely appreciated
Many Thanks

Code Not Changing X,z, Load Position, ? Why?
With the highlighted lines I'm trying to change the position on the page that the .swf loads to. This is the button code that calls up the external .swf.

Any help?


}
on(release){
loadMovieNum ("scroller1.swf",1);
_root.onEnterFrame = function(){
if (_level1 != undefined){
_level1._x = 300;
_level1._y = 200;
delete _root.onEnterFrame;
}
}
}

Changing The Palette Position Of ColorPicker
Is it possible? 'cuz the palette always shows up at random position, and I wanna lock it to a certain place.

I am using Flash CS3.

Changing The User Mouse Position?
Hello guys
I've been wondering if it is possible to change the user mouse position on enter frame? I want the mouse to stay in the center of the flash, because I'm making a mouse flash game and it is a huge problem when the mouse is getting out of the screen.
Thank you!

Changing The Position Of A Mc By The Click Of A Button How?
all I am trying to do is when you click on a button on my web site. chair_mc moves. _x -49.1. thats all and I can not figure it out.

on the button it self I have

on (press) {
this._parent.gotoAndPlay(103);
this._parent.chair_mc._x = 49.1;
}//didnt work
on (press) {
this._parent.gotoAndPlay(103);
setProperty(chair_mc, _x, -49.1);
}//didnt work either
The button is inside of a movieclip () on the main timeline and I am trying to change the position of chair_mc with is on the main timeline as well.

Changing The Mouse Position With Actionscript?
Hey there,
is there any way at all to make the mouse position change using actionscript? I've tried a couple of ways i thought might work, and turns out they don't, anyone know how it's done?

Also, is there any way of disabling the menu that comes up when you rightclick? Just I would like to use right click to prompt events and stuff...

Cheers
Jay

Changing Scroller Position On Scrollpane
Does anyone know how to change to position of the scroller when using the scrollpane component? I have a horizontal scroller on the bottom of the pane that I want to appear on the top. Any tips are greatly appreciated.

Changing Postision Based On Prev Position...
Ok...I have a button..what I want it to do is when the button is clicked I want MC#1 to be deleted and I want MC#2 to take its place. For the sake of an example. Lets say that MC#1 had a postion of 100x and 110y. and MC#2 is at 100x and 120y. So I want the button to more MC#2 to MC#1 position which is 100x and 110y. What code would I write?

Sorry if this is a stupid question but I'm a flash newbie.

Thanks for any help.
Moe

Problem With Changing Size And Position Of Buttons
I have three buttons : przy1, przy2, przy3
I want to change size of them when you rollOver on one of them.
Just like you rollOver przy1 and it's grow ,przy2 will grow smaller and przy3 grow smaller then przy2 .
I belevie you have understand this becouse my english is not to good.
Button.prototype.akcja = function(w, h, x, y, speed) {
this.w = w;
this.h = h;
this.x = x;
this.y = y;
this.speed = speed;
};
Button.prototype.zP = function(e, f, g, h) {
this.w = e;
this.h = f;
this.x = g;
this.y = h;
};
Button.prototype.zmiana = function() {
with (this) {
if (_x<x) {
_X += speed;
}
if (_x>x) {
_X -= speed;
}
if (_x>x-1.5*speed && _x<x+1.5*speed) {
_x = x;
}
if (_y<y) {
_y += speed;
}
if (_y>y) {
_y -= speed;
}
if (_y>y-1.5*speed && _y<y+1.5*speed) {
_y = y;
}
if (_width<w) {
_width += speed;
}
if (_width>w) {
_y -= speed;
}
if (_width>w-1.5*speed && _width<w+1.5*speed) {
_width = w;
}
if (_height<h) {
_height += speed;
}
if (_height>h) {
_height -= speed;
}
if (_height>h-1.5*speed_height<h+1.5*speed) {
_height = h;
}
}
};
przy1.akcja(144, 72, 184, 158,1);
przy2.akcja(57, 28, 300, 213,1);
przy3.akcja(33, 16, 341, 234,1);
przy1.onRollOver = function() {
przy1.zP(144, 72, 184, 158);
przy2.zP(57, 28, 300, 213);
przy3.zP(33, 16, 341, 234);
trace("trace przy1 -"+przy3.y);
};
przy2.onRollOver = function() {
przy1.zP(57, 28, 179, 215);
przy2.zP(144, 72, 211, 158);
przy3.zP(57, 28, 329, 219);
trace("trace przy2 -"+przy3.y);
};
przy3.onRollOver = function() {
przy1.zP(33, 16, 188, 230);
przy2.zP(57, 28, 206, 209);
przy3.zP(144, 72, 236, 159);
trace("trace przy3 -"+przy3.y);
};
this.onEnterFrame = function() {
przy3.zmiana();
przy1.zmiana();
przy2.zmiana();
trace("-------------------------"+przy3._y);
};

Help Changing X Coordinate Position Of Movieclip With Actionscript
Hello - I am working on a project that I need to change the width of the movieclips and change the x coordinate position of the movieclips as well.

I have in the attached file the changing of the width of the movieclips with buttons, but I need some help tying in the changing of the x coordinate positions with the code.

Can someone take a look and and maybe help me with the code to have the movieclips move to a new x position as it changes its width?

Changing Orbiting Movieclips Initial Position.
So I need to have multiple objects rotating around a point in an elliptical orbit. I've got the code to do this just fine, but naturally I want them to start at different points along that orbit.

onClipEvent(load)
{
cx = Stage.width/2;
cy = Stage.height/2;

rad = 84; // radius of circle

speed = 30;
speedScale = (0.001*2*Math.PI)/speed;
}

onClipEvent(enterFrame)
{
var angle = getTimer()*-(speedScale);
this._x = cx - 1.5*(Math.sin(angle)*rad);
this._y = cy - Math.cos(angle)*rad;
}

That's the code I've got so far, attached to the objects in orbit.

[F8] Combo Box Problem (its Changing Position Automatically)
Hi, im having a strange problem with a combobox.

I have a layer called SCRIPT and on the first frame i put an actionscript that attach a movieclip (attachMovie). After i attach that movie clip i set the _x and _y coordinates to a specific place, lets say 200, 200. This movie clip has a combo box inside.

On another layer i have a button, when you click on this button i attach a movie clip (attatchMovie), this is the same movieclip i attached before on the first frame of SCRIPT layer, and im changing the position of the movieclip to 200,200 via actioncript, just like i did before in the first frame of SCRIPT layer.

Here is the problem, when you click on the button for second time the movieclip attached go to coordinates 0,0 not 200,200 as it should be

I would like to know WHY IS THAT????

but, if a open the movieclip and delete the combobox everything works fine.

Please somebody help me.

Im including a very simple fla file to illstrate the problem, feel free to download it to see what im talking about.

Layers Position Changing And Disappearing On Test..
Please forgive my ignorance. Im new to flash and doing my best to teach myself. I am having a very strange issue, and I have no idea how to fix it. Im using CS3. I've already been working on this project for a while, and I don't know why this is all of the sudden happening. I have a text graphic that I want to create a motion tween with. I created a new layer for it, and drug it to the stage. If I tested the movie at that point, it looked fine and didn't move. If I tried to move the original keyframe, or added a motion tween, it would look fine when I played it on the stage, but when I go to "test movie", its either not on the screen at all, or its in a totally different position. I am at a total dead end, and dont know what to do. Thanks so much for any help!

Changing Movieclip Alpha Depending On X Position.
Hi, have a newbie question. As its been quite some time since I have used actionscripting, any help would be greatly appreciated....

So, I would like the alpha of a movie clip to change depending on its x position. I have made an image slider with images (movie clips) on it.. now I would like to make the images fade in and out of view as they move past the center area of the stage.

Tried to look through the tutorials on the site for answers.. but found none that would have been applicable.. well, atleast to someone with my very low level of actionscripting know-how.

Cheers,

Tim

Changing Frames Depending On Mouse Position
I know this can't be to hard too achieve, but my actionscript skills aren't quite up to it yet.

- I have 5 frames within a MC.
- In this MC there is text saying "center", "left", "right", "up", "down" on each frame.
- All I want to be able to do is make the MC change to frame 3 "right" when my mouse moves to the right of the MC.

I know the script below is wrong, but would it go something like, this. Would I have to use angle and math or is there a simpler way to achieve this?

------------
onClipEvent (mouseMove)
get x position
get y position
if statement x= > -180 and y=> 0 (something like that)
_root.myMovieClip.gotoAndStop(3)
------------

I know a similar problem appeared a while ago, but didn't help me to much.

Any help would be much appreciated.
Thanks, Juxtapozed.

[FLASH 8] MC Position's Changing At First Zoom Attempt
Hi everybody.

I got an mc (named "img") on the stage. In order to zoom it, I'm using the following code:

Code:
myZoom = function (myDepth)
{
if (myDepth == "deep")
{
myDepth = 4;
}
else if (myDepth == "medium")
{
myDepth = 8;
}
else if (myDepth == "light")
{
myDepth = 12;
} // end else if
img.onRelease = function()
{
if (k > 0)
{
return;
} // end if
zoom = true;
dir == 1 ? (dir = -1) : (dir = 1);
if (dir == 1)
{
pt = {x: img._xmouse, y: img._ymouse};
} // end if
};
this.onEnterFrame = function ()
{
if (!zoom)
{
return;
} // end if
img._xscale = img._xscale + dir * k * 50 / myDepth;
img._yscale = img._yscale + dir * k * 50 / myDepth;
var pt2 = {x: pt.x, y: pt.y};
img.localToGlobal(pt2);
img._x = img._x - (pt2.x - pt.x);
img._y = img._y - (pt2.y - pt.y);
++k;
if (k == 8)
{
zoom = false;
k = 0;
} // end if
};
};
myZoom("medium");

Problem is, when I release on the mc it changes its original position to X=0,0 Y=0,0 as you can see HERE.
Obviously, I want it to keep its starting position on the stage and zooming IN and OUT from there.

Thanks to anyone who may help.

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