# Scanning a .fla for Action Script Code?

**URL:** https://forum.kirupa.com/t/scanning-a-fla-for-action-script-code/230160
**Category:** Uncategorized
**Created:** [June 23, 2007, 7:32am UTC](https://forum.kirupa.com/t/scanning-a-fla-for-action-script-code/230160 "2007-06-23T07:32:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ultra](https://avatars.discourse-cdn.com/v4/letter/u/a587f6/32.png) [@Ultra](https://forum.kirupa.com/u/Ultra)
#### Post date: [June 23, 2007, 7:32am UTC](https://forum.kirupa.com/t/scanning-a-fla-for-action-script-code/230160/1 "2007-06-23T07:32:11Z")

</div>

Hi,

I bought this template 'cause I wanna use certain stuff for my page.

Unfortunately when I copied out the parts that I need, they don’t really work anymore, probably because some Action Script Code is missing or has to be adjusted…

I managed to adjust certain parts of code that I found so it’s working partially but not all of it…

So here’s my question:

Is there any way of scanning a .fla file for Action Script Code ?

I mean finding the keyframes with the ‘a’ on top of it is not the problem, but sometimes when u apply action script code to a movieclip the ‘a’ is not displayed in the timeline, which makes it super hard to find those entries…

Thanx for your help in advance !

Mike

P.S.: If anybody is interested in the detail of the problems that I have here’s the info:

The part that I wanna use is a preview thumbnail bar which has an arrow on top and bottom of it - when u press them it moves the preview thumbnails bar up / down to reveal the other thumbnails.

It does it very nice & smoothly with a good portion of easing at the end that’s why I wanna use this transition.

Also: if there are no more preview thumbnails to show the button stops working which is perfect.

Here’s the code that is applied to the preview thumbnails (which is a movieclip) - it’s all Action Script 2 :

onClipEvent (load) {  
accel =0;  
rate = 0.05;  
trace(\_y)  
\_root.ykoord=20.5;  
}

onClipEvent(enterFrame) {  
y=y\*accel+(\_root.ykoord-\_y) \* rate;  
\_y+=y;  
if(Math.abs(\_root.ykoord-\_y)\<1) { \_y=\_root.ykoord; }

}

–\> I’m guessing that I’m missing some Action Script in general in that fla.

–\> Is ykoord a var or what does it refer to ? I tried to find that term via the help function but a no go…

–\> If it is a var it would have to be established somewhere which means i’m missing that code…

Here’s the code that is applied to one of the arrow buttons:

on (rollOver) {  
gotoAndPlay(“S1”);  
}  
on (releaseOutside, rollOut) {  
gotoAndPlay(“S2”);  
}  
on (release) {  
if (\_root.ykoord\>-200) {  
\_root.ykoord -= 308;  
}  
}

The rollover effect for the button is working, just when u click on them nothing is moving / transitioning.

Like I said, in the original template the code is working and unfortunately my action script skills are very, very limited…

Any help is very much appreciated ! 😉

Mike
