call for another weird problem of movieclip duplicateMovieClip

Hello, I noticed a strange thing with duplicatemovieclip.
Let me explain what my problem is:

I used a movieclip called mf_instance for a menu. Inside this movieclip is a movieclip called btn2 with a text on her house.

When I use the following inside the movieclip mf_instance code, I'll get 5 buttons under the other.
Code:
-------------------------------------------------------------------
createButtons();
function createButtons()
{
var of totalitems = 5;
for (i = 0; i < totalitems; i ++)
{
var test: Number = ((btn2._height+3) * i) + (btn2._y + btn2._height + 10);
duplicateMovieClip (btn2, 'button' + i, this.getNextHighestDepth ());
This ["button" + i] ._x = btn2._x;
This ["button" + i] ._y = test;
This ["button" + i].btntxt.text = i;
}
}
-------------------------------------------------------------------

Now my problem:
I have all my code in one place so I can't look where are all of the pieces of my code.
so I call the same function and use _parent.mf_instance to access my menu.
the problem I have is that when I trace the position there of each double button it gives me different values, but my look of buttons stacked on each other.

code used:
-------------------------------------------------------------------

createButtons();
function createButtons()
{
var of totalitems = 5;
for (i = 0; i < totalitems; i ++)
{
var test: Number = ((_parent.mf_instance.btn2._height+3) * i) + (_parent.mf_instance.btn2._y + _parent.mf_instance.btn2._height + 10);
duplicateMovieClip (_parent.mf_instance.btn2, "button" + i, this.getNextHighestDepth ());
_parent.mf_instance ["Button" + i] ._x = _parent.mf_instance.btn2._x;
_parent.mf_instance ["Button" + i] ._y = (_parent.mf_instance.btn2._height + 3) * i;
eval(_parent.mf_instance["button"+i])._y = test;
_parent.mf_instance ["Button" + i] .btntxt. Text = i;
}
}
-------------------------------------------------------------------

can someone help me to fix this weird?

you're totally right, how silly of me...

The problem is that I used this.getNextHighestDepth instead of _parent.mf_instance.getNextHighestDepth ();
He showed the last button double because he replaced the previous ones.

Thank you very much.. his clear, I need coffee now :-D

Tags: Adobe Animate

