Reference manual examples gives errors (452266)

Hi, yesterday i was doing some learning on how to use GUI since i bought some skins. but they didn’t come with any instructions on how to use them. So i checked out the reference manual to see what i could do with that info there. OK , so i went to this page:http://unity3d.com/support/documentation/Components/class-GUIStyle.html
and bang off the bat after putting what was there as code:

i got errors saying this and that that you cant use customGuiStyle blahblahblah
so is this reference manual outdated or what ? im using unity 3.4

edit ** i put this thread in this gossip section because i don’t know if it is a bug yet

Worked fine for me. Are you using it? Are you using java or c#?

java and i did as they said to put it on a gameobject ingame

but after hours and hours of trying to figure out how i would get these new GUIskins i bought to work, i got them to work with this code:

im not really good at coding so that is why it took so many hours to figure out

It’s because you aren’t initiating (right word?) customSkin. You’re telling it what kind of variable it is, but not assigning any data to it.
var miscObject : GameObject; is not a variable you can use unless you go
var miscObject : GameObject = GameObject(); //requires string? Can’t remember

so I would suppose
var customSkin : GUISkin = GUISkin(); might work, didn’t look myself.