Problems loading from a live webserver

.NET Edition of the F-IN-BOX
Jeff
Posts: 2
Joined: Thu May 04, 2006 3:33 pm

Problems loading from a live webserver

Postby Jeff » Thu May 04, 2006 3:51 pm

the URL: http://www.ytv.com/sitekick/mShowcaseIndex.swf has a SWF that pulls in external SWF files to generate what the user sees.

I would like to grab that final look of the SWF and save as BMP but when i try loading it in all I geta are the resources directly in the SWF... basically just the text.

the following code works fine if all of the elements are located directly in the one SWF but it does not seem to work if the SWF calls external SWF files for more info.


Code: Select all

         string flashUrl = "http://www.ytv.com/sitekick/mShowcaseIndex.swf";
         WebClient myClient = new WebClient();
         Stream response = myClient.OpenRead(flashUrl);
            FlashPlayerControl1.PutMovieFromStream(response);
         response.Close();


could you show me the proper code to make this happen?

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu May 04, 2006 5:57 pm

Thank you for your question.

The current version doesn't support streaming, i.e. loading from a custom stream. But in your case you can use the property FlashProperty_Movie:

Code: Select all

string flashUrl = "http://www.ytv.com/sitekick/mShowcaseIndex.swf";
FlashPlayerControl1.FlashProperty_Movie = flashUrl;
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

Jeff
Posts: 2
Joined: Thu May 04, 2006 3:33 pm

Postby Jeff » Thu May 04, 2006 7:05 pm

that worked perfectly! thanks.

if the game concept goes thorugh i imagine I'll be buying the component this weekend.

I don't suppose there's the ability to save directly out to GIF or JPG is there? I can manipulate that on my end but if its all in one place that's even better.


thanks for the help,

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu May 04, 2006 7:56 pm

Jeff wrote:I don't suppose there's the ability to save directly out to GIF or JPG is there?


You can get a bitmap of a current frame and save it in any format.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 3 guests