Similar Questions

  • Turn on 15 in 1 card reader it was off for another troubleshooting problem

    All trying to solve another problem the 15 in 1 reader was off another problem has been resolved the reader was not been turned back on help

    I saw not a device with an option switch for the card reader, but I didn't know of every unit ever made.

    What is the product number?

    Do you know where it has been disabled?  Coincidentally, it has been disabled in Device Manager?

    The card reader should be listed under the following image-based disk drives.  You can try to uninstall/reinstall the card reader (s) of the device, as Manager indicated to half way down in this document.  The document is for Vista, but the steps are similar for Windows 7.

    In Device Manager, a disabled device will have an arrow icon down on it.  If it does not indicate that it is disabled, right click on it and selecting activate should allow it.

  • Another weird problem Playlist, songs DISAPPEAR!

    I use Winamp to create a m3u file and save it in the music on my SansaClip. No problem.

    But I tried to save 5 albums in a list. total of 43 songs. I click on the m3u file and Winamp plays the 43 songs.

    Yet my SansaClip wants only play 40 songs! 3 songs just are not RECOGNIZED by him. How weird is that? !!

    3 songs from the album by Tame Impala Innerspeaker just have somehow on the playlist. Ironically, one of the songs called "disappears" ' it's not means To Be.

    Maybe I should pursue this and just give up. But it is so boring! Anyone had similar problems, or know of a fix?

    OK, so I've deleted the album from the clamp, made a copy of it with the apostrophe taken out, to put it on the Clip, these 11 songs in a playlist and... they're all here!

    Problem solved! But why my SansaClip apparently allergic to the APOSTROPHES? !!

    Weird!

  • Atheros AR5009 weird solution for a weird problem!

    I know there are a lot of people having problems with the WIFI Atheros AR5009 blessed same card I had. I am the owner of 3 HP Notebooks that 2 of them have the WiFi model. The problem has been composed in an error code 10 after each start up to the top of the laptop, since long, after much wasted time in music with technicians, upgradeing to the Bios and drivers, removing the laptop WiFi card to reset and so on, I noteiced that if I turn off WiFi using the front quick launch button stop the laptop is fixing the code 10 error and the WiFi works fine on the next time you start, with the exception of a period of 10 minutes before connect you to the wireless network. So it was ok with me still a litlle bit boring but good. About 2 weeks ago, that I wanted to install the RC of Windows 7 X 64 to test because I heard a lot of good things on this subject and so I did. I have deleted the C: partition, created a new and format it using the Windows 7 installation disc and after that I just instaled 7. Drivers HP for Windows Vista X 64 perfect where except for Atheros I received the update of Windows and everything worked ok especially WiFi which gives me more the Code 10 error. After a few days of testing, I come to the conclusion that Windows 7 is buggy for me then I haved reinstalled Vista again delete the C: partition, creating a new and format before the installation of the operating system. I reinstalled Vista Home Premium X 86 and HP drivers and I noticed that the AR5009 is no longer gives me the error Code 10 when I stopped my laptop without plugging down WiFi first. A previous theme, that I know that are many o people have trouble with this map and that some o them even managed to get it replaced by Hp, but is not it is simpler for the technicians HP just look at this problem and solve it rather than simply replacing parts? I hope that this message will help someone at HP for a solution or a user HP the same problem faceing. Until now I failed to keep my laptop closed for several hours and then and I can't do the same thing on the second HP laptop so until I managed to keep closed for more then 24 hours, this solution must be regarded as a probable, but on Windows 7 works 100% , the cell phone being off more then 36 hours. I'll keep you posted when I get it for 24 hours just to be sure.

    When I was young I used to pray for a bike, and then I realized that God doesn't work that way, so I stole a bike and prayed for forgiveness!

    I finally figure is why the Atheros AR5009 works correctly under Windows Vista after all this month. How I told you in the previous post, I installed WIndows 7 X 64 OS on my laptop and Windows Update provides a driver for Atheros AR5009, and everything worked correctly without error Code 10. After that I reinstalled Vista again I asked Windows driver the driver installation folder where I keep all my drivers (I saved Windows 7 drivers there too) and everything worked, only I thought I installed the driver Atheros normal from the HP site. Hey well yesterday while I was looking for an explanation why the cursed WiFi card work properly I noticed that I have installed the wrong driver, I had the drivers for Windows 7 X 64. Have uninstalled and delete the device and the drivers and reinstalled again and I after that 16 hours, I turned on my laptop and the AR5009 is a lot of work. If anyone need this driver, can I download it for you, or you can search in the database of the Microsoft driver. The real question is why in HP world did not come to the top with a new driver and all the world let down? They are busy cash?

  • Is there a number to call for assistance with problems?

    I am having some problems and can not find the answers on the pages 'help '.  Is it possible to talk to a real live person who can guide me through?

    Try the link below:

    How and when to contact Microsoft and support Customer Service

    http://support.Microsoft.com/kb/295539

  • Just got yet another call for "Windows Service Station"

    Just got yet another call for "Windows service station', saying: I was hacked and my computer sends windows warning messages and if I didn't follow his instructions all my data would be deleted... An Indian-sounding guy named Sam... I played along and got a phone number, saying: I would like to remind him he said 0808 1890111 which is a UK addiction hotline...

    I played along 'Sam' gave me an extremely long code to type in something on the windows event viewer... I know it's a scam and we have these calls often 3 times a week for a few years now. I play at the same time or am quite rude and tell them to be ashamed of themselves, depending on my mood... I really wish that they would go, but I can't this blocks 'any number' because it is off the coast.
    Any suggestions on how to remove our number and the name of their list (I asked the scammers do, but they don't notice).

    Certainly a SCAM, you have made the right choice. Never to give them information and never leave access to your PC.

    It is difficult, if not impossible to remove your number from a list of scam once its on it. And it's hard to know how they got it in the first place. It could be a list simple phone book. Recording with things like Telephone Preference Service (United Kingdom) and asking to be made "Red" (BT - UK) can make it harder for them to get a number in the first place, but once they have it probably wont help. It can stop any other do however.

    There are devices like Call Blocker, which can be programmed for their calls not ring your line, but it depends on what number they release when they call. If their number is "held" and then some providers have a service to stop calls "deductions number' to ring your line. ACR service (BT - Uk).

    PS - the links above are a few examples of our services/devices to the United Kingdom for more information.

  • Problem with TaskFlow calling an another TF

    JDev version 11.1.1.1.3.0

    Scenario:
    A BTF calls another BTF and passes a parameter (ArrayList) at the BTF called. After a few manipulations on the provided parameter called TF uses a BACK (TF activity back) button to return to the BTF appellant. The TF, I created have MB scope pageFlow.

    I want to show the State of the objects by calling TF as it was before calling an another TF. I know that pageFlowScope beans/objects persist only in the context of the TF. How can I achieve this? (I don't want to put beans objects in the session scope, as the collections include data block). Please can anyone suggest an approach?

    Each TaskFlow has its own PageFlowScope, managed beans and then the variables created or modified by the 2nd (called) taskflow will not affect the PageFlowScope of the 1st taskflow (appellant).

    If you want to return a result of the TF called appellant TF, then use "definitions of value back" in "return values" and the section called TF property settings in the settings section of the TaskFlow call within a call TF activity. In the "definitions of return value" the TF called, you define where the return values will get of (if you specify the PageFlowScope, then it will be the PageFlowScope called TF), and in the section "Return Values" of TaskFlow call activity, you define where the return values to be stored in (if you specify the PageFlowScope then it will be the appellant TF PageFlowScope).

    Dimitar

  • The use of actionScript to speed up the video clip causes weird problems

    I use the script below to expedite a movieclip

    onClipEvent (load) {}
    NF = Function (); {
    nextFrame();
    }
    setInterval (NF, 1000/fps);
    }

    Well, a button inside the movie clip is linked to an another movieclip "parent". When the button is clicked above through the ignorant parent movieclip her stops at a pace fast enough speeds until she runs into the image tag where this clip accelerates resides in the parent movie clip, then it stops and returns to normal.

    Does anyone know how to avoid this problem? I know it works because there are other 3 buttons that work like a charm without accelerates using the above script.

    Or does anyone know another way to speed up the movieclip outside the use of the script above?

    Any help would be greatly appreciated, thanks in advance!

    Yuri = setInterval (f, t) starts a loop. He repeatedly calls the function f() every milliseconds t up to what a clearInterval (Yuri) is executed.

    the most common problem that occurs with setInterval() runs twice (or more) with no intermediary clearInterval(). When that happens all hell breaks loose and the swf will call the function much more quickly than expected and can not be stopped (easily) little matter how clearInterval() statements you try and run.

    to avoid this problem, the simplest method is to run a clearInterval() just BEFORE all the statements of setInterval(). It does not hurt anything (try and) clear and interval that does not exist and sometimes he'll stop the seemingly weird problems that occur with intervals of out of control:

    clearInterval (Yuri);
    Yuri = setInterval (f, t);

  • Transfer calls to SIP phones problem

    Hello.

    When a user with a Cisco 3905 tries to transfer a call to another IP phone, the call successfully diversion; However, the new beneficiary do not hear anything. If he speaks, the original caller can listen to it, but the recipient cannot.

    Is there anything us missing in our setup in the router of the CMF? All I could do to fix this?

    I attach the run-config and a message from ccsip debugging I extracted by a call that had been transferred.

    Whatever that either would be appreciated. Thank you!.

    Just to give more information on why this solves the problem, some devices/carriers do not manage the call for sendonly to switching sendrcv after a hold event and continue to stay in rcvonly.  This workaround lets the other side think that the call is in sendrcv mode all the time.

  • Disconnection of call for the endpoint MXP

    Hello world

    We have 1 special issue of one of our series mxp endpoint, where the call disconnects in between it the call, we call for our local endpoint in India on another mxp parameter to the United Kingdom on a dedicated IP link.

    The two endpoints are registetered to a common gatekepper.

    IM attaching the Syslog and Syslog 4 of our local endpoint 3 mxp mxp for your reference, please check the logs & suggest what could be the reason of disconnection of the call here.

    Thanks in advance

    Nikhil

    Hi Nikhil,

    Newspapers showing your EP get no response from the return of unity to end a call is disconnected.

    This problem is the network problem, check firewall, router configuration.

    H.245 Peer H323CC-1 entity does not meet the demands of round-trip time

    H.245 Peer H323CC-1 entity is presumed down. Disconnectiong.

    Kind regards

    Dharmmesh

  • After Effects can not minimize the very weird problem...

    Hello

    I have a weird problem with after effect, I can't minimize the programm!

    I'll explain what the problem is with the help of these screenshots.

    Information:

    Installed: After effects 9 cs4 version

    Working on one: Windows xp sp3

    untitled.JPG

    Well, after effect opens full screen nothing weird on this subject right, so I tried to play it down, but! the following I receive

    untitled1.JPG

    He is completely better! and I can't move the ore window to resize the window.

    I check with Photoshop and Illustrator, and they are workin very well.

    Please help I can't learn tutorials so it's frustrating with a window of max.

    Please do not make premature conclusions about the problems of bugs. Many times they are not in your specific case, behavior was never reported by someone else, if chances are it's a configuration problem. To me, it seems that the resolution of the screen may not be set correctly, and so AE can not determine what resolutions to maximize minimize not correctly. Screenshots look slightly cropped off the coast on the right side, what could the server to highlight my hypothesis. In addition, there is a mode at AE that hides the title bar and there is even one that disables the menu bar. They are controlled by the Ctrl + a and Ctrl + Shift +------shortcuts normally. If another application "steals", while EI is running, this can cause problems. So, all the rights, look in your graphics card (which you tell us nothing, BTW) and study especially your status bar icons. There may be a quick / quick shortcut somewhere active option. For another thing, we will need more information as what graphics card you are using, which monitor resolutions used so to know if other applications show similar behavior.

    Mylenium

  • Weird problem with the google search on Safari 9.0.2

    Hi all

    I had a weird problem with Google on Safari recently. After that the search for something from the Google home page and search page is loaded, I can't be able to change or enter anything in the more the google search bar. I have to reload the page every time google to search something else. Google search worked fine on Firefox though.

    I use the latest version of Safari (9.0.2) and I tried clears all history data, and Web site, but nothing has worked so far. My Mac is running on OS X Yosemite so what counts.

    Can someone understand what is the problem?

    Thank you.

    If you have problems to open Web pages, take a look at these techniques proposed by Apple of troubleshooting.

    https://support.Apple.com/en-us/HT204098

    Go to the Safari menu (at the top right of your screen next to the Apple icon), choose 'Quit Safari'

    Press the "Shift" key and while holding this button on your unique keyboard, click the icon of Safari on your Dock.

    Open Safari - Preferences - Privacy - data to remove any Web site.

    Open the menu to go with the Option (Alt) key - library - key locate Safari folder and place it on your desktop. Restart your Mac, open Safari and delete the file from your desktop.

    In addition, a restart may help.

  • Pavilion 9408nr: Add a second drive for another main drive for laptops

    How can I add a second drive for another main drive of laptop computers. I took the car on the same cell type that crashed by the motherboard. I put it in drive Bay 2. Problems with starting. I sometimes want to boot from disc 2. Is there a MBR somewhere? Are there jumpers to make it slave. Sometimes it will install the software on 2 without any question. Is there a way to make a slave?

    Important-copy all data on the second hard drive you want to save on the first hard drive.

    MBR of Windows with the hard drive. Use Windows Explorer to locate the second hard drive. Right-click on it and format it.  Once this done, all what one is a storage device and not bootable until the operating system is installed to it.

    The BIOS will only see the hard drive as a bootable as it will now be the only drive with a MBR boot sector.

    The days of placement of the jumpers to determine master or slave on the disks hard is long gone. SATA drives have no jumpers slave\master like the old school IDE and Eide did.

  • A person called me and told me he was calling for help me to correct a mistake that had occurred on my laptop. do I trust him and follow his instructions?

    I had a couple of calls from a man "not in these parts" by saying he was calling for help to correct an error on my laptop. I had a few mistakes, not so bad, but I need to reconnect a lot! Do I trust him and follow his instructions?

    Do I trust him and follow his instructions?
     
    No! This is a phishing scam. How anyone but you know that you had problems?
  • Vista Backup keeps asking for another disc

    Greetings.  I have a desktop HP with Vista Home Premium. I'm backing up files using the restore backup center &. The wizard opens and I put in the first disk and all right. When the first disk is full I have invites to second drive and mark 2...  I do, and the backup starts to run again, but any time I get ready to put in the disc 3.  It using my computer shows existing in drive E as partially drive full. I put in a 3rd disc and even don't thing only a part of the new drive filling before you ask me for another.  I used different brands of media with different types: DVD-R, DVD - RW, CD without help. I would be grateful for any guidance to correct this problem.  Thank you in advance...

    Hello

    This is a forum for microsoft at the link specifically for backup questions below

    http://social.technet.Microsoft.com/forums/en-us/WindowsBackup/threads

Maybe you are looking for

  • White screen when you run the pc diagnostic tool

    HelloWhen I run diagnostic pc screen tool is white and I do not see records or whatever it is in the field. I can press select all and run, but the test is finished in less than 2 seconds?Has it disappeared? How can I get that back?Thank you people.

  • Mouse in games problem

    OK, I recently installed Windows 7 and got a new computer. When I play this game online, which I played before on my old computer, one attacks requires that you hold down the right mouse button for 2-3 seconds. You can also hold the button of the mou

  • Error of yellow exclamation on the network icon

    whenever I turn on my computer a sign yellow triangle with an exclamation mark above appears on the network icon in the lower right hand of the screen cornere. He tells me that I am connected but with limited connectivity so it won't let me connect t

  • Design for MU - Exchange centralized, distributed to the unit question

    Here's the situation. Please let me know if I'm understanding correctly. Two centers of data, Europe and CONUS, centralized Exchange servers to support remote offices. Most remote sites in Europe have the average response time ~ 150ms, but AsiaPac is

  • Cisco UCS C220 M3 SFF and R2 Datacenter Windows Server 2012

    Hi Experts, I intend to install Windows Server 2012 R2 Datacenter as an operating system for Cisco UCS C220 M3 Small Form Factor. This deployment is - supported? Thank you. Sy