A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: security disables loading variables?

  1. #1
    Senior Member
    Join Date
    Jul 2000
    Posts
    419

    security disables loading variables?

    I am sending and recieving variables to and from my databse using asp, everything works fine if I fun my flash movie in Flash MX authoring enviroment, but when I run it on the server as a swf file, it doesn't load?

    sounds like a security feature, right?

    What are some things I should look for in order to fix this problem?

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    The swf does not load or the variables?Whats the url?

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Senior Member
    Join Date
    Jul 2000
    Posts
    419
    the swf load fine, but the variables do not load,

    now the variables load perfect when I run the movie inside flash mx, but the variables do not load when I run the swf in the web browser,

    when I sendAndLoad variables I am using the abbsolute path, http://63.33.128.0/foldername/page.asp

    I did this so that it should work both in the flash evn. and on the server, but it doesn't

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    So the only difference is that you have the file embedded in html when it does not work.
    Maybe you have something wrong in the embed code?
    I suppose the Flashfile is on the same server as the asp script ( they have to ).

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  5. #5
    Senior Member
    Join Date
    Jul 2000
    Posts
    419
    ok I did a test, and here are the results...

    I changed my "sendAndLoad" to just "send" and had the return variables goto "_blank"

    when I run the file in flash (where it works) it opens a new blank window will all the variables in the querystring, which is wierd because i send the variables using POST

    when I run the file (swf) embeded in the html page (where it doesn't work) it open a new window but with an error
    Error '80040e07' - Data type mismatch in criteria expression

    and this time no variables in the querystring, they were sent using post.

    flash MX version: WIN 6,0,79,0
    Flash Player Version: WIN 6,1,78,0

  6. #6
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    isnt it the asp that

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  7. #7
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Oops!
    If you post a url I can try it and see if the results are the same. Im on Mac, IE 5.0. Maybe we can rule out if its the player version in your browser.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  8. #8
    Senior Member
    Join Date
    Jul 2000
    Posts
    419
    ok, here is the link, notice the id=15, this is passed to the app, the app, passes this to ASP to retrieve the data from the database, and uses the data to populate the outline (IT WORKS???) at the bottom is a "prepertyInspector" when ever you click "root" on the "outline" the property inspector will appear with a "save" and "exit" button

    you should be able to make a change "any change" click "save" close the application, then when you reopen it the changes should be loaded


    again this works perfect "inside" flash
    Last edited by zaxis; 04-17-2003 at 02:21 PM.

  9. #9
    Senior Member
    Join Date
    Jul 2000
    Posts
    419
    I FIXED IT!!!! god I'm so happy, I'll tell you what was wrong in case someone else tries this,

    I was passing the id into flash by attaching it to the querystring like this

    my.swf?id=15 when this gets into flash it's a string not a number, my SQL was barfing because I was passing a string to retrieve the record id, when we all know record id are numbers!!!!


    thanks for you help, you were right it was something wrong with the embed code!

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