Hey everybody I just got my first tutorial posted!
http://www.kirupa.com/web/alerts.htm
Give me some feedback plz. I plan on writing some more on Javascript, CSS, and ASP.
Hey everybody I just got my first tutorial posted!
http://www.kirupa.com/web/alerts.htm
Give me some feedback plz. I plan on writing some more on Javascript, CSS, and ASP.
Congrats man, it was a good tutorial.
I hope you don’t mind, but I had kirupa change a few things. 1 of them was explaining more about what exactly onBlur was (it could be confusing to a non-javascripter) and the other being changing the HREF attribute from “#” to “java**script:void(0)” You want to void the link, not return to the top of the page. Testing the onDblClick link was definitely a pain when the HREF was set to “#”
And if Alex reads this thread, I noticed he has a new tutorial here… http://www.kirupa.com/developer/mx/alpha.htm … I guess congrats, but I am sorry to say that the tutorial could go more in depth.
Your tutorial implies that you have to convert your clip to a movie clip symbol, but the alpha property works on movieclips, buttons, and graphic symbols (only on movie clips and buttons via AS).
Instead of creating a tutorial just focusing on setting the alpha you could have gone into all of the properties there and how to use them. It would have made for more content in your tutorial than few one liner paragraphs.
Setting a clips alpha property to 0 isn’t the most efficient way to make your clip invisible. Setting a clips _visible property to false (or 0 since 0 is false and 1 is true) is more efficient. Why? Because when setting a clips alpha property to 0, the clip can still be seen on 16bit color monitors, but when settings its _visible property to false (or 0) via AS the clip actually becomes invisible. So I think that should have been added in there as a failsafe for people looking for completely invisible clips.
Clips with partial alpha settings that are being moved either by AS or tweens over other objects can get CPU intensive with the more clips you use, so its not always safe to have a bunch of alpha-faded clips running around on your stage.
Sorry Alex, but the tutorial could be better :-\
Good tute! We need javascript tutes around here!
[size=1]/me doesn’t know anthing about javascript[/size]
I have a few JS tutorials in waiting, after I get situated here again I will finish writing them. I have a few written up already, they just need cleaning up.
*Originally posted by lostinbeta *
**Congrats man, it was a good tutorial.
I hope you don’t mind, but I had kirupa change a few things. 1 of them was explaining more about what exactly onBlur was (it could be confusing to a non-javascripter) and the other being changing the HREF attribute from “#” to “java**script:void(0)” You want to void the link, not return to the top of the page. Testing the onDblClick link was definitely a pain when the HREF was set to “#”
**
Yea I had fixed those in the updated version on my server but Kirupa didn’t get it.
Oh… well as long as it’s fixed :thumb:
Also, if you want it to be XHTML compliant, just change ‘onClick’ to ‘onclick’ and so on.
i think we should have some PHP ones too. anyone? i would…but i cant explain PHP for crap. i think i did an ok job on the one on my site though:
http://www.mdipi.com/sorry/tuts/randtext.htm
if you think it is ok i will redo it for k…
edit: DP got so caught up i forgot, sweet! looks good but i still dont get onBlur…confusing as all hell lol.
Mike: I believe Jubba is working on the basics of PHP tutorials, so you might want to take your tutorial up with him (I am not 100% sure if he is or not).
As for onBlur… think of it this way…
What is blur?
You get a blur when something is unfocused right?
Well that is what onBlur, it is when you take the focus off of a link so it becomes unfocused.
In HTML when you click a link, it becomes focused on, but when you click elsewhere within the document, it takes the focus off of the link itself and puts it on the document as a whole… thus unfocusing on the link.
So a function called onBlur is like saying “if you were focused on this, but then clicked elsewhere and now you aren’t, then run this function”.
Given that I am not the best at explaning things here is another one…
It is like onKillFocus() in actionscript.
Good explanation LIB!
I think I’m going to work on some more stuff tonight.
Anybody see anything or want to know how to do anything?
Oh k boys and girls, I just finished another tutorial. Can you guys give me some feedback on it?
Looks pretty good DP. I dont know anything about Javascript, so i’ll have to try it out sometime
lost i get it now. its like something, like a popup, happens when you click off the link.
:: Copyright KIRUPA 2024 //--