A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Using asp within Flash 5

  1. #1
    Junior Member
    Join Date
    Feb 2001
    Posts
    10
    Hi

    I was wondering if someone good help me, I have produced a menu using flash 5 and need the links to carry an asp varible..for example one page needs to link to the page corporate.asp, but also carry the variable
    <% = mscsShopperID %> but once I have loaded it it doesnt seem to translate the asp.

    I currently have it set up like this

    on (press) {
    getURL ("corporate.asp&mscsshopperid=<% = mscsShopperID %>");
    }

    I would be so grateful for someone help as I really need to get it working.

    Thanks very much for your help.

    Caz

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    337
    You should getUrl the exact url as you would when you type in the url in the adress bar of your browser, that means
    'yourasp.asp?yourvariables'

    In this case:
    Code:
    on (press) { 
    getURL ("corporate.asp?theFirstVariable[operator]theFirstValue&theSecondVariable[operator]theSecondValue&}
    where [operator] should be replaced by an operator.

    Good luck
    DamnGzM.

  3. #3
    Hi caz,
    you should generate a SessionID when a user enter your site. then you dont need to pass variables in flash. in each asp-script you then can access his SessionID.

    But if you rally want to handle things within Flash, you first have to load " mscsShopperID" into flash, using loadVariables. then you can write:

    getURL ("corporate.asp?mscsshopperid=" add _root.mscsShopperID, "your_target");

    I hope i could help.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center