____  _ ____ ____ ______ ____  
|___ \| |___ \___ \____  |___ \ 
  __) | | __) |__) |  / /  __) |
 |__ <| ||__ <|__ <  / /  |__ < 
 ___) | |___) |__) |/ /   ___) |
|____/|_|____/____//_/   |____/ 
      

i pwn all thats all u need to know.

Wednesday, August 29, 2007

Flash Form Components

This is Flash MX (F6/AS.1), but should work in Flash8/AS.2.

Frame label 'form'> Frame 1>

//Form Components//by kurt.grung 3l3373.com//

//Tab index
name.tabIndex = 1;
location.tabIndex = 2;
age.tabIndex = 3;

//Radion buttons
function radioDisplay(component) {
radio = component.getValue();
}
gender.setChangeHandler("radioDisplay");

//Combobox
birth.setChangeHandler("comboDisplay");
onSubmit = function () {
texte = comment.text;
_root.gotoAndStop("result");
};
for (i=1970; i<1990; combo =" component.getSelectedItem().label;" mylabels =" new" i="0;" list="component.getSelectedItem().label;" listdisplay="" checkbox="" mycheck="[flash," function="" var="" j="" in="" if="" checke="You like: " s="" nothing="" for="" i="0;">1) {
_root.bar._visible = true;
} else {
_root.bar._visible = false;
}
};

//Push Buttons
onReset = function () {
//radio buttons
male.setValue(false);
female.setValue(false);
other.setValue(false);
//listbox
birth.setSelectedIndex(0);
//combobox
country.setScrollPosition(0);
country.setSelectedIndices(null);
//checkbox
var j;
for (j in myCheck) {
myCheck[j].setValue(false);
}
//text
comment.text = "";
bar._visible = false;
};
//Submit button
onSubmit = function () {
texte = comment.text;
_root.gotoAndStop("result");
};

//Style sheet
L337css = new FStyleFormat();
L337css.face = 0xffffff;
L337css.background = 0xffffff;
L337css.arrow = 0x000000;
L337css.scrollTrack = 0xcccccc;
L337css.highlight = 0xcccccc;
L337css.darkshadow = 0xcccccc;
L337css.selection = 0x000000;
L337css.textColor = 0x000000;
L337css.addListener(bar);
L337css.addListener(country);
L337css.addListener(flash);
L337css.addListener(games);
L337css.addListener(beer);
L337css.addListener(sport);
L337css.addListener(art);
L337css.addListener(male);
L337css.addListener(female);
L337css.addListener(other);
L337css.addListener(birth);
L337css.addListener(submit);
L337css.addListener(reset);
L337css.addListener(back);
comment.backgroundColor = 0xffffff;
result.backgroundColor = 0xffffff;
//
stop();


Frame label 'result'> Frame 7>

//Results
result.text = "You are a "+radio+"\n";
result.text+= "You are from "+list+"\n";
result.text+= "You were born in "+combo+"\n";
result.text+= checke;
result.text+= "You wrote a nice word for us:\n"+texte;
//
stop();
//


Sample files
http://3l3373.com/dl/tutorials/formX/formX.rar

Let me know if this helps or u need help ;)

Friday, August 24, 2007

//Convert a String Variable into an Integer or Numbers/Numeric’s

This sniplit converts variables into numeric’s allowing you to interact with them in that maner (adding subtracting etc).


//code

//vars
var myInt1="35";
var myInt2="35";
var varX;
//parseInt convert
myInt1=parseInt(myInt1);
myInt2=parseInt(myInt2);
//add vars
varX=myInt1+myInt2;
trace('varX: '+varX);
//end
//outputs: varX: 70

//more
http://3l3373.com/blogz0r/2007/08/xml-variable-string-to-numeric.html

Labels: , , , , ,

Thursday, August 16, 2007

//embed video into HTML

This snippet below displays how to add MP4/Mpeg video into an HTML document.


// click here for code.

Above change:
value="FILENAME"
src="FILENAME"

With your video file name and extension.

Hope this helps someone.

Tuesday, August 14, 2007

XML Variable String to Numeric conversion

This code can be used with Eyeblasters polling system, or any stanalone XML feeds.

//ActionScript code


//XML Variable String to Numeric conversion//by kurt.grung 3l3373.com//
xml = new XML();
xml.ignoreWhite = true;
xml.load('data.xml');
//
xml.onLoad = function(){
nodeX = this.firstChild.firstChild.nextSibling.childNodes;
lenX = nodeX.length;
trace('XML vars\n---');
for(var n=0; n!=lenX; n++){
numX = parseInt(nodeX[n].attributes.counter);
_level0['celebTextbox'+n] = numX;
trace('celebTextbox'+n+' = '+numX);
}
trace('\n');
sortX();
};
//


//XML code



2004-10-20 19:11:36.180















//Referance
http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary621.html
http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001201.html

Tuesday, August 7, 2007

