# FB6 Beta - possible AfterAction bug

**URL:** https://www.finalbuilder.com/forums/t/fb6-beta-possible-afteraction-bug/2956
**Category:** Bugs
**Created:** [March 6, 2008, 1:29am UTC](https://www.finalbuilder.com/forums/t/fb6-beta-possible-afteraction-bug/2956 "2008-03-06T01:29:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mikep](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@mikep](https://www.finalbuilder.com/forums/u/mikep)
#### Post date: [March 6, 2008, 1:29am UTC](https://www.finalbuilder.com/forums/t/fb6-beta-possible-afteraction-bug/2956/1 "2008-03-06T01:29:31Z")

</div>

Hi,

I have found that my AfterAction scripts are not being run after the action.&nbsp; I believe they are being run before the action.

This is what I wanted to do, but didn't work:

- Clear project variable
- Run Action List [My Action List]&nbsp;&nbsp; (project variable assigned in this action list) 
  - AfterAction script: log variable

- log shows project variable is NOT set

&nbsp;

However, this works:

- Clear project variable
- Run Action List [My Action List]&nbsp;&nbsp; (project variable assigned in this action list)
- Run Script: log variable
- log shows project variable IS set

&nbsp;

The script (JavaScript) is exactly the same in both scenarios.&nbsp; I am calling a global script.

Am I missing something here, or is the behavior not correct?

Thanks,  
Mike

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [March 6, 2008, 11:17am UTC](https://www.finalbuilder.com/forums/t/fb6-beta-possible-afteraction-bug/2956/2 "2008-03-06T11:17:00Z")

</div>

Hi Mike,   
  
 Thanks for reporting this. We’ve investigated, and it’s actually a bug with AfterAction script events for the Run Action List action. That script actually runs before the child action list runs, it’s a limitation of the stepping engine in FinalBuilder.   
  
 The bug is present in FB 5 and FB 6. The workaround is to put a Run Script or similar action after the Run Action List action, like you did.   
  
 I’m not sure what we can do to fix this. Previous FB versions had that script event locked-out, but due to backwards compatibility we’re reluctant to do that again - in case people are running scripts there.   
  
 I’ll follow this up and get back to you.   
  
 Regards,   
  
 Angus
