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




Load Swf In Position



How do you load movie on say level 1 and state the position where you want it.

the movie i want to load is an swf with different dimensions and it would be ideal if i could load it and it does not show at the top left corner.

thanks
magdazone



FlashKit > Flash Help > Flash Newbies
Posted on: 02-05-2004, 08:35 AM


View Complete Forum Thread with Replies

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

Load And Position Of MC?
how can I load and position an MC (MC.swf) exactly where I want to inside another MC?

thanks,

Dario

SWF Load In Position
Hello.

I'm trying to let a set of flash buttons in a html frames page load other SWF files into another frame of that html page. Also, they would have to be loaded and aligned so they fit next to each other like on the demo pic I made:



Does anybody know how to do that?

Thank you very much,
B.

Mc.load Position
i am loading a series of images into a MC that has two buttons allowing the user to scroll thru the images.
however, after a user uses the scroll buttons, shifting the MC horizontally, the next time a user clicks a button loading a new series of images, the MC is shifted.
i tried adding the following code to try to reset the MC to its original position, but it doesnt seem to be working.

thumbnails.onEnterFrame = function() {
this._x = 0;
};

any help is much appreciated

How Can I Load A Swf Into A Specific Position? Please Help
I have a homebutton.swf that I am loading into level 2.
I am wondering how can I get it to load into a specific position. Now, it's loading into the upper left corner, but I would like it to load into the bottom right corner.
How can I do this?
Anyone have a clue?????

Thanks!!

Position A Load Movie
Anyone know how to tell your flash movie to load another swf in a specific spot in your movie?

Load Movie In X, Y Position
how can i loadmovie(blablah) which is smaller, like 100*200, on the screen 700*600 for example, to the place i later define with paramters, or later to move by changing them?

How Do I Load And Position A MC From A Hyperlink?
how do I load and position a MC from a hyperlink within a static text field which is in a scrollpane?

I'm guessing that I could setup a text hyperlink, or an invis. button that will call a movieclip and load and position it in the scrollpane, but I have no idea how to code it!

any help?

thanks, dan.

Load A .swf To A Exact Position
How do I load an external .swf file in to a exact position in my movie??

plz help

Load Movie Position
hii to you all
i have a small thing that i need help with.
im creating a minisite that using swf loading.
if you are louding a movie to the main stage its position
will be x-0 y-0 . can i load the movie im other position
, let say x-100 y-150 ?
what do i need to add this code
loadMovieNum("cc.swf", 3);
stop();
thanks
ari (tintoonx)

Load Movie Position
Right, I know how to load a movie into another movie in flash 5.

What I would like to know is how do you set an x y position for it to load to?

Thanks in advance for your help!

Load Movieon A Certain Position.
Hi, I have a problem. I actually load movies using load movie command. Now i want to load movie in a certain position. I have heard someting abt _x, _xmouse bla bla.
I dont know which action will be used.

I want to load dancevent.swf file on linkbar.swf so i can load this movie. There is a button named Events when a user click on events it will load dancevent.swf movie.

But i wana load this movie in a certain position.
Plz guide me and tell me what action and how can i used them

Load Movie On A Certain Position.
Hi, I am using Flash MX with normal mode actionscripting. I want to load a movie named dancevent.swf in linkbar.swf in a particular place. Plz note the following code

on (release) {
loadMovieNum("dancevent.swf", 12);
loadMovieNum("eventmain.swf", 13);
unloadMovieNum(3);
unloadMovieNum(1);
unloadMovieNum(5);
unloadMovieNum(6);
unloadMovieNum(7);
unloadMovieNum(9);
unloadMovieNum(10);
unloadMovieNum(11);
}

So how can i load dancevent.swf in Link bar.swf. I am using a button named Events and this button is placed in linkbar.swf and this code is associated with that button.
Somebody told me to use _x and _y actions. Plz guide and if possible alter this code to give me more clear understanding.

Load Movie Position
how do i determine the position of a empty MC which i want to load separate swf's into.

i want to use the empty clip in different positions.

cheers rat

