Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Checking For Character Entry



Flash 5:

How would I do the following -

onClipEvent (keyup){
if (keypressed is a character){
_parent.cursor._x = _parent.cursor._x + 7;
}
}

i.e. what code would I use in place of keypressed is a character?



FlashKit > Flash Help > Flash ActionScript
Posted on: 12-12-2002, 03:58 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Checking For Character In Textfield
I'm making a form to submit an email address.

I'm looking for a way to verify that the textfield contains the "@" character somewhere in the text. It's about as simple as it gets, I just want to make sure people are typing in an address instead of jibberish. Everything I was able to find on email validation was overly complicated and I didn't understand it.

Checking Character Case
hello, say im given a single character, how do i know if its uppercase or lowercase? thanks..

The & Character In Flash...how To Use URLs That Contain The & Character...
I am loading in an array or urls from my database via php into my flash movie.

the output of my script looks like this:



quote:
--------------------------------------------------------------------------------
&id=1,&imagelist=1.jpg,&urls=http://www.homemade.ch/shop/100/conliste.asp?langext=&katno=8|&titles=Silence|&com ments=Silence, a painting by Bea Fehr|
--------------------------------------------------------------------------------



problem is that the url contains the '&' character, which Flash uses to seperate the variables....

ex:

http://www.homemade.ch/shop/100/con...angext=&katno=8

but problem is that it is being read into flash as this:
http://www.homemade.ch/shop/100/con_liste.asp?langext=

becuase Flash cuts it off when he see the '&' sign.

How can I workaround this problem, has to be a common issue I would guess since lots of URLs have this format....?

Do I need to write some parsing code?

Name Entry
Hi there,

I would like to create a name entry.

I place an input text where I can enter the names. After entring the names I want to click on OK button and want it to remember the name and take it to the second page. I put a sample file .....Hope someone can help me.

Thanks alot

On Re-entry?
Hi

I am putting together a Flash 8 Slide Presentation. As the user proceeds through slides, the slide will play all the way through. I have a stop() code at the end so the user will not see the slide play again. Right now, if they go back to a previous slide, the presentation is stopped at the end. What I would like to happen is if they go back, I want the slides to start playing from frame 1 again. How would i do this?

Thanks!

On Re-entry?
Hi

I am putting together a Flash 8 Slide Presentation. As the user proceeds through slides, the slide will play all the way through. I have a stop() code at the end so the user will not see the slide play again. Right now, if they go back to a previous slide, the presentation is stopped at the end. What I would like to happen is If they go back, I want the slides to start playing from frame 1 again. How would i do this? Is there some code that says on re-entry of frame?

Thanks!

First Entry Of XML
Hi all Kirupa. How i can select the first registry of my XML archive? On he load the select the first registry, without select?

My code.

