Possible To Prevent *paste* Into A Form Entry?
I want to prevent users from pasting into form entery boxes (force them to type and not put in junk). Is this possible?
Any insights appreciated.
Ultrashock Forums > Flash > Flash Professional
Posted on: 2004-02-23
View Complete Forum Thread with Replies
Sponsored Links:
[F8] Mirror Form Field Entry
Not sure if this is possible but I would like to mirror a form field entry in real time.
I have registration a form where the person enters his/her name, email, username and password and I would like that when the person enters the email address it get entered into the username dynamically in real time.
enters
Email Address: bc@aol.com
dynamically entered in real time
Username: bc@aol.com
I know that there is a is a javascript:copy() function but is this possible in flash?
View Replies !
View Related
Data Entry Form Timeline Problem
i cannot provide the FLA for this app, and i'm not questioning the code; i would like any comments or ideas about why my app won't work after the movie clip has moved down the timeline and back.
i have a data entry form that feeds a Db through a web service. (connector comp). it works over and over, just fine. BUT when the user clicks Update, they are sent to frame _10 that has a similar-looking form, but with different buttons, etc. for updating.
there is a button on the Update form that send the user back to frame one, so they can do more data entry. BUT NOW, when the user enters more data, it is rejected by the web service. i've checked all the bindings, and run traces to make sure all the data required in the args is there, but i just can't understand why it won't work unless i reload the clip.
BTW, i'm testing in the IDE, which i don't think should matter. any help would be appreciated.
View Replies !
View Related
Use 'select All', 'cut', 'paste' Shortcuts In Flash Form
I am trying to figure out how I can allow the user to use the 'select all' , 'copy', 'paste', etc...keyboard short cuts in an input text field on a flash form embedded in a html page. Check it out:
http://jointhecampaign.com/pages/?pg=connect&adm=add
Select on a text field, enter some text and then use your computer's standard 'select all' keyboard short cut to try to select all the text (mac: apple-a, pc: ctrl-a). As you can see the entire html page selects instead of just the text in that field. The 'select all', 'cut', 'paste' short cuts workswhen running the swf outside of an html page, but not while embedded. Any suggestions?
BTW, please don't select 'finish' to enter your record in the DB or I am going to have to spend a lot of time deleting all the test entries. Thanks.
-Kevin
View Replies !
View Related
How To Prevent People Asking How To Prevent "click To Activate And Use This Control"
When I visit the fourms, I keep seeing these questions about how to disable
"click to activate and use this control". Its really annoying and
disrupting my web experience. I do know this really this is a blatant
attack on Adobe and Flash by Microsoft and is obviously related to the Adobe
takeover of Macromedia, and probably also related to the fact that it is now
impossible for anyone to install Flash Player (which Adobe is ignoring
because their support is so useless since the takeover). Is there something
I can do to prevent these questions being posted? I've searched all the
forums and cannot find any information. Surely someone else has had this
problem.
--
Jeckyl
View Replies !
View Related
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
View Replies !
View Related
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!
View Replies !
View Related
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!
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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!
View Replies !
View Related
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!
View Replies !
View Related
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?
View Replies !
View Related
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...
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
[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
View Replies !
View Related
[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
View Replies !
View Related
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.
View Replies !
View Related
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);
}
}
}
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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!
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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!
View Replies !
View Related
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
View Replies !
View Related
|