A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Plsssssssssssss help me asp to flash passing variables is giving problem

  1. #1
    Member
    Join Date
    Jun 2003
    Location
    pune
    Posts
    55

    Plsssssssssssss help me asp to flash passing variables is giving problem

    hi all,

    Can u pls solve my problem i am not understanding what is wrong here!!!!!!!!!!!
    I have a asp file & a flash file were in asp file i have declared variable. i.e
    <%
    dim vData
    vData=10
    %>
    and in flash file i have a dynamic text field with var: name=vData
    & on the first keyframe i have code that is :
    count = loadVariablesNum("data.asp", 0);

    as i don't have pws i have uploaded my file on server..
    path is : www.aimsdigital.com/try/data1.swf

    it should 10 but its not showing the value..
    why is this can u pls help me solving this problem..
    thanks a lot in advance..

    amrapali.

  2. #2
    FK Romeo martiansam's Avatar
    Join Date
    Oct 2001
    Location
    Bombay, India
    Posts
    223
    Remove 'count = ' from your code
    Code:
    count = loadVariablesNum("data.asp", 0);
    just put

    Code:
    loadVariablesNum("data.asp", 0);
    and try.
    sameer rao

    there...you see!!

  3. #3
    Member
    Join Date
    Jun 2003
    Location
    pune
    Posts
    55

    Plsssssssssssss help me asp to flash passing variables is giving

    Hi..
    no its not working...
    i tried it.......

    amrapali

  4. #4
    FK Romeo martiansam's Avatar
    Join Date
    Oct 2001
    Location
    Bombay, India
    Posts
    223
    Hi.

    Check the attachment.

    The problem was in ur asp file. You should add the following code in ur asp file:

    Code:
    response.write "vData=" & vData
    This code returns 'vData=10' as required to flash in order to be recognised.

    I have included the asp and the swf files in the attachment.

    Hope this helped.
    Attached Files Attached Files
    sameer rao

    there...you see!!

  5. #5
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    It's not enough to declare the variable in the asp page. It doesnt send anything as the variable and it's data stays on the server. for loadVariables you need to output the variables in "querystring format".

    <%
    dim vData
    vData=10
    %>
    &vData=<%response.write(vData)%>


    Or just:

    &vData=10

  6. #6
    FK Romeo martiansam's Avatar
    Join Date
    Oct 2001
    Location
    Bombay, India
    Posts
    223
    Cant buy that Mirandar, sorry.

    The following code worked for me.

    ASP page data.asp:

    Code:
    <%
    dim vData
    vData=10
    response.write "vData=" & vData
    %>
    Flash file frame one script:

    Code:
    loadVariablesNum("data.asp", 0);
    In the same frame I have a text field with its variable name as vData.

    Cant see why it never worked for u.

    Try downloading the attachment.
    sameer rao

    there...you see!!

  7. #7
    Member
    Join Date
    Jun 2003
    Location
    pune
    Posts
    55
    hey thanks a lot...
    It worked for me by this code :
    <%
    dim vData
    vData=10
    response.write "vData=" & vData
    %>

  8. #8
    FK Romeo martiansam's Avatar
    Join Date
    Oct 2001
    Location
    Bombay, India
    Posts
    223
    No 'thanks' ... just a treat would do ...your birthday is approaching
    sameer rao

    there...you see!!

  9. #9
    Member
    Join Date
    Jun 2003
    Location
    pune
    Posts
    55
    ya sure...
    but for that u will have to come from b'bay to pune...
    right.... otherwise..you will have to take this

  10. #10
    FK Romeo martiansam's Avatar
    Join Date
    Oct 2001
    Location
    Bombay, India
    Posts
    223
    Pune is just a hop away...I would prefer that over
    sameer rao

    there...you see!!

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