Help please.......[controling movie clip from txt file]
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Help please.......[controling movie clip from txt file]

  1. #1
    Senior Member
    Join Date
    Nov 2000
    Posts
    237
    I am loading data into one movie clip[name=m1] [dynamic text,multiline,html,word wrap] from txt[html][name=text.txt]flie.

    and i want to control another movie clip[name=m2] from this txt file.

    like in flash[begain tell target=m2, go to and play=2]
    just like this.

    thanks...

  2. #2
    Senior Member
    Join Date
    Mar 2001
    Posts
    519
    I think you are trying to use imported text that will act as flash commands. Is that right?

    If so, it can't be done. Flash must compile all commands to make them work and it cannot do this on the fly in the player.

    Regards

    Andy

  3. #3
    Senior Member
    Join Date
    Nov 2000
    Posts
    237
    loook ...

    i am using flash 5

    i have one movie clip[m1]

    at first key frame of main movie i am loading one txt file action is LoadVariable: "text.txt" = "m1"

    i am selected "html" option in mc "m1" dynamic text option.

    ok..

    now this action is working

    but from text file i want to control another movie clip[m2] which is also in main movie.

    like when i say <a href="www.yahoo.com">click here</a> in the text file it is working.

    but i dont know how control another movie clip in the same movie

    please ....
    any idea



  4. #4
    Senior Member
    Join Date
    Mar 2001
    Posts
    519
    OK,

    you need to use:

    <a href='asfunction:yourFunction,yourArg'> link text </a>

    which allows you to run an actionscript link from within html text.

    I'm not sure that it will allow you to do this:

    <a href='asfunction:_root.yourMC.gotoAndPlay,8'> link text </a>

    if not then you will need to create a custom function to do this by coding something like this in Frame 1 of your maintimeline:

    function yourMCGAP (frameNum) {
    _root.yourMC.gotoAndPlay (frameNum);
    }

    and then in your html you'd put

    <a href='asfunction:yourMCGAP,8'> link text </a>

    which would run the function yourMCGAP passing in the frame number 8 and the function would then play the right frame.

    This should give you an idea of how it works.

    Regards

    Andy

  5. #5
    Senior Member
    Join Date
    Nov 2000
    Posts
    237
    thanks andy...

    this is working

    thank u very very much

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

Poll by Flashkit.com