Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / May 2008



Tip: Looking for answers? Try searching our database.

Send Variable From ASP to Flash to ASP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
heatherlsi - 17 Apr 2007 01:00 GMT
I'm really, really new to Flash and using Flash 8 Pro.   This is what I'm
trying to do.  I have a list of cars, when someone clicks on a car, they are
taken to a page with details about the car and a flash gallery.  The Flash
Gallery is reads the image files names from an xml file.   I'm really using an
asp file (photos.asp).  Anyway,  I need the pass photos.asp the vin of the car
from flash.  
I did this is the VehicleDetailSaleen.asp screen

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=7,0,19,0" width="600" height="530">
                          <param name="movie"
value="photogallery.swf?VIN=<%=(Recordset1.Fields.Item("VIN").Value)%>">
                          <param name="quality" value="high">
                          <param name="VIN"
value="<%=(Recordset1.Fields.Item("VIN").Value)%>">
                          <embed
src="photogallery.swf?VIN=<%=(Recordset1.Fields.Item("VIN").Value)%>"
width="600" height="530" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash"
vin="<%=(Recordset1.Fields.Item("VIN").Value)%>"></embed>

I just don't know how to catch it in the flash file and send it back....

#include "scripts.as"
LoadVars;
loadPhotoXML("Photos.asp?VIN="+ this.vin);
mclThumbnails.onEnterFrame=function(){
    thumbnailsRoll()
};

function loadPhotoXML(filename:String):Void {
    photoXML.ignoreWhite = true;
    photoXML.load(filename);
    photoXML.onLoad = function(success:Boolean):Void  {
        if (success) {
            photoNumber = 0;
            rootNode = this.firstChild;
            totalPhotos = rootNode.childNodes.length;
            for (var i = 0; i<totalPhotos*2; i++) {
                if (i<totalPhotos) {
                    thumbnails[i] = rootNode.childNodes[i].childNodes[0].firstChild.nodeValue;
                    url[i] = rootNode.childNodes[i].childNodes[1].firstChild.nodeValue;
                    titleText[i] = rootNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                } else {
                    thumbnails[i] =
rootNode.childNodes[i-totalPhotos].childNodes[0].firstChild.nodeValue;
                    url[i] =
rootNode.childNodes[i-totalPhotos].childNodes[1].firstChild.nodeValue;
                    titleText[i] =
rootNode.childNodes[i-totalPhotos].childNodes[2].firstChild.nodeValue;
                }
                thumbnailsLoad(i);
            }
            checkProgressLoad(0);
            caption.text = titleText[0];
        }
    }; .....

Please, I know I don't know anything, but I've been reading forums for 2 days
and everyone seems to have a different  idea but I don't really understand
them.    I just need a simple, do this, then this sort of help.

Thanks,
Heather
heatherlsi - 17 Apr 2007 02:38 GMT
I figured it out, I just used an old fashioned Query String
swasgrafx - 20 May 2008 22:27 GMT
heatherlsi. anyway you can post your resulting code? having probelm with writing a Flash to ASP script... thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.