Hi actions masters… :o)
I have a problem with one of the actions I posted on Friday which at the time I didn’t realise I had a problem with, but now after re-testing this morning I have discovered a bit of a snag…
now I may be a little dim here (more than likely) but I am getting an error within a circumstance which I have never come across before, where by I get an an error when I first launch freeway and use the CSS3 Gradient action for the first time and this is ONLY on the first use… after I have cleared the error within the action palette and regardless if its been applied to a new item or even a new file it works fine. I can close all the documents/files down and then create a new doc, apply the action to a new box and its fine. Has any one ever come across this before?
What it seems to be doing is failing on the first parameter QUOTE: the parameter has no properties… but thats the odd thing as it doesn’t matter which parameter it is because if I move it about a bit it fails on the first one it comes across. Obviously I am missing something pretty spectacularly simple!!! but for the life of me. I cant see what it is… especially as I have used something similar in the past without any problems…
I have looked at it and looked at it and cant see the problem especially as it only happens the once on the initial start up of freeway… so can anyone else see the problem or the obvious blinder I have made…
Here is the link to the action: http://www.actionsforge.com/actions/view/201-css3-gradients
I’ve seen this before - are you doing initialisation stuff on parameters in the fwInterface callback? If so it may be trying to access a parameter before it has been created. Try putting a conditional around the block that is doing something with the parameters such as:
if(fwParameter.parameterYouWantToAccess)
{
// Go for your life
}
// Fail happily and run on the next iteration
Hope this helps,
Joe
On 16 Aug 2010, at 13:49, max wrote:
Hi actions masters… :o)
I have a problem with one of the actions I posted on Friday which at the time I didn’t realise I had a problem with, but now after re-testing this morning I have discovered a bit of a snag…
now I may be a little dim here (more than likely) but I am getting an error within a circumstance which I have never come across before, where by I get an an error when I first launch freeway and use the CSS3 Gradient action for the first time and this is ONLY on the first use… after I have cleared the error within the action palette and regardless if its been applied to a new item or even a new file it works fine. I can close all the documents/files down and then create a new doc, apply the action to a new box and its fine. Has any one ever come across this before?
What it seems to be doing is failing on the first parameter QUOTE: the parameter has no properties… but thats the odd thing as it doesn’t matter which parameter it is because if I move it about a bit it fails on the first one it comes across. Obviously I am missing something pretty spectacularly simple!!! but for the life of me. I cant see what it is… especially as I have used something similar in the past without any problems…
I have looked at it and looked at it and cant see the problem especially as it only happens the once on the initial start up of freeway… so can anyone else see the problem or the obvious blinder I have made…
Here is the link to the action: CSS3 Gradients - ActionsForge
Yep that was near enough, or at least it pointed out the problem…
Because I had copied it from another action I just realised I had made a mistake and I was making the action jump in before the document was ready
cheers Jo for pointing it out.