Open A Jump Menu in a new window
Posted by Helmut Granda | Filed under HTML
This is for Macromedia DreamWeaver, but it can be applied to any Jump Menu using the right JS function.
-
original:
<select name="nameOfYourMenu" onChange="MM_jumpMenu('parent',this,0)">
change to:
</select><select name="nameOfYourMenu"
onChange="MM_jumpMenu('window.open()',this,0)">
Fastes way to detect if a radio button has been selected
Posted by Helmut Granda | Filed under PHP
There are times when you just need to pull the default value of a radio button selection, rather than creating and array and testing from it.
The quick and dirty solution is to place a hidden field right before those items you want to send with default values if nothing is selected.
- <input type="hidden" name="NameOfYourRadio" value="Default Value"/>
createTextField and removeTextField
Posted by Helmut Granda | Filed under ActionScript, Programming
- createTextFieldOnce = function(){
trace("---> Text Field Created");
_root.createTextField("cMagnitude",this.getNextHighestDepth(),0,0,100,30);
cMagnitude.text = "Hello World";
};
deleteTextField = function(){
trace("----> Text Field Deleted");
_root.cMagnitude.removeTextField();
};
createTextFieldOnce();
setInterval(deleteTextField,1000);
Loading a RSS feed into Flash
Posted by Helmut Granda | Filed under ActionScript, Programming, Tutorials
- // create a new XML object
var sports:XML = new XML();
// set the ignoreWhite property to true (default value is false)
sports.ignoreWhite = true;
// After loading is complete, trace the XML object
sports.onLoad = function(success) {
trace(sports);
};
// load the XML into the sports object
sports.load("http://rss.news.yahoo.com/rss/sports");
Removiing a Movie Clip on Stage with AS
Posted by Helmut Granda | Filed under ActionScript, Programming
- //A square with id = square
//A simple button named mca that removes the attached MCs
this.attachMovie("square", "square1",1);
this.attachMovie("square", "square2",2);
square2._x =100;
mca.onRelease = function() {
square1.removeMovieClip();
square2.removeMovieClip();
}
After a long brake
Posted by Helmut Granda | Filed under Flash Bits
As many of you know, for a while I was away from message boards. but I am back to help a few of the newbies out there. Also I am looking forward to update the Flash Bits section along with the PHP and DW bits.
//Create Text Field FlashMX 106 (lets have fun!)
Posted by Helmut Granda | Filed under Flash Bits
-
hDistance = 20;
vDistance = 0;
buttonsInfo = new Array("About Us", "Contact Us", "Gallery One", "Gallery Two", "Gallery Three", "Visual", "Guest", "Clients", "Account", "Search");
textDesign = new TextFormat();
textDesign.font = "Arial";
textDesign.size = 15;
textDesign.bullet = false;
textDesign.underline = true;
textDesign.url = "http://www.helmutgranda.com/";
for (i =0;i<10;i++){
this.createTextField("textHolder"+i, i, 120+(i*vDistance),120+(i*hDistance),100,19);
this["textHolder"+i].text = buttonsInfo[i];
this["textHolder"+i].border = true;
this["textHolder"+i].borderColor = "0xaa"+i/2+i/2+i/2+i;
this["textHolder"+i].html = true;
this["textHolder"+i].selectable = false;
this["textHolder"+i].textColor = "0xaa"+i*2+i*2+i*2+i;
this["textHolder"+i].setTextFormat(textDesign);
}
Create Text Fields FlashMX 105 (with Borders)
Posted by Helmut Granda | Filed under Flash Bits
hDistance = 20
vDistance = 0
buttonsInfo = new Array("About Us", "Contact Us", "Gallery One", "Gallery Two", "Gallery Three", "Visual", "Guest", "Clients", "Account", "Search" )
for (i =0;i<10;i++){
this.createTextField("textHolder"+i, i, 120+(i*vDistance),120+(i*hDistance),100,19);
this["textHolder"+i].text = buttonsInfo[i];
this["textHolder"+i].border = true;
}
Creating a Text Field FlashMX 103
Posted by Helmut Granda | Filed under Flash Bits
hDistance = 20
vDistance = 0
for (i =0;i<10;i++){
this.createTextField("textHolder"+i, i, 120+(i*VDistance),120+(i*HDistance),100,19);
this["textHolder"+i].text = "hello Helmut " + i;
}
Create A Text Field FlashMX 102
Posted by Helmut Granda | Filed under Flash Bits
for (i =0;i<10;i++){
this.createTextField("textHolder"+i, i, 120+(i*20),120+(i*20),100,19);
this["textHolder"+i].text = "hello Helmut " + i;
}