Code:
var menuXML2:XML = new XML();
menuXML2.ignoreWhite = true;
//menuXML2.load(""+_root.xml_txt.text+"");
//Declarando a função montaMenu
function montaMenu() {
var menuBot:String = "modelos_mc3";
//Colocamos aqui o valor do Linkage do nosso MovieClip
var posX:Number = -150;
//Posição inicial de X
var posY:Number = -135;
//Posição inicial de Y, mais a frente entenderão o porque do -20
//Criamos um for que criará um item no menu para cada valor do XML
for (var i = 0; i<menuXML2.childNodes[0].childNodes.length; i++) {
//Criamos 2 variáveis que conterão os valores dos atributos do xml (titulo e url) para que possamos acessar esses valores através dessas variáveis
titulo = (menuXML2.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue);
link = (menuXML2.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue);
link2 = (menuXML2.firstChild.childNodes[i].childNodes[2].firstChild.nodeValue);
especificacoes = (menuXML2.firstChild.childNodes[i].childNodes[3].firstChild.nodeValue);
dados = (menuXML2.firstChild.childNodes[i].childNodes[4].firstChild.nodeValue);
desenho = (menuXML2.firstChild.childNodes[i].childNodes[5].firstChild.nodeValue);
zoom = (menuXML2.firstChild.childNodes[i].childNodes[6].firstChild.nodeValue);
zoomdois = (menuXML2.firstChild.childNodes[i].childNodes[7].firstChild.nodeValue);
//
//
//O valor da variável link será o mesmo do atributo url do xml
this.attachMovie(menuBot, titulo, i+10);
//Anexamos o MovieClip "itemMenu" no _root do filme, o novo nome dele será o correspondente a variável titulo, que contém o valor do atributo titulo do xml. o i+10 é o valor de i somado a 10 que será o nível do MovieClip no palco
var item:Object = this[titulo];
//Criamos um novo objeto. os [] tem a mesma função que o eval(), com a diferença que o eval não pode acessar valore do objeto e propriedades. Para saber mais F1 =)
item.tituloItem.text = (titulo);
item.rollover_mc.texto_txt.text = (titulo);
//Definimos o valor do texto tituloItem do item
item._x = posX;
//Definimos a posição X de item sendo igual a da variável posX
item._y = posY += (item._height)+2;
//Definimos a posição Y de item sendo igual a da variável posY = posY +(altura de item)+1
item.link = (link);
item.especificacoes = (especificacoes);
item.dados = (dados);
item.link2 = (link2);
item.zoom = (zoom);
item.zoomdois = (zoomdois);
item.desenho = (desenho);
item.titulo2 = (titulo2);
//if (variavel == undefined) {
//variavel = " ";
//}
//Definimos o valor link ao objeto item
//Ação onRelease do objeto
_root.item_mc.codigo_txt.text = zoom[0];
_root.item_mc.categoria_txt.text = desenho[0];
_root.item_mc.texto_txt.text = especificacoes[0];
loadMovie(item.link, (""+item.picture+""));
item.teste_txt.text = item.titulo2;
item.teste2_txt.text = item.dados;
item.onRelease = function() {
};
item.onRelease = function() {
//desc_txt.text = description[0];
_root.item_mc.codigo_txt.text = this.zoom;
_root.item_mc.categoria_txt.text = this.desenho;
_root.item_mc.texto_txt.text = this.especificacoes;
loadMovie(this.link2, (""+_root.item_mc.picture+""));
trace(item.link2);
};
//Ação onRollOver
item.onRollOver = function() {
this.rollover_mc.alphaTo(100, 1);
//this.rollover_mc.texto_txt.text = (titulo);
};
//Ação onRollOut
item.onRollOut = function() {
this.rollover_mc.alphaTo(0, 1);
};
}
}
menuXML2.onLoad = function(ok) {
if (ok) {
montaMenu();
} else {
trace(orrra);
}
};
Tanks.

Why Always The Last Xml Entry
I have the code below, all is fine except that I only get the last pic description from the XML and the last pic caption from the XML no matter what pic I click, where Im I going wrong?
Code:

//some variables
var grid = 1;
var ItemsPic:Array = new Array();
var ItemsPicNum:Number = 0;
var a:Number = 0;
var b:Number = 0;
var home:MovieClip = this;

//initiating the captionMc
var captionMc:MovieClip = this.attachMovie("captionMc", "captionMc", 10000);

//the XML
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(success) {
   if (success) {
      var nodes = this.firstChild.childNodes;
      numOfItems = nodes.length;
      for (var i = 0; i<numOfItems; i++) {
         ItemsPic.push(nodes[i].attributes.image);
                        //I thinks my prob is here
         captionTxt = nodes[i].attributes.caption;
         descTxt = nodes[i].attributes.desc;
         pc = nodes[i].attributes.pc;
         pn = nodes[i].attributes.pn;
      }
   } else {
      trace("Error loading XML file!");
   }
   loadItems(ItemsPicNum);
};

// movieClipLoader
var loader:MovieClipLoader = new MovieClipLoader();
var loaderL:Object = new Object();
loader.addListener(loaderL);

// the loadItems function
function loadItems(who) {
   var t = this.attachMovie("itemMc", "itemMc"+who, who);
   t._x = 5+(t._width+grid)*a;
   t._y = (t._height+grid)*b;
   loader.loadClip(ItemsPic[who], t.buttMc.holder);
   if (a>=7) {
      a = 0;
      b++;
   } else {
      a++;
   }
   t.buttMc.onRollOver = over;
   t.buttMc.onRelease = released;
}
loaderL.onLoadInit = function() {
   ItemsPicNum += 1;
   if (ItemsPicNum<ItemsPic.length) {
      loadItems(ItemsPicNum);
   }
};

//mouse events functions
function released() {
   theText.text = descTxt;
   theCodex.text = pc;
   theTitx.text = pn;
}
function over() {
   home.captionMc.capText.text = captionTxt;
}
myXML.load("images.xml");


Thank you

