I have no idea how to debug that. Perhaps Charles can tell if it is a
crossdomain issue.


--- In [email protected], "uclamerrick" <merr...@...> wrote:
>
> Thank you for helping.
> 
> What I meant was that when I click the image nothing happens.
> 
> Also, I was not clear with the local vs remote - my swf file can be
> embedded much like youtube, vimeo etc... 
> 
> When the swf file is generated from the code below and still on my
> laptop clicking the image takes me to the desired URL. 
> 
> But then pretend I work at Youtube, and when I export the swf to a
> youtube server and someone else embeds the swf file on a page on
> xyzdomain.com, clicking the image does not work.
> 
> I tried switching this to a button to make sure it was not an image
> thing, I got the same result.
> 
> The results I describe were on Firefox and Safari on a mac, I have to
> install windows on a virtual machine to test that.
> 
> 
> --- In [email protected], "valdhor" <valdhorlists@> wrote:
> >
> > Works for me:
> > 
> > <?xml version="1.0" encoding="utf-8"?>
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> > layout="absolute">
> >      <mx:Script>
> >          <![CDATA[
> >              import flash.net.navigateToURL;
> > 
> >              public var myURL:String;
> > 
> >              private function imageClick(evt:MouseEvent):void
> >              {
> >                  myURL = "http://www.yahoo.com/";;
> >                  navigateToURL(new URLRequest(myURL), "_self");
> >              }
> >          ]]>
> >      </mx:Script>
> >      <mx:Canvas>
> >          <mx:ApplicationControlBar>
> >              <mx:Image source="@Embed('logo.gif')" id="logo"
> > click="imageClick(event);"/>
> >          </mx:ApplicationControlBar>
> >      </mx:Canvas>
> > </mx:Application>
> > 
> > SWF, HTML file etc on the remote server.
> > 
> > What do you mean when you say "does not work"? Do you get an error
> > message?
> > You click the image and nothing happens? Something else?
> > 
> > 
> > --- In [email protected], "uclamerrick" <merrick@> wrote:
> > >
> > > I have an Image on an ApplicationControlBar and I am trying to
make it
> > > such that when the image is clicked, the current browser
window/tab is
> > > redirected to a URL. It works when the swf file is opened
locally, but
> > > not if its a remote swf file. I am guessing this is some security
> > > issue, and am wondering if anyone has found a way around this.
> > >
> > > This works
> > > Opening the swf file locally, and clicking the image loads the
new URL
> > > as specified in the imageClick function below.
> > >
> > > This does not work
> > > Opening the swf file remotely using an html page with object/embed
> > > code and clicking the image *does not* load the URL.
> > >
> > >
> > > import flash.net.navigateToURL;
> > >
> > > public var myURL:String;
> > >
> > > private function imageClick(evt:MouseEvent):void {
> > >  myURL = "http://www.yahoo.com/";;
> > >  navigateToURL(new URLRequest(myURL), "_self");
> > > }
> > >
> > > <mx:Canvas...>
> > >  <mx:ApplicationControlBar...>
> > >   <mx:Image
> > >    source="@Embed('logo.png')"
> > >    id="logo"
> > >    click="imageClick(event);"
> > >   />
> > >   ...
> > >  </mx:ApplicationControlBar>
> > > </mx:Canvas>
> > >
> >
>


Reply via email to