Passing Flash Variables to ASP

Hello everyone,
New problem, I even read other peoples posts. I am working on
a program that would send a subject to an .asp form, but the
subject line doesn't want to pass.
The code that I have in my flash program in the last frame
is:
mySendVars = new LoadVars();
mySendVars.Subject = "Subject Line";
mySendVars.send("mail.asp", "_self", "POST");
It is to open the mail.asp form, which it does, but alas, no
subject line.
The script that I have to accept the subject line is:
<% @Language = "VBScript" %>
<%
Option explicit
Response.Buffer= true
Response.Expires = -1441
Session("Email")=("[email protected]")
Session("Subject")
%>
<html>
<head>
<title><% Response.Write (Session("Subject"))
%></title>
<link rel="stylesheet" type="text/css" href="l.css">
<script LANGUAGE="JavaScript">
code to process if the form is filled out properly
<p align="center">You have successfully completed the
<% Response.Write (Session("Subject")) %>Program.
To do the evaluation<a href="otherprogram.asp">click
here</a>.</p>
The evaluation also opens, but there is no subject
line....which isn't a surprise if the subject variable isn't
passing.
Any help would be appreciated!
Thank you all in advance!

I'm working on a similar problem where the asp script won't
send the email body. What I'm wondering about your problem is
whether the way you specify the subject ("Subject Line") is an
instance name or variable of the text field. The asp script I'm
using utilizes instance names.
So my question is, do you have the subject text field named
properly in your Flash movie?

