|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
LoadMovie
Hiya again!
Made a mc called movie4 in my main swf and in movie4 i put a loadmovie script, but its default position is in the top left corner, how do i specify the x and y axis? Thx in advance. |
|
#2
|
|||
|
|||
|
Hi, theres a few different ways:
newClip = loadMovie("newMovie.swf", 1); newClip._x = 50; newClip._y = 25; or: _root.movie4._level1._x = 24; _root.movie4._level1._y = 2; The second form might be easiser if you put it in another movie. So you would have movie4->newextramovie->newMovie. Then you can use: _root.movie4.extramovie._x = 22; _root.movie4.extramovie._y = 12; |
|
#3
|
||||
|
||||
|
Thx Tann.
But, i have bg.swf that is the main movie and in that one i made a mc named movie4 and in movie4 i put the loadmovie script calling for player.swf, so i couldent get the scripts u made to work. Hope u can still help me. |
|
#4
|
|||
|
|||
|
Hi, inside movie4 put:
newClip = loadMovie("player.swf", 1); newClip._x = 50; newClip._y = 25; |
|
#5
|
||||
|
||||
|
Hi.
Still doesent work, its up in the left top corner Well i will struggle on anyway. Thx again, Tann. |
|
#6
|
|||
|
|||
|
Hi, ok try this out if you have the time, again this goes inside movie4:
newClip = this.createEmptyMovieClip("subHolder", 1); newClip.loadMovie("player.swf"); newClip._x = 50; newClip._y = 25; if your using flash 5 try: this.createEmptyMovieClip("subHolder", 1); subHolder.loadMovie("player.swf"); subHolder._x = 50; subHolder._y = 25; |
|
#7
|
||||
|
||||
|
Wow!
Thats great, thx, it worked even better, it positioned itself exactly where i put the mc movie4 so i dont really need the x and y axis anymore Thx alot Tann, u r the man. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > LoadMovie |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|