SlideShowPro Account Center: User Forums

You are not logged in.

#1 2010-02-07 03:29:01

stevemunro
New Member
Registered: 2009-11-09
Posts: 5

Embed SSP into a SWF?

I'm trying to embed SSP (standalone) into a SWF, does anyone know how to do this?

Steve

Offline

 

#2 2010-02-07 07:51:35

pacno
Veteran Member
Registered: 2006-03-15
Posts: 192

Re: Embed SSP into a SWF?

You could load your ssp.swf into a movieclip in your "main" swf

Create an empty movieclip in your fla, place it on your stage, where you want to have the ssp to display (movieclip will load content from top/left), give it an instance name like "mySSP", or whatever.

make a frame on your timeline, when you want to load your ssp,  to add actionscript:

mySSP.loadMovie("ssp.swf");

If the timeline reaches that point with the actionscript, it should load the "ssp.swf" into the movieclip "mySSP"
Actually this is AS 2, I don't know if it is the same in AS 3.

Offline

 

#3 2010-02-07 15:07:23

stevemunro
New Member
Registered: 2009-11-09
Posts: 5

Re: Embed SSP into a SWF?

Hi Pacno, thanks for your reply but no, this doesn't work.  Here's a link so you can see what's happening: www.backlitfilms.net (press the showreel button).

I've now advanced a little bit by adding the following code to the first action frame:

var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest("showreel/showreel.swf");
myLoader.load(url);

but I get the view of the loader only with the following text being shown in Flash's 'Output' dialogue:

    at net.slideshowpro.slideshowpro.data::XMLParser/ioErrorHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
Error: [object XMLParser] Slideshow data cannot be found.

Check the value of XML File Type in the Component Inspector panel
to ensure its value is correct.


    at net.slideshowpro.slideshowpro.data::XMLParser/ioErrorHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()


The video works fine (i.e. the xml is coded right etc) on its own but not when trying to embed it within another swf.
If it helps anyone to give advice, I'm using Flash CS4 and AS3.  ANy help would be greatly appreciated as I would love SSP to work with this new site I'm trying to develop.

Kind regards,

Steve

Last edited by stevemunro (2010-02-07 15:09:30)

Offline

 

#4 2010-02-07 23:12:57

pacno
Veteran Member
Registered: 2006-03-15
Posts: 192

Re: Embed SSP into a SWF?

Hi Steve,

I just tested your code in a new fla (only one frame with your code)  and the "slideshowpro.swf", which comes with the standalone version (1982) demo and it works perfect for me, it loads the slideshowpro.swf into the "main" swf.
Make a test by yourself to see if that works for you too with the "standard" XML File etc.

Offline

 

#5 2010-02-08 01:08:07

stevemunro
New Member
Registered: 2009-11-09
Posts: 5

Re: Embed SSP into a SWF?

Hi Pacno, thanks for your advice.

My problem though is not that I'll be creating a new SWF (I'm fine with all that, including having SSP up and running on something else).  My problem is that I need it to load into this: www.backlitfilms.net (showreel button) which is an Activeden file.  I've contacted the author of the template and he suggested that I got in touch with SSP as his design has the code to load an external SWF, hence my problem - I need to integrate the two but SSP has its own files (such as xml etc) whereas the web design is to load a SWF.  Any advice (if you need clarification please let me know!)

Kind regards,

Steve

Offline

 

#6 2010-02-09 00:22:16

stevemunro
New Member
Registered: 2009-11-09
Posts: 5

Re: Embed SSP into a SWF?

Think I've found the problem - trying to embed an AS3 into an AS2...

ANy advice on SSP conversion to AS2 (or embed into AS2)?

Steve

Offline

 

#7 2010-02-09 23:47:50

stevemunro
New Member
Registered: 2009-11-09
Posts: 5

Re: Embed SSP into a SWF?

Got it up and running ( www.backlitfilms.net ).  Fortunately with SlideShow Pro there is an AS2 and an AS3 plug-in so there was virtually no work to be done after the problem was identified.

Thanks for help though,

Steve

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson