Wednesday, December 17, 2008

javascript state country resource

A good script for state and country dropdowns.

http://javascript.internet.com/forms/country-state-drop-down.html

Tuesday, December 2, 2008

jQuery Resource Links

Plugins and other Javascript resources for jQuery.

Time Entry plugin for jQuery


String manipulation examples and plugin

http://www.stilldesigning.com/dotstring/

Friday, November 14, 2008

Prototype JSON Evaluation Method

A simple function showing how Prototype can parse JSON


function parse_json()
{
var data = '{"name":"value", "array_names":["Violet","June"], "key_array": {"red":"opens back door","blue":"opens front door"} }'.evalJSON();

//json is the shiznit
alert(data.name);
alert(data.array_names[1]);
alert(data.key_array['blue']);
}


Sample Prototype Ajax Function using JSON



Javascript:

function php_json()
{
var url = 'json';
var id = 0;
var arrParams =
{
id: id,
}

var hash = $H(arrParams);
var params = hash.toQueryString();

var myAjax = new Ajax.Request(url,
{
parameters: params,
//$('id_of_form_element').serialize(true),
method:'post',
onSuccess: function(transport)
{

strResponse = transport.responseText || "empty";
strResponse = strResponse.replace(/[\r\n]+/g, "");


if(strResponse != 'empty')
{
data = strResponse.evalJSON();
alert(data.key_array.red);
}
else
{
alert('strResponse is empty');
}
},
onFailure: function()
{
alert('Something went wrong with changing the canceled status');
}
});
}

php:

public function json()
{
$this->render = false;
$red = 'opens side door';
$id = $_POST['id'];
$json=END needs 3 < before END though, won't allow this in the editor
{
"name":"value",
"array_names":["Violet","June"],
"key_array": {
"red":"{$red} {$id}",
"blue":"opens front door"
}
}
END;
echo $json;
}

Thoughts on production environments with web applications

A good production environment


Environments:

PRODUCTION: normally the current live version

PRODUCTION_COPY - used to redirect live while development is being uploaded to regular PRODUCTION. This should reduce hiccups and keeps the site from being temporarily down for updates. Once copied over production

PRODUCTION_PREVIOUS: previous PRODUCTION environment before last changes were uploaded to production; created in case something wasn't caught in development and production needs to revert back to this while the problems are fixed in development.

DEVELOPMENT: Used for working on updates, after development is tested thoroughly and the client (if needed) has approved changes.

The environments above won't make the product foolproof (an error may not have been caught for several development phases), but at least it reduces errors in the live product.

Updates or project completed scenario:
  1. Have QA or amateur testers view the project in the DEVELOPMENT version checking for problems. If no problems are found, move on.
  2. Optional... maybe have several older productions, save PRODUCTION_PREVIOUS as PRODUCTION_PREVIOUS_001 - or the naming method you prefer.
  3. delete all files in PRODUCTION_PREVIOUS
  4. save PRODUCTION_COPY to PRODUCTION_PREVIOUS.
  5. Redirect PRODUCTION to PRODUCTION_COPY
  6. delete all files in PRODUCTION - make sure site is redirected to the copy
  7. save DEVELOPMENT to PRODUCTION, make sure all files transferred.
  8. Redirect live site to PRODUCTION once again.
Note: The steps above should be done for your files and databases.

Your project recently under DEVELOPMENT is now live and you have several steps to eliminate most errors and you have multiple backups.

Sample use for Environments

Main Site environments:
  • mainSite
  • mainSite_copy
  • mainSite_previous
  • mainSite_dev

Admin environments:
  • admin
  • admin_copy
  • admin_previous
  • admin_dev

maybe main and admin share things
  • shared
  • shared_copy
  • shared_previous
  • shared_dev

Wednesday, October 1, 2008

Akelos Command Line Notes

Akelos logo

Akelos is a PHP framework modeled after Ruby on Rails.

Windows command line reference for Akelos

Add PHP to your path for easy php.exe commands. Shorthand for:

Before:
path/to/php.exe script/generate scaffold book

Now:
php script/generate scaffold book

Full php.exe shortcut tutorial

Tuesday, September 9, 2008

Nevada Commercial Real Estate Listings

Commercial Property Marketing & Listing Resource


Property Line, a privately held company, began in Las Vegas during 1984 as a graphic design, print, and distribution facility specializing in information networking for commercial real estate brokerage firms. During the summer of 1992 Property Line transformed into a digital company and began creating databases online as a new and innovative way for commercial brokers to network.

http://www.propertyline.com

Friday, August 29, 2008

CSS web designers and Illustrators



Screenshot

Steve Leggat - Freelance Designer.


Screenshot

Ladies wear website design.


Screenshot

Furniture Website layout.

Thursday, August 28, 2008

PHP video tutorials



Shopping cart & Paypal from Scratch

PHP, MySQL and Paypal shopping cart video tutorial.
phpvideotutorials



Job Website from Scratch

Job Website from scratch tutorial.
phpvideotutorials

Monday, August 11, 2008

Jewelry Store Ad - Bright Chainmaille Necklace

Bright Chainmaille Necklace with Anodized purple accents


This necklace is made from anodized purple aluminum rings and regular aluminum rings. It is extremely bright and eye catching. There is also a matching bracelet for sale if you would like a set.

The rings are 16gauge and 1/4" in diameter.
The width of the necklace is 3/4" and the length is approximately 17.5".

Wednesday, August 6, 2008

Thursday, July 31, 2008

Tuesday, July 29, 2008

SEO tools, search engine optimization

SEM and SEO Free Tools


http://www.toolreviewguide.com/sites/dgarber/_files/Image/Crescent%20wrench.jpg

SEI Search Engine Intelligence


Bruce Clay SEO Tools

Content Management for Web Development


CMS content management system

Our CMS gives you the ability to edit content in your website. Create pages, new sections, articles, upload images and more. The pages within the website may be edited in an intuitive and user friendly interface.

Visit us for great Web Development

Legal Services Phone Talker

Saturday, July 26, 2008

Search Engine Optimization

SEO for a Stronger Web Presence



SEO defined

SEO - Search Engine Optimization. This is how a web site is optimized for web exposure. Without keywords in your site and link exchanges, your site won't be likely to show up in search engines. Don't hesitate to call for a custom web site design using SEO.


SEO_services.jpg


Organic Search Engine Optimization

Organic Search Engine Optimization is essential for getting people to come to your site naturally. For a business to obtain a top search engine ranking on their targeted market, keyword research is a must. Good SEO also reduces the cost of getting a higher rank.

SEO Services

Part of search engine optimization involves the process of making a web site have a high page rank. We submit your site to forums that are related to your website.

SEO at VectorFlash.net

Free Link Exchange Directory, Add URL

Free Link Web Directory

Currently you may add a website to our directory without a reciprocal link. We have mostly links from Las Vegas Nevada, but will place other links in our directory from other locations.

http://www.top10webhosting.com/content/wp-content/uploads/2007/10/links.jpg

Add My URL

Free link exchange service at http://www.vectorflash.net/add_urls.php. We will accept links from anywhere. Submit your web site's link today. We only ask that you have a reciprocal link to us if it is related to any of the sites services.

Free Link Submission

Free Site Submission to our large website directory. Our link exchange network is growing, add a url to our directory and improve your search engine optimization.

Cheap Web Hosting Las Vegas 24/7 support


Cheap Web Hosting in Las Vegas 24/7 support

  • FREE 24x7 rapid account setup
  • Custom Support also available
  • FREE 24x7 monitoring
  • Our World-class Data Centers
  • Best-of-breed routers, firewalls & servers
  • 24x7 onsite physical security
  • Secure SSL Certificates (optional extra)


Domain Pricing Per Year
All prices are listed in United States dollars ($).

1 yr 2 yrs 5 yrs 10 yrs
.COM* 9.99 9.99 9.99 9.99
.INFO* 9.99 9.99 9.99 9.99
.MOBI* 14.99 14.99 14.99 14.99
.NET* 9.99 9.99 9.99 9.99
.ORG* 9.99 9.99 9.99 9.99
.TV 44.99 44.99 44.99 44.99
.US 9.99 9.99 9.99 9.99
.BIZ* 9.99 9.99 9.99 9.99
.WS 9.75 9.65 9.35 8.95
.NAME* 7.95 7.95 7.95 7.95
* Plus ICANN fee of 20 cents per domain name year. Certain TLD's only.

Cheap Web Hosting in Las Vegas


From a basic Web site to a massive online superstore, we have the perfect full-service hosting solution for every need and every budget. Our hosting plans offer 99.9% guaranteed uptime, cream-of-the-crop routers, servers and firewalls and the best 24/7 support and maintenance on the Web. With HostNV.com hosting and servers, your web presence is secure, reliable and lightning-fast. Best of all, every plan comes with a rich feature set to help you make the most of your site. Choose a hosting solution today!


Web Hosting
From $3.99/month
Ideal for most individuals and small business.
  • Up to 300 GB disk space
  • Up to 3,000 GB bandwidth and FREE scripts
  • New! All plans have Google Webmaster Tools

Wednesday, July 23, 2008

VectorFlash client - Monarch Promotions

Monarch Promotions is a screenprinting, embroidery, and import company. We service all areas of printable ad products, apparel as well as custom products. Monarch Promotions is the company that gets your printing and graphic design jobs done right. We give your ideas wings!

Las Vegas T-shirt Design Firm


Las Vegas Coyote Ugly Graphic Development


Las Vegas Tao Artwork Screenprinting
Custom Graphics
Creative Promotional Products
Unique Apparel
T-shirts
Bobble-heads
Gift items and more

Las Vegas Screen Printing Design Firm

Saturday, July 19, 2008

VectorFlash client - Xpedient Legal Services

Legal and Runner Services

Xpedient Runner Service is the Premiere legal service for Southern Nevada's businesses both large and small. Satisfaction is guaranteed with courteous, knowledgeable, and well-organized staff. Xpedient Runner Service's goal is simple: to bring customers the fastest, most reliable runner / carrier service in Southern Nevada. At XRS (Xpedient Runner Service), efficiency is a staple part of the business we provide our customers. It is the cornerstone of XRS's work ethic. This is essential, not only for XRS to succeed, but also for our clients' businesses to grow and flourish as well. We provide legal process, legal services, legal filings, ROCs, obtaining licenses, and deliveries on a daily-scheduled timetable. There are four plans to choose from to better suit your needs as well as an immediate pick up option.

A service which Xpedient Runner Service is proud to offer is our rush delivery service. The rush delivery service would be best utilized when a client has an urgent task or deadline to meet. We are offering a special package for our rush delivery service.

Las Vegas Legal Carriers

VectorFlash client - The Las Vegas Glove Factory

Las Vegas Glove Factory

Let us help you succeed. As a company, family owned and operated, we understand how hard every business has to work to become successful. Let us give you a hand with one of our products from UniSeal®, Medline, ADENNA, Alcan, and Metrex to help you reach your goal. And don’t worry, at The Las Vegas Glove Factory NO ORDER IS TOO SMALL OR TOO LARGE, plus we offer you the following services:

Gloves, Disposables, and Chemical Prevention Product Supply List:

  • Exam Gloves Supply
  • Hand Protection
  • High Risk
  • Hospital Work Gloves
  • Las Vegas Latex Gloves
  • Powder-Free Gloves
  • Pro-Derma Gloves
  • Rubber Gloves
  • Standard Gloves
  • Surgical Needs
  • Synthetic Gloves
  • Vinyl Gloves
  • Medical Examination
  • Latex-Free Gloves
  • Dental Gloves
  • Polyurethane Gloves
  • Sterilization Pouches
  • Booties/Shoe Covers
  • Disposable Lab Coats
  • Disposable Aprons
  • Sterile Gloves
  • Hand Hygiene
  • Instrument Reprocessing
  • High Level Disinfection
  • Surface Disinfection
  • Liquid medical Waste Disposal
  • Face Protection
  • Face Masks
  • Housekeeping
  • Janitorial Cleaning Products
  • Floor Care Products
  • Medical Disposables
  • Postmortem Supplies
  • Tattoo Disposables
  • Tattoo Needles
  • Tattoo Ink Cups
  • Tattoo Thermal Paper



