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




Possible To Prevent Pasting Into 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 > ActionScript
Posted on: 2004-02-23


View Complete Forum Thread with Replies

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

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.

[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?

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.

[F8]how To Validate Year Entry? Flash Form Help
Hi I am making a form in flash and I am wondering what AS is needed so the text input for the year entry only accepts 4 digits? i.e. you cant type 20007 or 207 it has to be 2007..

Pasting Text Into A Flash Form Which Is Inside Director
I've imported a flash file into Director and when I run it in Director I can't copy text from somewhere and paste it into one of the form fields in flash. Grrrrr. I HAVE to have the forms in the flash file but I also HAVE to have the ability to paste content into it.

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

Pasting Into A SWF
Research for an internal bug tracking system that's being built in Flash & Flex. Is it possible to paste an image from the clipboard into a SWF at runtime? Sample scenario would be when a user finds a bug somewhere, takes a screengrab with Print Screen and while logging the bug is allowed to paste the grab into the bug details, similar to how you can copy and paste into Outlook emails. Haven't had any joy so far trawling the web to see if there's even a remote possibility, with or without introducing a 3rd piece of software/tool.

Img Pasting
Whenever I paste an img by opening a .psd file in photoshop 7.0 and copying what I want and then pasting it, the images' quality is really downgraded. It looks really bad and almost pixely. Please help.
Thanks.

Pasting Code Into MC
Hi!
This is a simple question:
I have the code avobe in a flash movie, and i want to make that animation in a Movie Clip, but when I cut frames from the movie and paste them in the MC, it doesen´t work well.
Why?



frame1:
text = "Ortelli y Larrauri en punta.";
i = 1;
max = length(text);
kerning = 7;
size = 14;
setProperty ("char", _visible, 0);
tellTarget ("/char") {
stop ();
}
movie_number_inner = 0;
movie_number = 0;
text_number_inner = 1;

frame3:
duplicateMovieClip ("char", "char" add movie_number, i);
set ("/char" add movie_number add "/letter:char", substring(text, i, 1));
setProperty ("/char" add movie_number, _x, 30+Number(i*kerning));
setProperty ("/char" add movie_number, _xscale, 10*size);
setProperty ("/char" add movie_number, _yscale, 10*size);
i = Number(i)+1;
movie_number = Number(movie_number)+1;

frame4:
if (Number(i)>Number(max)) {
play ();
} else {
gotoAndPlay (3);
}

Copying And Pasting
Hello,

does anyone no of a way that if a button is pressed flash replicates ctrl + C? for example a variable is generated for use in a text box, when a button is clicked it saves the text into clipboard for use in notepad etc?

any help would be appreciated!

thanks in advance

steve

Pasting Text....?
i'm trying to paste some text from a word doc into an existing static text box in flash. I select the box with the text tool and then paste...right? but flash insists on making 10.000 seperat text box for allmost everu word? Does somebody have a quick answer for this super newbie question? Thanks!

Pasting A New Scene?
I've got a project going that has 2 scenes, and built another scene as a separate file (oops). Now I'm trying to take that work, and import it into the 2 scene movie as scene 3, and can't seem to get it right...I've tried making a new scene with the same number of layers and frames, selecting all frames and pasting it into the other frames...No go. Tried saving it and importing it, again No Go...


Any help?

Pasting Text
I'm creating a movie that has text that needs to be updated often. The text is sent to me in a MS Word document. Is there a way to copy the paste in Word and past it as text in Flash MX? When I try it, the text gets all broken up into many text boxes with no rhyme or reason.

Symbol Pasting
Whenever I duplicate (copy and paste) an exsisting symbol, I can't edit one without the other being edited as well. Is there any way to prevent this without creating a new symbol from scratch each time?

Pasting Text
Still new to Flash and just came upon an interesting problem.
I am trying to copy text from MS-Word and paste it into a text box in MX. It is not only placeing the text BEHIND the text box but seems to be converting each letter into it's own object???
Running OS-X and have done this before with no problems.
Did I change something that I wasn't supposed to?
Any help would be appreciated.....

Picture Pasting
i have one scene in flash mx wit a big picutre on it...i copy the picture and paste it on another scene and want to paste stuff on top of that as well it is behind the picture i pasted there before and no matter what i try by bringing to forward/sending to back nothing works...whats up with that? how do i fix it?

Pasting Pictures
When your pasting pictures into your flash project is there any way to make the background of that picture transparent. So that you can see what's behind us.

Pasting Text
This should be a simple problem to fix.
I have very many text changes to make in a presentation that I'm workin on.
I am copying and pasting text from a word document into flash mx.
The problem is that when I paste into flash that instead of pasting editable text, it coverts all of the text into objects.

Any idea how to paste text so that it remains editable?

thanks!!

Pasting Frames Together
I'm making a big ass movie so i have been animating it in about 30 second segments. this has left me with multiple flash files and i want one file now that im done. when i "copy frames" from one file and paste them in front of the frames in another file the animation plays all funny. it looks like the effect a screwed up timeline would produce but my timeline and order of frames is intact and not off skewed. any help on how to get all my flash files into one would be awesome. and if your really helpfull ill be happy to give you a screen credit in the movie. thanks.

[F8] Pasting Frames
Is there a way to paste frames that you copy without it pushing the frames behind it down the timline? It's like it takes the amount you copy and it pastes that much extra at the end. This can cause a lot of headache if you are trying to line stuff up. Up to this point I've always just went in and deleted those extra frames but it is a hassle. Any thoughts? Thanks

[F8]Pasting Issue
My friends and I are working on a game together. One of my friends doing the animation didn't put everything inside one movie clip. No I am having problems pasting everything inside an MC. Every time I copy and paste frames, what I paste is pasted in the corner, then it is impossible to line up. I have pictures below showing what I mean.


Grab the frames:


After pasting, this is where the original image is:


This is where the pasted frames alway end up, regardless of which animation I do:



I have tried past in place, but that doesn't copy the animation. I can't move it over, because I have to do that with every single keyframe, and since he does a lot of KF animation, that would be a lot of work, and time, and it just wouldn't look right. Is there a way I can combine different fla files in to one simply? Please help! Thanks!

Pasting In Reverse
Hello, I'm sure I have seen it before, but I can't figure it out. I want to copy about 40 frames, then paste them in reverse. Is this possible? If so, then how?

thanks

Pasting Clipboard Into SWF
Is it possible to paste (Ctrl + V) a screenshot into a SWF that would be a drawing SWF so that users could do simple painting ontop of the screenshot?

Thank you,
Randy

Pasting Images
this may seem like a very insignificant question but its really bugging me
ive just started using flash and when i try to past individual images(sprites) from paint into flash it always leaves a white border around it can anyone tell me how to get rid of it and have a transparent background?

Special Pasting
Hey all,

Is it possible inside of flash to be able to paste a bitmap into a flash vector shape.

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

Pasting Text Into Flash?
I'm trying to paste text from word into Flash, i've got it set at the font size and words per width but when i import it, flash changes the amount of words to the width.
is there any way round this?
Cheers!
s

Pasting HTML Into Actionscript
To input text into a scrolling text box I’ve been pasting html text from the list variables window into actionscript as per Patrick Mineault’s tutorial. I find the actions window doesn’t display very well - the text is strung out so wide in the window it’s cumbersome. I also couldn’t paste a large amount of text at once. I seem to have to add small amounts at a time.
Is there an easier/better way to get my html text into the actionscript window?
Any tips/tricks/guidance woud be appreciated.
billp

Importing/pasting Problems
I am creating my scenes in Illustrator 10 first, then I am cutting and pasting oblects from Illustrator into the flash scene currently open and visible. Now, the problem is that shapes all paste fine, however the text that I have converted into outlines in Illustrator paste into Flash but look like crap. The odd thing is that prior cutting and pasting done in the same way pasted fine and appear very nice looking and not jagged or aliased at all! I am very confused, can someone please help or recommend a better process or way to build scenes. Thanks ahead of time.

Pasting/importing Problems
I am creating my scenes in Illustrator 10 first, then I am cutting and pasting oblects from Illustrator into the flash scene currently open and visible. Now, the problem is that shapes all paste fine, however the text that I have converted into outlines in Illustrator paste into Flash but look like crap. The odd thing is that prior cutting and pasting done in the same way pasted fine and appear very nice looking and not jagged or aliased at all! I am very confused, can someone please help or recommend a better process or way to build scenes. Thanks ahead of time.

Pasting Into Flash Problem - Please Help
I have an illustrator logo that I want to animate in flash. I have been trying to paste the vector parts into flash from illustrator (which i haven't had a problem with in the past). Whenever I paste a vector image in Flash, the smooth curved lines become straight and jagged. The vector points are still there, but there are a lot more of them and they don't have handles. If anyone could help me with this, I would greatly appreciate it.
thanks-

Pasting Text Into Flash
i'm pasting some text into an existing static text box... but every time i do it, the entire box jumps to a different position on the stage...

how can i stop this??

i'm copying form a Word doc, but i've also tried from a txt file.

please help!

Copying And Pasting From Flash To IE
When ever I try to copy anything from a dynamic or input textbox into Inernet explorer, it just doesn't copy it. I tried CTRL + C and Right click -- copy, but both don't work.

I know that there is nothing wrong with my Clip Board, as I have tried copying from anywhere else, and it worked.

Why does this happen? I am using Flash MX.
Also.. Is there any way to use actionscript in order to copy text (from an input or dynamic textbox) into the clipboard?

Thanks.

Help Copying And Pasting Pics
I just got flash mx and I'm trying to work with sprites and backgrounds and I'm having some trouble copying and pasting pictures. Whenever I paste something it gets shrunk down a bit, and gets turned vertically. Along with that I have to remove the smoothing out option. Are there any ways I can automaticially have those things turned off? Also, is there a way where I can make a specific color act as if is clear (for example if I chose white to act like this all white in that object will be transparent)? Thanks in advance for the help.

Help Pasting A Scrollbar Into My Movie
Hi everybody. I need somebody's help.

I downloaded a scrollbar file and I want to add it to my main scene as a movieclip.
I copied all the key frames from the original scrollbar main scene and pasted them into a new movie clip which it's going to be on my main scene, but the scrollbar doesn't scroll.

Here are the original and modified scroller files.

Thanks.
H Alanis

How To Not Allow Copy And Pasting Of Text
If I have a text field that is populated from a database, is there a way to make it so that no one can copy and paste the text in it. I am doing a website for an author that wants to put a sample chapter of her book online, but doesn't want people to be able to copy and paste it. Any suggestions would be appreciated. THanks!

Pasting Mathematical Formulas
Hi,

I have a pagemaker file containing various mathematical fomulas. When I copy the text and paste it in Flash, certain fonts change and it is real painful to get them back as each changed character is to be selected and the font needs to be specified.

Is there a way to paste the text as is? Of course, I have tried to paste as wmf, which keeps it as is but then it is a grouped text and each character is a separate object, any thing else?

Copying And Pasting Layers
I need to find a way to paste all the layers from one folder into a new folder with all of the layers automatically aligned to the centre of the screen.

Thanks in advance,

Josefurm

[F5] Crisp Image Pasting Help
Hi! I'm rather new at Flash. I was wondering how I can import an image into Flash and keep it the exact way it looks without compressing it at all. Is there a specific image type I should use? I've tried BMP and PNG. The image is pixel art, so you can tell if it is compressed and it looks bad. I've tried fiddling around with all the controls, but nothing works. Is there something I'm missing, or is it impossible to paste an image and have it appear perfectly?

[CS3] Copying And Pasting Actionscript
I can't copy or cut actionscript and paste it. anyone know why? WEich1213

Pasting Mathemetical Formulas
Pasting mathematical formulas from apps. like pagemaker results in the loss of formatting and change of certain mathematical symbols. Pasting as wmf solves the problem but each character is an individual object, so editing is out case.

How do I accomplish the task? Any idea?

Copying/Pasting From/to Other Programs
When copying and pasting an image either from or to Flash and a graphics editor, the size is always off. Is there a setting somewhere that I need to adjust?

Pasting Text With Transition
I'm trying to get a sentence to fade in and fade out, so i created two separate layers- one with the fade in, then i copied the text from the first frame of that layer, copied it to a new layer where i wanted the fade out to start, but the layer is being pasted as grey frames and i can't edit the transition (it looks like it is copying over the original transition as well as the text). I even tried creating new text, but it still won't let me edit the transition. Help!

Copying And Pasting Within Flash
I've made an animation in flash, but I now need to move it to another flash document. I didn't make it a movie clip to begin with, I can't figure out how to convert this animation into a clip whilst retaining the layers. What the best way of doing this? Once I do this I can copy it into the other document. Any help would be greatly appreciated.

thanks

Copying And Pasting From Fireworks
Has anyone else noticed the copy and paste functionality has changed between Fireworks and Flash in the CS3 versions? Before I used to be able to simply CTRL+C out of Fireworks and CTRL+V onto the Flash stage and the graphic would retain it's original size and any effect such as a drop shadow (as long as the canvass in Fireworks was transparent). In the CS3 versions the same action results in a graphic 75% the original size and missing the effects layer (drop shadow). I have experimented with all of the "Paste Special" options, selecting flattened bitmap and "PNG with retained layers" but I can't get the pasted graphic to arrive on the Flash stage in it's original state.

To test this, try drawing a vector square in Fireworks 100 x 100 pixels, select, then copy and paste into Flash - the result is a symbol 75 x 75 pixels. How should I be using the copy and paste functions to get EXACTLY the graphic I need with drop shadow?

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