Password Entry
i want to add a sign-up and sign-in form for a site but i would like the password to be replaced with asteriks(*) when they type it in.

how do i do that?

Text Entry
Hello
I am trying to build a text entry that only allows the user
to type in a specific word and write it to the screen one chararacter at a time. Here is the logic I have so far:

_root.Cor_Answer = "correct";
_root.letters = new Array();


onClipEvent (keyDown)
{
for (i=0; i<=_root.Cor_Answer.length; i++)
{
_root.letters [i] = _root.Cor_Answer.charAt(i);

if (chr(Key.getAscii()) == _root.letters [i])
{
letter = chr(Key.getAscii());
_root.Input_text += letter;
}
else
{
_root.Answer = "Try Again";
_root.Input_text -= letter;
}
}

}
This needs some tweaking.

Thanks

Page Entry
I looked for a way to solve this problem but can not find a solution. I created a flash entrance page on my site and what I want to have for the last scene is a enter or skip intro button appear on the page. I know how to do this but do not know how to link the button to my home page. can anyone help me please.

Password Entry
I want a field details to be encrypted when text is typed in.
Some thing as password.

How can i do that?
I am using Flash 5.

Do i have to trap each key that is pressed and convert them to *?
Please Help

Text Entry
Well Im Sort Of A Newbie To Flash. I'am Wondering How To Make Text Enter Your Project At Different Times :s. Like You See On Most Banners Made In Flash. You Can Reply Or You Can Contact Me On MSN: Sysopdj@hotmail.com Yahoo!: Murd3rinc AIM: UnknownDJ456.

Thanx

Password Entry
hi,

i still haven't figured out anything to solve my last post, but i have a new problem. i am trying to set up a password protected section of a movie clip. i am using the following code:

on (release) {
if ("user" eq 115 and " pass" eq go) {
gotoAndPlay("Success", 1);
}
if ("user" ne 115 and "pass" ne go) {
gotoAndPlay("Failure", 1);
}
}

"user" and "pass" are input text boxes

"Success" and "Failure" are frame names

Anyone know why this isn't working?

Thanks,

pjustice

Flash PIN Entry?
Hey there,

I am trying to create a Flash pincode entry system for a website using Flash 5. It will be something similar to an ATM machine (but without the cash payout) e.g. numeric keypad and 4 digit access.

I am struggling to find a way to do this easily - I am not an Actionscript wiz and have mostly produced preloaders, buttons and animations in the past (see thesheepdip.com for examples of my 'skill' level!)

First I guess I need to concatenate the four variables produced by the button presses. Then, I need to compare the final 4 digit variable to a list of PIN's held in a text file (for example). The only problem is I have no idea how to do these things, and I can't find a tutorial that will help me out.

Ideally it would be great if people could email me help on how to do this, but it would be benficial to the board if you could post here too.

Thanks guys!

Entry/Exit Of A Car?
Ok. Im making a GTA inspired game... ive got a character, a car, you can get in the car, but i cant get the cade to get out of the car! go here to see the game with what i have listed, and the code for etting in the car is:

Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root.car.walls) and Key.isDown(Key.SPACE)) {
_root.car.nextFrame();
this._visible = false;
}
}
shuld i put in that visibility code?
cos i want it to be like he gets in the car...
and when he get out i want him to appear next to the car...

i also want it to be SPACE to get out and in.

Any Help Would Be Apreciated!

Sweepstakes Entry
I've searched but can not find any information or tutorials on creating a sweepstakes entry...

I would like to have an email field that has to filled out to enter the sweepstakes. The catch is, it needs to check that the email is valid and that they haven't already entered.

Any help or resources?

Datagrid Entry
I am using a data grid component.
I am taking the items from 3 input boxes and adding them to the grid.

The problem is first item is added properly.
but the next items replaces the first item.

Might be some logical problem in array? (might be a small probm, i have just started with sripting.)

I am giving my code here...

//This code is on the first frame

import mx.accessibility.DataGridAccImpl;
DataGridAccImpl.enableAccessibility();
var myDataGrid:mx.controls.DataGrid;

// Create columns to enable sorting of data.
_root.myDataGrid.addColumn("name");
_root.myDataGrid.addColumn("score");
_root.myDataGrid.addColumn("Rank");

//This code is on the click of a button

