# Import .fla into mc

**URL:** <https://forum.kirupa.com/t/import-fla-into-mc/65082>\
**Category:** Uncategorized\
**Created:** [September 22, 2004, 10:23pm UTC](https://forum.kirupa.com/t/import-fla-into-mc/65082 "2004-09-22T22:23:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shorty116](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@shorty116](https://forum.kirupa.com/u/shorty116)\
**Post date:** [September 22, 2004, 10:23pm UTC](https://forum.kirupa.com/t/import-fla-into-mc/65082/1 "2004-09-22T22:23:57Z")

</div>

i found a .fla which i would like to use for a flash movie, problem is if i copy the frames from the .fla and paste it into a new movieclip it won’t work anymore. which part of the script would i have to change?

```auto

scrollbar.bg = bg;
scrollbar.hini = scrollbar._height;
scrollbar.yini = scrollbar._y;
texto.yini = texto._y;
scrollbar.onPress = function(){
procesaRastro(true);
this._parent.texto.onEnterFrame = mueveTexto;
this.track.onEnterFrame = setTrack;
var izq = this._x;
var dere = this._x;
var top = this.yini;
var bottom = this.yini + (this.bg._height - this.hini)+3;
startDrag(this,false,izq,top,dere,bottom);
}
scrollbar.onRelease = scrollbar.onReleaseOutside = function(){
procesaRastro(false);
delete this.track.onEnterFrame;
stopDrag(); 
}
function procesaRastro(v){
if(v){
var count = 0;
this.onEnterFrame = function(){
count++;
if(count%2 == 0){
attachMovie("anima2","anima"+count,count);
attachMovie("anima2","anima"+(count+1),count+1);
var uno = this["anima"+count];
var dos = this["anima"+(count+1)];
uno._x = this.scrollbar._x;
uno._y = this.scrollbar._y;
dos._x = this.scrollbar._x;
dos._y = this.scrollbar._y + (this.scrollbar._height-dos._height)+5;
}
}
}else{
delete this.onEnterFrame;
}
}

function setTrack(){
var scroll = this._parent;
var bg = this._parent.bg;
var curr = scroll._y - bg._y;
var total = bg._height - scroll._height + 10;
var por = (curr/total);
if(por>1) por = 1;
_root.POR = por;
this._y = por*scroll.hini;
}

function mueveTexto(){
var por = this._parent.POR;
var d = -(this._parent.bg._height-this._height);
this._y =Math.floor(-por*d+ this.yini);
}

```

you can see how it shall look here: [http://www.e-tonilopez.com/after-ho...ves/000205.html](http://www.e-tonilopez.com/after-ho...ves/000205.html)

thanks in advance

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 28, 2004, 6:28am UTC](https://forum.kirupa.com/t/import-fla-into-mc/65082/2 "2004-09-28T06:28:35Z")

</div>

did you name the new movie clip’s instance? and since the local this is used, perhaps you need to add \_root.instance.this as the original script was written in the root level.  
just a thought.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 28, 2004, 8:55am UTC](https://forum.kirupa.com/t/import-fla-into-mc/65082/3 "2004-09-28T08:55:43Z")

</div>

there are some var’s that point out to stuff that isnt in the code , maybe thats the problem ;), maybe learning the code and watch how it all works than create your own code , this way you have done it all by yourself (with a little help ofcourse) and you have learned a lot 🙂 grts