Nevada Gloves Supplier, Las Vegas Glove Store, Distributor, vinyl, medical, safety, powdered, powder-free, Gloves for Sale, Selling Gloves, Online Stores, Gloves shop, medical examination, uniseal high-risk gloves, Exam Gloves Supply, Las Vegas Latex Gloves, surgical, vinyl gloves, powder-free gloves, synthetic gloves, Las Vegas Company, hand protection, Pro-Derma, Standard, supply, distribution, Online Stores, rubber glove shop, Las Vegas Latex Rubber Gloves, Nevada vinyl gloves, nitrile exam

About Vectorflash.net

Hi, my name is Derek Kier, I'm the founder of this website. My background is in Web Development and design. I am very interested in interactive design and essentially making things work. My business is currently in Las Vegas Nevada though I design websites nationwide. I love building beautiful and functional websites and applications. Feel free to call me if you have any questions or if you would like me to create your next website.


Vice President Biography

This is Michael Sweeney, I'm the new VP for Vectorflash. I'm an excellent DBA (database administrator), proficient in MySQL as well as MSSQL. Making a strong data-rich back-end is crucial for a website's success.


VectorFlash.net

VectorFlash.net is a company that delivers dynamic scripting to your website enabling custom content management, web development, graphics, animation and video support.


Success on the Net

To be successful on the Net, it is important to have a strong web presence. We achieve this by heavy link exchanges. The link exchange should be with directories or companies that are related to our client's site. You wouldn't want to list a Payday loan company on a charity website for instance.


Dynamic Scripting

We try to make our sites as dynamic as possible and easy to maintain. Dynamic scripting means many things; it can be to reuse functions and variables and it can mean the ability to use an object and change its size without making another object. Basically, we try to be more efficient by making websites dynamic.

Some programming and coding languages we use are PHP, MySQL, Javascript and ASP. For more information on development, visit our Web Development page.


Henderson Flash Design

If you need a multimedia presentation done in Flash, please contact us. We combine Flash, Video, Animation and Graphics to enliven your web presence. Henderson Flash Design


Las Vegas Database Development

We use a PHP and MySQL combination for Linux-based web development. For Windows-based websites we can use MS SQL database design. Let us provide you with database driven content to improve your website's usefulness. Las Vegas Database Development

Web Hosting, ASP, PHP, Domains, Cheap


Cheap Dot Coms!



Web Hosting


Affordable web hosting for your website or for your FTP. Your site can be Windows or Linux, using PHP or ASP. Don't have a web designer or web developer? That's fine, Vectorflash.net is your source for quality web design, web development and Flash multimedia.

Domain Names

.COMs under $10.00!

Web Hosting 99.9% Uptime Guarantee!

Everything you need to give your Web site the reliable, high-performance home it deserves!
High Performance Web Hosting


Secure SSL

Secure your site. Boost response and customer confidence with an affordable Turbo or High-Assurance Secure SSL Certificate.
SSL Certificates at HostNV.com


Spam-Free Email Accounts

Fast, reliable, private, secure and spam-free! Free web-based email software included.
SSL Certificates at HostNV.com


Traffic Blazer Product

Get traffic and commerce to your site via search engines.
Get traffic from our Traffic Blazer

Graphic Designs, layouts, sketches, artwork

Graphic Designs and Animation


Net Graphics

Web or Net graphics generally lean towards selling a product or service. Although we have no problem doing graphics for entertainment or market awareness and even branding. We have a lot of fun doing this, so let your imagination run wild when you tell us what you want!


Motion Graphics

