Re: [Flashcoders] .swf's containing html's location

2006-06-16 Thread Aaron Buchanan
Bump for any ideas? On 6/14/06 9:44 PM, "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.onLoa

Re: [Flashcoders] .swf's containing html's location

2006-06-15 Thread Aaron Buchanan
That's a cool way to do that. Unfortunately, I am unable to modify the embed, as it's automated by the ad serving application. Thanks though! Aaron On 6/14/06 10:46 PM, "Rajat Paharia" <[EMAIL PROTECTED]> wrote: > Here's something I tried that might work if you have control over the code > used

Re: [Flashcoders] .swf's containing html's location

2006-06-14 Thread Rajat Paharia
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

Re: [Flashcoders] .swf's containing html's location

2006-06-14 Thread Aaron Buchanan
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 serve

Re: [Flashcoders] .swf's containing html's location

2006-06-14 Thread Aaron Buchanan
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: >

Re: [Flashcoders] .swf's containing html's location

2006-06-14 Thread Jameson Hsu
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 On 6/14/06, Aaron Buchanan <[EMAIL PROTECTED]> wrote: Forgot to embed fonts. The variable servedToUrl, defined o

Re: [Flashcoders] .swf's containing html's location

2006-06-14 Thread Aaron Buchanan
Forgot to embed fonts. The variable servedToUrl, defined on line 2, was a typo, should have been servingUrl, which is what was embedded into the textfield and being set from the onLoadError event. I moved the test into a more permanent place and uploaded the flas, incase anyone wanted to take a l

Re: [Flashcoders] .swf's containing html's location

2006-06-14 Thread Jameson Hsu
Aaron, I don't think that your example is working. The "This ad is being served to" field is empty in your example. Also your variable "servedToUrl" isn't being utilized in the code that you provided. Did I overlook something? Jameson On 6/14/06, Aaron Buchanan <[EMAIL PROTECTED]> wrote:

Re: [Flashcoders] .swf's containing html's location

2006-06-14 Thread Aaron Buchanan
Without being able to execute any js, I'm not sure I could get that to work? Unless I tried via raw js calls via ExternalInterface(). But that would only work for flash 8 ads, and we get away with very little of those, the majority is still F7. Thanks though! Aaron On 6/14/06 4:17 PM, "[EMAIL PR

Re: [Flashcoders] .swf's containing html's location

2006-06-14 Thread Weyert de Boer
Nice one! :-) ___ Flashcoders@chattyfig.figleaf.com 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

Re: [Flashcoders] .swf's containing html's location

2006-06-14 Thread stacey
You could also tap into the history of the page with the js history object - and either embed that via params or use external interface. Not sure how reliable that is but its an idea. > I am doing some flash ads and was trying to find out if there is a > property that I can read the url of the htm

Re: [Flashcoders] .swf's containing html's location

2006-06-14 Thread Aaron Buchanan
The problem is that the only thing I can deliver is a .swf file. I cannot pass anything in because it is served by an ad tracking system. Thx tho :) On 6/14/06 4:07 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > You can send a parameter in source code like: > manualy > and src="main.swf

Re: [Flashcoders] .swf's containing html's location

2006-06-14 Thread Aaron Buchanan
Alright, I had a theory that if you were to try and load a relative file that didn't exist, you might be able to catch the path within the MovieClipLoader.onLoadError() event, by reading the ._url property of the movieclip that you were trying to load into. This seems to be working fine, if there

RE: [Flashcoders] .swf's containing html's location

2006-06-14 Thread [EMAIL PROTECTED]
You can send a parameter in source code like: manualy and "> and " ... note: if current page in a folder <%Request.ServerVariables("URL")%> gives you "foldername/test.asp" mail2web - Check your email from the web at http://mail

[Flashcoders] .swf's containing html's location

2006-06-14 Thread Aaron Buchanan
I am doing some flash ads and was trying to find out if there is a property that I can read the url of the html page that called my current .swf file. I know that MovieClip._url will tell me where the .swf file's sitting, but what do I read for the serving page's location? Thx! Aaron __