Alright, we've been taught that one can set a symbol's position by using the "Stage.width" or "Stage.height" value and dividing it by whatever to place shit on the screen relevant to how large the window is and ect.
Now, we've been taught this applies in Flash Professional 8.
The flash that we're working with is CS4, and it doesn't exactly want to fucking work. The instructor is currently not present, and nor will she be for a good week or so. Help would be greatly appreciated.
The code in question:
attachMovie("character","johhny1",108);
johnny1._x = (Stage.width/2);
johnny1._y = (Stage.height/2);It's supposed to plant Johnny's ass right in the middle of the stage.
It doesn't.
how 2 flash???
Did you check "export for actionscript" in the MC's settings?
Quote from: ᛚᚮᚴᛁ᛫ᚴᛚᚢᚴᚴᛆ;1682527Did you check "export for actionscript" in the MC's settings?
Aye, that we have. The symbol shows up on the stage, but in the upper left hand corner instead of the middle.
Is that circle thing for the movie clip in the center of johnny MC?
By the way, that circle thing is called the registration point.
Quote from: BeretClock!;1682538By the way, that circle thing is called the registration point.
Yes, but note that you want to change the default registration point, by centering it on the small cross shape that signifies the origin of the movie clip. When you just move the registration point it'll be back where it was the next time you add the movie clip somewhere.
Quote from: Sinister Clock;1682534Is that circle thing for the movie clip in the center of johnny MC?
No, we're working with actionscript and using it to insert the movie clips via code instead of putting it on the stage. Without the flash being tested or played, the stage is blank, so that doesn't even factor in.
Edit: Nate did the same thing that I did.
It worked perfectly for him.
It still does not work for me.
Fuck CS4.
make sure you have the bits aligned to the stage props.
who's Nate?
Quote from: FossilClock;1682808No, we're working with actionscript and using it to insert the movie clips via code instead of putting it on the stage. Without the flash being tested or played, the stage is blank, so that doesn't even factor in.
Edit: Nate did the same thing that I did.
It worked perfectly for him.
It still does not work for me.
Fuck CS4.
If it works for him then it's obviously something you did wrong.
You made a typo in the first line. johhny instead of johnny.
ya say ya need flashing help? ya come to the right place bud
(https://clockcrew.net/talk/proxy.php?request=http%3A%2F%2Fjmorris.name%2Fwp-content%2Fuploads%2F2007%2F11%2Fflash.png&hash=2973d04f45de3794f50e8a0a95107237bb193bf8)
did you forget to give your movieclip and instance name?
Quote from: Redhead Clock;1683136did you forget to give your movieclip and instance name?
That, too, varies with each placement of the clip in the movie. That's why it's an
instance name. johnny1 would actually be the instance name of the new clip.
Quote from: ᛚᚮᚴᛁ᛫ᚴᛚᚢᚴᚴᛆ;1683060You made a typo in the first line. johhny instead of johnny.
This was the problem
Why the spellchecker did not find it I am not sure
return to your homes, nothing to see here
Quote from: ᛚᚮᚴᛁ᛫ᚴᛚᚢᚴᚴᛆ;1683060You made a typo in the first line. johhny instead of johnny.
LOL
Pwned.
is this actionscript 3.0 or actionscript 2.0? Check your publish settings.
In AS3, you can center align a movieclip with this:
MyMC.x = stage.stageWidth / 2;
MyMC.y = stage.stageHeight / 2;
assuming MyMC is the instance name given to your movieclip
what errors are you getting?
fixed I see
Quote from: FossilClock;1683461This was the problem
Why the spellchecker did not find it I am not sure
return to your homes, nothing to see here
I once spent 4 hours trying to debug a program where the problem was I used "=" instead of "=="
Quote from: ButtplugClock;1683585I once spent 4 hours trying to debug a program where the problem was I used "=" instead of "=="
That's happened to me before, except it was a type which was causing all the problems.
Quote from: ButtplugClock;1683585I once spent 4 hours trying to debug a program where the problem was I used "=" instead of "=="
H@H@HH@H@H@H@@)_LOOSER