on(press)
{
//var myDP_array:Array = new Array({name:_root.name1.text, score:_root.score.text, Rank:_root.rank.text})//, {name:"Bruce", score:403, Rank:2}, {name:"Peter", score:25, Rank:3})
var myDP_array=[];
myDP_array.push(({name:_root.name1.text, score:_root.score.text, Rank:_root.rank.text}))//, {name:"Bruce", score:403, Rank:2}, {name:"Peter", score:25, Rank:3})
_root.myDataGrid.dataProvider = myDP_array;

// Create listener object for DataGrid.
var listener_obj:Object = new Object();
listener_obj.headerRelease = function(evt_obj:Object) {
switch (evt_obj.target.columns[evt_obj.columnIndex].columnName) {
case "name" :
myDP_array.sortOn("name", Array.CASEINSENSITIVE);
break;
case "score" :
myDP_array.sortOn("score", Array.NUMERIC);
break;
case "Rank" :
myDP_array.sortOn("Rank", Array.NUMERIC);
break;
}
};

// Add listener to DataGrid.
_root.myDataGrid.addEventListener("headerRelease", listener_obj);

}



Can anyone help?

Thanks...

Password Entry
I have attached a simple file that I can't get to work.

I can use simple imput fields and use if () to check them easy enough.

But with this I have a drop down box for user names,
and a input component set as a password field.

I just need a simple


Code:
if (user == "Cathy" && pass =="cat"){
play();
}
But I dont know how to check == against the fields in the drop down list and text field.

Any help would be much appreciated...

Link to .fla
http://home.iprimus.com.au/c_schultz/help.zip


Edit:
I know it is not secure, and I will be changing it to a PHP mysql set up but for the time being it will do.

Email Entry Box Help?
gday lads.

can any one help me by telling how to go about setting up and box where poeple can enter their emails in to recieve a mailling list on my flash site

cheers

How Can I Make A Text Entry Box?
How can i make a text field where the user can type something and it can then be saved as a variable. Such as his/her name. And when he has entered he´s name how can i use it in text?

for example lets say he enters Bill as his name and presses OK and then there appears "HELLO BILL" on the screen.

Text Entry In A Field
I am trying to simulate an action where the user Tabs to a text entry field, then begins typing in a respose. However, I want to do this without them having to first click inside the field before they can type. Currenlty, you must click before you type. Is there a way to have the cursor automatically activiated in the field for text entry??

Any help would be greatly appreciated.

Thanks

How Do I Only Output The 1st Entry In A List?
Take a look at the .fla I've included. It works right now to list the full XML document on an 'Events' page for a web site. What I want to do is modify the code (lines 93-139) to only output the first event.

I've tried changing the 'i<chlength' in line 102 to 'i<1' with the wrong results. Various numbers will output that many lines of each event. Weird.

Anyway, theres the 1st problem.

Second, which isn't a biggie, is that I want to put <table>, <tr> and <td> tags around the info to format it better. It would be a simple 2 column table for each event with rows for each line (Date, Speaker, etc).


If someone could get this working before Sunday (I have a presentation Monday 11-18), they will get my latest mix CD. Tracks by BT, Humpty Vission, Moby, Madonna, Praga Khan, Banco de Gaia, Armand van Helden, Fatboy Slim and Chemical Brothers. If you like Progressive House, you'll like it. If ya don't, please try anyway! lol

Data Entry Is It Possible With Flash?
Hi,
I was wondering if it is possible to develop a program (off line) with flash, so the user can enter data and the data be saved on a disk.
Would you have any suggestion.

Thank you in advance.

Random Banners On Entry?
is there a simple way to loadmovie (banners) on a home page each time someone enters, but mix it up a bit with a random code?

Tots

Password Entry System
Hey,

I have recently been trying to create a password entry system.

Attached is the ,fla file so you can see what im doing.



at the moment, i have the input text just below the 'enter password' text, but i need to be able to use the button below to submit the value enetred into the input text as a variable or somehting so it can be compared with the true password i have created with actionscript.

If anyone could have a look at this i would be very grateful.

Cheers

Jonny

password

Password Entry System
Hey,

I have recently been trying to create a password entry system.

Attached is the ,fla file so you can see what im doing.

t the moment, i have the input text just below the 'enter password' text, but i need to be able to use the button below to submit the value enetred into the input text as a variable or somehting so it can be compared with the true password i have created with actionscript.

If anyone could have a look at this i would be very grateful.

Cheers

Jonny

password

Making An Entry Screen
Ok I am new to this. I have a book but it's not really showing me what I want to do. Is there a tutorial online that describes how to make an entry screen???