// London Zombie Walk 2007






Calling all Zombies - World record zombie walk attempt!
Meeting place 9:30 in Leicester Square, 27 August 2007. On hand will be several professional make-up artists, to set together any mangled zombies. Bring all your mates time to make zombie history! ... The current world record is Pittsburgh, USA (2006) at a total of 894. After the walk meetup at Odeon West End Cinema, Leicester Square at 10:30am to feast on the screening of THE ZOMBIE DIARIES, at this year's FrightFest horror festival.




//Help spread the word! Add this code to myspace or website

//small code (500x350) copy below.



//large code (730x511) copy below.



More info
http://www.facebook.com/group.php?gid=2427137779
http://www.myspace.com/zombiewalkuk
http://www.frightfest.co.uk/film21.html
http://www.thezombiediaries.co.uk/
http://www.zombiewalk.com/
http://www.zombiewalk.com/forum/
http://www.fleshmob.co.uk/links/
http://www.fleshmob.co.uk/tips/
http://www.terror4fun.com/
http://www.youtube.com/howtomakezombieskin/
http://www.quietearth.us/zombie-walk-leicester-square.html
http://www.eatmybrains.com/more/

An email from the zombie walk peeps!

Hey all...

Firstly - thanks for registering on The Zombie Diaries website with an interest in our World Record Zombie Walk attempt.

