Thanks Philippe,

I tried this:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#000000" width="100%" height="100%" marginBottom="1" marginLeft="1" marginRight="1" marginTop="1" >
<mx:Canvas width="100%" height="100%">
  <mx:ViewStack x="1" y="1"  id="issue1" width="100%" height="100%" vScrollPolicy="off">
     <mx:Canvas id="cover" label="Slideshow" width="100%" height="100%" vScrollPolicy="off" >
      <mx:Loader source="slideshow.swf" width="100%" height="100%" id="slideshow" load="event.target.init({xmlFile:'cover.xml', progressColor:0xCCCCCC})"/>
    </mx:Canvas>
  </mx:ViewStack>
</mx:Canvas>
</mx:Application>

and it builds ok, but the slideshow still doesn't run...

any thoughts Abdul?


On 8/30/05, Philippe Maegerman <[EMAIL PROTECTED]> wrote:
I don't think you can pass variables in URL too, but you could trigger a function that's in function with the Loader onLoad event
<mx:Loader load="event.target.init({xmlFile:'cover.xml', progressColor:0xCCCCCC})">
 
Philippe Maegerman


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Abdul Qabiz
Sent: mardi 30 août 2005 13:50

To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Embedding a slideshow swf that calls image files

Hi,

I think in Macromedia Flash Player 8, you can't pass vars to a SWF file
so something like this might break.

Please test the application in both players before deploying.

-abdul

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Dirk Eismann
Sent: Tuesday, August 30, 2005 5:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Embedding a slideshow swf that calls image
files

Don't know if this will work in your special case but you could try to
load the slideshow.swf into your Flex application by using the Loader
component and pass your parameters in the query string. E.g.

  <mx:Loader id="slideShow"
source="slideshow.swf?xmlFile=cover.xml&progressColor=0xCCCCCC" />

Dirk.
________________________________

From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On
Behalf Of Steve Ocean
Sent: Tuesday, August 30, 2005 12:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Embedding a slideshow swf that calls image files


I have a slideshow generator that does a great job of one task, showing
a particular format of a slideshow. I want to embed this slideshow in a
Flex app. I have looked through the docs and forums and have found
similar questions, but none with exactly the same problem, and I confess
I can't figure out how best to do this.

How, should I put one of these slideshows, or any swf for that matter,
in a contanier, say a viewstack, and pass it the parameters it needs to
function? I need to assume that I cannot change the code of the swf I am
embedding, nor do I have access to the FLA.

Here's the HTML that the slideshow uses to initiate the show and
instruct the swf "player" about where to get files etc:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
<object classid="">codebase="" href="http://download.macromedia.com/pub/shockwave/cabs/flash/swflas" target="_blank" > http://download.macromedia.com/pub/shockwave/cabs/flash/swflas
h.cab#version=7,0,0,0" width="675" height="450" id="cover"
align="middle">
  <param name="FlashVars"
value="xmlFile=cover.xml&progressColor=0xCCCCCC" />
  <param name="movie" value="slideshow.swf" />
  <param name="quality" value="best" />
  <param name="scale" value="scale" />
  <param name="bgcolor" value="#000000" />
  <embed src="" id="cover" quality="best"
flashvars="xmlFile=cover.xml&progressColor=0xCCCCCC" scale="noscale"
bgcolor="#000000" type="application/x-shockwave-flash" width="675"
height="450" pluginspage="http://www.macromedia.com/go/getflashplayer "
/>
</object>
</body>
</html>


Here's the XML in cover.xml:

<?xml version="1.0" encoding="UTF-8"?>
<slideshow effecttime="6" transtime="2" music="08 Dreams of
Eternity.mp3" volume="30" repeat="true" streaming="true">
  <slide filename="1 Ext Sunset Best.jpg" />
  <slide filename="10 Patio to Dia Head.jpg" />
  <slide filename="10.jpg" />
  <slide filename="Sunset Liv Rm 010.jpg" />
</slideshow>

many thanks


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com



________________________________

YAHOO! GROUPS LINKS


      *      Visit your group "flexcoders
<http://groups.yahoo.com/group/flexcoders> " on the web.
       
*      To unsubscribe from this group, send an email to:
      [EMAIL PROTECTED]
<mailto: [EMAIL PROTECTED]?subject=Unsubscribe>
       
*      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/ > .


________________________________





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Software design and development Macromedia flex
Software development best practice


YAHOO! GROUPS LINKS



------------------------------------------------------------------
**STATEMENT OF CONFIDENTIALITY**

This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.
------------------------------------------------------------------




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to