Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE FLASH:HomeFlash ForumFlash TutorialsFlash Video TutorialsWeb Streaming ForumAdobe FlashPodcast

Re: Importing an interactive .swf file into a full flash site ( AS3 answer)

COW Forums : Adobe Flash

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Share on Facebook
Respond to this post   •   Return to posts index   •   Read entire thread


Laura FloerschRe: Importing an interactive .swf file into a full flash site ( AS3 answer)
by on Oct 20, 2011 at 7:31:40 pm

I get these compiler errors when I put the code I made from your explanation into the button action like this:

on (rollOver) {
gotoAndPlay("s1");
}
on (rollOut, releaseOutside) {
gotoAndPlay("s2");

}
on (release) {
_root.popup_pressed=1;
_root.scrHEIGHT=240
_root.scroller.scroller.gotoAndStop(2);

_root.TM_title = "Artist Biography";
_root.READ = 7;
_root.scroller.gotoAndPlay("s1");
}

var myLoader:Loader = new Loader();

myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, showMySWF);
function showMySWF(e:Event):void {
addChild(myLoader);
myLoader.x=100;
myLoader.y=150;
myLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, showMySWF);
}

myLoader.load(new URLRequest( "Hollywood.swf" ));

These errors appear:
Symbol=p1, layer=Layer 1, frame=1, Line 18 The class or interface 'Loader' could not be loaded.
Symbol=p1, layer=Layer 1, frame=1, Line 20 Statement must appear within on/onClipEvent handler
Symbol=p1, layer=Layer 1, frame=1, Line 21 The class or interface 'Event' could not be loaded.
Symbol=p1, layer=Layer 1, frame=1, Line 28 Statement must appear within on/onClipEvent handler

So I'm guessing I'm DEFINITELY not doing this right. Wow, this code is killing me. Hahaha....I think it's time for a flipping margarita.


Posts IndexRead Thread
Reply   Like  
Share on Facebook


Current Message Thread:




LOGIN TO REPLY



FORUMSTUTORIALSMAGAZINESTOCKYARDVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]