Be a Supporter!
Actionscript / XML problem Posted September 19th, 2008 in Game Development

The whole idea of the script is to import images from an XML file and then scroll them one at a time, and then they fade into one another. It loads the images perfectly, and they fade perfectly. The problem is that when the XML file specifies 24 or more images, the fading stops and it just blinks the images onto the screen instead of a nice fade. Any idea why this is happening? Here's the code:

import mx.transitions.Tween;
import mx.transitions.easing.*;

var myShowXML = new XML();
myShowXML.ignoreWhite = true;
myShowXML.load("images.xml");

myShowXML.onLoad = function() {
_root.myWidth = myShowXML.firstChild.attributes.width;
_root.myHeight = myShowXML.firstChild.attributes.height;
_root.mySpeed = myShowXML.firstChild.attributes.speed;

_root.myImages = myShowXML.firstChild.childNodes;
_root.myImagesNo = myImages.length;

createContainer();
callImages();

};

function createContainer() {
_root.createEmptyMovieClip("myContainer_
mc",1);
}

function callImages() {

_root.myMCL = new MovieClipLoader();
_root.myPreloader = new Object();
_root.myMCL.addListener(_root.myPreloade r);

_root.myClips_array = [];

_root.myPreloader.onLoadStart = function(target) {

};

_root.myPreloader.onLoadProgress = function(target) {

};

_root.myPreloader.onLoadComplete = function(target) {

_root.myClips_array.push(target);
target._alpha = 0;

if (_root.myClips_array.length == _root.myImagesNo) {

_root.target_mc = -1;
moveSlide();
myShowInt = setInterval(moveSlide, (_root.mySpeed*1000)+1000);

}

};

for (i=0; i<_root.myImagesNo; i++) {

temp_url = _root.myImages[i].attributes.url;
temp_mc = myContainer_mc.createEmptyMovieClip(i, myContainer_mc.getNextHighestDepth());

_root.myMCL.loadClip(temp_url,temp_mc);
}

}

function moveSlide() {

current_mc = _root.myClips_array[_root.target_mc];
new Tween(current_mc, "_alpha", Strong.easeOut, 100, 0, 1, true);

_root.target_mc++;

if (_root.target_mc>=_root.myImagesNo) {
_root.target_mc = 0;
}

next_mc = _root.myClips_array[_root.target_mc];
new Tween(next_mc, "_alpha", Strong.easeOut, 0, 100, 1, true);

}

Response to: Hardest language to learn? Posted January 15th, 2008 in General

Lisp is the most difficult language to learn.

Php Form Mailing Posted December 20th, 2007 in Programming

For some reason, every method I try get the information entered into two inputs in my email doesn't work. Here's the HTML code:

<form action="promo.php" method="post" class="login-habblet">

<ul>

<li>
<label for="name" class="login-text">name</label>
<input tabindex="1" type="text" class="login-field" name="name" id="name" value="" />
</li>

<li>
<label for="last" class="last">last</label>
<input tabindex="2" type="text" class="last" name="last" id="last" />
<input type="submit" value="Log in" name="submit" class="submit" />
</li>

</ul>

</form>

I cannot, for the life of me, figure out what to put in promo.php that will send the information from name and last to me email. I don't need any form validation, or anything. Just a script that takes the information from name and last and puts it in an email on separate lines. That's all.

Seems easy enough, but for some reason, I cannot figure it out. Anyone here have any ideas?

Response to: Newgrounds Mail! Posted October 25th, 2007 in General

This is exactly what I've been looking for! I finally have my own personal email address with some vague reference to Newgrounds in it. You can contact me at thismailserviceisgay@newgroundsmail.net.
tf

This is so awesome. Thank you so much!

Response to: Flash 8 Blur Effect Posted January 4th, 2007 in Game Development

Hm. Maybe I'm not being clear enough.

I'm using the blur effect that is built into Flash 8 in:

Insert > Timeline Effects > Effects > Blur

I'm not using any actionscript, or anything of that sort.

Flash 8 Blur Effect Posted January 4th, 2007 in Game Development

So, I know how to make things blur out, but how do I make something blur in?

I thought it quite logical to try and reverse the frames, but apparently, the effects in Flash 8 don't work qutie like that. So how do I get something to blur in?

Hal Turner supporter calls... Posted December 30th, 2006 in General

So, if any of you are up on the latest of internet wars, 4chan, 7chan, and so forth have launched a raid on the White supremecist website HalTurnerShow.com. It's an online radio show where Hal Turner openly supports violance against other races, and states that the white people are slowly becoming the minority. Well, the internet steamrolled over his website spiking bandwidth to almost 200 megabits per second. It cost Hal Turner thousands, and bankrupted the show.

More info here:

http://turnerchan.blogspot.com/index.html
http://en.wikipedia.org/wiki/Hal_Turner#Feud_ with_prank_callers
http://www.haloscan.com/comments/halturner/De c20Show/
http://www.haloscan.com/comments/halturner/Re taliationAgainstIRC/

So, I post a comment on one of the blogs that were discussing the issue where I metioned my website. Some supporter of Hal Turner had the know how to look it up in the Whois database, and find my cell phone number. He went ahead and called, and I spent the better part of an hour listening to what he had to say.

I was truly interested. What a brilliant man. "Who's going to stick up for your race (white) when the blacks, the mexicans, and the chinese are predjudice against you?" He says. Brilliant huh?

So I listened, and spun a few things my way about how humanity was imperfect, and how war over differences such as skin color were inevitable, and that the only way we would be able to live with eachother is to embrace and such. We can do that best be leading an example. He saw it another way. He wants an independant white state, and as defence, he states that all the other races have their own independent states. Chinese has China...Japanese has...Japan. Indians have....India... Brilliant.

While his opinions are cute, I got to thinking...There's really no cure for anything like this. He was seriously convinced there was a war on white people like there's a war on Christmas. He was solely convinced that because the whites had every technical advantage, that we truly are superior. There's just no cure for that kind of thing, and upon realizing that, I said my good byes, almost his mid-sentence, and hung up.

Well, at least the Hal Turner show is off the air.

Response to: Runescape rips off Newgrounds! Posted October 24th, 2006 in General

Not every drawing of a fist is a rip off of Newgrounds.

Response to: vBulletin new root admin... Posted October 21st, 2006 in Programming

Whoa...Whoa...You guys are familiar with the vBulletin Administration Software right? Then you know that you cannot merely replace the Root Admin with another admin. The root admin is the name the forum was created under. It cannot merely be changed by just ticking some boxes on the administration panel. Naturally, I'll need people who are experienced with the vBulletin software, I didn't want your input on the subject. Thank you.

I asked because I'm unfamiliar with SQL notation.

Now, I know this topic is old, but I still require a solution, it's just mildly downplayed as most of the problems were solved merely by intuition; I didn't keep up with this topic, but I can't simply let them run rampant with their blatant accusations.

And here I thought I could rely on the BBS for a little help on the subject...

Response to: Would you like to be a mod? Posted October 21st, 2006 in General

Well, after nineteen pages of so on and so forth, God knows if this will get the proper attention it deserves, but one can only hope. Here goes nothing...I suppose.

I know I haven't been active on the Newgrounds forums lately, and I suppose that'll effect the review of my post most negatively; I've simply been running my own website (recently sold), and really gathering in the full aspect of what it is to run a web community; therefore, it's consumed a lot of my time on other internet forums of discussion.

I can sit here and tell you how Newgrounds is my life, and I do nothing but post-whore the forums or what have you, but that's certainly not what you're looking for. Truth be told, Newgrounds is far from my life, and though I do invest a considerable amount of my time on the internet, it is typically spent reading up on the latest from Digg.com, or perfecting my skill as a budding web developer. This [is] in correlation with my own life outside of cyberspace where I'll soon be attending college and majoring in Visual Communications Technology.

Not to be said that Newgrounds isn't a typical stop of mine. I visit each day to consume my fill of Flash games, movies and to read up some things here and there on the forums to keep up with important happenings and such.

As I've ran and moderated and ran various communities ranging from topics in general discussion to as specific as my former web host's forum, I use a model considerably similar to how Newgrounders treat their moderators. Through this, I've gathered the purpose of a moderator is not really a place of power, and judgment much like a police officer or judge, it is more comparable to a librarian; cataloguing information, and keeping the forums organized and functional for the users. Through the banning, the topic deletion, and other forms of moderation, it's more of an organizational practice rather than authority.

This nuance has helped me train web masters and moderators alike to view their position from a newer perspective and has greatly refined their ability to recognize a violation of the cataloguing system.

I don't claim to be a revolutionary thinker, but I feel that I'd make a fantastic addition to the Newgrounds Moderating Staff. I'm starting college rather soon as a full time student, and I'll be living at home without a job therefore. So I'll have the time to invest in managing the forums...

With just enough left over to go out and get shit-faced.

And such,
Dan Paquette

Response to: Fert Fetishism Posted October 9th, 2006 in General

FUNNIEST EVER! WIN!

Fert Fetishism

vBulletin new root admin... Posted September 23rd, 2006 in Programming

I have vBulletin, and I'd like to run an SQL query to remove the current root admin, and replace it with another member. Can I do this?

If not, I'd simply like to know what query I can run to promote a user to administrator.

Response to: Flash PHP form problem. Posted September 5th, 2006 in Game Development

Problem solved, case closed.

Response to: Flash PHP form problem. Posted September 5th, 2006 in Game Development

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home2/chris/public_html/freeporn/post.php on line 7

That's what you're gets...

sentOk=1

And that's what mine gets.

Response to: Flash PHP form problem. Posted September 5th, 2006 in Game Development

At 9/5/06 03:10 AM, BleeBlap wrote: I don't remember what the defualt is so try:

senderLoad.sendAndLoad( "http://thyelite.com/freeporn/post.php" , receiveLoad, "GET");

with the php DFox gave you above.

With his PHP, no email is sent. With my PHP, an empty email is sent. Same results.

freeporn?

I told my host to be creative with the directory he put me in. He thinks freeporn is creative.

there's not really free porn. =/
Response to: Flash PHP form problem. Posted September 5th, 2006 in Game Development

http://rapidshare.de../32009814/1.zip.html

For some reason, turning on script assist made the receiveLoad function work. This is weird because none of the script changed...At all. So now, not only is it not working, but it also tells me it's not. Which is good. At least something works.

At 9/5/06 02:56 AM, DFox2 wrote:
Yeah, I didn't see any errors.

Try specifying the http method (get or post) within the sendAndLoad call.

Right over my head. I don't actually know actionscript, most of this is from other examples that I've taken and utilized. So, I would have no clue as to what this...

senderLoad.sendAndLoad("http://thyelite.co
m/freeporn/post.php",receiveLoad);

...would look like with the method tagged on the end, or whether or not it should be marked asn an expression or not.

Response to: Flash PHP form problem. Posted September 5th, 2006 in Game Development

At 9/5/06 01:45 AM, DFox2 wrote:
I don't think you understand that if you don't have $_GET or $_POST while using those variables sent to PHP then it can't work... Unless you have register globals enabled which probably isn't the case.

Neither one solved the problem. It ended up making the script less functional. Did you have a look at the Actionscript?

Response to: Flash PHP form problem. Posted September 5th, 2006 in Game Development

http://rapidshare.de../32005109/1.zip.html

That's the updated code. No changes other than the spelling. Thanks for finding those errors.

The PHP, I don't think, is wrong. Trying it either with GET or POST yeilds no email sent at all whereas my way sends an email without any variables included.

The problem lies in my actionscript not sending the variables, I think. So, any other takers?

Response to: Flash PHP form problem. Posted September 4th, 2006 in Game Development

You might not want to use the above link. Here's an updated version with a more complete code. Sorry for the double post.

http://rapidshare.de../31999992/1.zip.html

Flash PHP form problem. Posted September 4th, 2006 in Game Development

I've built a form in Flash. Flash is supposed to send the variables from the text boxes to a serverside PHP document, which then sends them to my email. When I press the enter button, all I get is a blank email with an unknown sender, and all it says is:

Email:
Pass:

It should have what was in those text boxes after, but they are blank. The fact that I'm geting an email means my PHP is right. Also there is a small bit of code that delivers a successful or failed message on the flash. I had it working, but for some reason, it won't work anymore after I made slight alterations to the code...That I can't undue because I completely forgot. If there's anyone out there that has a bit of free time and equal actionscript and PHP know-how, could you take a look at my script, and figure out why the hell it isn't working for me?

http://rapidshare.de../31998799/1.zip.html

Lol, Internet War! Posted July 21st, 2006 in General

http://forum.ebaumsworld.com/index.php

eBaum's World is up to their sneaky practices again by stealing the telemarketer audio from YTMND. And of course, YTMND attacks.

Response to: Attn: Soartan0794 Posted July 19th, 2006 in General

That's why we have the PM system.

Response to: Sex is overrated!! Posted July 18th, 2006 in General

At 7/18/06 02:55 AM, SirLebowski wrote: Sex *IS* overrated. I give it a 6/10 simply for orgasm, but the whole build up is nasty.

Well that's a kind of boring outlook.

Response to: Yo, fuck children. Posted July 15th, 2006 in General

I fail to see how fucking children will solve the problem. =/

Looking for an RPG Posted July 15th, 2006 in Where is / How to?

It's an RPG here on Newgrounds. I want to say it is themed after Zelda, but it might not be. It was one where you could go to Newgrounds (represented as a building), and if I recall correctly, you could talk to Tom Fulp.

Think you guys can help me find it.

Response to: create a new myspace slogan! Posted July 13th, 2006 in General

Yet they still gain new memberships.

create a new myspace slogan!

Response to: Is A Real Life The Best Mmorpg Posted July 13th, 2006 in General

OMFG IT WON'T INSTALL!

Response to: No One Will Reply To Me In A Thread Posted July 13th, 2006 in General

We don't like you. :)

Response to: what time do u go to bed? Posted July 10th, 2006 in General

It's 5:09 in the morning, and I'm still up! Whoot!

Response to: I'll rate your life. Posted July 9th, 2006 in General

At 7/9/06 05:47 PM, duckiesrock wrote: Digitalicious-ultra sad
get a life

Oh man, thanks for your profound advice. I never realized how easy it really is. Well, I've got some soul-searching to do, so I bid thee farewell. Thank you so much for all your help.