Send Variable From ASP to Flash to ASP

Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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,...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default Re: Send Variable From ASP to Flash to ASP

    I figured it out, I just used an old fashioned Query String
    heatherlsi Guest

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139