I would like to have pictures and text scrolling across the screen and music.

For example, I would like to have a picture come in from the left and move across the screen to the right and at the same time have text come in from the right and move across to the left. Then reverse the sequence and then come from the bottom and top. Ending with words in the middle and a button that says Welcome to and and click here to enter the site.

I hope this makes sense. Also is there a place to download cool backgrounds on which this would all take place.

Thanks for the help.

Judging Input Box Entry
I have a simulation I am working on where the user enters a statement in an input box. Is there a way to judge what the user has entered without counting spaces?

For example. The user has to enter an address so they might enter 123 main street, your town, st 55555

In the traditional sense of addresses, the user would place two spaces betweeen the city and the state. I want Flash to pick up what the entered regardless of number of spaces. I am using address_txt.text.toLowerCase() to avoid capitalization issues.

Any suggestions?

Thanks in advance.

Order Entry - Difficult?
Can anyone tell how hard it might be to set up someone with an order entry system? Is there special software that a host site has to provide so that a viewer of can enter information, that is collected by the host and transmitted to their clients computer.

Confirm Text Entry
Ok, so I have 18 text fields and I want to build in a requirement that at least half of the fields must have been filled in before the user is able to move on.

Here's what I have tried:
I tried using TextField.onChanged to singal adding 1 to a counter variable. Then when this variable reaches 9, it would activate an
"if" statement which would in turn activate the "Next" button I have in my movie.

Script:
this.wheelEntry.age.onChanged = function() {
_root.wheelcount++;
}

Problem is:
onChanged triggers on EVERY LETTER, so if the user types in a few words into the text field, the counter variable is already at around 15-20...

So, I tried:
I added a line to the function so that after onChanged has been triggered, it would change the instance name of the textField itself, so that no more onChanged events would register after 1.

Script:
this.wheelEntry.age.onChanged = function() {
_root.wheelcount++;
this.wheelEntry.age._name = "null";
}

Problem is:
the name of the instance doesn't seem to actually change. I traced out the now renamed "null" textField after I typed something in and it came back as undefined.

What can I do? Is there a better code to use for this than onChanged? Please let me know!

Thanks,
chigasakigaijin

Get A Textfield To 'jump' To An Entry
hey ho

assuming you have a great big file loaded into a textfield (for example, an online journal), is there any concievable way to get the textfield to jump to an entry further along in the same textfield? for example, in html, you've got:

Code:
<a href="#entry101">here's my first entry</a>
blah blah blah blah ...
<a name="entry1">Saturday 4th July 1904</a>
today i went with my family to see shardik the giant bear...
see, at the moment my blog is powered by blogger, which archives by the month, and each entry is given an entry id. i got a search working, but when it locates the file with the specific text, all it does is load up the entire month, and i'd like to have the ability to jump to the right entry, too. any ideas?

p.s. there is also an automatically generated xml / rss feed of my blog, however it is generated by atomz, and aside from having a big fat ATOMZ header on it, a lot of the tags appear to have ampersands in them. is this an issue with xml data in flash?

cheers

Adding Entry To Text Box
I posted a while back on how to add an entry to a dynamic text box.
Someone replied with the code

cartitem += "Item";

so i put that code in a button so when its released it adds "Item" to the dynamic box.

it works but the problem is, is that it shows up like this everytime i click the button

ItemItemItemItem

I want it to show up like this

Item
Item
Item
Item

How can I make it so that it adds a new entry to a new line and not the same line.

[F8] Question About Text Entry
hey guys got a quick question. what im tyring to do is create a page where a person is presented a text entry box, then they input whatever to it then after hitting enter another text box appears and so on and so forth. any help would be appreciated

[CS3] Array Starting Off On 3rd Entry, Not First
Background Info:
I have an array set up with labels in them. These labels correspond to a frame in my flash file. When the a button (with the corresponding label) is pressed, it goes to the respective frame with the same label.

Array:

PHP Code:



var labels:Array = ["home", "billing", "scheduling", "payments", "patient list", "receiving reports"];




Movieclip Creation:

PHP Code:



var myButton:MovieClip = this.createEmptyMovieClip(labels[i], this.getNextHighestDepth());




Button On (release):
the buttons are made in actionscripting only, so each press corresponds to the label of the frame.


PHP Code:



myButton.onRelease = function():Void
        {
            gotoAndStop(this._name);
         }




