Attach 2 of the same movieclips at once

is it possible to attach the same movieclip twice?
for example i have two buttons and both attack Main_Page however when i test the flash and error reads "Duplicate function definition"
is there a way of attaching the same movieclip more than once?
im using this code to attach the movie but when i add this code twice on two buttons duplicate error shows:
s_next.addEventListener(MouseEvent.CLICK, attachMovieclip);
function attachMovieclip(event:MouseEvent):void {
var addPage1:Page1 = new Page1();
addPage1.x= 0   
addPage1.y= 0
addChild(addPage1);
thanks for any help

there are 7 buttons in total on the main page.
Under the contents menu:
Children Day - 1 instance name = s_gotoPage1
Yellow color day - 2 instance name =  s_gotoPage2
Summer Festival - 3 instance name = s_gotoPage3
TWP Daily - 4 instance name = s_gotoPage4
The next page button (bottom right) instance name = s_next
the two red buttons up top link to page 1 and page 3
the page 1 button has instance name: s_gotoPage1a
the page 3 button has instance name: s_gotoPage3a
There are a total of 5 pages
The class name for these pages are as follows:
Page0 (main page)
Page1
Page2
Page3
Page4
i can also provide the fla source if needed

Similar Messages

  • Open attached file in the same editor(ZCRM_DNO_MONITOR customer program)

    Hi All,
    I wrote a dialog program to simplify the CRM_DNO_MONITOR.  I gave the facility to attach file from the PC(any doc  type .txt ,doc, xls. etc) by calling the functions. I need to give  a facility to open these attached file in the same edit. Please let us know way
    Additionally,I can find the logical and physical document of these attached files
    e. g
    (Doc class       : CRM_L_ORD
    Doccument   : 4CA517D70BE60F7FE1000000AC113F3F
    Doc Class       CRM_P_ORD
    Document        4CA517D80BE60F7FE1000000AC113F3F)
    Attached files successfully by calling the following functions
           objkey = wa_tab-guid .    " (crmd_orderadm_h-guid)
           objtype = 'BUS2000116'.
          CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET
          CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER
         CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'
         CALL FUNCTION 'CRM_KW_MIGRATE_GOS' DESTINATION 'NONE'

    Hello ,
    i think you can make use of Clase CL_GOS_MANAGER
    check Sap program which are using this clasee.
    try yourself and let me know if you have any doubts.
    regards
    Prabhu

  • My self and my wife each have a phone on the same vodafone account, i have an iphone 5 with an apple id also ana ipad on the same apple id. My wifes phone is a samsung, but if i buy here an iphone can i attached it to the same apple id.

    My self and my wife each have a phone on the same vodafone account, i have an iphone 5 with an apple id also ana ipad on the same apple id. My wifes phone is a samsung, but if i buy here an iphone can i attached it to the same apple id.

    Yes and No.  yes for sharing music and apps.  No for icloud/facetime/imessage - she should get her own id for that.

  • Double contacts as "iPhone"...my phone saves the same number twice, once with a 1 before the area code and one without it. It causes two different threads in my texts even of they're saved as the same contact

    my phone saves the same number twice, once with a 1 before the area code and one without it. It causes two different threads in my texts even of they're saved as the same contact

    My wife is having the same problems as a reciever. She works in a school as a teaching assistant and her teacher sends messages that are mixed with previous texts from ages ago.
    Can anyone shed some light on this problem or is it only her and this poster?
    2m42s

  • To trigger the same Gp process once again after the completion of one

    Hi
    I have aGP process implemented in Webdynpro.
    After the completion of this process, itshould automatically trigger the same GP process once again.
    It should happen from the webdynpro coding.
    Can anybody help me.
    thnaks
    Smitha

    Hi Siva,
    Thanks for the reply.
    But How can I give process name ?
    There can be more than 1 process with the same name.
    Procees ID is the unique one what we can use.
    Still that too we can't use as method.
    we can give it as a parameter.
    what I tried is,
    IWDClientUser wdUser = WDClientUser.getCurrentUser();
    IUser user1 = wdUser.getSAPUser();
    IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(user1);
    IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate("EB0B28E08B6011DBB1BE00145EB416E0",userContext);
    EB0B28E08B6011DBB1BE00145EB416E0 is the process ID.
    This code I have tried by  giving before and after the completion of the previous  process(process9executionContext.processingComplete();)
    And I tried URL navigation also, by creating an outbound plug in the interfaceview. in the outbound plug I have called the process instantiation URL. But it is giving the error: "can not navigte :non-existent outbound plug"
    Please help me out.
    Thanks
    smitha

  • With iOS 8's family sharing, will family members be able to share apps that they previously purchased with different credit cards with one another for free (given that they will all use the same credit card once iOS 8 comes out)?

    Question 1: In my family of 4, we currently have different Apple ID's and we all use different credit cards to purchase our apps and media. When iOS 8 is released, if we agree to share the same credit card, will we be able to access apps that a family member purchased with their own credit card prior to iOS 8's release? To clarify, under iOS 7, Member 1 has purchased Apps A and B with his credit card. Under iOS 8, if Members 1, 2, 3, 4 decide to use Member 4's credit card, will Members 2, 3, 4 be able to access Apps A and B?
    Question 2: If we all decide to use the same credit card now, once iOS 8 is released, will family members have access to the apps/media purchased by the fourth family member?

    You can read everything that is known about ios 8 on Apples website.
    There is no way for anyone to know any more than that.

  • Can I create multiple hyperlinks to the same location at once?

    Hello all - I'm a first-time poster here hoping for some guidance creating links in a document.  The docs I'm working with are maps, made from .JPG images combined with a text index into a PDF file.  The index was created in MS Word, then saved as a PDF so it can be combined with the .JPG files as a single document.  The index consists of locations with page numbers indicating the .JPG page where they can be found.  An example portion of the index is below (it looks rather sloppy here, but is aligned as a table in the actual document):
    S
    SAN JUAN CREEK                                                     3208
    SAN JUAN ROCK                                                       3302
    SPECIAL USE AREA (NO ANCHORING)                 3306
    SPIRIT OF DANA POINT (TALL SHIP)                      3203
    STATE LIFEGUARD HEADQUARTERS                    3208
    T
    TURK'S - 34683 GOLDEN LANTERN                     3206
    W
    WEST ANCHORAGE                                                  3203
    WEST BASIN                                                              3204
    WEST JETTY                                                               3203, 3303-06
         So here's my question.  I know how to create a link from the text number for page 3208 that will jump me to that actual page in the PDF document.  But is there a way to batch process this?  Each page number appears multiple times throughout the index.  So rather than manually finding every time the number 3208 appears in the text and creating a link to that page each time, is there some way I can highlight all instances of that number at once, and only have to perform the action of linking to page 3208 just one time?  Since I'll still have to do this for all the different pages in the document, only having to do it once per page would save a lot of time.
    Thanks in advance for any advice.

    It's possible to do it, but it requires a complex script or external tool.
    I've recently developed a tool that allows you to search multiple PDF files and do various things with the results. One of those things is place links above them. This tool is very powerful and even allows you to use Regular Expressions, so you don't need to search for "3208" and then link it to page 3208, and then do the same with "3203", "3206", etc., but you can search for "\d{4}" and it will find all the instances of four-digit numbers and link them to their matching pages.
    You can contact me personally to discuss it further at [try6767 at gmail dot com] or via a PM.

  • Two attachment interfaces on the same form

    I have a four page form. On page one is an attachment interface where users can click a button and add an attachment. the file name appears in a Listbox object "window". I added a second attachment interface on page four. Is it possible to connect these two interfaces so the user can view the same attachments regardless of which interface they are currently looking at? I tried binding as global but I can't see the attachments added to the other interface.
    Here's my attachment interface code:
    var d = new Date();
    var myDoc = event.target;
    var sFile = "myFile" + Math.floor(d/1000); 
    myDoc.importDataObject({cName: sFile});
    var myDataObject = myDoc.getDataObject(sFile);
    var sFileName = myDataObject.path;
    ListBox1.addItem(sFileName,sFile);
    NoOfAttachments.rawValue = NoOfAttachments.rawValue + 1;

    how does your server select the default gateway ?
    If traffic comes in via the CSS goes out through the outher interface, directly to the pix, bypassing the CSS, then the CSS will reset the connection assuming this is a DOS attack.
    So, 2 interfaces is usually a bad idea.
    I would simply insert the CSS between the pix and the server. The CSS can still forward traffic directly to the server without the use of a Vip.
    Regards,
    Gilles.

  • Insert an attachment while writing the same

    Good night,
    Do you know how we can to insert an attachment/file in an email but while writing the same, for example, when we reply a message "... please see the attached file..." and insert then the file.
    I only see that this only is possible if we for example press on the file (on Docstogo) and send, and then e open a new email already with the attachement.
    Could you please help me.
    Thanks

    alphabet soup,
    Yes, windows helpfully prevents two processes from accessing a file simultaneously. Operating Systems on the other hand uniformly support it.
    Which probably doesn't help you very much, as I imagine that you can't just up and change the source machine over to *nix, but there you have it.
    You'll just have to close the program which has the database open, copy the database, and restart the program which uses the database.
    keith.
    Message was edited by: corlettk

  • When images are attached in mail the same is received as thumbnail by receiver most of the times. At times it was resolved by unchecking and checking "windows friendly attachment". But the behaviour is very uncertain. How to resolve this?

    I am using macbook pro 13" Retina with Yosemite. All updates are done. The issue of mail attachment persists even after apple support suggesting to uncheck and check the "windows friendly attachment" option. The behaviour is very uncertain.

    I am using macbook pro 13" Retina with Yosemite. All updates are done. The issue of mail attachment persists even after apple support suggesting to uncheck and check the "windows friendly attachment" option. The behaviour is very uncertain.

  • I have two iMac's on the same desk. Once iMac pairs with both keyboards and mice.  The other pairs with the mouse, but I cannot get the keyboard to connect.  How do I get a keyboard and mouse to connect to each iMac independently?

    I have two iMac's on the same desk (about a foot apart). One iMac pairs with both keyboards and mice.  The other pairs with the mouse only; I cannot get the keyboard to connect.  How do I get a keyboard and mouse to connect to each iMac independently?

    Antaeus00 wrote:
    I tried sending a request for help,
    But did you succeeed in sending a request for help?
    Did you receive a response? How long has it been since you sent a request?
    but I need someone with more authority to talk to.
    There is no one with more authority than iTunes store support. We herem are only users.

  • Once i turn on my iphone it says connect to itunes, so i did that and restored by phone but now it keeps saying the same thing. Once i reconnect it to itunes it tells me theres a problem with my phone. what is it?

    is my phone damaged and i should just buy anyother one?

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...
    Be sure to Follow ALL the Steps...
    But... if the Device has been Modified... this will Not necessarily work.

  • How can I ignore the same warnings at once?

    I am using a formula, but i am getting a warning sign on the top left corner of each cell - one with a blue triangle.
    I can get rid of the triangles by clicking on it and then clicking "ignore"
    Is there a way to ignore all of these warning signs at once??? or do I really have to click on each one to ignore each warning?

    j,
    There's a Preference setting for empty cell warnings. Other than that way to opt out of one particular type of warning, you have to deal with the rest of them one at a time. When you tire of this, you may be motivated enough to rewrite the expression to avoid the warnings -- it's often possible.
    Jerry

  • Add two animations to the same movieclip

    Hi there,
    I was wondering if anyone could tell me how to fade my movie
    clip out after using tweener, or if it can even be done? If anyone
    has any suggestions how to find the answer to this question it
    would be greatly appreciated.
    In addition, if anyone can direct to a place/book/tutorial
    that help me how to write sequential animation to one movie clip
    w/out button events, that too would be very helpful!
    Thank you very much!

    In addition, you can pass parameters to the function called
    when the tween is finished by passing along an object to
    onCompleteParams. You can create sequential animations using this
    method (although it may not necessarily be the most efficient
    implementation). Also, be sure to check out the
    Tweener
    Documentation for more help.

  • Is there any way to have OS 10.5.8 mail leave a photo as attachment in the same orientation as it is in Preview?

    Is there any way to have OS 10.5.8 mail leave an attached photo in the same orientation as it is in Preview?

    First, to answer the question, I took the photo with a Canon camera but did not choose to use the Canon software to download the photo to my desktop.  I just did a select and drag to a new folder on my desktop from the sd card.  Canon has some software called Imagebrowser that may be used for this, but I took the simpler route.
    I have not come across what you called the EXIF orientation before and have no idea how to access it.  What software is needed to determine the EXIF orientation?  Sorry I'm so far behind on this.  I usually used Photoshop and iPhoto to enhance photos.
    By the way, I imported the photo into iPhoto then attached it to the email and the orientation didn't change.  It was the same in the attachment in Mail as it was in iPhoto.  I just don't want to have to go through that extra step every time I attach a photo.
    Thanks for your help so far.  How do I get the EXIF orientation?

Maybe you are looking for