The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 23, 2019, 06:06:23 AM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: redirects from within flash  (Read 2340 times)
freedom1972
Rookie
**
Offline Offline

Posts: 17


View Profile
« on: October 30, 2007, 07:38:15 PM »

I have a flash product demo that I want to iframe on my landing page. Inside of the product demo, from time to time a link will come up "click for more info" etc. I would like to be able to control the destination.

As I dont have access to the flash code, my first thought would be that when they click the link maybe I could capture an event with javascript and redirect at that time? Any thoughts on best way to pull this off?
Logged

No links in signatures please
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #1 on: November 01, 2007, 10:07:41 AM »

Eeek, that's a toughy. The flash redirect will avoid you in JS completely - unless they've provided a hook to talk to the flash bia JS, there's no way from a pure client perspective that your can adjust it.

Have you tried to decompile the flash, modify it and recompile it? I have not down that but I know it can be done... but that solution is only viable if you are providing it from your servers.

If you are providing an ad from another server, then off the top of my head the only way I can think of doing this is to check if the URL that you DONT want them going to is at least grep-able in the flash code... so that you could proxy the request for the ad through your server, grep and replace the URL with one of your own making... that's a wild-eyed hack, but it *might* work. So, the ad code on your site would point to your own server, which makes the request for the flash, gets it, modifies it on the fly (or has it cached if it's not dynamic) and sends it out to the surfer. Yuck tho...
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
freedom1972
Rookie
**
Offline Offline

Posts: 17


View Profile
« Reply #2 on: November 01, 2007, 01:58:49 PM »

great ideas. Most of mine have been along the same lines of ugly over elegant. I have requested that the manufacturer just let me have access to the source or to recompile on their side with my urls instead of theirs. the URL in the flash takes them away from the page, so I could always do a popup of some sort on exit and then just move it to the front - still, now they have the Trusted manufactures page open as well on their screen which could cause me some challenge. Maybe I will have luck convincing them I will make them more money if they just follow along.
Logged

No links in signatures please
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!