View Single Post
  #6 (permalink)  
Old 07-24-2009, 07:27 PM
Destroy All Monsters Destroy All Monsters is offline
Junior Member
 
Join Date: May 2009
Location: UK
Posts: 9
Default

Hello again. Is there any about when the replacer for SWFKit Pro 3 will be available? My client has purchased SWFKit Online but we're still having some problems getting the FLVs to work despite following the instructions given here. I am using a blank movie as the main movie then changing it to the actual movie as recommended above. This works fine but the FLVs still aren't playing.

I've tried everything I can think of to get it working but something just isn't right. Frustratingly it works exactly as required using a demo of SWFKit 3 so the updated replacer would be my preferred solution.

If that's still a way off, can I run this past you to see if there's anything obvious that I'm doing wrong? Here's the structure of my project:

PHP Code:
Movies
|---> blank.swf

Attachments
|---> Computer
      
|---> Application (contains slides.swf i.emain movie)
            |---> 
media
                  
|---> flv
                  
|---> mp3
                  
|---> slides (contains SWFs for loading into main movie)
            |---> 
xml (contains XML files detailing what FLVMP3 and SWFs to load
And here's the code I use in the initialise script:

PHP Code:
//Initialize
var path getAdditionalFile();
Application.setBasePath(path);

Application.onGetMovie = function (movie) {
    
movie.value getAdditionalFile("slides.swf");
    return 
true;
}

Application.onMovieLoaded = function (movie) {
    
FlashPlayer.setVariable("_root.MEDIA_PATH_FLV"getAppDir() + "media\\flv\\");
}

return 
true
The Application.onMovieLoaded part is how I send the path that the EXE is running in to the main movie. This works in that it passes the correct path to the SWF but the SWF does not do anything with it. I have tried many, many different combinations of file paths, directory structure, etcetera and nothing works. The FLVs just will not play no matter what I do.

Can you shed any light on what I'm doing wrong or - preferrably - tell me when the new replacer for use with SWFKit 3 will be ready?

Thanks for all your help.
__________________
Thanks!

Jonathan Porter
Destroy All Monsters
Reply With Quote