# Problem Unclear

**URL:** <https://forum.kirupa.com/t/problem-unclear/314727>\
**Category:** flash\
**Created:** [October 7, 2010, 3:28am UTC](https://forum.kirupa.com/t/problem-unclear/314727 "2010-10-07T03:28:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tas\_man](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@tas\_man](https://forum.kirupa.com/u/tas_man)\
**Post date:** [October 7, 2010, 3:28am UTC](https://forum.kirupa.com/t/problem-unclear/314727/1 "2010-10-07T03:28:09Z")

</div>

Can anyone see what makes this code not work for all pages.

[FONT=Courier New]import flash.display.DisplayObject;[/FONT]  
[FONT=Courier New]import flash.display.Sprite;[/FONT]  
[FONT=Courier New]import flash.events.MouseEvent;[/FONT]  
[FONT=Courier New][/FONT]  
[FONT=Courier New] [/FONT]  
[FONT=Courier New]var swf:MovieClip;[/FONT]  
[FONT=Courier New]var loader:Loader = new Loader();[/FONT]  
[FONT=Courier New][/FONT]  
[FONT=Courier New][/FONT]  
[FONT=Courier New]hippies\_mc.addEventListener(MouseEvent.CLICK, myClickReaction1);[/FONT]  
[FONT=Courier New] [/FONT]  
[FONT=Courier New]function myClickReaction1(e:MouseEvent):void {[/FONT]  
[FONT=Courier New] trace(“I was clicked!”);[/FONT]  
[FONT=Courier New] var my\_loader:Loader = new Loader();[/FONT]  
[FONT=Courier New] my\_loader.load(new URLRequest(“hippies.swf”));[/FONT]  
[FONT=Courier New] addChild(my\_loader);[/FONT]  
[FONT=Courier New] my\_loader.x=250;[/FONT]  
[FONT=Courier New] my\_loader.y=9;[/FONT]  
[FONT=Courier New][/FONT]  
[FONT=Courier New]}[/FONT]  
[FONT=Courier New][/FONT]  
[FONT=Courier New][/FONT]  
[FONT=Courier New]space\_mc.addEventListener(MouseEvent.CLICK, myClickReaction2);[/FONT]  
[FONT=Courier New] [/FONT]  
[FONT=Courier New]function myClickReaction2(e:MouseEvent):void {[/FONT]  
[FONT=Courier New] trace(“I was clicked!”);[/FONT]  
[FONT=Courier New] var my\_loader:Loader = new Loader();[/FONT]  
[FONT=Courier New] my\_loader.load(new URLRequest(“space.swf”));[/FONT]  
[FONT=Courier New] addChild(my\_loader);[/FONT]  
[FONT=Courier New] my\_loader.x=250;[/FONT]  
[FONT=Courier New] my\_loader.y=9;[/FONT]  
[FONT=Courier New] [/FONT][FONT=Courier New]}[/FONT]  
[FONT=Courier New][/FONT]  
[FONT=Courier New]helpus\_mc.addEventListener(MouseEvent.CLICK, myClickReaction3);[/FONT]  
[FONT=Courier New] [/FONT]  
[FONT=Courier New]function myClickReaction3(e:MouseEvent):void {[/FONT]  
[FONT=Courier New] trace(“I was clicked!”);[/FONT]  
[FONT=Courier New] var my\_loader:Loader = new Loader();[/FONT]  
[FONT=Courier New] my\_loader.load(new URLRequest(“helpus.swf”));[/FONT]  
[FONT=Courier New] addChild(my\_loader);[/FONT]  
[FONT=Courier New] my\_loader.x=250;[/FONT]  
[FONT=Courier New] my\_loader.y=9;[/FONT]  
[FONT=Courier New] [/FONT][FONT=Courier New] [/FONT]  
[FONT=Courier New]}[/FONT]  
[FONT=Courier New][/FONT]  
[FONT=Courier New][/FONT]  
[FONT=Courier New]tribute\_mc.addEventListener(MouseEvent.CLICK, myClickReaction4);[/FONT]  
[FONT=Courier New] [/FONT]  
[FONT=Courier New]function myClickReaction4(e:MouseEvent):void {[/FONT]  
[FONT=Courier New] trace(“I was clicked!”);[/FONT]  
[FONT=Courier New] var my\_loader:Loader = new Loader();[/FONT]  
[FONT=Courier New] my\_loader.load(new URLRequest(“tribute.swf”));[/FONT]  
[FONT=Courier New] addChild(my\_loader);[/FONT]  
[FONT=Courier New] my\_loader.x=250;[/FONT]  
[FONT=Courier New] my\_loader.y=9;[/FONT]  
[FONT=Courier New][/FONT]  
[FONT=Courier New]}[/FONT]  
[FONT=Calibri][SIZE=3] [/SIZE][/FONT]
