Be a Supporter!

API Ad loader questions...

  • 253 Views
  • 4 Replies
New Topic Respond to this Topic
RaccoonButter
RaccoonButter
  • Member since: Sep. 4, 2012
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
API Ad loader questions... Feb. 7th, 2013 @ 12:08 AM Reply

Quick info:

I don't know Actionscript worth a damn
I have read every bit of the API instructions and FAQs in the NG Wiki

That being said, I still have a problem. I want to put an ad loader into my Flash. I download the file, bring it into Flash CS6 (I've tried on my friend's CS4 as well), and put it in the first frame. I put my API ID into the properties box and (a) cannot find any input field for the Encryption Key, and (b) receive compiler errors upon launching the SWF. The two errors are as follows:

Symbol 'Flash Ad' 1017: The definition of base class FlashAdBase was not found.

, Line 1 5000: The class 'com.newgrounds.components.FlashAdBase' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.

Could somebody please give simple but descriptive steps on how to successfully get an ad loader to work for a dumbass such as myself? The SWF skips the first frame and I'd like to fix it. Thanks guys, metaphorical blowjobs for everyone who helps out.

RaccoonButter
RaccoonButter
  • Member since: Sep. 4, 2012
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to API Ad loader questions... Feb. 8th, 2013 @ 11:02 AM Reply

I should also add that I need help, if that much wasn't clear

RaccoonButter
RaccoonButter
  • Member since: Sep. 4, 2012
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to API Ad loader questions... Feb. 20th, 2013 @ 10:14 PM Reply

I've been having the SAME PROBLEM dude. Every time I try to export the SWF, compiler errors show up and it pisses me off. I can't tell what's wrong. I've followed the instructions. Help would be appreciated.

Cyberdevil
Cyberdevil
  • Member since: Jan. 17, 2004
  • Offline.
Forum Stats
Supporter
Level 49
Writer
Response to API Ad loader questions... Feb. 24th, 2013 @ 08:48 AM Reply

I'm using Flash CS4, so here's a step-by-step guide for how I'd add the loader:

1. ) Open my own file, and open the NG file at the same time.
2. ) Copy the component from the NG file to your own file, place it on the first frame.
3. ) Double click on the component, and you'll be taken inside the main component movieclip.
4. ) Now just mark/click the component, and a box like the one below should be seen in a panel to your left, fill in all the info there. If it isn't showing, make sure the 'Properties' panel is open. I'm using the classic layout mode. There are some other options you could change apart from entering API and encryption key, like if you want simple ads or video ads, etc. Info for all of those are in the wiki.
5. ) After it's done, exit the component and add a stop(); to the first frame of your submission. Without that it will just skip right past the loader.

Also, make sure you're using the right version of actionscript for the API.

Hope that works!

API Ad loader questions...

Cyberdevil
Cyberdevil
  • Member since: Jan. 17, 2004
  • Offline.
Forum Stats
Supporter
Level 49
Writer
Response to API Ad loader questions... Feb. 24th, 2013 @ 08:49 AM Reply

Oh btw, the panel should to be your right, not left. :P