Complete Working Code here:

PHP Code:



stop();
import flash.filters.GlowFilter;
import flash.filters.DropShadowFilter;
var labels:Array = ["home", "billing", "scheduling", "payments", "patient list", "receiving reports"];
var offset:Number = 10;
function createButtons(buttonSeries:Number, color1:Number, color2:Number, color3:Number, color4:Number, lineColor:Number, labelColor:Number, numberOfButtons:Number, posX:Number, posY:Number, labelFilterColor:Number, labelFilterAlpha:Number, labelFilterBlur:Number, labelFilterStrength:Number, applyLabelFilter:Boolean, applyBkgFilter:Boolean)
{
    for (var i:Number = 0; i<numberOfButtons; i++)
    {
        var labelGlow:GlowFilter = new GlowFilter(labelFilterColor, labelFilterAlpha, labelFilterBlur, labelFilterBlur, labelFilterStrength, 3);
        var labelFilters:Array = [labelGlow];
        var buttonShadow:DropShadowFilter = new DropShadowFilter(1, 45, 0x000000, 1, 4, 4, 1, 3);
        var buttonFilters:Array = [buttonShadow];
        var myButton:MovieClip = this.createEmptyMovieClip(labels[i], this.getNextHighestDepth());
        //var myButton:MovieClip = this.createEmptyMovieClip("myButton"+String(buttonSeries)+labels[i], this.getNextHighestDepth());
        myButton._x = offset+(posX*i);
        myButton._y = offset+(posY*4);
        myButton.onRelease = function():Void
        {
            gotoAndStop(this._name);
         }
        var fillType:String = "linear";
        var colors:Array = [color1, color2, color3, color4];
        var alphas:Array = [100, 100, 100, 100];
        var ratios:Array = [0, 126, 127, 255];
        var matrix:Object = {matrixType:"box", x:0, y:0, w:110, h:30, r:90/180*Math.PI};
        myButton.createEmptyMovieClip("buttonBkg", myButton.getNextHighestDepth());
        myButton.buttonBkg.lineStyle(0, lineColor, 60, true, "none", "square", "round");
        myButton.buttonBkg.beginGradientFill(fillType, colors, alphas, ratios, matrix);
        myButton.buttonBkg.lineTo(120, 0);
        myButton.buttonBkg.lineTo(120, 25);
        myButton.buttonBkg.lineTo(0, 25);
        myButton.buttonBkg.lineTo(0, 0);
        myButton.buttonBkg.endFill();
        var myFormat:TextFormat = new TextFormat();
        myFormat.align = "center";
        myFormat.font = "Tahoma";
        myFormat.size = 13;
        myFormat.color = labelColor;
        myButton.createTextField("labelText", myButton.getNextHighestDepth(), 0, 5, myButton._width, 24);
        myButton.labelText.text = labels[i];
        myButton.labelText.embedFonts = true;
        myButton.labelText.selectable = false;
        myButton.labelText.antiAliasType = "advanced";
        myButton.labelText.setTextFormat(myFormat);
        myButton.labelText.filters = labelFilters;
        if (applyLabelFilter) {
        }
        if (applyBkgFilter) {
            myButton.filters = buttonFilters;
        }
    }
}
createButtons(1,0x9edc58,0x719f3e,0x4d6b2b,0x87be4a,0x000000,0xFFFFFF,6,130,10,0xFFFFFF,.40,4,3,true,true);





Problem: I added a new scene before the one with all the main content, in order to link my work to an external preloader. It preloads fine, but when I click on a button, it is starting off 2 units ahead, so when I press the "Home" button it goes to "Scheduling".

I know it has something to do with the 2 extra frames added in the preloader scene before the main content, but how can i declare in my actionscript for it to either:

a) ignore the first 2 frames

if thats not possible

b) how to start off the array but 2 units shifted to compensate.

or

c) use string values so on button release it goes to the frame based on string not number?

or

d) am i completely off in terms of solutions for this problem O_O

Simple DB Entry From One Field
I'm trying to submit one field from flash to a database. Anyone know a tutorial I could look up? I know AS but I don't know too much of PHP and how to go about creating this. Any suggestions?

Simply put, I just need to submit one var to a database.

Capturing Microphone Entry
I have a big problem with capturing the microphone entry. I tried something like the exemple of Adobe documentation (the code bellow).

