Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-13-2004, 11:11 AM
Junior Member
 
Join Date: Aug 2004
Posts: 27
Default PLAYING EXTERNAL FLV USING SWFKIT PROJECTOR

Dear topcmm:
Have a nice day

I realy Appreciate your quick replies , which proved that your company is one of the most respectable companies as you are not only offering the product but you support all your customers and as fast as you can so thank you again.

as for playing FLV file from SWFKIT projector , I tried the scripts that you recommeded but still have the same problem. the swf can play the FLV file but the SWFKIT projector not. so I desicded to send you the source files for flash MX & SWFKIT to see what's wrong in them & I hope you can help me in this issue.

Please, right click on the link below to download the zipped file that include the sources.

multidesign.multiservers.com/file.zip

Thank you again for your help
Reply With Quote
  #2 (permalink)  
Old 08-13-2004, 01:58 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:PLAYING EXTERNAL FLV USING SWFKIT PROJECTOR

Thank you.

Firstly, we must say sorry for we've made a mistake. The mediaplayback component doesn't follow the "base path" rule. Even if you've set the proper base path, it still cannot find the flv movie. You have to use the absolute path name.

When you convert a swf to exe using SWFKit by checking the "pack movies" option, swfkit will pack the movies in the output exe file. When you run the exe file, the swf movies will be extracted to a temporary folder. Then the problem comes. The temporary folder is different from that of the exe file. But the flv is in the same folder as the exe file. So the swf file and the flv file are in different folders. At last, the swf file CANNOT find the flv file!

The same problem will occur if you want to load an exeternal swf file. The problem can be solved by the "Application.setBasePath" method. After the proper base path has been set, the main swf file can find other swf files under the base path.

But the method doesn't help in this case. It seems that the "setBasePath" has nothing to do with the mediaplayback component. You have to use the absolute path name. Say the flv is in the folder "d:\myflvs", the url of the mediaplayback component must be "d:\myflvs\media.flv".

The attached sample shows how to play the external media.flv file.

In frame 1, the sample calls the "loadFLV" function in FFish script. The loadFLV function converts the relative path name to the absolute path name and fires the trigger component in Flash. The handler of the trigger component plays the flv file.
Reply With Quote
  #3 (permalink)  
Old 08-13-2004, 02:01 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:PLAYING EXTERNAL FLV USING SWFKIT PROJECTOR

The output exe file
Reply With Quote
  #4 (permalink)  
Old 09-15-2005, 07:41 PM
Member
 
Join Date: Sep 2005
Posts: 31
Default i have some problem

i have used testflv.zip file .It is working properly here but there is one problem
i'm making cd presentation and i have 8 flvs which have 8 buttons to open the file . all r working good.

but when i click some other link for example pdf page then the running video have not stopped .

is there any option that when i click some other page then the active video will stop and when i came back on video page then on click the specific button it will play the video again?????

waiting for reply

reply me soon i have deadline
Reply With Quote
  #5 (permalink)  
Old 09-18-2005, 12:38 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:PLAYING EXTERNAL FLV USING SWFKIT PROJECTOR

Sure, you can. You can stop the playing in action script, something like

Code:
on (release) 
{
  // stop the playing movie
  xxx.stop();
  getUrl("my.pdf");
}
Reply With Quote
  #6 (permalink)  
Old 09-18-2005, 04:13 PM
Member
 
Join Date: Sep 2005
Posts: 31
Default Re:PLAYING EXTERNAL FLV USING SWFKIT PROJECTOR

i apply this script but after stopping the ruuning video. i cant play again that movie.

can u send me the sample file ???
Reply With Quote
  #7 (permalink)  
Old 09-20-2005, 09:51 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:PLAYING EXTERNAL FLV USING SWFKIT PROJECTOR

Please send the files to support@swfkit.com or sales@swfkit.com, we will help you to make it work.
Reply With Quote
  #8 (permalink)  
Old 09-20-2005, 08:16 PM
Member
 
Join Date: Sep 2005
Posts: 31
Default Re:PLAYING EXTERNAL FLV USING SWFKIT PROJECTOR

i have send u source file at sale@swfkit.com,sale@swfkit.com,support@swfkit.com

please solve my problem i have deadline
Reply With Quote
  #9 (permalink)  
Old 10-30-2005, 12:47 PM
Member
 
Join Date: Oct 2005
Posts: 87
Default Re:PLAYING EXTERNAL FLV USING SWFKIT PROJECTOR

it seems can't dowload the sample file ;D
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:21 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.