PDA

View Full Version : JavaScript and VBScript Injection in ActionScript 3


Arodicus
03-26-2008, 01:38 AM
My tutorial "JavaScript and VBScript Injection in ActionScript 3" is ready for review. Thank you.

Peter McBride, aka "Arodicus"

Jesse
03-26-2008, 01:48 AM
Wow. Not only is it detailed, but it's perfectly formatted for the CMS!*

I noted that on Pages 4 and 5 some of the code blocks had paragraph breaks in them whic the highlighter unforunatley reads as HTML and highlights. I've fixed them up. The solution is to copy your code into Notepad or similar before copying it into the WYSIWYG editor.

Also on Page 6 there's a long javascript line which breaks the page width unless you put [ code ] markup around it. I'm doing that one now...

Awesome work! Approved.

* Isn't it sad when I start to get excited about that...

Arodicus
03-26-2008, 07:30 PM
LOL! Thanks!

I majored in Journalism, focusing on editing and layout, and know what a pain in the arse it is to convert other people's work into specific formats. I vowed early on I would never do that to someone else, so I kept the live preview (as opposed to the smaller preview pane) open all the time.

Sorry about the embedded html - I thought I'd gotten all of it...

The hardest parts though were getting code blocks to not drop on that first floating adspace, and the fact that really long comments inside code blocks won't wrap and break the interface. Also, that video you made was a godsend - I'd never have thought to write-click and "paste as Word", which helped tremendously.

I'm half tempted to make a Word template (preset styles) along with a macro that automatically factors in your layout, to ease the pain... hmm... maybe more than half tempted...

;)

Arodicus
03-26-2008, 07:59 PM
Oops... looks like we missed one on the last page, though... the last script (now second-to-last) has this line:

var _isIE = (_userAgent=="")?false:(_userAgent.indexOf("MSIE")!= -1); ExternalInterface.call("alert", "Internet Exploder:" + _isIE);

There should be a new line right before ExternalInterface, or else it breaks your layout...

Jesse
03-27-2008, 10:14 AM
Awesome, I've made the update. Sorry I didn't respond sooner; I'm not getting notifications for replies on these forums for some strange reason.

Thanks again.