Here's something I tried that might work if you have control over the code
used to do the embed. You'll need to set allowScriptAccess to "always" and
set the name/id in the OBJECT/EMBED tags to the same as the variable
embedName. This doesn't require any javascript to be embedded in the page.
This sets a variable named "location" to the location of the HTML page. You
should wait a frame or two before trying to read it.

getURL ('javascript:document.getElementById("' + embedName+
'").setVariable("location", window.location.href); void (0);');

I have in my notes that this only worked in IE, but can't remember the
specifics. Also won't work on MySpace where they overwrite allowScriptAccess
to "never".

Crazy the hoops you need to jump through to even attempt to get this
information.

best, - rajat


On 6/14/06, Aaron Buchanan <[EMAIL PROTECTED]> wrote:

After I asked, I found a bunch of people mentioning this bug. Sorry for
bein
lazy.. According to some livedocs post, we cannot rely on this event
because:

"The problem is that the MovieClipLoader.onLoadError function is triggered
by 404 HTTP error... as far as I know, nor mozilla or CF based servers
return 404 error to flash.. that's why it doesn't work..."

FROM:

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/h
tml/wwhelp.htm?context=Flash_MX_2004&file=00001579.html

So I tried not using the moviecliploader class, and just using a loadmovie
then an iterative function to watch the movieclip's _url property to
change,
but it didn't.

I guess the clip's _url value will only be updated once the load has
finished, or an error has been returned. Otherwise it's still waiting for
something to load (as indicated by the status "waiting for
lab-media.com...").

Anyone else have any ideas? I'm about out, sigh.

Thx!
Aaron


On 6/14/06 9:06 PM, "Aaron Buchanan" <[EMAIL PROTECTED]> wrote:

> Interesting find Jameson! I just ran it on a pc here at the office and
it
> worked in IE and failed in Firefox. It also fails on OS X in firefox.
>
> Anyone know of any issues with onLoadError not being triggered from
firefox?
>
> Thx!
> Aaron
>
>
> On 6/14/06 8:45 PM, "Jameson Hsu" <[EMAIL PROTECTED]> wrote:
>
>> I think I figured out the problem.  Your solution only seems to work
when
>> running Safari.  I'm running Firefox on a PC so that's why your
examples
>> weren't working for me.
>>
>> Jameson
>
>
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Rajat Paharia
[EMAIL PROTECTED]
http://www.bunchball.com
http://www.rootburn.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to