Solved

Flash playing: make the flash movie believe it's playing from it's original web site.

Posted on 2008-06-18
11
323 Views
Last Modified: 2010-04-05
Dear experts,

  With such a long title, a short explanation is due. What I have been trying to accomplish is best shown from an example. Let's say that you have a downloaded flash movie that when started up only plays from it's indented website. So playing it embedded from a delphi application isn't working too well.

Is there a work around or a variable to set that will make the flash movie believe its' playing from its' intended website?
0
Comment
Question by:ThievingSix
11 Comments
 
LVL 17

Expert Comment

by:TheRealLoki
ID: 21818982
I'm guessing download the html page source and change the absolute paths to relative paths (or no path at all to sue the same folder). run a cut down version of the html source from the same dir
[shrug] just a guess
0
 
LVL 13

Author Comment

by:ThievingSix
ID: 21819423
The problem is that the flash movie calls GetURL. If it doesn't have //www.mymovie.com/flash, it won't play.
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 21820271
create a override for the function and give it the string it wants ...

type
  TYourClass = TFlashClass
    function GetUrl: string; override;
  end;

function TYourClass.GetUrl: string;
begin
  Result := '//www.mymovie.com/flash';
end;
0
 
LVL 13

Author Comment

by:ThievingSix
ID: 21820684
The problem with that solution is this is an active-x control.
0
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 500 total points
ID: 21821104
Why not just load it from the original location ?


uses ShockwaveFlashObjects_TLB;
 

{$R *.dfm}
 

procedure TForm1.ButtonClick(Sender: TObject);

var f: TShockwaveFlash;

begin

  f := TShockwaveFlash.Create(Self);

  f.Parent := pnl;

  f.LoadMovie(0, 'http://www.flashkit.com/RealMedia/ads/Creatives/OasDefault/Jumpeye_CP_1a/txeff_ad_fk.swf');

  f.Play;

end;

Open in new window

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 21821116
pnl is a TPanel on Form1 called pnl
0
 
LVL 13

Author Comment

by:ThievingSix
ID: 21827470
That does indeed work but I was hoping for a way to have the flash file embedded.(The web site can change the flash movie).

If no responses are made for the answer that I would like I will accept you answer.
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 21829112
Put a readonly on the website flash file ... :)
0
 
LVL 13

Author Comment

by:ThievingSix
ID: 21829266
It's not my flash file.
0
 
LVL 3

Expert Comment

by:Mamouri
ID: 21832571
Using DelphiFlash component (http://www.delphiflash.com/) you can decompile the flash file and replace the ActionScript that uses GetUrl function with your function and create a new flash movie in TMemoryStream and instead of the original movie, load this modified Flash movie.

Also you can do the same thing by decompiling the flash using Sothink Decompiler (http://www.sothink.com/product/flashdecompiler/) and create a new movie that didn't has such limitation and not depend on the location of the movie
0
 
LVL 13

Author Comment

by:ThievingSix
ID: 21835672
I've done that on movies that are not obfuscated, but doesn't work otherwise. I was hoping to catch the getURL after it was called but before it actually got the url.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 94
Delphi XE10, DigitalPersona Fingerprint reader and MySQL 6 222
PDF library for Delphi 2 107
Delphi IDE crash without error message ... 7 76
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now