Load Movie Position HELP Please
I’m loading an external .swf file into my website. The button I am using is nested under 2 movie clips. Here is my dilemma I need to be able to position my movie, If I add a movie clip where the button is nested, give it an instance name then have the .swf load into it, it says “loaded 100%” and then doesn’t play the movie. The way I have it set up now it loads it and then plays but I can position it anywhere. Here is the code on the button.

on (release) {
loadMovie("Shop_Scene 1.SWF",2);

So is there a way to use action scripting to give it a position on the Stage?

Load Button To Certain X, Y Position?
hi guys,


Code:
stop();

this.createEmptyMovieClip("flag1holder", this.getNextHighestDepth());
flag1holder.createEmptyMovieClip("flag1container",this.getNextHighestDepth());
flag1holder.flag1container.attachMovie("BUTTflag1");
flag1container._x=10;
flag1container._y=10;
break;
}
yes this code doesn't work. i need to load a non-component button (BUTTflag1) and i want it to load at a defined position on the stage. i would prefer it didn't have to be loaded into movieclips, but if thats what it takes then ok cool.

please please please help guys, i know this is probably elementary stuff.

thanks in advance!

James

Load A Image At Position X Y
Hello,

i load a image with command "loadMovie ("Image/image12.jpg",1);"
so i see ther picture on the left over at position 1x1 (XxY)

how its possebble the picture at position 21x188 to load?

thanks



--------------------------------------------------------------------------------
Ich verwende die kostenlose Version von SPAMfighter,
die bei mir bis jetzt 92 Spammails entfernt hat.
Für private Anwender ist SPAMfighter völlig kostenlos!
Jetzt gratis testen: hier klicken.

Load Movie Into Position
hi,i created an empty movie clip called 'iranmc' and i want to load a swf file into 'iranmc'. So, on 'iranmc', i applied this script

onClipEvent (load) {
loadMovieNum("iran.swf", "iranmc");
}

However, problem is..when previewed,it doesn't play in iranmc, but it pops up an Internet Explorer browser and plays the video in there. What's the problem? can anyone help me? thanks alot

here's the url of the problem http://www.bitetheblanket.com/video/2.swf

Load External Swf With X And Y Position
I need help

i want to load the external swf and place that movie on the main stage with x and y position.
Does anyone know the actionscript about loadmovie with x and y position?

thank you

Position Of A Load Movie
Hello community
I have this question :
With this AS code :
_root.caption.image_mc.loadMovie("essaicomplex.swf ");
On each thumbnail gallery, by passing the mouse over a thumb It loads a SWF ( larger picture of the thumbnail) till now it is great.
BUT 1 : I can not fix the position of the movie
and 2 : the so called "swf-movie" moves together with my mouse.
I want it locked.
I turn around but do not find.
What do I have to modify ??

Load And Position A Remote Swf ?
hi all

please help

how can i load a movie from a remote server using loadmovie action

and after i load this swf how can i position this movie in the main movie i mean how to align the loaded movie in the main movie

thanks

Load Movie Into Position
hi,i created an empty movie clip called 'iranmc' and i want to load a swf file into 'iranmc'. So, on 'iranmc', i applied this script

onClipEvent (load) {
loadMovieNum("iran.swf", "iranmc");
}

However, problem is..when previewed,it doesn't play in iranmc, but it pops up an Internet Explorer browser and plays the video in there. What's the problem? can anyone help me? thanks alot

here's the url of the problem http://www.bitetheblanket.com/video/2.swf

Load Movie Size And Position?
I'm trying to make a gallery of the sites I have made. I would like to load the swfs into this gallery. The problem being is that the background colour of the swf movie isn't coming through with the imported swf and I would like to reduce the size, (not 100% setting) and set the position.

Load Movie Size And Position?
Hi just a quick question.

I wish to load a swf with and set some properties (_x , _y, and size) , how do I go about it?

I pressume I have to use some action script within a new symbol (movie clip) call the movie clip then give it an instance so I can set properties????

Load Movie Into Certain Position Of The Screen
Hi everyone!

I'm trying to load a movie into level 1, on the top of the main movie.


I want to define x y coordinate, so that it loads to cetain area of the main movie.

