News:

If you need instructions on how to get through the hotels, check out the enclosed instruction book.

Main Menu

fossil needs flashing helpz

Farted by FossilClock, October 20, 2009, 09:19:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FossilClock

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???

Loki Clock

Did you check "export for actionscript" in the MC's settings?

FossilClock

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.

Sinister Clock

Is that circle thing for the movie clip in the center of johnny MC?

Beret

By the way, that circle thing is called the registration point.

Loki Clock

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.

FossilClock

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.

Sinister Clock

make sure you have the bits aligned to the stage props.

CaramelAppleClock


DWARFINATORclock

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.

Loki Clock

You made a typo in the first line. johhny instead of johnny.

PaperClipClock

ya say ya need flashing help? ya come to the right place bud

AstronautClock

did you forget to give your movieclip and instance name?

Loki Clock

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.

FossilClock

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

DWARFINATORclock

Quote from: ᛚᚮᚴᛁ᛫ᚴᛚᚢᚴᚴᛆ;1683060You made a typo in the first line. johhny instead of johnny.

LOL


PineappleClock

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?


buttplug

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 "=="