Clock Crew

Community => General Discussion => Topic farted by: FossilClock on October 20, 2009, 09:19:48 AM

Title: fossil needs flashing helpz
Post by: FossilClock on October 20, 2009, 09:19:48 AM
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???
Title: fossil needs flashing helpz
Post by: Loki Clock on October 20, 2009, 10:01:58 AM
Did you check "export for actionscript" in the MC's settings?
Title: fossil needs flashing helpz
Post by: FossilClock on October 20, 2009, 10:17:58 AM
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.
Title: fossil needs flashing helpz
Post by: Sinister Clock on October 20, 2009, 10:36:23 AM
Is that circle thing for the movie clip in the center of johnny MC?
Title: fossil needs flashing helpz
Post by: Beret on October 20, 2009, 11:15:12 AM
By the way, that circle thing is called the registration point.
Title: fossil needs flashing helpz
Post by: Loki Clock on October 20, 2009, 11:48:13 AM
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.
Title: fossil needs flashing helpz
Post by: FossilClock on October 21, 2009, 08:59:38 AM
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.
Title: fossil needs flashing helpz
Post by: Sinister Clock on October 21, 2009, 01:53:15 PM
make sure you have the bits aligned to the stage props.
Title: fossil needs flashing helpz
Post by: CaramelAppleClock on October 21, 2009, 02:03:29 PM
who's Nate?
Title: fossil needs flashing helpz
Post by: DWARFINATORclock on October 21, 2009, 02:42:35 PM
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.
Title: fossil needs flashing helpz
Post by: Loki Clock on October 22, 2009, 12:19:45 PM
You made a typo in the first line. johhny instead of johnny.
Title: fossil needs flashing helpz
Post by: PaperClipClock on October 22, 2009, 12:55:43 PM
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)
Title: fossil needs flashing helpz
Post by: AstronautClock on October 22, 2009, 02:14:50 PM
did you forget to give your movieclip and instance name?
Title: fossil needs flashing helpz
Post by: Loki Clock on October 22, 2009, 02:16:56 PM
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.
Title: fossil needs flashing helpz
Post by: FossilClock on October 23, 2009, 09:32:36 AM
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
Title: fossil needs flashing helpz
Post by: DWARFINATORclock on October 23, 2009, 09:33:14 AM
Quote from: ᛚᚮᚴᛁ᛫ᚴᛚᚢᚴᚴᛆ;1683060You made a typo in the first line. johhny instead of johnny.

LOL
Title: fossil needs flashing helpz
Post by: Faygo on October 23, 2009, 03:51:56 PM
Pwned.
Title: fossil needs flashing helpz
Post by: PineappleClock on October 23, 2009, 04:03:18 PM
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?
Title: fossil needs flashing helpz
Post by: Beret on October 23, 2009, 04:42:46 PM
fixed I see
Title: fossil needs flashing helpz
Post by: buttplug on October 23, 2009, 05:11:44 PM
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 "=="
Title: fossil needs flashing helpz
Post by: Sinister Clock on October 23, 2009, 08:43:16 PM
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.
Title: fossil needs flashing helpz
Post by: Loki Clock on October 25, 2009, 10:04:30 PM
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