View Single Post
04-30-12, 12:42 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
The taint is generated because calls to frame:Show() or frame:Hide() are blocked if used on a protected frame while in combat. There is a way around this using SecureStateDrivers, but this is for very specific reasons.

This might be caused by either of the links to Blizzards functions you have. ActionButton_OnLoad() or ActionButton_UpdateAction(). From the taint path, it looks to be the first.



Something you might try is use XML to create a template and use the following in between the <Scripts> tags:
Code:
<OnLoad function="ActionButton_OnLoad"/>
Then reference the template in your CreateFrame() call and set up the rest.

I'm not entirely sure if taint would be passed on to the OnLoad script, but it's worth a try.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 04-30-12 at 01:00 PM.
  Reply With Quote