ActionScript 2.0 :: Copy A "dynamic Text" Using Copy Button?
Sep 11, 2011i need to copy a "dynamic text" using copy button. how can i do it ?
View 5 Repliesi need to copy a "dynamic text" using copy button. how can i do it ?
View 5 RepliesA web channel streaming service streams to a certain IP range, it only checks the IP in example.com/cmd.php?id=xxx (channel number) and outputs an rtmpe stream URL, nothing else.How do I trick it to get my local URL instead of the one on their server? I have considered squid proxy, but is there some way to do it with a firefox plugin or greasemonkey script?
Edit:I will try to specify:It's a streaming service from an ISP and cable provider. They stream for free to people on their IP's. On their webtv page, which is called webtv.example.com, there is a flash player. If you are not on an IP from their ISP, you can't stream anything but the test channel.When you try to change channel via. javescript:videoplayer_changechannel(xxx) it makes this HTTP request:
[URL]
If you are on one of their IP's you will get an RTMP URL, like this:
[URL]
This is what the flash player requests, and if it get's this response it load the channel requested. There is no HTML on the php page, just the URL. Note that the rtmp URL is static.If you are not on one of their IP's it will return a random sentence (something stupid, the programmers having fun).I wan't to trick the flash player into getting the right value, even though it's not on one of the ISP's IP's.
I will like to load dynamic text field to notepad, by pressing a button. Is it possible ?
View 4 RepliesWagster kindly posted this code to resize dynamic text, but i'm struggling to get it to work. I've saved the code below that he posted as a '.as' file and i'm trying to call and use the package in the as3 script on my first frame but having no joy?The code i'm trying to use is below wagsters:Wagsters:
ActionScript Code:
package
{
[code]......
Will it be able to copy dynamic text and paste to notepad by just pressing a button, or right click the dynamic text field and paste it to notepad ?
View 1 RepliesHow can I copy files with FLfile.copy method in CS4? I need any samples with all classes.
View 0 RepliesI have a text field with a dynamic amount of text. Now I would like to take the lines 1 to 10 and put them in one variable. And then the lines 11 to 20 and put them in another variable.
View 2 RepliesI need to select the text copy and paste the text in to clipboard.. i am able to select the text and on right click i have provided the menu for copying the text... after selecting the text, i am clicking the copy text option in the menu.. but it is not pasting the text..
I am using the syntax:
System.setClipboard(text).
I have a created one complex button that I intend to use more than one. When I copy-paste the buttons in CS3 and try to change the text of just one, the text of every buttons is changed.I right-click on the button and select "duplication symbol" to change the features of the button independantly of the others. However the text never gets duplicated and all of my buttons show hte same text.
View 7 RepliesI am using Flash CS3 and Actionscript 2.0.
I have a TextField component that has some text added during the movie. This textfield has html set to true. The text that I am passing to it has html tags.
I want to copy the plain text that is displayed during the movie from the textfield to the clipboard without the html tags.
Edit 04/04/11: It turns out that the UTF encoding was just hiding a bigger problem. I initially thought it was the UTF encoding as setting that seemed to solve the search problem, but it was more to do with how mongodb was serialising the search key in the background
I'm using Flash to create a small tool to generate db info for mongodb. It will generate something like:
db.save({"className":"mypackage.MyClass","name":"someName"});
And display that in a TextField so I can just copy and paste it directly into the db.
My problem comes with mongodb being unable to find that info later. After much debugging, the problem boiled down to the text not being entered in UTF-8 format. i.e., in order to make it work, I'd have to copy the line of text from Flash, paste it into something like Notepad++, set the encoding to UTF-8, then copy that text into the db.
is there a way to either specify that I want to generate the text as UTF-8 or copy as UTF-8 from the TextField to avoid having to have this extra step in my workflow.
I am trying to copy loaded XML text to another textfield[code]...
View 2 RepliesI am loading a external swf in to a movieclip.. now i need to copy and paste the text available inside the external swf. i tried with setclipboard method to copy the text inside that, but it is not working for me..i have attached the code for your reference..
code:
import flash.text.TextRenderer;
_root.createEmptyMovieClip("holder",_root.getNextH ighestDepth());
_root.holder.createEmptyMovieClip("contentMc",_roo t.holder.getNextHighestDepth());
_root.holder.contentMc.loadMovie("2.swf");
[code]....
I'm working for a client that needs me to put a lot of information into flash. He had someone do all the typing and all that in word, with formating and I went through and changed text colors where needed, and now when I'm trying to put it all into flash, it doesn't take any formatting at all. No indents, none of the bold settings, and none of the color settings. I really can't re-do all of the formatting, it would take ages and ages. There must be some way to get this formatting into flash from word (actually using a free program called bean, because i can't even get a copy/paste from word to work at all)
View 3 RepliesIn ActionScript-2 is there any way the html text can be copied and pasted without formatting loss.
View 1 RepliesBut again, a little more descriptive. I have a editable text section set up like
Artist - (Editable text section)
Your email - (editable text section)
Link - (Editable text section)
(send) - Sends to my email
And I want to make it so people can copy a paste a link from lets say you tube on to it.
I have the text in TLF format to allow it so I can change the color of the input box where the text is located. (Because I do not know how to do it on classic) how to make the box color of the editable text section a different color other then white? (If its a problem.)
Whenever I try to copy and paste as is it shows up but its in a different text style, and its hidden. (That may just be because my text box is black as well.) but i'd still like it to have the same text style when you do paste.)
Is there a script similar to the image below that lets the user press a copy button to copy text to their clipboards (instead of right-clicking to copy)? Here's the URL where I got that image: [URL]. Where I can find a script to do implement that functionality?
View 2 RepliesI'm trying to copy/modify the spark skin for the default button, but not sure how to find that skin. When I hover over <s:Button and Ctrl + Click it, it takes me to the Button class, but there isn't any skin information there.
View 1 RepliesDoes anyone know how to do the text animating effect on the About Us and Newsletter Body copy? It at the bottom of this site.URL...
View 2 RepliesAre there any events that trigger when you copy, cut or paste text from a TextField?If there aren't, do you know a way to achieve something like that?
View 1 RepliesI am using a Text Field as an Input for password, I set the displayAsPassword to true, and it shows * instead of chars, but I still can copy the content and paste on another Text Field to see what Ive tiped! In the Adobe AS3 manuals its says that the copy and cut should be disabled automatically but its not!! I am using Flex Open Source, may it be a bug?
[Code]...
I used code that kglad suggested to add a button that copies the embed code for a SWF to the user's clipboard:
clip_btn.addEventListener(MouseEvent.CLICK,clipcopy);
function clipcopy(e:Event):void{
Clipboard.generalClipboard.setData(ClipboardFormats.TEXT_FORMAT, s);
[code].....
I came across this simple flash site,[url]...
in the Profile (first button) you are able to copy and paste the text. I was wondering how this was done.[url]...
I have created a simple Flash file using actionscript 2 (CS3) that allows a user to enter text into an input text field and then print the results. Now what I want to do is allow the user to save what they've typed in a .pdf. (I would prefer a .pdf, but I'm not married to that format.)
View 1 RepliesI'm working in Flash Builder and Catalyst CS5 building a project that will aid technicians in finding policies and tools easily. One area that I want to focus on is the note taking section. I want the user to beable to input text and then have a "Copy Notes to Clipboard" button that will gather all the data from those input fields and store them in theclipboard. This way all the agent has to do is paste into the note section on their service ticket.The following is an example of the fields that it would require.Name:Phone Number:Issue:Symptoms:Troubleshooting Notes: also want the label for the text field to be included within the notes. So when someone pastes the notes it won't be just the contents, but will include the name of the text area as well. "Phone Number: 555-123-4567" instead of just "555-123-4567."
View 3 RepliesI have created a simple Flash file using actionscript 2 (CS3) that allows a user to enter text into an input text field and then print the results. Now what I want to do is allow the user to save a file containing the information they've entered. I would prefer a .pdf, but I'm not married to that format.
View 0 RepliesI have this information that is pulled in from a PHP database and displayed in a textfield within flash which works fine BUT when I go to copy and paste that text into another textfield (a note facility) it then means I can't make a line break. I've tried all sorts with the text field and can't see any reason why it wouldn't allow it. Is there something about different text formats that mucks it up?
View 2 RepliesHeres the code i made that i THOUGHT would work. Basically what i'm trying to do is a line of text which look like:
image 1
image 2
...
like that. But if you copy and paste the code, the text gets replaced each time for some reason .
[AS]
identifier = 1;
width = 40;
height = 17;[code]....
when trying to embedFonts, nothing works thats why i've put it in as comments.
I'm making a very simple news ticker that uses XML to load four items: copy text, an image, date and a URL. The script was pieced together from tutorials and a bit of self-teaching, so I know it's probably not great. The AS is pasted below. Everything loads just fine, but the button script returns an "undefined" error. I assume this is because the item is no longer found in the array, but I'm not entirely sure. I also think it may be that the loadMovie method isn't working well with a specific item in the array. Also the link does not work. *Note* I know there are probably more advanced ways to tackle this but I'd like to keep this at my learning level so I can grow with it. :-)
[Code]....
I want to copy this text paragraph from notepad (img1) and paste into a TLF container with 2 columns (img2), but it seems that something is wrong.
View 1 Replies