A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] Parameter passing to swf

  1. #1
    Senior Member
    Join Date
    Dec 2006
    Location
    Jax, FL
    Posts
    110

    resolved [RESOLVED] Parameter passing to swf

    In the Export Setting KM allows you to pass variables to swf using flash vars.
    I entered a simple variable. sid=1;
    I added scriptcode to test variable.

    txt1.text="sid:"+sid

    nothing shows in the txt1 box.

    not sure how the parameters function works?

    Can someone elaborate.........
    Last edited by imdumb; 03-26-2009 at 07:58 AM.

  2. #2
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    Accessing parameters works different when using AS3.

    txt1.text = "sid:" + loaderInfo.parameters.sid;

  3. #3
    Senior Member
    Join Date
    Dec 2006
    Location
    Jax, FL
    Posts
    110
    did not have the loaderInfo property.....
    thank you for the response....

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