ActionScript 3.0 :: Click Image Send A Text Into Dynamic Text?
Jan 16, 2012
I'm doing some experiments on images from xml document when clicked it will send a string text into a dynamic text in the stage. My image is now clickable but has a wrong argument in its function this is my code
All I want to do is add text from my string to dynamic text field when I click dynamic buttons. What should the as code be for this? Here is my code. Right now I just have the click returning another shape.
I have 2 input textfields on the stage and 1 dynamic textfield.
-input1 is for quantity
-input2 is for page count
When a user enters a number into the page count it makes a calculation and places the outcome into the dynamic textfield. This textfield is for the individual price.All of this so far works. What I want to do now is create another dynamic textfield for the total. So the individual price is multiplied by the quantity and this result is put in the new dynamic text field. I have the code for that working but here is where it gets tricky (for me anyway).The total price is to start off invisible. When I roll over the individual price the total price is to appear (For a test lets just say when I roll over an area the total price appears).To stop cursor flickering this should be done inside a movieclip. So... I have create a movieclip and placed a dynamic textfield inside it. They all have instance names BUT how do I reference it in script?I need to tell the resulting calculation to be placed inside the textfield which is inside the movieclip. If it isn't inside a movie clip I can do it. But how to I reference it when inside one?
I need text to be displayed with some movie clips or smileys with it in dynamic text box. Like the below but when i tried to do this i am getting some thing like this it is registering with left or right only. how to rectify it? I am using html output for attaching the clip with text for output
I have a Flash file with an FLVPlayback component that loads a video. I have an actions frame that sets listeners and then sends the current running time of the FLV video to dynamic text boxes in my "timecode" movie clip. That all works fine as long as I have the "timecode" mc and the actions in the same timeline.
BUT, I'm trying to put the "timecode" mc in the FLV player skin swf so that I can use the auto hide feature for the skin etc.
I think my pathing etc is all screwed up because I can't get this to work. My skin swf is called "Annual_Report_2009_skin.swf"[code]...
What happens in my flash file is I click on a colour swatch and that colour is then stored until I click on the part of the shirt I want to change colour. Once that part of the jersey has changed colour I want to be able to send the colour from just that section to a dynamic text field (to be emailed later as a reference). As an example, I click on "btn_orange" and then click on the Movie Clip "block1". "block1" changes to orange. As it changes I want to send "block1"'s colour to a text box called "hexcode1". If "block1" colour changes, then so will the text box "hexcode1". "block2" will be linked to "hexcode2" etc.
I have one dynamic text field and one button in my movie like newsletter.I want to send into my mailbox the value of the field. Just need to know the button actionscript and the php side.
I have a simple text chat flash client written by AS3. Text message can be sent and sync among flash clients. However, how can I send icon image in text chat like MSN?
Want to know whether it is possible to attach one image, or a zipped text file with the email form in a Flash template.Actually I want to send one image and one text file as attachment.
I have been searching on google to find a way to send dynamic text field contents to an email but I haven't found anything!!all I found was sending Input text content to an email..is there an easy way to send the dynamic texts contents via email?
I'm pretty inexperienced with actionscript, and I'm having the hardest time trying to figure out how to load variables from a file and send it to a dynamic text box. The content of an external file, "varload.txt", is "name1=John". Here is actionscript of my flash file:
I am making a site where each page has a 'mini menu' and when you click on each item you get different text, problem is, I am having real trouble loading my text in, I have tried loads of different tutorials and there always seems to be errors.
I also know for a fact that as soon as i actually get this working, some other error will come up when I want to make the text change (or another text box to become visible) when you click the menu item.
I have attached an image of a page from my site, hopefully someone will be able to work out what i mean from this description, there is more info as comments in my actions window.
I have a movieclip that sits ontop of another movieclip that holds dynamic text with url links in it.Since the movieclip that sits ontop is what is capturing the mouse events it is blocking the mouse events I need from the movieclip containing the dynamic text.
I have a dropdown box that is used to select a Category. I need the Flash Application to send the value of Category plus the search string in my textbox to my Access query and return results for each product meeting selection criteria. The Flash Application is calling an ASP.NET web service which in turn queries an MS Access database.
To start, how do I define the category ID and search value in my Actionscript 3 code?I've placed a series of 12 or so objects that will be populated with the product description, title and price. How do I setup each field to be dynamic text associated with the title description and price from my query results? If there are more than 12 products returned by the query, how do I add an additional page of objects to house more than 12 query results?
I'm really new to AS3 and could use some help. I have a movieClip with a drag and drop functionality that's working fine but then inside this movieClip is a dynamic text field and it won't let me click over the text field to start dragging and if I click off to the side I can drag but the movieClip is automatically centered and then I can't drop because now the text field is under the mouse and it keeps saying:
ReferenceError: Error #1069: Property stopDrag not found on flash.text.TextField and there is no default value. at MethodInfo-10()
Why is AS3 so finicky? I'm clicking on the MC for the love of $(*%@ not the text field. Errr..
how I can have a text field load some data from an xml and then the user can change the text in the text field and send it back to the xml file. Like load, edit, send.
how I can have a text field load some data from an xml and then the user can change the text in the text field and send it back to the xml file. Like load, edit, send.
Eventually I would like it to show our projects along a horizontal axis, when the user clicks an image additional images and text is revealed. At the moment I have got the horizontal axis working with images loading in and separating into each project. Now I am trying to code it so that for every project a mask is loaded in with the height of the mask equaling the length of the pictures (which I think may need me to restructure my code). So that only the first image is shown.
The important code for this is: function processXML(e:Event):void{ var myXML:XML = new XML(e.target.data); xPos = 0; yPos = myXML.@YPOSITION; thumbWidth = myXML.@WIDTH; thumbHeight = myXML.@HEIGHT; [Code] .....
I'm not sure if i need to restructure the code so that for every project in the xml file it inserts the images of that project into a new movieclip, not sure how to do that though.
What I have so far is a carouselmenu. I got a actionscript page (page1.as) where I load another one (page2.as) into. page2.as is a Sprite (or MC whatever). I can load and display the sprite in page1 successfully (several instances). I also have an eventhandler when i click on an instance of page2. The problem now is that I have defined a textField inside page2 that is also being displayed. What's not working here is that when I mouse over the text, I cannot click on it (the cursor turns into the cursor that appears when I mouse over a text as in MS Word or similar for being able to mark the text). So I thought of making a bitmap out of the text field. how to transform a text(field or string) into a bitmap?
Problem: I am trying to get a very simple text resize going, for my main content area in a flash website. My aim is to get a button, that on click, increases the text size of a dynamic text field.
[Code]....
This is what I tried, I am very new to Action Script, so excuse the futility of my code.
i have a problem with the line space flash creates when a dynamic text is loaded in a dynamic text field on the stage i put a dynamic textFild with istance name "profile_text". then im loadin in it a text. my text is written in the Notepad like this
[Code]...
i already set a Textformat to my dynamic text with i tryied to play with the "Leading".. but i think it something dealing with paragraph. how i can decrease spacing between paragraphs??
If you take a look at my flash movie you will see that I have draggable movie clips, which contain dynamic text fields. These text fields contain text drawn in from a simple xml document. The problem I have is that the text in the text fields is hedged right next to the border of the autosized text box. This makes them look untidy and in the worst case difficult to read. I wonder how I can add some margin to the left and right of the text to fill in some space.The code which formats the text boxes is:
with (main["dragAct"+i].dragActText) { text = actText[i+1]; background = true;
I have 4 dynamic text boxes which duplicates the text from a main input text box. How do I write a code to make visible only the dynamic text box I want when clicked it's check box.What is the CODE to make each "DYNAMIC TEXTBOX" visible when clicked on it's checkbox?
My client has supplied a Flash template that I'm modifying in CS5 Pro. The text is feed from a XML file which I've figured out change to my requirements but I can't figure out to place an image in the text box which is a Dynamic text and have the text wrap around this image.
on my site I have a dynamic text field and text is coming in from XML files..in the xml I embedded an image. Every time you click a button on the menu it changes the text and the image to correspond with that xml file. So here is my problem. When you click on a button it first tries to load all the text then resizes it in order to accommodate the image causing this "flicker" effect everytime you click. [URL]
I have the img tag at the top of the xml in the "main" section flowed by the text..it wont let me paste the code here cause i havent been on long enough
I'm having an issue with a scrollbar (slyder and line) going below the height of the text field when the text file contains a link to an image in an HTML text file. This only happens when there is a tag for the image in the text file, but not when it is text only. and the code for the text file:
HTML Code: &article= <img src="admin/images/pressexample.jpg"/>
PRESS TEXT Luxelab, nestled among the boutiques and cafes of Santa Monica's posh Montana Avenue, is the beautiful brainchild of Jason Lara and David Abrams. With their more than 40 years combined experience in the salon industry, Lara and Abrams put their well groomed heads together and created the perfect environment for their chic clientele. Luxelab is dedicated to the modern client. It is sleek, progressive, and sets the pace for Los Angeles hairdressing.
<img src="admin/images/pressexample.jpg"/>
PRESS TEXT Luxelab, nestled among the boutiques and cafes of Santa Monica's posh Montana Avenue, is the beautiful brainchild of Jason Lara and David Abrams. With their more than 40 years combined experience in the salon industry, Lara and Abrams put their well groomed heads together and created the perfect environment for their chic clientele. Luxelab is dedicated to the modern client. It is sleek, progressive, and sets the pace for Los Angeles hairdressing.and the code for the AS:
ActionScript Code: //eventhandler for the onEnterFrame from the scrollmovie this._lockroot = true; function FNSCROLL(){