As for now, the loaded movie which is smaller than the main parent movie on level 0 is at the top left corner of the screen.


Can anybody tell me how to solve this problem?

thanks

Set Correct X And Y Position Of MovieClip To Load Into?
hello,

i am loading an external swf into a movieclip in my main movie. the main movie and external swf are exactly the same size. most of the time it works just fine, but sometimes, part of the loaded movie seems to load in the top left of the screen (sort of like a graphic glitch, all of the movie still loads where it is supposed to but i sometimes get this situation). can someone tell me the proper way to set the coordinates of the movie clip i am loading into so that i may possibly prevent this from happening? the tute on macromedia's site is a bit confusing. do i set the x and y position by clicking the movieClip once and setting it to 0 and 0 or do i right click the movieClip and select "edit in place" and then set the x and y positions to 0? thanks in advance...

Can We Load A Movie In A Specific Position
I want to laod a movie in a specific position using some scripting. I don't have fla.

Is there any method

Thanks and Regards
Deepak Lohumi

External .Swf Movie Position On Load
For somereason when i load my .swf into a movie container it only shows the movie and doesnt actually play it.

If i use loadMovieNum("chi-tn.swf", 1) it loads and plays it fine.

But i want to be able to put it where i want, and when i have tried using the _x and _y it moves the main movie as well as the external movie, is there a way to specify the external .swf

Many thanks
Alex

Set Size And Position With Load Movie?
Hi! i haven't done flash in about a year, so i feel a little lost! So here's my question:

is it possible to set the size and the position of an external swf if i use the function load movie?

I'm doing my portfolio and want to load some flash i made over the years right into my main swf. but i don't have access to the source code for those old swfs, so i can't resize them the way i want.

thanks!

Load Movie In The Center Position?
hi guys,



i am building a photography site.



i have an editorial section which has thumbnail in it. and

it calls external swf (bigger version of photograph) in it

with ;

on (release) {
gotoAndplay (20)
_parent.aaaa._visible=false;
_parent.photom._visible=false;
_parent.photomm.loadMovie("photos-swf/edi/1.swf");
}

1.swf loads on the desired place, everything is ok.

there is a next button inside "1.swf" that has to call

"2.swf" inside;



on (release) {
loadMovie("photos-swf/edi/2.swf",2);
}


in editorial when i click the next button inside the 1. swf

it calls 2.swf but not at the center of the ditorial. it

puts the swf. left top corner...

plaeasae heeeelppp...

i want 2.swf to load at the center of editorial...

On Mouse Over Load Movie In Position ? Please Help
Hi,

I need to be able to load an external swf file when i roll over an image and place it on a certain position on the screen. Can anyone help me with this... i have been banging my head for ages and i cant get it to work.

Any help would be great.


Cheers,

Neil

Load External Movie Position
Hi everyone

I need to load an external movie and be placed on a specific location on the main flash movie.
Below is the script for loading the external movie, but I can't get the position script to work.

Any assistance will be appreciated
d30n

on (release) {
loadMovieNum("movie.swf", 1);
this._x = 605;
this._y = 210;
}

Load Movie Into A Specific X Y Position
How's it going everyone? I need to know how to load a movie into my main SWF file at a certain X Y position.

Here's my problem:

I have my main template file & I need to load a slideshow into it at a certain X Y position. My "temporary" solution is to simply make the slideshow the same size as the main file & load it via getmovie. Like I said, that's great for a "temporary" solution. But I will soon be using SWISHpix for all of my slideshows. So, I need to know how to load my slideshow into a certain X Y position. I have tried to create an empty movieclip and just load the movie into that, but to no avail.

Any ideas?

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;
}
}
}

Load Movie On Level In Position...?
I need som' help here...

can somebody tell how to load an external swf file into my main movie on _level2 in another position than x: 0, y: 0 – I need it to be loaded to x: 200, y: 0.

I dont want it to be loaded into a movieclip!

Thanx!

*Rob

Thumbnails Change Position On 2nd Load -->
Hi everyone, this is my first post in this great site.
I'm building an XML based gallery, and I used the kirupa tutorials for that (both of them).
but I wanted a grid look for the thumbnails and I found this great post by ikim just for that:
http://www.kirupa.com/forum/showthre...l+gallery+grid