Motion graphics can be as simple as an animated GIF or as complex as a fully rendered 3D character. We provide a myriad of animated graphics, simple to complex. For more information on 3D animation visit 3D Projects


Need Web Graphics or a Business Card Design?

We specialize in web-based graphic design. Although we do print design and animated graphics as well.

Business Cards and Print Design

Animation 3d graphics, characters, examples, portfolio

Animation for the Web



2D / 3D Animation and Graphics Portfolio


3D Projects

Vector Flash is affiliated wtih Painting the Web provides 3d modeling, motion graphics and high-end animation.
Tell Us About Your 3D Idea
It's very likely that there is something out there that is similar to what you want. If you want a certain kind of 3D model or animation, please explain it in detail. There are a lot of web sites on the internet that have 3D animations, if one of them is similar to what you want, feel free to give us the link. One of the hardest parts in graphic design or animation is making sure we are on the same page.


3D Modeling Techniques

We generally try to plan things out in sketches or thumbnails. When the idea is realized, we take the idea and use a 3D program and make simple models of the artwork. Once this is done, then we start adding color, texture maps and more complex shape refinement.

Web Site Design Solutions

Generate business with Website Design solutions.

Web Design


Sin City Fantasy Suites

Website Design - solutions that generate business. Our company is a web design, SEO, online marketing, graphic design and website company, based in Las Vegas. We help businesses take advantage of web-based technologies to expand their web presence.

Our company provides search engine optimization, great web designs, online marketing innovative graphic design, and business solutions.

We have developed and designed extensive CMS systems for corporations with restricted access 'Members Only' services. We've also set up websites for businesses promoting a large variety of products and services from Disney collectibles, ad campaigns, resume services.

Our clients have enterprises with unique services and products. Some established, others emerging. We will do what it takes to promote and build your web site's design and presence.

Web Site Design and Development

Wednesday, July 2, 2008

Las Vegas Web Development, Multimedia

Las Vegas Web Development

We believe it is important to treat a website like a piece of software. It should be functional and useful. We don't think that programming should be made just for our client's customer. We want to make the website useful for the website owner as well. Our company uses a variety of programming languages including Flash. As for graphics, we use vector as well as raster based technologies.


Database Administration

We develop using database driven content. We use PHP and MySQL to store and retrieve data pertinent to the website or software we have created. Using databases makes it more efficient to maintain a website.



We produce an environment with the following criteria:
  • Modular scripting. We take advantage of having libraries of reusable functions and classes.
  • To make scripts well documented so multiple people can work on the same project.
Visit Vectorflash.net for Database Driven Web Development

Wednesday, May 14, 2008

mnemonic devices, things to memorize

AS3

class definitions

class properties

AS2

class definitions

class properties

Tuesday, May 13, 2008

Programming Snippets

http://snipplr.com/search.php

Should build Snippets Table in MYSQL

programming_language
section
title
description
keywords
content


Javascript


FORM

select box controls

get selected value

document.getElementById('mode').options[document.getElementById('mode').selectedIndex].value

change selected option in select box by value

document.getElementById('placement').value="mediaplayer";

change selected option in select box by index number

document.getElementById('adSequence').selectedIndex = 0;

function handler_form1()
{
handler_mode();
placement_value();
}

function handler_mode()
{
//getEl = document.getElementById('mode').options
thisSelectBox = document.getElementById('mode');
selected_mode = document.getElementById('mode').options[document.getElementById('mode').selectedIndex].value;
alert(selected_mode);

switch(selected_mode)
{
case "marquee":
document.getElementById('placement').value="mediaplayer";
document.getElementById('skip_upload').value = 'no';
document.getElementById('ad_width').style.display = 'block';
break;
case "interactive":
document.getElementById('skip_upload').value = 'yes';
document.getElementById('ad_width').style.display = 'none';
break;
}

alert(document.getElementById('skip_upload').value);
}

function placement_value()
{
selected_placement = document.getElementById('placement').options[document.getElementById('placement').selectedIndex].value;
alert(selected_placement);
}

