A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: help with child movie

  1. #1
    Senior Member cyber reaper's Avatar
    Join Date
    Apr 2004
    Location
    israel
    Posts
    272

    help with child movie

    i made a parante movie with a button that shows the child movie in it , for some odd reson all i see after i export it is just the BG colour (i made the rest dissaper) , the child movie have properties : export inside SWF , why dont it show the child movie ?
    ok....what ?

  2. #2
    Senior Member cyber reaper's Avatar
    Join Date
    Apr 2004
    Location
    israel
    Posts
    272
    well , found out that one , for some lame reason.. i must use functions to do that thing , i hate those minor problems... anyway , can anyone tell me how i use the CALL function inside a script ?
    ok....what ?

  3. #3
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    It depends where the function resides. If it's in the same script you just use it's name, if it's in the start script(What I reccomend) add .root to the name..

    Example

    In start script I have function that adds two values together.

    function myAdd(x,y){
    result=x+y
    return(result)
    }


    then from anywhere in the movie I call it like this

    mytotal=root.myAdd(4,4);

    and mytotal will be 8

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