
cclooksgood
Posts: 48
|
| Posted: 07/20/2007, 2:15 PM |
|
have seen a few different posts as to the best way to integrate CC, XML and a Flash SWF. I am looking to find out which is the best.
I will have a SWF sitting in a CC page lets call it album.aspx?albumid=6
Which now has a grid of image paths from the album table for all those record that have a foreign key value of 6.
The album.swf sitting in the album.aspx calls a feed.xml file which is on the flashvar xml path = embed statement.
I have seen post where people are doing custom SQL before certain events. I have seen others call another page that can retrive the records. I have also seen others move the data from the grid into a label and the place the label in the embed statement.
Two questions:
1) which is the best way of doing it
2) I have tried to do it and do not have the skill.
Does anyone have the actual code that I Can view? Or does anyone want to do this and I can pay you.
Thanks
|
 |
 |
DonB
|
| Posted: 07/24/2007, 7:09 PM |
|
I should think you just need to put the appropriate XML filename/pathname in
your data source query, then stick a label in the HTML where your flash is
embedded and assign it the value of that data source result. No 'custom'
SQL, just build it normally in the Query Builder. Of course you COULD build
this with the data source only returning the foreign key value, but I think
putting it all into the SQL is simpler to maintain.
In other words, treat this as just another column of data that your grid
would generate. But slightly rearrange the HTML in the <!-- BEGIN ROW -->
.... <!-- END ROW -->
section to construct the appropriate flash html block.
--
DonB
http://www.gotodon.com/ccbth
"cclooksgood" <cclooksgood@forum.codecharge> wrote in message
news:246a125dfcf462@news.codecharge.com...
> have seen a few different posts as to the best way to integrate CC, XML
and a
> Flash SWF. I am looking to find out which is the best.
>
> I will have a SWF sitting in a CC page lets call it album.aspx?albumid=6
>
> Which now has a grid of image paths from the album table for all those
record
> that have a foreign key value of 6.
>
> The album.swf sitting in the album.aspx calls a feed.xml file which is on
the
> flashvar xml path = embed statement.
>
> I have seen post where people are doing custom SQL before certain events.
I
> have seen others call another page that can retrive the records. I have
also
> seen others move the data from the grid into a label and the place the
label in
> the embed statement.
>
> Two questions:
>
> 1) which is the best way of doing it
> 2) I have tried to do it and do not have the skill.
>
> Does anyone have the actual code that I Can view? Or does anyone want to
do
> this and I can pay you.
>
> Thanks
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
|
|
|
 |
cclooksgood
Posts: 48
|
| Posted: 07/25/2007, 3:31 PM |
|
Don,
I have tried this and it does't work. I have created an instance in Flash called feed.xml.
On the HTML or aspx page that holds the swf, it calls the feed.xml file which is basically a cc.aspx page but renamed .xml that uses a grid to get the images needed and puts the right xml code around it. This does not work.
Rather than call the XML file, are you saying embed the swf in the page with a grid and a label and that label is called by the FLASH?
|
 |
 |
cclooksgood
Posts: 48
|
| Posted: 07/25/2007, 3:47 PM |
|
Page that holds Flash - notice that Flashvars that call MYXML File
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"
"http://www.w3.org/MarkUp/Wilbur/HTML32.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Slide-Show</title>
<style type="text/css">
body {
margin:0;
padding:0;
background:#ffffff;
}
table {
width:100%;
height:100%;
}
td {
vertical-align:middle;
text-align:center;
}
</style>
</head>
<body>
<table cellspacing="0" cellpadding="0">
<tr>
<td><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="650" height="500" id="Slide-Show" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Slide-Show.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="xmlfile=myXML.xml" />
<embed src="Slide-Show.swf" quality="high" bgcolor="#ffffff" width="650" height="500" name="Slide-Show" align="middle" FlashVars="xmlfile=myXML.xml" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></td>
</tr>
</table>
</body>
</html>
__________________________________________________________________
Now this is the myxml.xml file
<?xml version="1.0" encoding="UTF-8"?>
<gallery>
<album title="465 Panorama" description="Interior Photos Presented by Victor Voss ye yes yes yes yes yes yes yes"
lgPath="images/"
tnpath="images/">
<img src="1.jpg" caption="testl asldjf a;df a"/>
<img src="2.jpg" />
<img src="3.jpg" />
<img src="4.jpg" />
<img src="5.jpg" />
</album>
<album title="test">
</album>
</gallery>
________________________________________________________________
All I Need to do is based on the page I am on, I will have a different result set which means different images are then shown in the Flash.
|
 |
 |
DonB
|
| Posted: 07/25/2007, 7:48 PM |
|
Define 'does not work'...
The XML file is expected in the same location as the swf file, or else you
have to include the path to it.
Does the swf open the file or is it not found? Is the file opened but not
correctly read by the swf? Beats me why you renamed an aspx to xml. That
seems like it would no longer execute the code in it. I don't suppose the
flashvar HAS to be an XML-type name. Anything should work as long as it
feeds the correct data to the swf.
--
DonB
http://www.gotodon.com/ccbth
"cclooksgood" <cclooksgood@forum.codecharge> wrote in message
news:246a7cf3c00118@news.codecharge.com...
> Don,
>
> I have tried this and it does't work. I have created an instance in Flash
> called feed.xml.
> On the HTML or aspx page that holds the swf, it calls the feed.xml file
which
> is basically a cc.aspx page but renamed .xml that uses a grid to get the
images
> needed and puts the right xml code around it. This does not work.
>
> Rather than call the XML file, are you saying embed the swf in the page
with a
> grid and a label and that label is called by the FLASH?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|

|
|
|
|