So I managed to suit the code to my gallery and everything is going good.
but there is one problem:
when I press the button that loads the XML (WITH THE THUMBS), they load like they supposed to:

thumbs1.jpg

but when I press again on the button, they load like this:

thumbs2.jpg

and stays like this.. Why is that?

here is the complete code I use to load the images and thumbnails:


Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
thumbnails = [];
_global.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;
thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnailer(i);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("xml/kitchen.xml");
/////////////////////////////////////
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
_global.desc_txt = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
_global.desc_txt = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
_global.desc_txt = description[0];
picture_num();
}
}
function picture_num() {
_global.current_pos = p+1;
_global.pos_txt = current_pos+"/"+total;
}
//////////Load clicked thumbnail Image Function////////////////////////////////////////////////
function callImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
_global.current_pos = p+1;
_global.pos_txt = current_pos+"/"+total;
}
}
//////////Thumbnail maker///////////////////////////////
function thumbnailer(k) {
loaded_counter = 0;
total_thumbs = _global.total;
var container = _parent.pages.gallery.thumbnails.thumbnail_mc.createEmptyMovieClip("th"+k, _parent.pages.gallery.thumbnails.thumbnail_mc.getNextHighestDepth());
container._visible = false;
container._alpha = 0;
var image = container.createEmptyMovieClip("img", container.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue;
_global.desc_txt = description[p];
callImage();
};
target_mc.onRollOver = function() {
var myColor:Color = new Color(this);
var white:Object = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
myColor.setTransform(white);
this.onEnterFrame = function() {
white.rb += 20;
white.gb += 20;
white.bb += 20;
white.ab += 20;
myColor.setTransform(white);
if (white.rb>150) {
white.rb = 0;
white.gb = 0;
white.bb = 0;
white.ab = 0;
delete this.onEnterFrame;
}
};
};
target_mc.onRollOut = function() {
var myColor:Color = new Color(this);
var white:Object = {ra:100, rb:150, ga:100, gb:150, ba:100, bb:150, aa:100, ab:150};
myColor.setTransform(white);
this.onEnterFrame = function() {
white.rb -= 10;
white.gb -= 10;
white.bb -= 10;
white.ab -= 10;
myColor.setTransform(white);
if (white.rb<0) {
white.rb = 255;
white.gb = 255;
white.bb = 255;
white.ab = 255;
delete this.onEnterFrame;
}
};
};
loaded_counter++;
counting_txt = loaded_counter;
if (loaded_counter == total_thumbs) {
grid_maker_01();
}
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "_parent.pages.gallery.thumbnails.thumbnail_mc.th"+k+".img");
}
///////////Layout Functions/////////////////////////////////////////////////////////////////////
MovieClip.prototype.grid_maker_01 = function(f) {
num = 0;
col = 3;
row = (_global.total/3)+1;
scale = 60;
space = 5;
for (l=0; l<row; l++) {
for (j=0; j<col; j++) {
if (num<_global.total) {
with (eval("_parent.pages.gallery.thumbnails.thumbnail_mc.th"+num)) {
_x = ((_width+space)*scale/100)*j;
_y = ((_height+space)*scale/100)*l;
_xscale = _yscale=scale;
_visible = true;
}
num++;
}
}
}
this.cascader();
};
//////////////////////////////////////////////////////////////////////////////////
MovieClip.prototype.cascader = function() {
inter = 200;
c = 0;
delayed_fade = function () {
if (c<_global.total) {
with (eval("_parent.pages.gallery.thumbnails.thumbnail_mc.th"+c)) {
fadein();
}
c++;
} else {
clearInterval(delay);
}
};
delay = setInterval(delayed_fade, inter);
};
///////////////////////////////////////////////////////////////////////////////
MovieClip.prototype.fadein = function() {
this.onEnterFrame = function() {
if (this._alpha<100) {
this._alpha = this._alpha+5;
} else {
this._alpha = 100;
delete this.onEnterFrame;
}
};
};
///////////////////////////////////////////////////////////////////////////////////////
MovieClip.prototype.positioner = function(xDest, yDest, rDest, aDest) {
this.onEnterFrame = function() {
this._x = xDest-(xDest-this._x)/1.2;
this._y = yDest-(yDest-this._y)/1.2;
this._alpha = aDest-(aDest-this._alpha)/1.2;
this._rotation = rDest-(rDest-this._rotation)/1.2;
if ((Math.abs(xDest-this._x)<=1) and (Math.abs(yDest-this._y)<=1)) {
delete this.onEnterFrame;
this._x = xDest;
this._y = yDest;
this._alpha = aDest;
this._rotation = rDest;
}
};
};
//////////////////////////////////////////////////////////////////////////////////
Any help?
tnx in advance..