Similar Messages

  • Pass flash variables to server - the best way?

    I am using URLVariables at the moment to pass flash variables to the server via php script and update a database rows.
    var variables:URLVariables = new URLVariables();
    At the moment around 9 variables are sent which are then updated in the mysql db.
    I have read that calls to the database via php are the main source of traffic or at least one of them. I am talking about 100 - 500 concurrent users.
    Obvously I am going to need expert help medium term but I would like to give things a go myself.
    I have read about amfPHP but I don't seem to understand it too well.
    Also, I can cut down the amount of php calls per user as I have them all over the place for lots of games and mini exercises.
    BUT is it possible to get those nine variables into an object and pass the object. Would one object be faster than passing 9 variables and would that object be placed into one cell of the mysql databse.
    What would that look like? At the moment I can read my db easily but if there is an object in there, how do you read that?
    Is that what serializning is? Passing an object and all the data is converted to binary etc...
    As you see I'm a little lost.
    Thanks in advance.

    Just my two cents.
    URLVariables is one of the ways to construct url query. There is no difference in doing it either way (second way is faster):
    var request:URLRequest = new URLRequest("http://www.google.com/page.html");
    var variables:URLVariables = new URLVariables();
    variables.var0 = 3;
    variables.var1 = "blah";
    request.data = variables;
    sendToURL(request);
    OR JUST
    sendToURL(new URLRequest("http://www.google.com/page.html?var0=3&var1=blah"));
    I guess object serialization will be less efficient because, I suspect, it will be a larger string and it is much more processor intensive of both Flash and server side.
    I also suspect that http servers have a very efficient way to parse and process requests and variables that come with it - after all this is server's first and the most important duty.
    My point is that I don't believe there is anything better than sending data with query string unless there is a need for obfuscation.
    As a proof - the fact that large volume and frequent updates sites like advertising servers never use anything but plain old query strings attests to the above points.
    As far as DB updates speed goes - it has nothing to do with the means info is sent but rather is a consequence of server and DB performance aspects. It's just a matter of money :-)

  • Pass Flash Variables To Javascript, How????

    How can I pass variables to be used on the page the flash is embed?

    See ExternalInterface:
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInter face.html
    Create a JavaScript method which handles the variables flash sends out.
    ExternalInterface.call('JavaScriptMethod',arguments);

  • Using Flash Variables in Excelsius

    Dear Experts.
    I have a dashboard in Xcelsius which has multiple sheets(60 Sheets) where navigation to every other page is done using the push buttons " Back and Next ". This functionality is working fine without creating any issues. Now, the customer wants to print the various sheets at one shot. But, this functionality cant be incorporated in Xcelsius as we can print only one sheet at a time. Hence they decided to use Crystal reports to build the whole functionality again. Now, i thought of a solution where, if we could pass Flash variables for the push buttons from Xcelsius to Crystal reports 2008 and embed this particular SWF into CR, then we could somehow build these different sheets in CR and get the print out at one shot.
    Please give me tips on how to use the Flash Variables both in Xcelsius and Crystal Reports.
    Thanks in Advance,
    Kishan

    Hi:
       1. For configure flash var under Xceslius designer:
         1.1 Open xceslius.
         1.2 Click "Manage Connection".
         1.3. Choose "Flash Variable".
         1.4. Create variable and give name and binding to excel range.
         1.5. Export to swf.
       2. Consume flash var under crystal report 2008
         2.1 Open crystal report.
         2.2 Click "Insert Flash Object".
         2.3 Browser the swf you just created and add it into crystal report designer.
         2.4 Right click the flash object and right click your mouse.
         2.5 Choose "Flash Data Expert..."
         2.6 Click "+" button to add flash variable. and input your custom data. (note the flash variable name should be the same with defined in swf)

  • Loading Variables from ASP into Flash

    I can find plenty of tutorials detailing how to load
    variables from a defined asp page into Flash, but here's my
    dilemma...
    I have an asp page that is reading a URL with a unique
    identifier in it (www.sampleURL.com?id=123456), and then turns the
    id number from the URL into a variable. On the same page then, sits
    my swf where I need to use LoadVars to pull in that ASP variable
    via Actionscript. If I don't have a static asp page to pull the
    variables in from and I want to pass the variable within the same
    asp page the swf is located on, how do I do it? Many thanks in
    advance...

    "bonzomn65" <[email protected]> wrote in
    message
    news:ej0630$pjh$[email protected]..
    >I can find plenty of tutorials detailing how to load
    variables from a
    >defined
    > asp page into Flash, but here's my dilemma...
    >
    > I have an asp page that is reading a URL with a unique
    identifier in it
    > (www.sampleURL.com?id=123456), and then turns the id
    number from the URL
    > into a
    > variable. On the same page then, sits my swf where I
    need to use LoadVars
    > to
    > pull in that ASP variable via Actionscript. If I don't
    have a static asp
    > page
    > to pull the variables in from and I want to pass the
    variable within the
    > same
    > asp page the swf is located on, how do I do it? Many
    thanks in advance...
    >
    You don't need LoadVars for this at all. You can just pass
    the variable to
    your Flash movie by specifying a query string when you are
    calling the
    movie.
    If you are using the straight object, embed method then it
    would look
    something like this:
    <param name="movie" value="movie.swf?id=11111">
    <embed src="movie.swf?id=11111" ... >
    If you are using the ActiveContent JavaScript for your movie
    then you just
    leave off the .swf... so
    "name", "movie?id=11111"
    Then, in flash you can access the value of id from the _root,
    like
    var idInFlash:Number = _root.id;
    Of course in the above example you would replace 11111 with
    the proper
    syntax for printing a variable's value in ASP.

  • 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, etc. and tried
    sendAndLoad, send, and using $_POST, $_GET, $_REQUEST.
    $HTTP_POSTVARS but I keep getting this same error. any advice
    please?
    I have a Unix server running Apache/PHP 4 - LoadVars worked
    to load name-value pairs into an array -see thread)
    My goal with this simple app is to prototype being able to
    pass a variable from flash to a variable in php.
    Parse error: syntax error, unexpected T_VARIABLE in
    flash_to_SQL.php on line 5
    Actionscript 2.0 code:
    var c :LoadVars = new LoadVars();
    c.testing = "123FOUR";
    c.send ("
    http://127.0.0.1/flash_to_SQL.php","_self","POST");
    php code: (I also tried $_POST, $_GET, $_REQUEST.
    $HTTP_POSTVARS)
    <?php
    //mysql 4.1.2, php 4 , NO mysqli
    ecbo $_REQUEST ['testing'];
    /?>

    var formData:LoadVars = new LoadVars();
    formData.fname = "Name";
    formData.send("
    http://www.website.com/flash_php.php",
    formData, "POST");
    <?php
    $name = $_POST['fname'];
    echo $name;
    ?>

  • Passing two variables in the body of the URL using the go to detail page SB in ASP

    Hi all,
    Would appreciate your assistance with the following, I'm
    trying to set up a go to detail page sb that passes two variable in
    the body of the URL rather than the standard one.
    The code i've tried is -
    <td><A HREF="gggggggtest.asp?<%=
    Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
    "PCL2ID=" + othermenutwo.Fields.Item("PCL2ID").Value
    %>&amp;"PCL1ID=" +
    othermenutwo.Fields.Item("PCL2PC1ID").Value
    %><%=(othermenutwo.Fields.Item("PCL2Description").Value)%></A></td>
    Where the PCL1ID and the PCL2ID are the variables
    The normal code generated by the go to detail page sb with
    one variable is -
    <td><a href="ggggggtest.asp?<%=
    Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
    "PCL2ID=" + othermenutwo.Fields.Item("PCL2ID").Value
    %>"><%=(othermenutwo.Fields.Item("PCL2Description").Value)%></a></td>
    Unfortunatley my code tweaking isn't working as the second
    variable isn't being sent, any help would be gratefully appreciated
    Thanks

    Instead of using DW's 'go to detail page' option, simply set
    up the link the manual way in DW using the Link browser. Select the
    file you want to link to and then use the parameters button at the
    bottom of the 'Select File' dialogue to set the parameters to be
    passed with the link. You can then manually set the name of the
    parameter to be passed and then select its value from a recordset.
    The key thing is that you can set as many parameters as you like,
    so you can set both the parameters you want.
    On the detail page you then filter by the parameter name you
    chose (or both).
    Personally I always code links this way rather than using the
    go to detail page option as you get much better control of what is
    going on.

  • How to pass a variable from HTML to Flash

    I have built my flash ad banner in Flash 9 and now want the
    HTML code to pass the url over to the flash movie that it should
    jump to when clicked.
    The info in the help file seems out of date for the latest
    HTML template as it uses mainly JavaScript to get round IE's
    dreadful embeding issue. So my problem is, how do I pass a variable
    from the HTML to the actionScript specified int he Help file
    (running on a full screen button) as shown below?
    myButton_btn.onRelease = function() {
    if (clickTAG.substr(0, 5) == "http:") {
    getURL(clickTAG);
    via the html code now used by Flash 9 which is like this:
    <!-- saved from url=(0013)about:internet -->
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Advert_long</title>
    <script language="javascript"> AC_FL_RunContent = 0;
    </script>
    <script language="javascript"> DetectFlashVer = 0;
    </script>
    <script src="AC_RunActiveContent.js"
    language="javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    // Globals
    // Major version of Flash required
    var requiredMajorVersion = 9;
    // Minor version of Flash required
    var requiredMinorVersion = 0;
    // Revision of Flash required
    var requiredRevision = 115;
    // -->
    </script>
    </head>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!--
    Coping
    with
    Growing
    Audio
    Series
    Theraputic stories
    for children aged
    4 to 9
    -->
    <script language="JavaScript" type="text/javascript">
    <!--
    if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
    alert("This page requires AC_RunActiveContent.js.");
    } else {
    var hasRightVersion = DetectFlashVer(requiredMajorVersion,
    requiredMinorVersion, requiredRevision);
    if(hasRightVersion) { // if we've detected an acceptable
    version
    // embed the flash movie
    AC_FL_RunContent(
    'codebase', '
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0',
    'width', '120',
    'height', '600',
    'src', 'Advert_long',
    'quality', 'high',
    'pluginspage', '
    http://www.macromedia.com/go/getflashplayer',
    'align', 'middle',
    'play', 'true',
    'loop', 'true',
    'scale', 'showall',
    'wmode', 'window',
    'devicefont', 'false',
    'id', 'Advert_long',
    'bgcolor', '#ffffff',
    'name', 'Advert_long',
    'menu', 'true',
    'allowScriptAccess','sameDomain',
    'allowFullScreen','false',
    'movie', 'Advert_long',
    'salign', ''
    ); //end AC code
    } else { // flash is too old or we can't detect the plugin
    var alternateContent = 'Alternate HTML content should be
    placed here.'
    + 'This content requires the Adobe Flash Player.'
    + '<a href=http://www.macromedia.com/go/getflash/>Get
    Flash</a>';
    document.write(alternateContent); // insert non-flash content
    // -->
    </script>
    <noscript>
    // Provide alternate content for browsers that do not support
    scripting
    // or for those that have scripting disabled.
    Alternate HTML content should be placed here. This content
    requires the Adobe Flash Player.
    <a href="
    http://www.macromedia.com/go/getflash/">Get
    Flash</a>
    </noscript>
    </body>
    </html>

    You should use SWFObject to embed your Flash. Not only does
    it make
    embedding more straightforward, it makes passing query
    parameters very easy.
    Check out:
    http://code.google.com/p/swfobject/
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • How to pass a variable from HTML to Flash 9

    I have built my flash ad banner in Flash 9 and now want the
    HTML code to pass the url over to the flash movie that it should
    jump to when clicked.
    The info in the help file seems out of date for the latest
    HTML template as it uses mainly JavaScript to get round IE's
    dreadful embeding issue. So my problem is, how do I pass a variable
    from the HTML to the actionScript specified int he Help file
    (running on a full screen button) as shown below?
    myButton_btn.onRelease = function() {
    if (clickTAG.substr(0, 5) == "http:") {
    getURL(clickTAG);
    via the html code now used by Flash 9 which is like this:
    <!-- saved from url=(0013)about:internet -->
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Advert_long</title>
    <script language="javascript"> AC_FL_RunContent = 0;
    </script>
    <script language="javascript"> DetectFlashVer = 0;
    </script>
    <script src="AC_RunActiveContent.js"
    language="javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    // Globals
    // Major version of Flash required
    var requiredMajorVersion = 9;
    // Minor version of Flash required
    var requiredMinorVersion = 0;
    // Revision of Flash required
    var requiredRevision = 115;
    // -->
    </script>
    </head>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!--
    Coping
    with
    Growing
    Audio
    Series
    Theraputic stories
    for children aged
    4 to 9
    -->
    <script language="JavaScript" type="text/javascript">
    <!--
    if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
    alert("This page requires AC_RunActiveContent.js.");
    } else {
    var hasRightVersion = DetectFlashVer(requiredMajorVersion,
    requiredMinorVersion, requiredRevision);
    if(hasRightVersion) { // if we've detected an acceptable
    version
    // embed the flash movie
    AC_FL_RunContent(
    'codebase', '
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0',
    'width', '120',
    'height', '600',
    'src', 'Advert_long',
    'quality', 'high',
    'pluginspage', '
    http://www.macromedia.com/go/getflashplayer',
    'align', 'middle',
    'play', 'true',
    'loop', 'true',
    'scale', 'showall',
    'wmode', 'window',
    'devicefont', 'false',
    'id', 'Advert_long',
    'bgcolor', '#ffffff',
    'name', 'Advert_long',
    'menu', 'true',
    'allowScriptAccess','sameDomain',
    'allowFullScreen','false',
    'movie', 'Advert_long',
    'salign', ''
    ); //end AC code
    } else { // flash is too old or we can't detect the plugin
    var alternateContent = 'Alternate HTML content should be
    placed here.'
    + 'This content requires the Adobe Flash Player.'
    + '<a href=http://www.macromedia.com/go/getflash/>Get
    Flash</a>';
    document.write(alternateContent); // insert non-flash
    content
    // -->
    </script>
    <noscript>
    // Provide alternate content for browsers that do not
    support scripting
    // or for those that have scripting disabled.
    Alternate HTML content should be placed here. This content
    requires the Adobe Flash Player.
    <a href="
    http://www.macromedia.com/go/getflash/">Get
    Flash</a>
    </noscript>
    </body>
    </html>

    You should use SWFObject to embed your Flash. Not only does
    it make
    embedding more straightforward, it makes passing query
    parameters very easy.
    Check out:
    http://code.google.com/p/swfobject/
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Passing a variable from Captivate 5 to Flash CS5/ActionScript 3

    I don't get it. Why is it so difficult to pass a variable from Captivate 5 to AS3/Flash CS5. I must be making it harder than it really is. I cannot figure it out.  Can anyone help?
    I have a variable (gpDone = 1) defined in Captivate 5 (it's a guided practice) on the last frame which will indicate that the learner has completed the guided practice file.
    Now I want to pass that variable back to Flash/AS3 so I can evaluate whether I should show the Continue button so they can continue. They have to complete the guided practice before they can continue. If it is equal to 1, the Continue button will display. If it is not equal to 1, the Continue button will not display, but a message will display telling them they have to complete the guided practice in order to continue in the course.
    Do I need to edit the Flash html? Or just put code in the Flash timeline or the associated AS file?
    Help would be greatly appreciated. Thanks in advance.
    CAH

    Having the same problem...getting variable values FROM captivate to my inserted .swf (not widgets).
    I can set the value from the .swf to the captivate using Object(parent.parent.parent.parent).captivateVariable but not the other way around.
    Very frustrating.
    I hope someone answers your query.

  • Passing a variable from text to flash

    How do you pass a variable from a text file to flash?

    Check out Help for loadVariables.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Passing Captivate variables to Flash widget

    Hello,
    I'm developing a simple progress bar widget in Flash to add to a Captivate course I'm building.  I believe what I want to do is very simple, but I appear to be missing something.
    Quick synopsis:
    I have created a variable in Captivate 5.5 called intProgress which should be a percentage of a student's progress through the course. I set this manually via an Advanced Action upon entering the slide.
    I've also created a Progress Bar widget in Flash 5.5.  It consists of nothing more than a manual progress bar component in Flash.
    I want to feed that intProgress value from Captivate into my Flash widget, and have the progress bar update accordingly.
    Here is my function (aPb is my progress bar) -
    function courseProgress(intPercentage)
              aPb.setProgress(intPercentage, 100)
    And here is how I am trying to pass the variable over:
    courseProgress(MovieClip(root).intProgress);
    It doesn't look like the variable is coming across from Captivate to the widget.  How can I correctly do this?
    Please let me know what I'm doing wrong and/or what I'm missing here.
    Thanks for any help anyone can provide!
    Daniel

    Cool - I've found out how to access my custom variable thanks to your help.  Right now, I'm using a simple text field as a debug (instead of the progress bar) just until I get everything sorted out.
    In the cpSetValue function of the widget, I tested with the slide name variable you provided first:
    myText.text = "label:" + m_VariableHandle.cpInfoCurrentSlideLabel;
    And then progressed onward to my custom variable.
    myText.text = "prog:" + m_VariableHandle.intProgress; (my custom variable)
    So I have full connection to those, they're reading perfectly.  That m_VariableHandle is giving me the connection I need (good to know for the future).
    They're just not getting updated.  It just keep showing the values for the first slide - for both the SlideLabel and the custom variable. So now my trouble lies not in the reading of the variable, but the updating of it - to get the most current value.  That's a step forward though, very happy about that.
    To answer your question - yes, I'm doing a variable modification on every slide enter.  I'll set my intProgress variable to 5, then maybe 10 on the next slide, then 15, etc.  It's very important that I set that manually, as my project is not linear.  In other words, there may be a trail of 10 slides later on that are a "side" branch - and not part of the course progression.
    So, thanks again for your help. I'm a whole lot closer than I was before!

  • Calling ASP script from APEX button passing Bind variable

    I am looking for some examples or best form for calling asp script from apex button that will pass apex bind variable to asp script to process.
    Thanks,s
    Bob

    I am surprised by the degree of no replies. I have solved this by using asp redirects such as:
    Response.Redirect("test.aspx?UserName="&user)
    My formulated solution contains a page with a manually built interactive report. I have a number of bind variables at the top of the reoprt where users can query the information they want based on desginated database columns for this particular report. Once they have the "manual" interactive report displaying what they want, they click a button where a asp script is called with parameters passed that calls a Java based Crystal Reports plugin with the called correspnding report displayed with passed parameters.
    Works like a charm!
    This solves our reporting needs without having to resort to Bi Publisher (much too expensive) and other third party applications that kinda indicate it can work with apex but provide limited help or best form for doing so.
    Bob

  • Passing dynamic variable from html to Flash

    I know this is pretty simple but all that I have read doesn't make much sense to me. I have one swf calling another swf that I have embedded into an htnl. In other words just calling another html page in a seperate window.
    In one.swf (runing in broswer) I use the below to call another html page passing the variable NewLessonArray. This contains an array of completed chapters.
    // LOADING URL
    var NewLessonCompleteArray:String = LessonCompleteArray.toString();
    navigateToURL(new URLRequest("two/index.html?CurrentLessonInfo=<NewLessonCompleteArray>"), "_blank");
    In the receiving swf I want to retrieve the passing parameters.
    two.swf
    // Getting the parameters passed
    this.loaderInfo.parameters.toString()
    All that is returned that I can see is object Object. But since I am passing on a address line into another swf embedded in a html page I am unable to determine that correct syntac for retrieving the information.
    Any suggestions? This has got to be pretty simple... I think.
    THANKS

    What you are trying to do is not extremely difficult to do, but it is not something I would consider as being simple.  With Andrei's approach you should be able to take the url String and dissect the parameters from it using String methods, like split().
    As for the loaderInfo end of things, you are not passing the parameters to the swf file, you are passing them to the html page.  So the loaderInfo won't have any info for you regarding the url parameters.  The loadInfo would typically get parameters via the FlashVars parameters passed in in the html's swf embedding code.
    Here are some other solutions that you might consider.  I have not dealt with these myself, they are merely in my collection of useful info, so you might have to experiment to get them working.  One is a link to a class-based approach and the other is an approach that use swfObject embedding to dynamically add the parameters as FlashVars to the embedding code....
    http://mikethenderson.com/2009/02/as3-return-query-string-value-version-2/#more-105
    OR
    In your HTML:
    var flashvars = {};
    if (swfobject.getQueryParamValue("aParameter")) {
      flashvars.param = swfobject.getQueryParamValue("aParameter"); 
    swfobject.embedSWF("myMovie.swf", "myContent", "550", "400", "9.0.0", "", flashvars);
    And the param variable will be available as a FlashVar to your movie:
    var theParam = loaderInfo.parameters.param;

  • Reading Querystring into FLASH variable

    I can't believe I can't make this work. I've even done this
    in the past, but everything I try, fails.
    i want FLASH to read the querstring value from the address
    bar, apply that value to a variable, and be able to use it. I've
    read the articles all over the net about grabbing the QS value in
    the page that loads the SWF and sticking it into the embed and
    movie tags as well as the ones about using PARAM=FLASHVARS etc.
    can't make it work.
    I can grab the QS value in the .asp page that loads the SWF,
    but I can't for the life of me pass that value into FLASH. Can
    someone please give me two things:
    1. whats the most effective/efficient way to pass the
    variable
    2. the syntax for assigning the value to a variable in FLASH
    Thanks tons all!

    found something new to try, but still no luck...but closer
    maybe:
    This is the code generated by Dreamweaver when I dump the
    FLASH into the page PLUS what I added:
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','859','height','1250','src','randomItemGallery_v2','quality','high','pluginspage','htt p://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgcolor ','#000000','movie','randomItemGallery_v2','FlashVars','galpick','allowScriptAccess','same Domain');
    //end AC code
    </script>
    <noscript>
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="859" height="1250">
    <param name="movie" value="randomItemGallery_v2.swf"
    />
    <param name="quality" value="high" />
    <param name="BGCOLOR" value="#000000" />
    <param name="FlashVars"
    value="galpick=<%=strGallery%>" />
    <param name="allowScriptAccess" value="sameDomain" />
    <embed src="randomItemGallery_v2.swf" width="859"
    height="1250" quality="high" pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash" bgcolor="#000000"
    flashvars="galpick=<%=strGallery%>"
    allowScriptAccess="sameDomain"></embed>
    </object>
    </noscript>
    I added:
    'FlashVars','galpick' to the AC_FL_RunContent block
    <param name="FlashVars"
    value="galpick=<%=strGallery%>" /> to the object block
    flashvars="galpick=<%=strGallery%>" to the embed block
    <%=strGallery%> is called above all of this to grab the
    querystring item I need to pass in. In this case it is g=2. This is
    working...when I view the source of the ASP page, the embed and
    object blocks of code have the right value for galpick
    Then in the FLASH file on frame one:
    var galvar:String
    var keyStr:String
    var paramObj:Object =
    LoaderInfo(this.root.loaderInfo).parameters;
    for (keyStr in paramObj) {
    galvar = String(paramObj[keyStr]);
    from what the code tutor said, this should grab the param
    passed by flashvar and write it to the variable galvar
    Then I put a dynamic text box on stage and gave it an
    instance name of galpicker and added this code to the FLASH file:
    galpickertxt.text = galvar;
    When I load the page on the server, the text box reads
    undefined.

Maybe you are looking for

  • Movies in my iMac's iTunes do not show up Apple TV(1st Gen)

    So frustrated. Movies in my iMac's iTunes do not show up on my Apple TV(1st Gen) in the Shared Movie area. I've done the Media Type fix to "movie." I've re-started and re-booted and changed the Apple TV from ethernet to wireless and re-connected iTun

  • Blue Screen on Satellite P100 - need to recover data

    On switching on my laptop yesterday I was faced with a blue screen error message which even after running chkdisk keeps on appearing, even when rebooting in safe mode. The problem is I only have Toshiba recovery disks (not an XP disk - XP was pre-ins

  • Re-installing PSE 10 Trial version Mac OS X

    Okay, I uninstalled my trial version of PSE 10 while troubleshooting other issues. I then re-downloded the install img and am now attempting to re-install, but receive the following warning: One discussion mentioned unchecking "Verify checksums" for

  • XML Forms - Cannot append a text to a document node.

    Hi, I just created a new xml form as a copy of another working    form. I changed a bit in it and tried to run both i preview an real. Edit worked and renderlistitem worked. On the Show I got the error in the bottom. I tried to remove all the element

  • Cannot import 2000 chars in OWB 9.0.4.

    I'm trying to import a flat file in EBCDIC format into OWB 904. It fails with the following message: "API2839 - The field definitions exceed the length of a fixed length record." The record length is 4050, with fixed length fields. When I enter the f