Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-21-2002, 09:44 PM   #1
Biscutty
Member
 
Join Date: Jul 2002
Location: London
Posts: 82
Default position loaded movie..

I want lo load a movie into a level as below:

loadMovieNum("aer_map.swf", 1);

but i want to position the swf in a certain position.. could anyone help me with the code for this?

thanks
Biscutty is offline   Reply With Quote
Old 10-21-2002, 10:28 PM   #2
robocop
Registered User
 
Join Date: Oct 2002
Location: Iowa
Posts: 30
Send a message via AIM to robocop
Default

Hey there biscutty buddy.....its actually very simple.....create a BLANk movie clip on your main timeline and add an instance name "container" to it.....

what this is going to be is the upper left edge of your movie.....in other words, whereever this point is is wher the upper left edge of your loaded SWF will be.....so place it accordingly......i can attach a file to explain what i mean.....

then, set your action to this.....

loadMovie("myswf.swf", _root.container);

this will replace the blank movie clip currently on the stage with whatever you load in.....hope this helps.....
kc
robocop is offline   Reply With Quote
Old 10-22-2002, 08:32 AM   #3
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: EGYPT
Posts: 12,439
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

or
ActionScript Code:
_level1._x = 100 _level1._y = 50

but you need to make sure that it's fully downloaded before assigning your script
__________________
â€* GOD Is Near â€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 10-22-2002, 02:58 PM   #4
robocop
Registered User
 
Join Date: Oct 2002
Location: Iowa
Posts: 30
Send a message via AIM to robocop
Arrow

i do have a question concerning loading external movies.......

say i have an action in like frame one to load "movie1.swf" to load into the blank movie clip "container"......lets also say that its like a 20k file and a lot of people on dial up are going to see this.....then like after that is done playing (currentframe=totalframes) the next movie "movie2.swf" loads in....and so on.....

well, sometimes the movie wont load up right away on dial up......it will like skip some of the external clips and what not.....i even put preloaders on them and still, some of them hit and miss.....kinda frustrating....anyone know whats goin on?

thanks

kc
robocop is offline   Reply With Quote
Old 10-22-2002, 03:20 PM   #5
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: EGYPT
Posts: 12,439
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

yeah, if u do that the script should be very neat, there is a tut in the tutorials section by Jesse for that
__________________
â€* GOD Is Near â€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 10-22-2002, 03:21 PM   #6
robocop
Registered User
 
Join Date: Oct 2002
Location: Iowa
Posts: 30
Send a message via AIM to robocop
Default

what do you mean by 'very neat'......the script is fine.....it just hits and misses on slower connections.....u know where the tutorial is at? or what i should search for? also, does anyone know how to add a unique identifier to an image being called by a javascript function?

kc
robocop is offline   Reply With Quote
Old 10-22-2002, 03:33 PM   #7
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: EGYPT
Posts: 12,439
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

http://www.actionscript.org/tutorial...er/index.shtml
__________________
â€* GOD Is Near â€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:35 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.