BTW, the button uses the loadMovie function.

Load Movie On Level In Position...?
I need som' help here...

can somebody tell how to load an external swf file into my main movie on _level2 in another position than x: 0, y: 0 – I need it to be loaded to x: 200, y: 0.

I dont want it to be loaded into a movieclip!

Thanx!

*Rob

How To Load An External Jpg And Set The Position And Size
As title
I will like to load external jpg file into flash movie, but the image always appear in the top corner, how to load the image in certain position (can i use x and y to tell the position? or any other way??)

also if the external image files are all in different sizes, but when it load into flash movie how to set the image in same size? for example inside the image folder there are two jpg files which is 100X50 and 120X40. flash movie likes to load both two images in certain place which have to reduce the size into 50X30! how to make it work???

can anyone help me please?
EC

Load And Position A Child Movie Clip
Hi all!

I am currently making a mini-game using Flash.
Well, I got a silly question, just wondering if anyone can take some time to answer me =P

In my game, when the player click a button, I loads a child movie clip into the current movie clip, at level1
and want to position this child movie clip at a specified location.
I used the following script, attached to a button, to do the task.

on (release) {
loadMovieNum ("childMovie.swf", 1);
setProperty ("_level1/", _x, "300");
setProperty ("_level1/", _y, "280");
}

But when I test the game, as I click the button, the movie loaded and position at the (300, 280) coordinate, and immediately it re-position to (0, 0) again.
Everytime I clicked that button, the childMovie go to (300, 280) and then back to (0, 0) again...
Alternatively, I use the following scripts instead

on (press) {
loadMovieNum ("childMovie.swf", 1);
}
on (release) {
setProperty ("_level1/", _x, "300");
setProperty ("_level1/", _y, "280");
}
The output seems normal and the childMovie doesn't re-position. But when I keep holding down the mouse button, the childMovie stay at (0, 0) and go to (300, 280) as I release the button. This's not wat I expect...

Well, the only thing I want to do is to load a movie at (300, 280) everytime I click the button...
Can anyone give me some suggestion?

Thanks in advance.

X & Y Position Applyed To Load Movie Problem
I am trying to load a movie onto another one. Basically it is a video movie that I want to load at a specific position on my presentation. The load script is:

on(release){
loadMovie("hazbot.swf", 0)
}

where exactly would I put the x & y position in there? Also what syntax? If you could show me an example I would sooooooo appreciate it

thanks
JF

Using LoadMovieNum Or LoadMovie To Load & Position A Movie
I'm trying to load a .swf into another flash file I am creating and have a couple questions.

Should I be using LoadMovieNum or LoadMovie?

Also, I am able to get the movie to load, but I want to position it so it is at _y=100. Can someone tell me how to do this?

Thank you!

Load Movies Of Different Pixel Size At Position?
question.

I want to insert a flash in a site. simple i know, this movie i want to fill the browsers window and also resize if the user reseize the browser window.

1. Question, how do i do that?
2. Does the monitor resolution matters?

When this movie ''A is loaded in the browser, is it possible to load a movie "B" different size in the movie on a specific position and/or center it in the middle of Movie "A"

i plan to load different movies in levels but the main movie "A" is actl. bigger then the other (size/pixel) because it should fill out the browser window.

Thanks if any one can help me

Load External File And Position It Correctly
Hello

