How to know if the list contains text?
I use the following code with a list item in Flash 8:[code]
my_list.change = {function (evt,:Object)}
getURL (evt.target.selectedItem.data);
};
my_list.addEventListener ('change', my_list);
[/ code]
I would like to define 2 - a geturl in empty window and a geturl in self - behaviors depending on whether the list for the particular input data contains 'pdf '. Is it somehow possible to do?
Thanks in advance
Of course, try a string indexOf() method:
var url: String = evt.target.selectedItem.data;
If (URL. IndexOf ('.pdf')! = - 1) {/ / check the existence of .pdf in the url string}
make behavior pdf
} else {}
do other behaviors
}
Tags: Adobe Animate
Similar Questions
-
How can I see the list of authorized computers (not how)?
Hello
I would need to see the list of computers that are allowed before removing all permissions.
How can I see the list of the authorized computers (not how I have)?
Thank you
There is not one available from your end.
(144073)
-
How can I 'print' the list of passwords saved?
How can I print the list of "saved passwords"
You can export the passwords in a file signons.json by evaluating the code in the Console browser (Firefox/tools > Web Developer).
See:
You can open the Console browser (Firefox/tools > Web Developer).
Paste the JavaScript code into the command line, and then press the Enter key to evaluate the code.
You can enable/disable devtools.chrome.enabled true on the topic: config page to allow the command line.You can open the topic: config page via the address bar.
You can accept the warning and click on "I'll be careful" to continue.You can open this file in Notepad (Firefox/tools > Web Developer).
Click on the button to "Pretty Print" to fit the file for readability. -
How do you get the list of bookmarks affixed permanently on the left side of the screen?
I managed to get the bookmarks permanently open and displayed in a vertical column on the left side of the screen. I accidentally closed and cannot get it to appear again. How do you get the list of bookmarks permanently opened and displayed again? Thank you.
You can enable or disable the power bookmarks bar by ' display > lateral bars > bookmarks "or Ctrl + B
You can enable or disable the sidebar story power by ' display > lateral bars > History "or Ctrl + HPress the F10 key or press the Alt key to bring up the 'Menu Bar' temporarily if the menu bar is hidden.
-
How can I control the list of the available in the message SSL Client Hello cipher suites?
I want to limit my browser to negotiate the cipher suites fort. I would like to prohibit, MD5 and RC4.Set the SSL3 preferences related to false on the subject: config page (filter: security.ssl3.).
-
How to design and the list in ascending order from the minimum to the maximum with 6 entries
Hello
How to design and the list in ascending order from the minimum to the maximum with 6 entries in Labview?
It is easy to write in C++, but not in Labview, can be that I am new to Labview. I managed to get the 1st and the 6th after a comparison, but I can't get the 2nd, 3rd, 4th, 5th.
and can I write language c ++ in Labview VI?
Thank you.
Try this:
-
Windows Media Player 12: How to permanently display the list pane
Windows Media Player 12: Always list
Hello world
I've recently updated my computer to Windows 7.
When I was on XP, the list of WMP 11 component was always displayed in the right part of the screen (except mode full-screen).
Now WMP 12, I have to manually right-click and choose "View list" whenever I open WMPand whenever a new video starts .Could you tell me how to permanently display the list pane?
Thank you
Kind regards
PhilThere is no way to get or retain the component 'list' in Windows Media Player 12. You must create a playlist to see your playlist.
I've been playing with this for hours trying to get the same thing your tyring to get. Microsoft has changed a lot in the Windows Media Player 12 version. The latest version of the windows media player 11 is the only version that can display the playlist pane.
-
How do access you the list of programs that start when you start your computer?
How do access you the list of programs that start when you start your computer?
Saturday, January 19, 2013 19:48:16 + 0000, Psylly wrote:
How do access you the list of programs that start when you start your computer?
First of all, note that you should be concerned all the programs
starts automatically, not only those who enter in the system tray.
Not all the programs auto-start manifesting by an icon in the
Status bar.On each program, you don't want to automatically start, check its
Options to see if he has the choice of not start (make sure you)
Indeed choose not to run, not just a "don't show icon.
Optional). Many can easily and better be arrested like that. If that is not
work, run MSCONFIG from the start. Run the line, and then click the Startup tab.
Uncheck the programs that you do not want to automatically start.However, if I were you, I wouldn't do it just for the application of
the minimum number of running programs. Despite what many people say
You should be concerned, not with the way that a lot of these programs
you run, but who. Some of them can degrade performance severely, but
others have no effect on performance.Don't stop all programs to run willy-nilly. What you need to do
is to determine what each program is, what its value is up to you which
the performance cost is its running all the time. You can try
Internet search and ask questions about the details here.Once you have this information, you can make a smart informed
decision on what you want to keep and what you want to get rid of.
Ken Blake, Microsoft MVP -
How can I see the list of programs that are allowed through the firewall?
How can I see the list of programs that are allowed through the firewall? I can't find the list.
Open Windows Firewall and select 'allow a program or feature through Windows Firewall. You can then view or modify programs all allowed.
Jim
-
How can I change the font of text added?
How can I change the font of text added? I've updated for Adobe Acrobat Reader DC and I can't change fonts on the documents that I write about. Very frustrating because it was easy on the latest version. Can someone please? Moreover, I have a Mac.
Hi bjneller,
Change the PDF font is not possible in the reader, for this need you Acrobat application.
However, you can change the font for the comments on the PDF document in the Edit menu-> preferences-> commenting.
Kind regards
Nicos -
How can I get the list of data stores in a cluster data store?
How can I get the list of data stores in a cluster data store? I mean the command line option.
Hello
by command line, you mean PowerCLI?
If so, you can display data with this warehouses:
Get-DatastoreCluster-name DSClustername | Get-Datastore
Tim
Edit: Moved the thread to the PowerCLI community
-
How can I clear the list of "recent"?
How can I clear the list of "recent"?
In Reader XI, go to Edition > Preferences > Documents > Open settings > in the recently used Documents and set it to '0'
In MS Reader, go to the Home tab, click on the link "recent files".
-
I have a laptop on screen high resolution (3200 x 1800), how can I increase the size of text and the tool bar in the workspace of Photoshop?
If you have CC2014 you can try the experimental 200% upscaling setting in preferences:
-
How can I remove the list of creative cloud apps
I get reminders of old CC apps that I have installed att my mac.
Older programs CC that I deleted from my mac.
How can I remove the list of apps CC?
I found the solution in the community
Solution 1
- Mac OS: Launch the uninstaller in the folder Applications/Utilities/Adobe Installers to remove the program listed as up-to-date.
- Windows: Programs and features in Control Panel to remove the program listed as up-to-date.
-
How can I change the default blue text and underline when I create a hyperlink?
How can I change the default blue text and underline when I create a hyperlink?
Click on the links hyperlink to change Styles of bindings; or Site properties, and then click text.
Slash screen opens. If you want to create a new style there is an icon small page in the bottom right of the window next to a trash box. This icon pulls a new style of link, and you can edit each of the four States. Simple, when you find this "cute little page icon" who thought something silly would be obvious for everyone...
Maybe you are looking for
-
How to stop this script goes all the time at startup
I've installed shockwave and others, and I always have problems with scripting. Start up as I continue to keep the message script takes to long. Starting with this problem takes 10-15 minutes to reslove.
-
Cannot disable touchpad on the Qosmio series F
I reinstalled windows from backup DVD. Now, I can't disable touchpad after the plug in USB mouse. What should I do?
-
How can I restructure a unfavourable to 1 d 2D table format?
A surface profilometer we use generates data in text files with five columns with data point, you place your order online first. that is, if you have the sample following data; 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Then the order of
-
Connection is disconnecting remote desktop continues
Hi team, I am facing a problem with the remote desktop connection is disconnected several times. We are having the same problem with 3-4 machines. Those are all machine have a system of operating windows XP SP3 as updated antivirus. All but a few min
-
Pavilion ts 23: HP Pavilion 23-f200br for W7 SM bus controller
Hello After much research I could finally install W7 on my desktop (originally W8) Now I can´t find a bus controller/chipset for W7 driver. HP does not have drivers for W7 on this machine (thanks for this HP) Can anyone help