The error is likely due to your sandbox situation. If you test the site
online you'll likely see the error go away. In order to fix it locally
you'll have to add your desktops work folder to your trustes sites list in
your flash player preferences.
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

The click error is likely due to assigning mouse event functions to the
entire clip. You will probably want to create a button symbol with a square
the exact size of the banner in the HIT frame only and apply the functions
to it.

On Wed, Dec 3, 2008 at 12:28 PM, mike cann <[EMAIL PROTECTED]> wrote:

> Hi Muzak,
>
> I have just tried this and still get the error.
>
> Screenshot of error:
> http://www.mikecann.co.uk/DumpingGround/AS2_Problem01.png
>
> Example Code:
> http://www.mikecann.co.uk/DumpingGround/AS2_StrippedBare_SneakyButton.zip
>
> Also there is another problem. If you click outside of the masked area of
> the advert it still registers it as a click on the loaded movie!?!
>
> Anyone else any ideas?
>
>
>
> 2008/12/3 Muzak <[EMAIL PROTECTED]>
>
> > Use the (very) old invisible button trick.
> > So create a "Button symbol" with only the "hit" state (keyframe) defined
> > and put that on top of the movieclip that holds the loaded swf.
> >
> > ----- Original Message ----- From: "mike cann" <[EMAIL PROTECTED]>
> > To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
> > Sent: Wednesday, December 03, 2008 3:07 PM
> > Subject: [Flashcoders] [AS2] Catching clicks in child clip?
> >
> >
> >  Hello List,
> >>
> >> I have been forced to go back to AS2 recently for a work project and oh
> my
> >> is it annoying me.
> >>
> >> Part of the project I am writing a simple advertising loader, its
> >> basically
> >> just a swf that loads other swfs into it.
> >>
> >> The problem is that the adverts that are loaded in sometimes contain
> >> clicks
> >> within them so without access to the source code i need a method of
> >> preventing those clicks from happening.
> >>
> >> To my knowledge this should be doable by implementing a cover over the
> top
> >> of the loaded swf with a onPress, onRelease etc functions defined
> correct?
> >>
> >> Well for some reason this isnt happenining.
> >>
> >> See the source output below. You can download the project here:
> >> http://www.mikecann.co.uk/DumpingGround/AS2_StrippedBare.zip
> >>
> >>
> >>
> > _______________________________________________
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> Mike Cann
> http://www.mikecann.co.uk/
> http://www.artificialgames.co.uk/
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
--Joel Stransky
stranskydesign.com
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to