We're all good to go now - it's all been officially approved, and the full team is in place. The word is spreading (a nice piece in The London Paper this week, and there will be ads in Friday's Metro and London Lite), so it's about time to spread the full details.

We really want to achieve the world's biggest gathering of zombies with this and really put Film4 FrightFest and The Zombie Diaries on the global map. Yes, it is early in the morning, but how good would it be to take part in a World Record breaking zombie march first thing on the Bank Holiday Monday! (-;

Contrary to what The London Paper stated, we are asking most people to turn up with their own make-up. There will be make-up artists there (from The Zombie Diaries and Shaun of the Dead) during the event, but they are there mostly for creating a small core of ‘professional’ looking zombies, although they will be free to mingle and touch-up the rest of the masses (oo-er!) after they’re finished with their main members of the undead.

So, please feel free to be as subtle, or as extravagant with your outfit / make-up as you like. If you want to dress up and really go to town, brilliant, but if you want to keep it simple and just have a spot of face paint and blood, or even just wear a zombie mask, then that's fine too.

There are make-up guidelines all over the web (www.terror4fun.com or www.fleshmob.co.uk for instance), but you can keep it very simple with a tube of white face, a tube of black face paint (go easy with this though) and a tube of blood. Keep the costs simple if you like, by pitching in for these things in a group, and help each other apply in the morning.

The public facilities at Leicester Square are clean and are open 24 hours, so feel free to smear make-up on when you arrive.

As for clothes, old clothes with a tear or two and some blood on are brilliant. Fancy dress (paramedics? Hari Krishnas?) even better. Or just wear normal clothes - it's all ok.

So, here's the full schedule.

8am - Gates to Leicester Square Gardens will open and we'll have classic zombie tunes (courtesy of Zomblee from www.eatmybrains.com - think more Goblin than Cranberries) playing in the background on the sound system. There will be one or two 'indie' filmmakers there from the off filming arrivals in a hopefully 'less than busy' Square which could look pretty cool.

9-9.30am - Professional make-up artists (including the Zombie Diaries crew and Stuart Conran from Shaun of the Dead) will finish the make-up for our select professional zombies / guests, and will start to mingle with the crowd for touch-up make-up.

9.25am - Mamma's Kittens Grotesque Burlesque Zombies (provided by www.themonstercompany.co.uk) to arrive in the square. (-;

9.30am - The official head count and photo call. This is the core of the whole event, so we really need all people who are coming for this to be inside the Leicester Square Gardens at this point. Several of the cast and crew will arrive at this time.

9.45am-10.45am - 'Zombies' are free to wander around the square, interacting with the indie filmmakers present, or making themselves available to press photographers and TV crews.

Alternatively, you can also leave the gathering at this time and remove make-up if you want to, leaving plenty of time to clean up before the screening of The Zombie Diaries at the Odeon West End if that's what you'd prefer. We will be providing non-perfumed wet-wipes if you need them.

10.45am - Screening of the film. We will have free ‘I survived the Zombie Walk World Record’ T-shirts for all cinema ticket holders.

If you haven’t yet booked your ticket to the screening of The Zombie Diaries, please visit the online Odeon booking system below, or visit www.frightfest.co.uk for details on how to make telephone bookings.

https://www.odeon.co.uk/fanatic/booking/s139/p27773/

If you're not attending the screening, then feel free to hang around in the square afterwards until the FF crowd re-emerge and then head for a well-deserved pint at a suitable pub, or maybe even form a crowd of like-minded zombies and head off to Notting Hill Carnival to spread the undead word...!

Again – thanks for all your interest so far, and I hope to see you all there on the day!

"Brrraaaiiiinnnsss!"

The World Record Zombie Walk Team

Labels: , , , , ,

Friday, August 3, 2007

//flash XML cache hack

here is a simple work around to this issue, by adding the parameter '?+Math.random()', flash will now be fooled into thinking it is a new URL each tme using the randomizer function each time the file gets called.


//code
xml.load("xmlData.xml?"+Math.random());

//reference
Live Docs

Labels: , , , ,

Thursday, August 2, 2007

//ipX

This tutorial shows you how to build a flash file which will show the user their IP address which they are connecting on.

//Preview






//ActionScript Code

///////////////////// Start ////////////////////////////

//crossdomain
Security.loadPolicyFile("http://localhost/crossdomain.xml");
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");

//feildVars
hdrTxt.text = '//ipX_';
resTxt.text = 'loading ...';

//dataLoad
var dataX = this
varReceiver = new LoadVars();
varReceiver.load("http://localhost/ip.php");
varReceiver.onLoad = function(){
dataX.resTxt.text = "ip address: " + this.ip + "\n";
trace("ip address: " + this.ip + "\n");
};

//
stop();

///////////////////// End ////////////////////////////


//PHP Code

///////////////////// Start ////////////////////////////

$ip = getenv('REMOTE_ADDR');
$ip = "&ip=".$ip."&amp;amp;";
echo $ip;

///////////////////// End ////////////////////////////

//Sample files
http://3l3373.com/dl/tutorials/ip/ipX_.rar

//Additional info
crossdomain guide (http://3l3373.com/blogz0r/2007/08/crossdomain-guide.html).

Labels: , , ,

//crossdomain guide

How to 'Crossdomain' guide, here is all you need to get you started (below). Crossdomain basically allows you to connect between servers (i.e. load in external files from external URLs/domains) pretty handy when you need information sitting on external servers.

This needs to be added to the file you are trying to receive the information from.


//crossdomain Action Script Code
Security.loadPolicyFile("http://domainX.com/crossdomain.xml");
bc[as].System.security.allowDomain("*.domainX.com");
bc[as].System.security.allowInsecureDomain("*.domainX.com");
System.security.allowDomain("*.domainX.com");
System.security.allowInsecureDomain("*.domainX.com");
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");

This need to be added to the _root of the external server you are trying to connect to to receive the data into the flash. XML files needs to be called 'crossdomain.xml'.

//crossdomain XML Code

cross-domain-policy
allow-access-from domain="*.domainX.com"
allow-access-from domain="*"
cross-domain-policy
http://3l3373.com/dl/tutorials/crossdomain/crossdomain.xml


Eyeblaster Crossdomain IPs/URLs
http://3l3373.com/dl/tutorials/crossdomain/eb_crossdomain.xml

//Sample Files
http://3l3373.com/dl/tutorials/crossdomain/crossdomain.rar

//useful links
http://moock.org/asdg/technotes/crossDomainPolicyFiles/

Labels: , , , ,

Wednesday, August 1, 2007

//arrayX _sort

Here’s an example of how to sort an array either using 'Numeric’s' or 'Alphabet' characters …

//Sample




//Action Script


//////////// Start ////////////

//feildVars
hdrTxt.text = '//arrayX_sort';
resTxt.text = 'loading ...';

//sort_array
trace('//arrayX_sort \n');

//alphabet array
trace('//alphabet array');
resTxt.text = '//alphabet array \n';
var alphabet_array:Array = new Array("d", "e", "a", "b", "c");
trace('show array: \n'+alphabet_array);
resTxt.text += 'show array: \n'+alphabet_array+'\n';
alphabet_array.sort();
trace('sorts array: \n'+alphabet_array);
resTxt.text += 'sorts array: \n'+alphabet_array+'\n';
alphabet_array.sort(Array.DESCENDING);
trace('sorts array desc: \n'+alphabet_array+'\n');
resTxt.text += 'sorts array desc: \n'+alphabet_array+'\n\n';

//numeric array
trace('//numeric array');
resTxt.text += '//numeric array \n';
var numeric_array:Array = new Array("14", "15", "13", "12", "11");
trace('show array: \n'+numeric_array);
resTxt.text += 'show array: \n'+numeric_array+'\n';
numeric_array.sort();
trace('sorts array: \n'+numeric_array);
resTxt.text += 'sorts array: \n'+numeric_array+'\n';
numeric_array.sort(Array.DESCENDING);
trace('sorts array desc: \n'+numeric_array+'\n');
resTxt.text += 'sorts array desc: \n'+numeric_array+'\n';
//end
trace('//end sort');
resTxt.text += '\n //end _sort \n';
//

//////////// END ////////////

//Sample files
http://3l3373.com/dl/tutorials/arrayX/arrayX_sort.rar

//Additional Info
http://3l3373.com/blogz0r/2007/04/arrayage.html
Live Docs

Labels: , , ,