
Welcome Guest
|
#1
|
|||
|
|||
|
Scanning a .fla file for Action Script ?
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 |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A useful tips about how to extract .swf file from a PowerPoint file | susanzheng | General Flash | 0 | 11-02-2005 07:56 AM |
| Falsh pic slideshow with XML file - Mod needed | mlcompumedic | XML & Sockets | 0 | 06-22-2005 05:36 PM |
| Load file in script | psants | Flash MX ActionScript |
2 | 06-18-2004 11:46 PM |
| Running a PHP Script in the Background | shaggy_LFC | Flash MX ActionScript |
2 | 06-09-2004 08:19 AM |