It works well, but the problem is that it is not the real entry level ! I tried with my microphone entry level at 100% in my system preferences, but this code and the flash security panel show me a normal level...

Does someone know how to capture the real entry level ???

Thank you !









Attach Code

package {
import flash.display.Sprite;
import flash.events.*;
import flash.media.Microphone;
import flash.system.Security;
import flash.system.SecurityPanel;
public class MicrophoneExample extends Sprite {
public function MicrophoneExample() {
var mic:Microphone = Microphone.getMicrophone();
Security.showSettings(SecurityPanel.MICROPHONE);
mic.setLoopBack(true);
if (mic != null) {
mic.setUseEchoSuppression(true);
mic.addEventListener(ActivityEvent.ACTIVITY, activityHandler);
mic.addEventListener(StatusEvent.STATUS, statusHandler);
}
}
private function activityHandler(event:ActivityEvent):void {
trace("activityHandler: " + event);
}
private function statusHandler(event:StatusEvent):void {
trace("statusHandler: " + event);
}
}
}

Clownstaples' Footer Entry
How did you do it?
I thought this was a great footer and i would love to know how you did it? As in what was the coding and what each thing did.
If you don't want to share this then could you tell me basics of how i could construct my own?

Thanks in advance,
WizzoMaFizzo.

Fscommand On Frame Entry
hello-
i'm having problems executing an fscommand on frame entry.

i have a sample button that has the following attached to it - which executes the command properly:


Code:

on (release){
fscommand("hidediv", "loading");
}
what i'd like to have happen is on frame entry, simply execute:


Code:
fscommand("hidediv", "loading");
without any user interface.

to back up a step, the big picture here is that i'm trying to overcome preloading issues on a large movie. my idea is having a div with an animated gif that says "loading" display while the movie loads in the background. once the movie hits frame 2 - i'd like it to read this fscommand and hide the "loading" gif div. it's a bit tricky since my swf is reading numerous variables being pulled in from the container page, so i can't readily house it in a separate swf as described in the sticky re: preloaders.

any insight would be appreciated.

best,
nk

Zip Code Entry In Flash
I have a project where a landing page requires the user to enter their zip code to see a product. It then goes to a PHP page with these samples. It is supposed to go and send this zip code and get a resulting name of the area in the upper part of the screen. I got as far as it being able to go to the right page, but it doesnt change the location. the code I have thus car is this:

on (release) {
var Setzip;
getURL("http://www.mysite.com/product/promo.htm?depId=1&pgId=100&devicePrId=26161", "1", "POST");
}

Any ideas? thanks!

Flash View Entry
I have a calculator that stores users information in shared objects. This information is displayed on a list. I need a way to access that stored information. Currently I have an array with the informaiton in it stored as a shared object. I want to add a View Entry Button to that array with custom action scrip that tells the entry page what entry number to display. So I need to know how to add the same button mutliple times to different arrays, but with different actionscript.

On Screen Kaypad Entry
Hi All,

I am tryingto create an onscreen numeric kepad. (yep I know it will be simple for you guys but I am a newbe to code and AS3).

I have made one using the following code that adds a dot to the text field but I need to do one which adds the letters now.

Code:
//___Keypad code___

buttonKeypad.addEventListener(MouseEvent.CLICK, buttonNumberClick, false, 0, true);


textPassword.text = "";

//create a TextField addLetter.

function buttonNumberClick(evt:MouseEvent):void {
addLetter();
}

//create a function called addLetter.
function addLetter():void {
if (textPassword.length<11) {
textPassword.appendText("•");// change the name of the text field to whatever it is
}
}

//___End of Keypad code___

But what I need to do now is creat a numeric pad 0 to 9 buttons which when clicked on adds the numer to a text field and then apends the field the next time the buttons are pressed.

