Load FLV and skin

.NET Edition of the F-IN-BOX
markm
Posts: 3
Joined: Mon Jun 18, 2007 10:07 am

Load FLV and skin

Postby markm » Mon Jun 18, 2007 10:12 am

Hi,

I'm trying to load an SWF, FLV and supporting skin from streams.
I've specified the files in my SWF and am trying to use the OnLoadExternalResourceByRelativePath event to trap access. When i run in debug the SWF gets loaded, the event gets fired correctly for the request for the skin file, but not the for the FLV... Any ideas?

Thanks,

Mark.

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

Postby Softanics » Mon Jun 18, 2007 7:34 pm

Thank you for your question.

Do you mean that FLV path is not passed to the OnLoadExternalResourceByRelativePath handler?
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

markm
Posts: 3
Joined: Mon Jun 18, 2007 10:07 am

Postby markm » Mon Jun 18, 2007 9:50 pm

Indeed, the "primary" SWF containing the references to the two files (an SWF containing the skin and an FLV containing the movie) is loaded correctly from stream.
I'm expecting the two references to make the OnLoadExternalResourceByRelativePath fire twice; once for the skin, once for the movie. Unfortunately, it only fires once for the skin and not for the movie afterwards...

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

Postby Softanics » Tue Jun 19, 2007 5:44 am

f-in-box doesn't call OnLoadExternalResourceByRelativePath for a FLV which are loading by a relative path.

If you can edit the movie, change the FLV URL into something like "http://..."

If not, I can suggest you the following.

For example, you have f_in_box__control f_in_box__control1. You should handle f_in_box__control1.AxCode.OnLoadExternalResourceByFullPathEventHandler event.

Load your movie:
f_in_box__control1.FlashProperty_Movie = "http://PRIVATE_AREA/main_movie.swf"
You receive this URL "http://PRIVATE_AREA/main_movie.swf" in the handler of the f_in_box__control1.AxCode.OnLoadExternalResourceByFullPathEventHandler event.
Then your movie loads, for example, "1.flv" -- you receive "http://PRIVATE_AREA/1.flv" in the handler. And so on.

In the handler, you provide content of each resource (movie, Flash Video, ...).
Best regards, Artem A. Razin,

F-IN-BOX support

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

markm
Posts: 3
Joined: Mon Jun 18, 2007 10:07 am

Postby markm » Tue Jun 19, 2007 7:49 am

Yep, that did the trick, thanks a lot!


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 14 guests

cron