list box text tile
I use a tile list component and a component areatext. When I click on the graph in the list a description of the image appears in the text box. No problems so far. However, I want display a large image of the chart at the same time as the text. Now, I have a problem because I don't know what to do. I will attach a chart so you can see how they appear. I'll attach the file .swf also. You can see in the middle two areas (where the green square) is where I want the graphic to appear. I tried different things, but since I don't really know how to write the script I don't know what to do.
Here is the script
majorworksthumb_tl.addEventListener (Event.CHANGE, majorworksthumbClicked)
function majorworksthumbClicked(event:Event):void {}
majorwork_ta. Text = event.target.selectedItem.data;
majorworks_mc. MovieClip = event.target.selectedItem.MovieClip;
}
majorworksthumb_tl. AddItem ({label: "BISON COOP HAND", source: "majorworksthumb/BisonCoopMain.jpg", data: "BISON COOP HAND \n\nBison Coop of new Rockford - (Exact location, size, made of what?)". ""});
Thank you
Colleen
Change this:
myTileList.addEventListener(MouseEvent.CLICK,itemClicked); function itemClicked(e:Event):void { //myText myText.text = myTileList.selectedItem.data; //myMC var i =new Loader(); i.load(new URLRequest(myTileList.selectedItem.source)); myMC.addChild(i); }
To do this:
var i =new Loader(); myTileList.addEventListener(MouseEvent.CLICK,itemClicked); function itemClicked(e:Event):void { //myText myText.text = myTileList.selectedItem.data; //myMC i.load(new URLRequest(myTileList.selectedItem.source)); myMC.addChild(i); }
Tags: Adobe Animate
Similar Questions
-
rawValue of list box, text box
Hi all
Is someone can you please tell me how to get the rawValue of a selected item in a list box in a numeric field?
I have a button that pushes the entry selected in a text field. I would use the same button to fill the corresponding numeric value of the selected item even in a numeric field.
Country.rawValue
=
Countries.getDisplayItem (Countries.selectedIndex);
That's what I have to get the data displayed.
What would be the script for the rawValue fo the selcted Index?
Thank you very much
Larissa
Instead of the getDisplayItem() method, you use getSaveItem()
Country.rawValue = country. getSaveItem (Countries.selectedIndex);
Nith
-
How to display text programmatically in the drop-down list box?
Is it possible to display text programmatically in a drop-down list box. I would like to display the word "Select" in the drop-down list box each time my program starts. As it is now, drop-down list displays the last channel that has been selected the last time that the program is running.
Thanks in advance.
In fact, after actually reading your post...
-
transform of text file content in a drop-down list box
Hi people,
I have a file text filled with orders. and I would like to transform this text file in a drop-down list box ring, how can I do?
text file attached.
Lee
Is not no matter what extract lines. Which is just dumping the contents of the file directly on the ring. Which can be accomplished by simply doing this:
-
Selection in the drop-down list box determines the text to display in another box - ideas?
Hello, my name is Zac. I spent a lot of time trying to figure this one out for myself, but I couldn't find what I needed. A few threads looked promising, but I realized that they only apply to the LiveCycle. Many other threads link to discussion 2006 Thom Parker on this subject, but it is very advanced and I feel that what I need is not as complex as the solution he proposes. I've never used Adobe Acrobat until a few weeks ago, but with the help of Bernd Alheit and George Johnson I managed to create a document with fly-out help windows and scrolling lists and radio buttons which dictate the choice. It's great and it works. The last thing I have to do is to create a text box (or some kind of box) which will display a pre-written block of text based on the user choice in another area (a drop-down list box). Like this:
I wish, it is also easy to create because it draw a picture of him! If the user selects "Algebra 1", for example, a specific description display below. There are a lot of courses and descriptions, and the descriptions are long enough (as shown). It is not necessary for the user to make changes to the description - in fact, which would be terrible. But I would like to be able to copy text from it and paste the text in another area of text on the same page.
Thank you very much, all those who have ideas please share them! Again wild guesses. I learn from all this.
-Zac
This involves using a script. If you want to write the code yourself read this tutorial:
https://acrobatusers.com/tutorials/change_another_field
If you don't feel like messing around with the code, you can use this tool that I developed to easily set up with the help of an input file:
-
How can I make multiple selections in a list box fill a different text box?
I have about 100 items in a list box. However I should never select up to 10 items at a time. So, since it would fill pages that the entire issue of items to see which are selected at a glance, I'd like o keep the small list box, and I select the elements they have appear in a different text box...
I have Acrobat Standard XI, is this possible and if so, how?
Thank you
You can use this code as the custom text field calculation script, but it will update as soon as you leave the list box:
var v = this.getField("List Box1").value; if (typeof v=="string") event.value = v; else event.value = v.join(", ");
-
A drop-down list box, two text boxes
Hi all, I feel a bit silly to ask what she should be very simple, right? I have the a combo, the solution box a text down pat. For example when the user select name of the staff member in the drop down menu, it fills the phone number of this person in Textbox1.
I would like to add to this so that when a user selects (and here I use false details) "Bob," he filled before his phone number in Textbox1 and "[email protected]" in Textbox2 simultaneously. Simply impossible to find the solution of anywhere.
So far, I have used the code next (on the net) in the scripts of strike of the custom from the drop-down list box, but how I lay on it?
(function () {}
Do nothing if it is committed
If (event.willCommit) return;Set up a table to hold the various paragraphs of the text
var aQuotes = [];Fill the table with the text of paragraph
aQuotes [0] = "bob phone"
aQuotes [1] = 'sarah phone'
aQuotes [2] = "phone linda".
aQuotes [3] = "phone jerry."
aQuotes [4] = "phone of mary".
aQuotes [5] = 'phone jessie. "
Get the selected item, which is the value of exports of the selected drop-down list box item
var point = event.changeExDisplay the text corresponding to the selected item in the text field
getField("ITC_Phone").value is aQuotes [point];.})();
Bravo guys.
Like this:
Custom script from typo to the drop-down list box (dropdown)
(function () {}
Do nothing if it is committed
If (event.willCommit) return;
Set up a table to hold the various paragraphs of the text
var aQuotes = [];
Complete the tables table of telephone and e-mail addresses
aQuotes [0] = ['phone of bob', "[email protected]" ""];
aQuotes [1] = ["sarah phone", "[email protected]" ""];
aQuotes [2] = ["phone linda", "[email protected]" ""];
aQuotes [3] = ['phone jerry', "[email protected]" ""];
aQuotes [4] = ['phone mary', "[email protected]" ""];
aQuotes [5] = ["phone jessie", "[email protected]" ""];
Get the selected item, which is the value of exports of the selected drop-down list box item
var point = event.changeEx;
Display the text corresponding to the selected item in the text field
getField("ITC_Phone").value = aQuotes [item] [0];
getField("ITC_Email").value = aQuotes [item] [1];
})();
This code assumes that the value of exports of the items in drop-down list box is 0, 1, 2, 3...
If there is much more that the aQuotes table should really be defiined in a JavaScript file at the level of the document if you are concerned about performance and maintainability.
-
Multi Selection in a list box on a text box
So, I want to be able to make multiple selections in the list box and export it to the text box. Right now I have a Script running on the cal of the text box
Event.Value = getField("LISTBOX").valueAsString;
Who is able to make a choice, but I can not find someone who can take two selecitons and put in a box of text with commas for something. Is there a way to do this?
-Zach
Use this code:
var v = getField("LISTBOX").value;
If (typeof v ==' objects ' ")
Event.Value = v.join (",");
else v = event.value;
Remember, however, that the value in the text field will update as soon as you leave the list box.
-
How to use the drop-down list box to fill in a text box
I'm a beginner when it comes to Java Script. I have seen a lot of different discussions, look at a lot of articles "helping" Acrobat 9 and Java Script, but only to be left confused and dazed. I hope someone can tell me how to write a script that fills a text box that sits on my form with the value of exports of the selection in the combo box...
Thank you
If you want that the read-only text box, simply set with the following custom calculate script:
Set this field to the value of the drop-down list box
Event.Value = getField("combo1").value;
but replace "combo1' with the actual name of the combo box field.
If you want something else, post again with more information.
-
Fill in a text box based on the list box selection?
I'm relatively new to using scripts in forms. So I hope that someone can help me here.
I have a list box called 'Name', which uses the user selects a name. I have a text box called "DOB", I need to be filled in automatically with the date of birth of the corresponding name that has been selected.
I tried to adapt some scripts to fit my needs here, but nothing helps. Although it seems like it should be pretty easy. Any ideas? Thanks in advance for the answers.
' 1. fill the list box with the name of "and place the date of birth in the option 'value exprot '.
2. for action 'on blurr"add the following script:
this.getField('DOB').value = event.value;
When you tab or the mouse out of the list box, the value displayed in the field "DOB".
-
Fill the text box with mulitple selctions of list box
Hello
I am new to LiveCycle and searched the forums for an answer on how to complete multiple selections in a list box to a text field.
I added to the field calculate the text field the following: TextField14.rawValue = ListBox1.rawValue
Is there a way I can change this so that the items of the listbox to enter the text so that the values appear side by side (California, Connecticut, New York), instead of up and down?
Joe
I would use the JS code following in the "exit" from the list box event
var
ListValue = this.rawValue;
ListValue
= replaceAll (ListValue, "\n", ",");
TextField1.rawValue
= ListValue;
function
replaceAll (oldStr, findStr, repStr) {}
var srchNdx = 0; srchNdx keep track where in the line
of oldStr we seek.
var newStr = ""; newStr will contain the altered version of the oldStr.
While (oldStr.indexOf (findStr, srchNdx)! = - 1).
As long as there are strings, replace this loop
will run.
{
newStr
+= oldStr.substring (srchNdx, oldStr.indexOf (findStr, srchNdx));
Put all of the unchanged text of a findStr to
the next findStr in newStr.
newStr
+= repStr;
Instead of putting the old rope, put in the
new string instead.
srchNdx
= (oldStr.indexOf(findStr,srchNdx) + findStr.length);
Now jump to the next segment of text up to the next findStr.
}
newStr
+= oldStr.substring (srchNdx, oldStr.length);
Put everything that is left in newStr.
return newStr;
}
Good luck
-
Text highlights of an Image list box
Hi all
I have an image of a map of circuit board with many components. I want to help people find these components by having a list of text to the right of the image, and then if you click or hover over the text, the component is highlighted in the image of the printed circuit board.
Another way to put it: I have a map of the United States with an alphabetical list of States to the right. When you click or hover over a name of States, the State is highlighted on the image.
What is important to note, it's that I'm not hovering over the image. I am using string people locate something on the image by an alphabetical list that will focus on something on an image so they can find it.
How can I do this? CS6 product even begin by. I guess that dreamweaver? Can I do this with a CSS instead of JS?
Thank you!
Mike
This image is basically this except with a few components more (about 100).
http://www.hairballaudio.com/blog/wp-content/uploads/2014/07/Elements_PCB.jpg
In fact, I found exactly what I want to do here:
Demonstration of boundList feature - JSFiddle
It looks like I can create the image plane in Dreamwever then control, and make a list with the script.
Mike
-
Select the list box file and read the data from file
I can list the files in the folder in the listbox
1. I want to just list file .txt files
2. How can I read data from the selected file (.txt)?
I think that's what you want, enter a model in your list of files vi (for example, *.txt) and then just use File.vi text of reading by using the selected item in the list box (double click on event or value change) and use the starting for the vi records list path. I have included a crude extract for your pleasure.
-
Hi all
The string that is displayed in the drop-down list box is on the left side, is there a method to move it to the Center.
without spaces before the string in the edit points.
The image is attached below
Hello Shrekt,
set the focus on your drop-down list box (click on it) and then change its text properties.
-
I'm trying to get some combo boxes to have their entries populated by a text file. I have read many entries of forum on 'string []' property, but he refuses to work for me. I want the combo box is editable by changing the entries in a text file.
Does anyone can beat this code into submission? I get this error message on a controller GPIB needing to be in charge.
I've included the vi, the text file, I want to fill the combo box 'Version number' and that it should be.
Tay
You have several issues General, but here are the ones affecting your drop-down list box:
- In general, if you make copies of OR provided files, use new names.
- The VI you changed to read strings from the worksheet is bad DEFAULT. You have the number of lines, by default 4 and start playback offset set by default to 132. You get the error is because the file is not 132 bytes of data. Definition of those to-1 and 0, repsectively will remove the error. You should do this by opening the VI, change the value, then right-click and select "Data management"-> "Make current default value" for each of the two controls.
- Now, the VI you properly load the values in the file.
- There is no reason to replay the file whenever the user changes the value of the drop-down list box. Read once at the beginning of the program.
Maybe you are looking for
-
I was typing in FB and somehow, I did all the characters so small that I can hardly read the news feed. It happened once before and I don't remember if it of something that I did on FB or is it my HP laptop. The only thing that is any other website,
-
How to manage search engines in Firefox Beta for Android
When I type a search in the search bar, I get a list of search engines to use options: GoogleAmazonTwitterWikipedia I would use google.co.uk not google.com (and probably amazon.co.uk and not amazon.com) but may not know how to manage search engines.
-
The worm the most recent Firefox and the last Ad-Blocker worm cause Facebook to display incorrectly. Facebook displays only the right when Ad-Blocker is disabled. How this can be fixed or how do I go back to Firefox ver 5. ??
-
How can I reinstall the webcam integrated Equium L350?
Hi all I hope someone can help me with this: I get an error message with a component of the miss on it tells me to reinstall my built in webcam but I don't know how and I can't find anything on the Toshiba site?All of the software drivers are up to d
-
Hello! Im just a student in biomedical engineering and I need to detect the rate of breathing on labview based on accelerometer three axes, I m using the z axis accelerometer for movements of the chest and thorax breathing, but I do not see the signa