I know this is probably easy for a proper coder (I'm a graphics guy dropped in the deep end trying to learn)

Can anyone suggest a solution.

Quicky

Clownstaples' Footer Entry
How did you do it?
I thought this was a great footer and i would love to know how you did it? As in what was the coding and what each thing did.
If you don't want to share this then could you tell me basics of how i could construct my own?

Thanks in advance,
WizzoMaFizzo.

Fscommand On Frame Entry
hello-
i'm having problems executing an fscommand on frame entry.

i have a sample button that has the following attached to it - which executes the command properly:


Code:

on (release){
fscommand("hidediv", "loading");
}
what i'd like to have happen is on frame entry, simply execute:


Code:
fscommand("hidediv", "loading");
without any user interface.

to back up a step, the big picture here is that i'm trying to overcome preloading issues on a large movie. my idea is having a div with an animated gif that says "loading" display while the movie loads in the background. once the movie hits frame 2 - i'd like it to read this fscommand and hide the "loading" gif div. it's a bit tricky since my swf is reading numerous variables being pulled in from the container page, so i can't readily house it in a separate swf as described in the sticky re: preloaders.

any insight would be appreciated.

best,
nk

Zip Code Entry In Flash
I have a project where a landing page requires the user to enter their zip code to see a product. It then goes to a PHP page with these samples. It is supposed to go and send this zip code and get a resulting name of the area in the upper part of the screen. I got as far as it being able to go to the right page, but it doesnt change the location. the code I have thus car is this:

on (release) {
var Setzip;
getURL("http://www.mysite.com/product/promo.htm?depId=1&pgId=100&devicePrId=26161", "1", "POST");
}

Any ideas? thanks!

Flash Entry Page
Hi guys

I know nothing about flash (as you will find out) so hope you can help. The code below is from a file named intro.swf
which opened when you enter the URL http://www.cranleighangling.co.uk
I tried to change the destination page from index2.html to 4556.html which would take you to http://www.cranleighangling.co.uk/4556.html when the flash intro is clicked on. Now when you enter http://www.cranleighangling.co.uk you get a blank screen. I changed the code back to point to index2.html and re-uploaded intro.swf but still isn;t working. Hope someone can help.



<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><TITLE>THE CRANLEIGH ANGLING SOCIETY</TITLE><NOSCRIPT><META content="0;url=index2.html" http-equiv="refresh"></NOSCRIPT><SCRIPT><!--
                    var ielike=false;function getFlash(){var plugin=(navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;if(plugin){return parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 3;}else if(navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0){ielike=true;return getActiveX("ShockwaveFlash.ShockwaveFlash.1");}else{return false;}}function getActiveX(module){var x = new Function("module",'try{var x = new ActiveXObject(module);return true;}catch(e){}return false;');return x(module);}
                //--></SCRIPT><STYLE>
                .noflash {font-family:Arial, Helvetica, sans-serif;font-size:12pt;color:006633;}
            </STYLE></HEAD><BODY BGCOLOR="FFFFFF"><CENTER><TABLE cellpadding="0" cellspacing="0" border="0" height="99%" width="99%"><TR><TD valign="center" align="center">&nbsp;
                            <SCRIPT><!--
                                    var hasFlash=getFlash();
                                    document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#3,0,0,0" height="300" style="cursor:default" width="600">');
                                    document.write('<PARAM NAME="SRC" VALUE="intro.swf?foo=1153685629493">');
                                    document.write('<EMBED TYPE="application/x-shockwave-flash" SRC="intro.swf?foo=1153685629493" WIDTH="600" HEIGHT="300"></EMBED>');
                                    if(ielike){document.write('<BR><A href="index2.html" class="noflash">Continue</A>');}else if(!hasFlash){document.write('<BR><A href="index2.html" class="noflash">Continue</A>');}
                                    document.write('</OBJECT>');
                                //--></SCRIPT>&nbsp;
                            <NOSCRIPT><BR><A class="noflash" href="index2.html">Continue</A></NOSCRIPT></TD></TR></TABLE></CENTER></BODY></HTML>

SetFocus Upon Frame Entry
I know how to get the tab key to make the focus jump from one dynamic text box to the next but what I need is for one of the boxes to be already selected and the cursor blinking when the user gets to the frame. this would allow them to start typing in the info without having to select anything first.

I have tried Selection.setFocus("dynamictextbox"); on a clipEvent, within a keyframe and on a button but nothing seems to work.

Does anyone have an example of some actionscript where this is working?

Ya' Gotta Love It!



Input Textfields To Dynamic After Right Entry?
I want to convert an input textfield to dynamic after correct entry by the user.

Initially i thought of a Movie clip with 2 frames, 1 with input & other with dynamic. but now i have to have 5 textfields, user can enter in all the 5 fields.

please help me if there is a way for this.
AJ

Getting Flash Entry To Quit And Go To Web Page
Hi all,

Iam Newtothis and I have a problem. I made a cute little flash entry for my website but I can't make the flash movie time out and got to my web page


help
thanks
newtothis

Copyright © 2005-08 www.BigResource.com, All rights reserved