-
Could someone show me some love and help me out. Ok I have a link that when you click on that link, another swf movie is suppose to load up, the question is when the movie is loaded, how would I position to to where I want it on the movie stage?
-
I had to try and do that once so... i cheated
I just made that movie have the same size canvas as my main swf (since its by default transparent) so when the movie loaded even though it was the same size it was positioned exactly where i wanted it to be because all around it was actually trasperency - hope you're following me
for MC's though i've always used
targetX = 300;
targetY = 300;
-- this went into my main frame
and on my buttons i would say
on (press) {
gotoAndStop (1);
_root.attachMovie("linkagename", "name", level);
_root.name._x = targetX;
_root.name._y = targetY;
}
i hope that helps you.
-
you must load the swf into a MC. you can then ad just the position of the MC on your stage.
-
Question
I'am sorry I'm stupid, I'm a slow learner what does the term "MC" mean?
-
Blood elf, or PHP guru... hmmm
x-town chika, congrats on senior menority.. and MC=Movie Clip
-
definiton
I'm sort of stupid, I need help could someone help me step by step and explain what this statement means:
_root.attachMovie("linkagename", "name", level);
-
thanks paradoxz
k
_root - the timeline that you are targeting is the "MAIN" timeline of your movie (ie not a movie clip's)
attachMovie is the action that calles that MC onton your _root (main) timeline.
in order to attach a MC you first have to set linkage properties.
right click the MC in your library (Ctrl+L) and go to linkage, choose 'export this symbol' and put in an identifiying name into the field
this name that you enter in that 'identifyer' field is your
"linkage name"
"name" is the name of that same MC that is in the library
"level" how far up it is (basically this is there so if you have more than one MC on stage that you could specify which one is on top)
_root is on level 0
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
|