visibility methods

document.getElementById('ad_width').style.visibility = 'visible';
document.getElementById('ad_width').style.visibility = 'hidden';

document.getElementById('ad_width').style.display = 'block';
document.getElementById('ad_width').style.display = 'none';
document.getElementById('ad_width').style.display = 'inline';
//inline
inline will make the element act as an inline element—it will be composed into the output flow as if it were a >, even if it were normally a block element such as a


Prevalidation

onkeyup="javascript:limit_characters_field(this.id,5);numbers_only_field(this.id);"

function limit_characters_field(ID,intMax)
{
thisID = document.getElementById(ID);

if(thisID.value.length > intMax)
{
alert('no more than ' + intMax +' characters');
}

thisID.value = thisID.value.slice(0, intMax);
}

function numbers_only_field(ID)
{
thisID = document.getElementById(ID);
original_str = thisID.value;
var pattern = new RegExp(/\D/);
newStr = original_str.replace(pattern,'');
thisID.value = newStr;
//var result = patt1.test(str);

if(pattern.test(original_str) == true)
{
alert('numbers only');
}
}

AJAX

XMLHttpRequest

properties
  1. readyState
    1. 0-uninitialized - contains no data
    2. 1-loading - data is loading
    3. 2-loaded
    4. 3-interactive - may interact, but data hasn't finished loading
    5. 4- complete - object IS initialized
  2. responseText
  3. responseXML
  4. status
    1. 200 -ok
    2. 400 - bad request
    3. 401 - unauthorized
    4. 403 - forbidden
    5. 404 - not found
    6. 500 - internal server error
  5. statusText
event handler
  1. onreadystatechange
methods
  1. abort();
  2. getAllResponseHeaders()
  3. getResponseHeader("headername")
  4. open("method","url",async,["user","pword"])
    1. open("GET","myFile.xml",true)
  5. send(content)
  6. setRequestHeader("label","value")


FLASH


AS2

Multidimensional Associative Array

info = new Array();
info["fast"] = "peugoet 306";
info["sporty"] = "citreon saxo";
info["old"] = "ford fiesta";
info["types"] = {gold:"24k",silver:"sterling"};//new Array({gold:"24k",silver:"sterling"});
info["material"] = {gems:{diamond:"pretty diamond",silver:"sterling"},wood:"sterling"};

function getData(info)
{
trace("test " + info['old']);
trace("test " + info["types"].silver);
trace("material " + info["material"].gems.diamond);
}

