Can I create a function to say a button to open a clip of the same name
I'm new on the side of the flash actionscript
I'm working on a card that has say 20 popups (movieclips) and countries are the buttons, I have just been informed that I have to add another 60.
Here's an example of code, I've been using
english_movie.visible=french_movie.visible=turkish_movie.visible=false
english_btn.addEventListener(MouseEvent.CLICK, englishButtonClick);
french_btn.addEventListener(MouseEvent.CLICK, frenchButtonClick);
turkish_btn.addEventListener(MouseEvent.CLICK, turkishButtonClick)
function englishButtonClick(event:MouseEvent):void {
english_movie.visible=true;
english_movie.play();
french_movie.visible=turkish_movie.visible=false }
function frenchButtonClick(event:MouseEvent):void {
french_movie.visible=true;
french_movie.play();
english_movie.visible=turkish_movie.visible=false }
function turkishButtonClick(event:MouseEvent):void {
turkish_movie.visible=true;
turkish_movie.play();
english_movie.visible=french_movie.visible=false }
IM thinking there must be an easier way to do this that reproduce the code again and again.
Any help would be appreciated.
:
var tl:MovieClip =;
var mc:MovieClip;
var i: int;
var buttonA:Array=[english_btn,french_btn,turkish_btn,...];
for(i=0;i
buttonA [i] .addEventListener (MouseEvent.CLICK, buttonF);
TL [buttonA [i]. [Name.Split ("_") [0] + '_movie'] .visible = false;
}
function buttonF(e:MouseEvent):void{
for (i = 0; i<>
TL [buttonA [i]. [Name.Split ("_") [0] + '_movie'] .visible = false;
}
tl[e.currentTarget.name.split("_")[0]+"_movie"].visible=true;
}
Tags: Adobe Animate
Similar Questions
-
How to create two employees with the same name as the vendor record?
Hi all
We must create a vendor for the employee record, so that we can issue pretty invoice for cash payment. If there are 2 employees with the same name, how can we create records of supplier for these 2 employees? The system does not have the name of the provider in duplicate.
Please notify.
Kind regards
HYHello
In R12, it is possible to create 2 employee with the same name but with a different number.
And it is also possible to create these 2 employees as suppliers in Payables.HTH,
Vik -
You can have two stored functions with the same name?
Hi all
You can have two stored functions with the same name?
My version of DB - connected to Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
Thank you.
You can have the same name as long as they are within a package and with different parameters
create or replace package test_pkg
as
function my_func (p1 in number)
return number;
function my_func (at number p1, p2)
return number;
end test_pkg;
/
create or replace package body test_pkg
as
function my_func (p1 in number)
Return number
as
Start
return 0;
end;
function my_func (at number p1, p2)
Return number
as
Start
return 0;
end;
end test_pkg;
/
-
How can I create a multi page PDF from a multi .tif file? On the creation of a file .pdf from a file multiple .tif, the .tif file is converted to a single page (always the first page of the .tif file) .pdf. The rest of the document is cut off. The .tif file comes from a document by using the fax & Scan app scanner in Windows 10. I am running Adobe Acrobat Reader DC, which I run with my subscription 'Adobe PDF package, monthly'. It worked fine until about a month. I've since upgraded to Windows 10 and Acrobat Reader DC. I would be very grateful for any help. Eoghainn
Hello
This problem has been reported as a bug. Our team of engineers working on this priority issue.
Kind regards
Nicos -
How can I create a submenu? I chose for a vertical menu and want the submenu also be vertical
How can I create a submenu? I chose for a vertical menu and want the submenu also be vertical
Via the live chat, I got a useful tip... This has to do with the Organization of child pages in the tree. I had put them vertically on the relevant page (I wanted a submenu vertical). I had to put the child pages horizontally under the relevant page... not really logical or intuitive, but it works!
-
How can I create 2 albums in the same name and the same artist
The guy is anyway to make the 2 albums in the same name for the same artist? If there is no way so please someone tell me how can I suggest updating to iTunes
Faisal,
If they have the same artist and eponymous album, iTunes will think they are from the same album. The best way would be to change the title for the second version, for example 'Loveless' and 'Loveless 2.' Or you could put parts in separate lists.
If you don't want to make a suggestion to Apple, here's the link:
http://www.Apple.com/feedback/itunesapp.html
"In the dropdown for" Type of comment ", select"Enhancement request.""
-
InDesign CS4 bookmarks can cause the same name?
Hello
I am a new user of Indesign CS4 and have recently created a 388 pages in PDF with bookmarks entered using the bookmarks of Indesign Panel. However, in the PDF, I find that if a bookmark in a chapter has the same name as one bookmark in another chapter, then clicking on the first bookmark takes you to the page indicated the second - as if somehow to create the second bookmark has "substituted" the page of the first reference.
I me assuming that bookmarks have their own unique ID and what to say, with a bookmark called "Economic factors" in Chapter 1, and a bookmark bearing the same name in Chapter 2, would agree. However, in the PDF I created from Indesign, this isn't the case.
Please can someone advise? I'm doing something wrong?
Best regards
Sarah
I played and I'm able to reproduce your results in certain circumstances. I think it is a bug, and it's there in CS5, too.
I also found a workaround, but there will be a LOT of work in a doc where you already have created bookmarks. As I said, this happens in certain circumstances in my tests, especially when you highlight the text and create the new bookmark and accept the name of the bookmark in the highlighted text. Even change the name of the selected text does not appear to make a difference, at the time of creation or thereafter. On the other hand, so simply, you place the cursor to the location of the text and make a new bookmark, the default name will bookmark N (N is a sequence number) and you can change it to what you want.
I made two sets of bookmarks nested covering different pages and names them ALL identically. They all work correctly, if my guess is that the bookmark resumes the name of highlighted text, but a number of generic sequence of a plain insertion point and everything is picked up sticks. If you take the same name you no longer have an identifier unique, and that leads to the same problem of destination, but I want to emphasize this is just a guess.
So that this works, you must recreate the bookmark. You cannot rename.
I filed a bug on this.
-
Problem in creating several attributes XML with the same name of the attribute
I am trying without success trying to create several attributes XML with the same name, as shown here in a Microsoft example configuration file:
I'm calling the NewDocument GetRootElement functions and then "newelement" (appSetting), "newelement" (add)
Then I call AddAttribute with add, key & Key0, then with add, value & 0. This seems to work fine but when I try to add the second pair of key & Key1 and value attributes & 1 for item "Add" replaces "
"and I find myself with" " only. I do something wrong or CVI is not able to create an XML of this type?
Thank you
Here's how you do it. I show not to keep things simple error checking.
#include
public static void CreateAddElement (mother of CVIXMLElement, const char * key, const char * value)
{
Add the CVIXMLElement;
CVIXMLNewElement (parent, -1, 'Add', &add);)
CVIXMLAddAttribute (add, "touch", key);
CVIXMLAddAttribute (add, "value", value);
CVIXMLDiscardElement (add);
}void main (void)
{
CVIXMLElement root, and appSetting;
Doc CVIXMLDocument.
CVIXMLNewDocument ("configuration", &doc);)
CVIXMLGetRootElement(doc, &root);)
CVIXMLNewElement (root,-1, "appSetting", and appSetting);
CreateAddElement (appSetting, "Key0", "0");
CreateAddElement (appSetting, "Key1", "1");
CreateAddElement (appSetting, "Key2", "2");
CVIXMLDiscardElement (appSetting);
CVIXMLDiscardElement (root);
CVIXMLSaveDocument (doc, 1, "c:\\temp\\temp.xml");
CVIXMLDiscardDocument (doc);
} -
I can't save a PDF with the same name
I can't save pdf files with the same name on the network drive in our society. I have full control over this network drive and can do anything create/read/write/change. Other programs work fine, but not Adobe Reader. I can save a pdf file with a different name, but when I try to save as in XI or replace as in DC had an error: the file is read-only or opened by someone else. Save the document under a different name or in a different folder.
By the way, Acrobat Pro, I got the same message.
Hi igorp74028164,
Please provide the exact point of the software & OS installed on your system. Also check if it is there any update available for the software after crossing "" help > check updates "»
Follow this thread to reset the preferences for the acrobat software. : - How to reset preference settings in Acrobat format.
Also please check if this file is saved to the network drive or local, if its network on Please save it on local disk & then check. Make sure also that this preview pane must be closed in windows Explorer.
Kind regards
Christian
-
Imports to create my destination but put the images in a subfolder under my destination (always the same name but different from my folder created under) Lightroom CC 2015.3
I solved the problem. I think that this should be addressed.
When importing from is no possibility for "put it in a subfolder when.
display all the options. But there is down to bottom left a little box that
When hovered says 'show fewer options'. When this window opens and copy
is selected, it offers the possibility to in a subfolder. Who has been
selected and the origin of the problem.
It is an option that should show the full screen, but also the show
under the screen.
Monroe
Monroe Halpern
-
VRA unable to create groups of companies with the same name in different tenants with vRO
vRA 6.2.2 Build - 2754020
vRO 6.0.1
Through the vRA GUI I can create groups of companies with the same names in different tenants as follows:
Tenant1: BusGroup1, BusGroup2, BusGroup3
Tenant2: BusGroup1, BusGroup2, BusGroup3
However, to create business groups with the same names in different tenants via the vRO, specifically the workflow plugin Library / vCloud Automation Center / Administration / Business groups / create a group of companies, fails in the second tenant with the below error:
[42106] the specified condition is not respected for 'name '. (Name of the dynamic Script Module: createBusinessGroup #12)
If I change the naming convention to be different by tenant, then I have no problem. I thought it might be a restriction in the product, but as said I was able to create with the names of same origin through the user interface.
Anyone experience the same thing?
This is a known problem within IaaS API the plugin vRO uses to manage groups of companies through business groups workflows. You don't have the same problem of the vRA UI because the user interface (according to the 6.x) does not use the same API IaaS to manage groups of companies.
The only alternative to 6.x for now is to directly use the helper generic entity Manager plug-in itself. You can take a look at the first example in example CRUD Infrastructure tasks management Scripts.
I hope it helps.
Sergio
-
How can I search all subjects in my guide? and if this is not possible, how do I get books have not not subjects with the same name?
"People need be able to find these without having to look inside each book TOC.
Sorry, but I'm not a big fan or user of this sensitive arrangement "New kid on the block. Therefore, it may be that I am simply misunderstanding because I do not regularly use it. Of what you say, it seems to me that if you (or more precisely your users) are not able to click on the right side, where he says 'Getting Started' or 'List of Email Campaign' and see these topics open and view the content with search terms highlighted?
Regarding the "bookmarks", those that are normally visible by the user and will be not viewable unless the name of the bookmark appears also as text within the topic. Although, if the two are different, you could probably get there by adding the name of the bookmark as a keyword search in the properties of the section.
In any case, I feel that at this point, I can just be frustrating you and you may need someone else to try to help that probably better understand the issue.
Sorry, I was not able to help.
See you soon... Rick
-
can perform us two actions with a single button in two clicks, one after the other?
Mr President.
can perform us two actions with a single button in two clicks, one after the other?
I want that when I click on the button Add once it add data to the database and when I click again on this button it clears the form data to the empty fields.
Concerning
TanvirIn the code, it should be easy.
The following code adds that a button called butman with text 'ADD '.
It then registers a listener that will be called if the user clicks the button.This listener then calls the runAddData method if you clicked butman while it contained the text of "ADD" and it calls the runClearData method otherwise.
That's why he will swap the functionality of the button between ADD and CLEAR on each click.final Button butman = new Button("ADD"); butman.setOnAction(new EventHandler
() { @Override public void handle(ActionEvent t) { if (butman.getText().equals("ADD")) { butman.setText("CLEAR"); runAddData(); } else { butman.setText("ADD"); runClearData(); } // END IF-THEN }}); I hope that's what you wanted.
Further reflection.
You might want to run the ADD and CLEAR methods in their own son so that it can run in the background without slowing down your user interface.I also reuse rather a single button for several features instead of to apply with hundreds of nodes used only rarely with masses of code to show and hide as needed.
-
Is it possible to create a database of the Clone with the same name of source db?
Is it possible to create a database of the Clone with the same name of source db with RMAN...
DB version is 11.2.0.2
&
Is it possible to clone a 11.2.0.2 database at 11.2.0.3 home location directly on a new server. If it starts in upgrade mode, it's ok...Hello;
Here's what I have:
Frequently asked Questions about the restoration or duplication between different Versions and platforms [ID 369644.1]
This thread:
Never done it myself, but I think that his
alter database open reselog upgrade;
I can predict all the details of this are understood to do a test on a system I can trash.
Best regards
mseberg
-
accidentally create data file with the same name but different location
Hi all
I was accidentally create data file in the tablespace with the same name but in another location.
/ U03/DataFile/REKON65. DBF
new data file: / u04/datafile/REKON65. DBF
My question: what happens with data/u03/datafile/REKON65 file. DBF? the data inside/u03/datafile/REKON65. DBF went?
Thank youIndra says:
Hi allI was accidentally create data file in the tablespace with the same name but in another location.
/ U03/DataFile/REKON65. DBF
new data file: / u04/datafile/REKON65. DBF
My question: what happens with data/u03/datafile/REKON65 file. DBF?
nothing
the data inside/u03/datafile/REKON65. DBF went?
not gone
Maybe you are looking for
-
The mouse on the T610 SmartZero speed
In our case, we use HP smartZero (Z6X44017) on HP T610 All of our users are complaining that the response of the mouse is too fast. I tried to adjust the mouse speed in windows 7, but that did not help either one. This happens to all cables, wireless
-
Play AVCHD with windows media player
I use windows XP 5.1 and windows media player 11. Can I convert windows media player to play the avchd codec?
-
Clients SSL VPN so never expire, even if the time-out is configured
We have a TZ215 running SonicOS Enhanced 5.8.1.2 - 6o, and clients are set to the following: By default the Session Timeout (minutes): 30 However, VPN sessions are never finished. One is linked from 2942 minutes, and the column for the idle time is 3
-
result::failure 532 all development 10 slots are already in use
Hi, I tried to run my application using adobe flash builder burrito, but I continue to have this error log. It is when I run new codes only I'll run in it, while the old man, who ran it before with success has been able to run. Why is it so?
-
I would like to know if West a new versin of the OS for my 9000 "BOLD" and if someone recommends the upgrade actually. Thank you.