This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Converts a string to Title Case based on one set of title case rules | |
// Put <no_parse></no_parse> around content that you don't want to be parsed by the title case rules | |
// Test the function : | |
// echo titleCase("this is a test <no_parse>do you not believe me</no_parse> here is the rest of the string"); | |
// Which would yield the following output : | |
// This Is A Test do you not believe me Here Is The Rest of The String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.actionscriptflashguru { | |
//native libs | |
import flash.display.Sprite; | |
import flash.display.Stage; | |
import flash.display.MovieClip; | |
import flash.events.MouseEvent; | |
import flash.events.Event; | |
import flash.events.TextEvent; | |
import flash.events.EventDispatcher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var testXml = <l> | |
<a atribute1="sadsdaf" atribute2="asdfsda"> | |
<b> | |
<g>test</g> | |
</b> | |
<c>asdfdsaf</c> | |
</a> | |
</l>; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Variables to embed: | |
// Tag names: | |
var l:String = "l"; | |
var a:String = "a"; | |
var b:String = "b"; | |
var g:String = "g"; | |
var c:String = "c"; | |
// Attribute name | |
var atribute1:String = "atribute1"; | |
// Attribute value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/***** | |
* Function Name: | |
* dirXml | |
* Description: | |
* Print out an XML Tree to the console (trace) using a "Depth-First Tree Traversal" | |
* http://en.wikipedia.org/wiki/Tree_traversal#Depth-first | |
******/ | |
//How to Use this function (function source code below): | |
/* | |
//Example: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Astra depends on some component libraries. | |
//For instructions on how to set up go to the following URL | |
//http://www.actionscript-flash-guru.com/blog/19-tree-menu-with-actionscript-as3.php | |
//set up the tree | |
import TreeCustom;var mytree:TreeCustom = new TreeCustom(); | |
mytree.setSize(500,200); | |
this.addChild(my tree); | |
mytree.init(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fb:fbml> | |
<fb:request-form | |
action="" | |
target="" | |
method="POST" | |
invite="true" | |
type="Sketch 'n Pass" | |
content="Check out my drawing :) | |
<fb:req-choice url='<?php echo $config->topURL."/".$config->fbAppName."/?".$this->inviteURLVars;?>' | |
label='Check it out' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FB.ui({ | |
method: 'apprequests', | |
title:'Suggest '+fbAppName+' to your friends', | |
message: 'I thought you would dig this app!', | |
data: 'gameID=96' | |
}, onInviteFriend); | |
//jquery required for ajax function | |
onInviteFriend = function(response) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This code is depricated, with the release of the PHP GRAPH LIB v4.0, still the API calls for getting userIDs is very similar. | |
//This parses the data generated in this piece of code https://gist.github.com/nicholasdunbar/8809354 | |
public function getUserIDsFromRequests($sentRequestsStr){ | |
$config = Zend_Registry::get ( 'config' ); | |
$sentRequestsArray = explode(",", $sentRequestsStr); | |
$sentRequestsLen = count ( $sentRequestsArray ); | |
$sentUsersStr = ""; | |
if ($config->isFacebookApp){ | |
$facebook = new Facebook(array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
This shows you how to take something like this: | |
http://www.actionscript-flash-guru.com/example_files/embed_scripts/multi_row_css_example.html | |
to this: | |
http://www.actionscript-flash-guru.com/example_files/embed_scripts/multi_row_css_example_2.html | |
--> | |
<style type="text/css"> | |
ul.miltiline { |
OlderNewer