function symbol_htmlNumber_conversion(str)
{
if(!char_symbol_array)
{
var intX:Number = 0;
char_symbol_array = new Array();
char_symbol_array['symbol'] = new Array();
char_symbol_array['htmlNumber'] = new Array();

char_symbol_array['symbol'][intX] = " ";
char_symbol_array['htmlNumber'][intX] = " ";
intX++;

char_symbol_array['symbol'][intX] = "!";
char_symbol_array['htmlNumber'][intX] = "!";
intX++;

char_symbol_array['symbol'][intX] = '"';
char_symbol_array['htmlNumber'][intX] = """;
intX++;

char_symbol_array['symbol'][intX] = "#";
char_symbol_array['htmlNumber'][intX] = "#";
intX++;

char_symbol_array['symbol'][intX] = "$";
char_symbol_array['htmlNumber'][intX] = "$";
intX++;

char_symbol_array['symbol'][intX] = "%";
char_symbol_array['htmlNumber'][intX] = "%";
intX++;

char_symbol_array['symbol'][intX] = "&";
char_symbol_array['htmlNumber'][intX] = "&";
intX++;

char_symbol_array['symbol'][intX] = "'";
char_symbol_array['htmlNumber'][intX] = "'";
intX++;

char_symbol_array['symbol'][intX] = "(";
char_symbol_array['htmlNumber'][intX] = "(";
intX++;

char_symbol_array['symbol'][intX] = ")";
char_symbol_array['htmlNumber'][intX] = ")";
intX++;

char_symbol_array['symbol'][intX] = "*";
char_symbol_array['htmlNumber'][intX] = "*";
intX++;

char_symbol_array['symbol'][intX] = "+";
char_symbol_array['htmlNumber'][intX] = "+";
intX++;

//not finished, still needs more symbols
}

Combo Box Listener

playerEvent_cb.addItem({data:"playing_video",txt:"txt",param2:"param2", label:"playing video"});
playerEvent_cb.addItem({data:"idle",txt:"txt",param2:"param2", label:"idle"});
playerEvent_cb.addItem({data:"video_ended",txt:"txt",param2:"param2", label:"idle"});

cb.addItem({data:"0 param",txt:"txt",param2:"param2", label:"playing video"});
cb.addItem({data:"1 param",txt:"txt",param2:"param2", label:"idle"});
cb.addItem({data:"video_ended",txt:"txt",param2:"param2", label:"idle"});



//cb listener handler

var cbListener:Object = new Object();
cbListener.change = function(evt_obj:Object) {


var item_obj:Object = evt_obj.target.selectedItem;

var i:String;
for (i in item_obj) {
trace(i + ":\t" + item_obj[i]);
}
trace("");

};
playerEvent_cb.addEventListener("change", cbListener);
cb.addEventListener("change", cbListener);



Submit.onPress = function()
{
info.playerEvent = playerEvent_cb.selectedItem['txt'];
trace(info.playerEvent);
}

PHP
Form functions

function mk_option($selectID,$value,$text,$data_arr){

if($data_arr[$selectID])
{
$selected = $data_arr[$selectID] == $value ? ' SELECTED' : '';
}

$option =
''.$text.'';

return $option;
}

sample
mk_option:
function getPageDD($data_arr){
//'Home'.


$out =
'';

return $out;
}



BATCH

Basic Commands

md - make directory




Friday, April 25, 2008

Eclipse Notes

  • Make a new project
    • create directory on your machine
    • right click in the navigator panel on Eclipse
      • new>PHP Project
    • fill out project name
    • browse to recently created directory

Saturday, April 19, 2008

notes table normalization

First Normal Form:

  1. Eliminates duplicative columns in the same table.

Thursday, March 13, 2008

Program Plugins

Eclipse

Wednesday, February 27, 2008

Flash AC_FL_RunContent javascript to flash

http://www.kirupa.com/forum/archive/index.php/t-237993.html

Flash swfobject

http://blog.deconcept.com/2006/08/03/swfobject-144-released/

Thursday, February 7, 2008

sendandload php with xml

http://vinodvv.wordpress.com/2006/04/26/flash-sendandload-xml/

var submitListener:Object = new Object();
submitListener.click = function(evt:Object) {
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
if (success) {
result_ta.text = result_lv.welcomeMessage;

} else {
result_ta.text = "Error connecting to server.";
}
};

var result_xml:XML = new XML();
result_xml.ignoreWhite = true;
result_xml.onLoad = function(s){
if(s){
result_ta.text = this.firstChild;
}else{
result_ta.text = "Error connecting to server.";
}
}

var send_lv:LoadVars = new LoadVars();
var xm:XML = new XML("vinod");
xm.ignoreWhite = true;
xm.contentType = "text/xml";
send_lv.xm = xm;
send_lv.sendAndLoad("http://vinodvv/test/sendandloadxml.php", result_lv, "GET");
send_lv.sendAndLoad("http://vinodvv/test/sendandloadxml.php", result_xml, "GET");
};
submit_button.addEventListener("click", submitListener);

PHP Script:

$xml = $_GET['xm'];
echo $xml;
?>

Monday, February 4, 2008

Flash textfield properties, methods, events

Flash textfield properties, methods, event handlers

Method summary for the TextField object

Method Description

TextField.addListener

Registers an object to receive notification when the onChanged and oNScroller events are invoked.

TextField.getDepth

Returns the depth of a text field.

TextField.getNewTextFormat

Gets the default text format assigned to newly inserted text.

TextField.removeListener

Removes a listener object.

TextField.removeTextField

Removes a text field that was created with MovieClip.createTextField.

TextField.setNewTextFormat

Sets a text format object for text that is inserted by a user or by a method.

TextField.replaceSel

Replaces the current selection.

TextField.setTextFormat

Sets the default text format assigned to newly inserted text.




Property summary for the TextField object

Property Description

TextField._alpha

The transparency value of a text field instance.

TextField.autoSize

Controls automatic alignment and sizing of a text field.

TextField.background

Indicates if the text field has a background fill.

TextField.backgroundColor

Indicates the color of the background fill.

TextField.border

Indicates if the text field has a border.

TextField.borderColor

Indicates the color of the border.

TextField.bottomScroll

The bottommost visible line in a text field. Read-only.

TextField.embedFonts

Indicates whether the text field uses embedded font outlines or device fonts.

TextField._highquality

Indicates the rendering quality of the movie.

TextField._height

The height of a text field instance in pixels. This only affects the bounding box of the text field, it does not affect the border thickness or text font size.

TextField.hscroll

Indicates the horizontal scroll value of a text field.

TextField.html

Indicates the current maximun scrolling position of a text field.

TextField.htmlText

Contains the HTML representation of a text field's contents.

TextField.length

The number of characters in a text field. Read-only.

TextField.maxChars

The maximum number of characters that a text field can contain.

TextField.maxhscroll

The maximum value of TextField.hscroll. Read-only.

TextField.maxscroll

The maximum value of TextField.scroll. Read-only.

TextField.multiline

Indicates if the text field contains multiple lines.

TextField._name

The instance name of a text field instance.

TextField._parent

A reference to the instance that is the parent of this instance; either of type Button or MovieClip.

TextField.password

Indicates if a text field hides the input characters.

TextField._quality

Indicates the rendering quality of a movie.

TextField.restrict

The set of characters that a user can enter into a text field.

TextField._rotation

The degree of rotation of a text field instance.

TextField.scroll

Indicates the current scrolling position of a text field.

TextField.selectable

Indicates whether a text field is selectable.

TextField._soundbuftime

The amount of time a sound must prebuffer before it streams.

TextField.tabEnabled

Indicates whether a movie clip is included in automatic tab ordering.

TextField.tabIndex

Indicates the tab order of an object.

TextField._target

Returns the target path of the specified text field instance. Read-only.

TextField.text

The current text in the text field.

TextField.textColor

The color of the current text in the text field.

TextField.textHeight

The height of the text field's bounding box.

TextField.textWidth

The width of the text field's bounding box.

TextField.type

Indicates whether a text field is an input text field or dynamic text field.

TextField._url

The URL of the SWF file that created the text field instance. Read-only.

TextField.variable

The variable name associated with the text field.

TextField._visible

A Boolean value that determines whether a text field instance is hidden or visible.

TextField._width

The width of a text field instance in pixels. This only affects the bounding box of the text field, it does not affect the border thickness or text font size.

TextField.wordWrap

Indicates whether the text field word-wraps.

TextField._x

The x coordinate of a text field instance

TextField._xmouse

The x coordinate of the cursor relative to a text field instance. Read-only.

TextField._xscale

The value specifying the percentage for horizontally scaling a text field instance.

TextField._y

The y coordinate of a text field instance.

TextField._ymouse

The y coordinate of the cursor relative to a text field instance. Read-only.

TextField._yscale

The value specifying the percentage for vertically scaling a text field instance.




Event handler summary for the TextField object

Method Description

TextField.onChanged

Invoked when the text field is changed.

TextField.onKillFocus

Invoked when the text field loses focus.

TextField.onScroller

Invoked when the scroll, maxscroll, hscroll, maxhscroll, or bottomscroll property of a text field changes.

TextField.onSetFocus

Invoked when the text field receives focus.




Listener summary for the TextField object

Method Description

TextField.onChanged

Notified when the text field is changed.

TextField.onScroller

Notified when the scroll or maxscroll property of a text field changes.