Ask a Question related to Macromedia Flash Data Integration, Design and Development.
-
heatherlsi #1
Send Variable From ASP to Flash to ASP
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.It em("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 Guest
-
LoadVars-using send to pass a variable from flash to php
For the life of me, I've tried everything: I've researched LoadVars on Adobe forum, used David Powers' books, googled 'flash to php', LoadVars,... -
send a variable from flash to flashcom
Hi All, I'm trying to send a variable from my flash project to the flash comm server. In my main.asc file, I use some remoting code to update a... -
Using Javascript to send a variable to FLASH
Hello... If I send a variable to my site... Example --> http://mysite.com/?variable=test How do I import that variable into my FLASH... -
Send variable from Flash to HTML
I have a quiz in Flash. I want to take the quiz results (testscore) and send it to an HTML page to be assigned to a variable. How do I send... -
flash variable send to director
I have a problem, I needs send since flash to director a string but i can't. I found a example in director support that send a variable numeric to... -
heatherlsi #2
Re: Send Variable From ASP to Flash to ASP
I figured it out, I just used an old fashioned Query String
heatherlsi Guest
-
swasgrafx #3
Re: Send Variable From ASP to Flash to ASP
heatherlsi. anyway you can post your resulting code? having probelm with writing a Flash to ASP script... thanks
swasgrafx Guest



Reply With Quote

