A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: it's driving me mad

  1. #1
    Junior Member
    Join Date
    Jun 2000
    Posts
    29
    I want to know how to make a swf file play in a particular place in the main movie when i press on a botton ?

    please post the code form A to z
    ( need to know how to set the place,load the movie and Doing the action )

    Tanks in advance

  2. #2
    a.k.a [7R0J4N]
    FK infection

    Join Date
    Aug 2000
    Posts
    198
    ok, i think i understand what u want... try this

    make a button

    1- goto propertise for the button

    2- goto the actions (+)

    3- on mouse event click "press"

    4- goto frame # (which frame u want it to goto"

    and thats all!

    later

  3. #3
    Member
    Join Date
    Jun 2000
    Posts
    43
    Your question is a little unclear to me, but here's what I think might help.

    After creating your button, double click on it and go to the actions tab.

    Click the + sign and add a go to action. On the right hand side you will have a bunch of options (go to frame, go to go to label, go to next frame, etc...) Select "go to frame" and insert the frame number of where you want the movie to start playing.

    Make sure to check the "control: go to and play" box at the bottom of the window.


    Hope this helped... if I'm way off, just give me a little more info and I'll give it another try.

    Regards,

    Logan

  4. #4
    a.k.a [7R0J4N]
    FK infection

    Join Date
    Aug 2000
    Posts
    198
    isnt that what i basicly said?! dont steel d00d hehe

    it was unclear a bit!

  5. #5
    Junior Member
    Join Date
    Jun 2000
    Posts
    29

    what i want is

    what i want is :
    I have swf files
    mov1.swf and Mov2.swf and the main file Index.swf

    in the index.swf i have a lot of buttons.. there is 2 buttons should play the 2 swf fiel ( mov1 & mov2 ) in the top right of the index.swf file ( confusion isn't it )

    i know i should use tell target ... but the probleam is i don't know how ..

    so could you help me ? *** Please ***


  6. #6
    Junior Member
    Join Date
    Jun 2000
    Posts
    29

    seems no one know

    at least give me a hint or something

  7. #7
    Junior Member
    Join Date
    Aug 2000
    Posts
    22

    i

    hi ranma!
    i think this might be what you are looking for.
    1. on your main timeline put a movie clip in the position you want your swf to come in. 2. give the movie clip an instance name. 3. double click on your button you want to activate this movie, and go to the actions. 4. use the following action script:

    On(press)
    Load Movie("swf name","mc instance name")
    End On

    on right side of tha window:
    1. Action: load movie into location
    2. URL: enter swf name
    3. Location: enter mc instance name

    entering these action scripts will enter the info be the parents on the left side.

    that should be it
    good luck, hope it helped

  8. #8
    Junior Member
    Join Date
    Aug 2000
    Posts
    25

    reply

    ok! I think I know what you want.

    1,create two empty movieclip, and drag them into scene.
    2,give them instance name each
    3,load the mov1.swf into one empty target
    4,load the mov2.swf into another
    5,The position of empty targets is where mov1.swf,mov2.swf playing

    hope this help!

  9. #9
    Junior Member
    Join Date
    Jun 2000
    Posts
    29

    Tanks

    thanks man but could you tell me the code 4 the tell target part ?

    Thanks again

  10. #10
    Junior Member
    Join Date
    Aug 2000
    Posts
    22
    hi ranma-
    if you are loading swf into movie clips on the stage, you don't use the tell traget script, you use the load movie script. if you look at the code i wrote for you along with what nbell is saying, you should be all set. try it, see if it works.

  11. #11
    Junior Member
    Join Date
    Jun 2000
    Posts
    29

    Thanks

    Thaks to all of you

    It worked fine


    Ranma

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