-
Senior Member
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 ?
-
Senior Member
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 ?
-
KoolMoves Moderator
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|