Working with Flash MX 2004, I have an illustration of a TV screen with some dvd boxes next to it. When I click on a dvd box, I want an external swf with an embedded video called 'video.swf' to load onto the TV screen. I have a MC called placeHolder on the main movie main timeline which is the same size and position as the TV screen and the external swf, so when the external swf loads, I want it to replace the placeHolder so it's positioned correctly.

How??!!!

Cheers

Load Movie Clip - Which Follows Cursor Position
i want to create a 'tooltip' like effect where rolling over a button will display my new clip but that clip should follow the cursor

so i need something to measure the x,y variables ?

does anyone know what i mean


looking at this:

but.onPress = function () {
_root.createEmptyMovieClip("container", 1);
loadMovie("loaded.swf", "container");
container._x = 150 ;
container._y = 20 ;
}


but changing the press to over

and the x and y coordinates would be variable ?

How Do I Load A Button Position From An External File?
Dear friends,

I'd like to be able to load the initial position of a few buttons in a scene from an external file. With movieclips I use onClipEvent(load){...}, but how to control the initial position of the buttons?
Thanks a lot in advance

Emil



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

SoundChannel.position - Trouble Triggering Event Based On .position
I would like to trigger an addChild event when my mp3 reaches a certain point.

My trace statements will only fire if I use <= but not ==

The goal is to add text to the stage when the MP3 has reached one second, what am I missing?

Ultimately there will be several trigger marks I need to hit along the MP3.


ActionScript Code:
var buffer:SoundLoaderContext = new SoundLoaderContext(10000);var welcome:Sound = new Sound(new URLRequest("Intro.mp3"), buffer);var welcomesc:SoundChannel = welcome.play();addEventListener(Event.ENTER_FRAME, playMessage);function playMessage(event:Event):void{trace(Math.floor(welcomesc.position));if (welcomesc.position == 1000)    {        trace("NOW!!!!!!!");    }    else    {        trace("WAIT-------------");    }welcomesc.addEventListener(Event.SOUND_COMPLETE, soundComplete);}

How To Position Mc_example Depending On Position Of Empty Movieclip?
I have a series of movieclips (graphics) which I want to position in a row.
I know that I can define the position of each movieclip individually by _x and _y. But can I place an empty MC on the stage and define the position of every single MC with _x and _y IN RESPECT TO THE POSITION OF THE EMPTY MC - so that ALL movieclips will change their position when I move the empty mc?

Thanks for helping
Aribert

[F8] Control Position Of Playhead In Movieclip By Position Of A Button
I am fairly new to actionscripting and just need a little help.

I have a bar which has a slideable block on it. When this block is dragged, to the left/right i want it to control the playhead inside another movieclip.

For example, when the block is to the far left, the playhead (of my movieclip) will be at the first frame. When the block is dragged to the right it will play the movieclip at the speed that the block is being moved and when it is at the far right it will be on the last frame of the movieclip. And when the block is dragged to the left it will play the movie backwards at the same speed etc...

It is just like the scrubber bars that are in media players, but instead of playing an actual video, i want to play the movieclip which is of an animation.

How would I do this?

Thanks

Flash Y Position Converted To Browser Scroll Position
I have a Flash movie that makes an fscommand call to the HTML page, and via Javascript, it moves the browser window scroll position down. I need to be able to scroll down to a position that coincides with a Y position on my Flash page, but I can't seem to figure out how to convert coordinates from a Flash Y position to a browser-window vertical scroll position. I hope this makes sense. Does anyone know how to do this? (I have all the code working to do this, except for this coordinate issue. That's the only part I need.)

Example:

Code:
myMC.onRelease = function() {
//Command to Javascript function in html doc
//Scroll down in browser to Y pos specified
//This scrolls down to 1000 position within browser window but
//but does NOT equate to a Y position of 1000 in .swf movie
//even if .swf movie is at 0,0 left & top margins within browser
fscommand("scrollToAnchor",1000);
};
Ultimately, what I am trying to do is simulate anchor points from HTML (not anchor points in Flash to go 'Back'), whereby you have a link at the top of the page, and you click it and it takes you somewhere else lower on the same page. Then you have a link there that says "Back to top", and it takes you back to the top of the page, etc.

Any ideas?

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