A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: function parameters - no affect ?

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Location
    Hyderabad, AP, INDIA
    Posts
    131

    function parameters - no affect ?

    Hi all.

    Umm confusing problemo....

    Ive got a function on FRAME1 that loads a a text file in a dynamic txt to a MC on stage.
    In the subsequent FRAMES I've set the parameters of this function to pick different texts.

    Well after the first pick-up the function dose'nt work.
    I've tried deleting the dyn txt entries from the next button trigger, but no success.

    THE CODE:

    ON FRAME 1:
    function loader (mainTextFile) {
    loadVariables (mainTextFile+".txt",mainMc);
    }

    ON FRAME 2:
    _root.loader("aq");//aq is the first text file

    ON FRAME 3:
    _root.loader("sw");//sw is the second text file


    Any sol anybody?? Appreciate it.
    "If Freedom is Outlawed only Outlaws will have Freedom"

  2. #2
    FK Newb Beater
    Join Date
    Dec 2002
    Location
    Seattle
    Posts
    676
    You can loadVariables only once in each MovieClip. You will either have to combine your .txt vars or load one text file per movieclip
    Just because you changed the code, doesn't mean it's yours

    Most Recent Work:
    Commercial tanning beds website

  3. #3
    Senior Member
    Join Date
    Sep 2000
    Location
    Hyderabad, AP, INDIA
    Posts
    131

    Wrong!

    Nope thats not it,
    Any mc can load extreme amounts of text files... but this just doesnt WORK! AAAAARGH!
    Anyone PLs.??
    "If Freedom is Outlawed only Outlaws will have Freedom"

  4. #4
    Senior Member
    Join Date
    Sep 2000
    Location
    Hyderabad, AP, INDIA
    Posts
    131

    YAHOO!!

    Well I spent the whole night up .. But I finally cracked the bloody code...

    It works beautifully.
    Txt, swf, images I can load anything based on function parameters and have them scroll. YAHOO. Thanks everyone!
    "If Freedom is Outlawed only Outlaws will have Freedom"

  5. #5
    FK Newb Beater
    Join Date
    Dec 2002
    Location
    Seattle
    Posts
    676
    soo..what was the problem?
    Just because you changed the code, doesn't mean it's yours

    Most Recent Work:
    Commercial tanning beds website

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