What is the Max Length of a single line of ActionScript?

I’m getting an odd error in the console, and I think it may be due to hitting the maximum length of a single line of actionscript. The error only happens when trying to take action.

What is the maximum? I think I’ve seen it referenced somewhere, but I haven’t turned it up yet.

I was able to do a line of actionscript >100,000 characters long without any weird console errors. The console handles it just fine while the Fixlet debugger crashes.

The actionscript was literally just run cmd.exe “{true or true or true or true or … or true}”

1 Like

similarly I copied the very long line into another task and that removed the error.

I also made a very long line and did not have an error.

Now I created a new task and have been copy and pasting parts of the original until I have copied everything and so far no errors.

Very strange.

Maybe try copying all the parts till the fixlets look identical and then exporting both fixlets and using a comparison tool (I use Beyond Compare) and seeing if there are any disparities?

1 Like

That is a good idea, but copy everything into a new fixlet/task worked, so I don’t know if it is worth investigating what the issue was.

I have a feeling that the issue was I was making copies of existing items and editing them. I think there was something in the MIME data causing issues.

1 Like

Well I think I figured out the issue.

The copy of the item that wasn’t working was in the MasterActionSite and the one that was working was not. I made an exact copy of the one in the MasterActionSite to a custom site, and now it works just fine.

Apparently I have a bug in my console session relevance javascript related to the MasterActionSite.

A very unusual problem.

1 Like