Target path issues, multiple nested mc's

I have a movie clip with a total of 15 nested movie clips
within it. My goal is to be able to scroll through these 15 mc's,
they're thumbnails. Before I nested all the individual movie clips
into one, they expanded when rolled over. Now that they are nested,
they don't expand when rolled over. I'm new to flash and am using
this project to learn as I go. I understand the concept of target
paths, but can't quite seem to apply them. I'm assuming that's my
conflict.
The main movie clip is called container_mc, with an instance
name of container. Each nested movie clip's instance name is
button1 - button15, movie clips named buttonclip1 - buttonclip15.
The expand actions are in my main timeline, with individual actions
applied to each button.
Here is the code in the main timeline:
_root.numButtons=15;
function Expand(buttonRate, buttonName, buttonSize) {
if (buttonName.scale==1) {
setProperty(buttonName, _xscale,
buttonName._xscale+=((buttonSize*buttonRate)-(buttonName._xscale*buttonRate))*(buttonRate /10));
setProperty(buttonName, _yscale,
buttonName._yscale+=((buttonSize*buttonRate)-(buttonName._yscale*buttonRate))*(buttonRate /10));
if (buttonName.scale==0) {
setProperty(buttonName, _xscale,
buttonName._xscale+=((buttonRate*100)-(buttonName._xscale*buttonRate))*(buttonRate/10));
setProperty(buttonName, _yscale,
buttonName._yscale+=((buttonRate*100)-(buttonName._yscale*buttonRate))*(buttonRate/10));
And the code for each button:
onClipEvent (enterFrame) {
_root.Expand(2,_root.button1,115);
and
on (rollOver, dragOver) {
this.scale = 1;
for (i=1; i<=_root.numButtons; i++) {
_root["button"+i].swapDepths(1);
this.swapDepths(2);
on (rollOut, dragOut) {
this.scale = 0;
Any help would be greatly appreciated, I've tried everything
I could think of with no results.

because button1 etc are no longer on the _root timeline,
using _root.button1 etc and, more generally, _root["button"+i] will
no longer target your buttons. attached to your movieclip butons
try:

Similar Messages

  • Copy function results in Error 1430 when the target path terminal is &ltNot A Path

    Hello all.
    I'm having a little bit of trouble with the Copy function under LabView 8.2.  If I wire <Not A File> to the target path terminal, I get an Error 1430 (The path is empty or relative.) from the Copy File function's error out terminal.  According the the manual, wiring <Not a File> to the target path terminal should cause the Copy function to display a dialog box prompting the user to select a file.
    I've attached a sample VI which demonstrates this issue.  Is the documentation for the Copy function incorrect, or is something I'm doing wrong in my VI causing the error?
    Thanks,
    Mark Moss
    Attachments:
    copy.vi ‏16 KB

    Hi Mark,
    Thanks for bring this to our attention. I believe the documentation is incorrect here, as you suggested. When nothing is wired to the target path terminal, it behaves as expected (prompting the user to select a target directory).
    I will look into this further and report this issue to our LabVIEW documentation team.
    Sam
    -Sam F, DAQ Marketing Manager
    Learn about measuring temperature
    Learn how to take voltage measurements
    Learn how to measure current

  • I need help using the target path tool

    Hi all,
    I realise that I need to keep all my code on the main timeline, so now I need some serious help with targeting movieclips and buttons, when I use the target path tool (the little gun sight in the action script panel) it lets me navigate to the thing I want, but when I use it's suggestion it very often doesn't work, and I am left using trial and error to work it out.  Ican get stuff to work, but I really have no idea why or how I am doing it, Sorry to be such a N00B, but I really think if I can work this out I am going to get somwhere.
    Cheers
    sub

    subtlefly72 wrote:
    Thanks kglad,
    OK that is basically what I have been doing, but its been a bit hit and miss, but maybe now I see why, your last sentence
    of course, all those objects have to exist at the time your code executes.
    So if I am referencing something inside a mc and it doesnt exist on the first frame there will be an error?
    exactly.
    also what is the       this.  Object() and Object(parent)  ??
    Do I need to be using these?
    not when using code on the main timeline.  "this" refers to the current scope which for code on the main timeline, is the main timeline.  the following are the same:
    this.mc and mc
    this.var1 and var1
    And still I want to know why the target tool gives me a path that doesn't work?
    i can't tell you much about the target tool.  i've never used it.  but i tried testing it just now and it seemed to work correctly to target a nested movieclip.  again, you must sure that object exists when your code executes so if you target something on frame 2 (or greater) of a movieclip using code on frame 1 of the main timeline, the reference may be correct but the object won't exist when your code executes.  there are a number of ways to handle that if it's your main problem.

  • Issues with nested for loops - saving images from a camera

    Hi all,
    I've written a vi. to capture a specific number of images ('Image No') and save these images, outputted to a folder of my choice.  Each image is identified sequentially.  However, I wish to do a number of iterations ('Run') of this capture sequence, such that the filename of each image would be 'Filename (Run)_(Image No).png', e.g. run 5, image 10 would be 'Filename 5_10.png'.  I have tried a nested for loop for this but I receive an error 'Asynchronous I/O operation in progress' (I've attached a printscreen).
    Can anyone assist me in solving this problem? I preiously posted this in machine Vision but got no response (http://forums.ni.com/t5/Machine-Vision/Capturing-image-sequences-issues-with-nested-for-loops/m-p/19...).  Please find attached my vi.
    Kindest regards and thanks,
    Miika
    Solved!
    Go to Solution.
    Attachments:
    Labview problem.jpg ‏3841 KB
    Image sequence save to file.vi ‏48 KB

    Miika,
    the problem is not the filenam, but the name of the folder (AHHHHH!). You try to create the same folder in the outer for loop over and over again.... (it is the error message above the '======', not below )
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Photoshop CC 14.1 editing paths on multiple layers disabled?

    Has editing paths on multiple layers with the direct selection tool been disabled in Photoshop CC 14.1? I can't seem to figure out how to do it now, shift- or command-clicking doesn't do anything. In fact, I can't even click to select individual paths on different layers, something that Photoshop has had forever.
    While it was at times problematic the way it was in 14.0 (always selecting multiple layers and having to go into isolation mode to edit just one), there were times when it was useful to edit multiple layers, or even just click between layers with the direct selection tool.
    I've seen this documentation on the site, but I'm not sure it's very helpful. Can someone give me some assistance?
    Also, what is the custom keyboard shortcut for entering/exiting isolation mode? It is mentioned in the above image, but what actually is it?

    You can still work with paths the way you could in 14.0 -- just choose the All Layers mode in the Path Selection tool or Direct Selection tool options bar. We added the Active Layers mode for users who prefer to isolate which paths can be selected based on which layers they have already selected in the Layers panel.
    To clarify:
    -Active Layers mode: Clicking or dragging on the canvas with the vector selection tools will not affect which layers are selected in the Layers panel. Double-click to enter isolation mode is disabled.
    -All Layers mode: Works just like in 14.0 -- clicking or dragging on the canvas with the vector selection tools can change which layers are selected in the Layers panel. Double-click to enter isolation mode is enabled.
    If you find yourself switching between these two modes a lot, you can add a custom keyboard shortcut that will toggle which mode is selected. In the Keyboard Shortcuts dialog, choose Shortcuts For: Tools and scroll down to the Direct Selection Mode Toggle option. Add your new keyboard shortcut here.
    As for your question about isolation mode keyboard shortcuts, this just means that you can assign a custom keyboard shortcut to this command as well (Select > Isolate Layers).

  • SeeBurger Receiver VAN/FTP Adapter: where to mention the target path

    Hi,
    I am using SeeBurger VAN/FTP adapter for IDOC-XI-EDI scenario.
    In seeburger receiver VAN/FTP adapter, where I have to set the target path. My target path is very long (15 characters).
    I am able to configure Host, Port, User id and password.
    Please suggest where to put the path name in seeburger receiver VAN/FTP adapter.
    Thanks,
    Madan Agrawal

    HI Madan,
    Can you please tell me which VAN provider you are meant to use? It is the same question which Prateek asked above 'which protocol' without this it is hard to help dude.
    I just checked and half of them don't want you to use this field 'host path;
    Also the error is different ...
    1) Are you doing FTP or FTPS?
    2) which VAN/Protocol
    regards,

  • ICE Offer Target Path

    Hello,
    We are trying to use the ICE service to pull a KM folder and its contents (xml docs) from a source portal into another "slave" portal.
    When we configure the offer from the syndicator portal it automatically enters a Target Path. For example
    We have the same base folders created in the documents repository on both portal A (Syn) and portal B (Sub):
    <b>Portal A:
    /documents/folder1</b>
    <b>
    Portal B:
    /documents/folder1</b>
    When we create the offer on Portal A the default Target Path is <b>documents/folder1</b>. When this transfer then takes place we end up with
    <b>Portal B:
    /documents/folder1/documents/folder1</b>
    It has added the extra <b>documents/folder1</b> into folder1 on portal B and all the content of folder1 from Portal A gets created under <b>/documents/folder1/documents/folder1</b> on portal B, not just under <b>/documents/folder1</b> as wanted.
    Can anyone help? I have tried changing the Target Path to . and ../ and just / but nothing seems to work.
    Also, you have to be very carefull otherwise you can delete folders on Portal B very easily without wanting to! (believe me :-o)
    Any ICE gurus out there that can help me?
    BRgds,
    Simon
    P.s. Is there a good way to copy KM content from one portal DB to another? For example we want to build a Test Portal with a copy of the content from Development and ICE and WebDAV are too slow and do not take all the meta data ACLs etc.... Any good suggestions? I know that you can do the equivalent of client copies now in NW04, could we use this?

    > I have tried changing the Target Path to . and ../ and
    > just / but nothing seems to work
    Unfortunately, it seems there's no easy way to obtain your desired effect. The only solution would be to create in the syndacator (Portal A) distinct offer components <b>for each</b> subfolder contained in /documents/folder1:
    Name........Content Path.....................Target Path
    comp1......./documents/folder1/sub1.....sub1
    comp2......./documents/folder1/sub2.....sub2
    comp3......./documents/folder1/sub3.....sub3
    and so on, and setting the destionation to /documents/folder1 in the Portal B's subscription.
    I know it could be very tedious if you've got many subfolders, but as far as I know this is the only way. Not supporting a current path (.) target path is a feature/limitation/bug (?) of Content Exchange.
    > ICE and WebDAV are too slow and do not take all the
    > meta data ACLs etc....
    I don't know what you can do with client copies in NW, anyway in my experience ICE is far better than WebDAV. At least it keeps some metadata and doesn't have some problems I faced with WebDAV (file corruption, not complete folder copies...). And yes, both are so slow...
    Davide

  • Air Application URL Path Issue

    I am trying to invoke a  content of the file which is in shared folder from Air application.
    Version : Flash builder 4.5,Flex3.6 sdk and Air 2.7.
    for this am using the below code..
    var request:URLRequest = new URLRequest();
    //request.url = ('file:///c:/params.txt'); - This is working fine
    request.url = ('file:///172.20.188.25/Share/chk/Property/params.txt');  // its not working
    trace("Unable to load URL: " + request);
    var variables:URLLoader = new URLLoader();
    variables.dataFormat = URLLoaderDataFormat.VARIABLES;
    variables.addEventListener(Event.COMPLETE, completeHandler);
    try
    variables.load(request);
    The same part of code ,I tried in Flex application is working .but in Air application its not working.
    Its urgent requirement,If any one know the way to resolve this path issues.
    Kindly let us know.
    Thanks in Advance !!

    I tried in the following URL but no use ..
    its throwing ioError and textError and stream error.
    1.file:///172.20.188.25/Share/chk/Property/params.txt
    2.http://172.20.188.25/Share/chk/Property/params.txt
    3. //172.20.188.25/Share/chk/Property/params.txt
    Is there any other solution for this issue ?

  • Target Path

    Hi everyone,
    I have a button inside a movie clip. The link available on
    this button should go to a different scene available on the main
    timeline. Using the target path feature available on the Action
    Panel, the following piece of code was generated:
    on (release) {
    _root.gotoAndplay("scene2", 1);
    No error was detected by the Check Sintax feature. However,
    nothing happens when after the button is clicked.
    Any idea about what is wrong? Thanks.
    Gustavo

    the goto methods accept one, not two, parameters: label your
    frame and use:
    on (release) {
    _root.gotoAndplay("scene2_frame1"); // <- be sure you
    labeled this frame
    }

  • Use variable in target path

    Hi
    Im sure this is no sweat for a lot of you guys but as im new
    to using arrays and stuff its still escapung me.
    I nees to use a variable as part of a target path inside a
    for loop so it populates a series of dynamic text boxes with
    instance names busName0, busName1 etc. can this be done?
    Heres my code so far:
    stop();
    var busNameArray:Array = new Array(
    "business 01",
    "business 02",
    "business 03",
    "business 04",
    "business 05",
    "business 06",
    "business 07",
    "business 08",
    "business 09",
    "business 10"
    var i:Number;
    for (i = 0; i < busNameArray.length; i++) {
    this.rightPanel.busName(need the variable i to go here).text
    = this.busNameArray
    Any help much appreciated.
    cheers chris

    I know
    You're welcome.

  • Leopard + Numpy + Scipy: Path Issues Remain

    +This post has been cross-posted on the pythonmac-sig mailing list.+
    I've been reading about the python path issues with Leopard and have tried the different methods outlined for addressing this problem with no good result. Currently I am using a combination of .pth files and a modification to my ~/.profile. One nagging problem is that SUDO commands do not maintain these settings. When I install wxPython, these go into the /System folder, not my /Library/Python folder. Also, when installing scipy, numpy.distutils.core cannot be found.
    sudo python scipy_dir/setup.py install
    I've installed numpy 1.0.4 and this is placed in /Library/Python/2.5/site-packages. I've also installed the MacPython from python.org. When running python from a Terminal window, the correct version of numpy gets loaded (1.0.4). However, as has been documented before, sudo overrides these settings, so when I attempt to install scipy, the following error shows up:
    Traceback (most recent call last):
    File "setup.py", line 55, in <module>
    setup_package()
    File "setup.py", line 29, in setup_package
    from numpy.distutils.core import setup
    ImportError: No module named numpy.distutils.core
    Has anyone found a way around this?
    Just for good measure, I've included my current sys.path (after a sudo call):
    ['/code/libs/scipy-0.6.0', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-s criptpackages', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages' , '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ wx-2.8-mac-unicode']

    Hi, newbie730
    On my system, the numpy module is not found in
    /System/Library/Frameworks/Python.framework/Versions/2.5/lib
    but rather in
    /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python ...
    perhaps your sys.path is missing an element?
    To elaborate a bit more, the solution that worked for me was to either just use the default version of python (/usr/bin/python), in which case numpy works just fine with no further tweaking, or if I want readline support to use the interpreter from fink (/sw/bin/python), and set the environment using the PYTHONPATH variable:
    (all these should be exported)
    # for python:
    PYTHONPATH=/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/p ython/:$ROOTSYS/pyroot:$ROOTSYS/lib
    # 'base' files, including numpy and scipy installed by apple + ROOT stuff
    PYTHONPATH=$PYTHONPATH:/Documents/Code/python #add my own modules
    PYTHONSTARTUP=/Users/#####/.pystartup
    PYTHONDOC=/sw/share/doc/python25/html
    I'm not sure if that answers your question...
    Caleb

  • Pathing issues in Flash CC

    I believe I have some pathing issues and was wondering how I can change the pathing so that is can be view publicly. The problem is my videos are being played from my local folder and can't be access via web browser for other users.

    It's in the code area, and I tried pasting it (didn't show anything) and then executing the code, and it didn't do anything.
    I then tried creating a text area on the page, and went to the Edit menu - and "Paste Special" was the only available option. So I tried that, and it says "Source: Unknown Source" and the only option I have is to Cancel.
    I then went into Flash CS6, and copied a line of code from that. I tried pasting it into the Flash CC 2014 actions console, and it did nothing. I then went back to my text area (still in Flash CC 2014) and it pasted the code in there fine. 
    So, it looks like I still cannot copy from or paste into the actions panel Flash CC 2014, which is what I need. But, maybe this sparks another idea? Thanks for your help, I appreciate it.

  • %PATH% issue sending job

    11g grid control, 11g agent, 9i database
    installed agent, echo %PATH% and dont see the agent binaries there.
    created a job locally on machine for rman, runs ok from command line and scheduled tasks but fails from grid control when I created an OS task job. server has dbschedule as its preferred credentials
    Put some logging in, can see it logged on as dbschedule.
    however the %PATH% now has my 11g agent install path at the front of the path so is failing as the 11g binaries are incorrect for the 9i database.
    I can get round this by setting the paths and homes in the script. However.....
    If I send an RMAN specific job down from grid control it fails as well but this time it forces grid control to lose its configuration with the 9i database. Im pretty sure its related to the PATH issue above.
    anyone know why this is happening and how to fix? Im pretty sure its the logon interactive and logon as a batch job are the issues but dont know why the PATH would be different.

    answered this myself in case anyone else comes across it. If you call an OS job from grid control ,the agent on the server that your calling, prepends the path with the agent version binaries, so if your path on the agent server is d:\oracle\9i and youre using an 11g agent
    calling the OS job from GC means the PATH gets changed to d:\oracle\11gagent\bin;...more 11g paths;d:\oracle\9i so the wrong binary is used for sqlplus or RMAN or whatever tool you wanted to use
    Should always be putting paths in any OS script anyway but interesting to note the behaviour.

  • Replacement path issue

    Hello,
    Can anybody please help me with a replacement path issue which I have been struggling with for days, and I am completely lost
    now and close to despair!
    Here's what I am trying to do. I have a simple query with one key figure (let it be Presence) and three items in structure in rows: 0EMPLOYEE, 0PROFIT_CTR and variance. The idea is to show the result both for the person (0EMPLOYEE), and compare it with their overall profit centre result, and calculate variance.
    For example:
    John Doe: 50% (presence)
    Profit centre which John belongs to: 40% (presence)
    variance: 10%
    The only variable I want to input is John's name, and the query is supposed to find his current (time dependant) profit centre (0EMPLOYEE_0PROFIT_CTR) and use it to calculate the profit centre result. Is there any way that I can achieve this?
    Once the query is done, I want to set it up on the Broadcaster to run for all the people in the firm.
    Please please help me,
    Cheers,
    Agata

    Aglukas,
    You need two queries to achieve this
    Query 1 u2013 ( this gets Profit center of that employee to feed into Query 2)
    Column Presence(key figure)
    Row u2013 profit center
    Employee u2013 Employee variable that is user entry
    Query 2 u2013
    Column u2013 Presence
    Row Structure u2013 Selection 1- Title- Employee u2013Restriction should be employee with user entry variable
    Selecton 2 u2013 Title For entire profit center u2013 Restriction should be Profit center u2013 Variable should be-Replacment path Variable- fetching Profit center from Query 1
    Selection 3 u2013 Selection 1-Selection 2 this could be a cell defination.
    Hope this helps
    Regards

  • Cs5 "local disc" and .js path issues

    Trying to add what appears to be a simple .js script to my doc:
    I add the script to my <head>, which then shows next to my Source Code and other scripts. But it doesn't work, and when I click to open the file there, I get the message 'not on local disc', and 'Get' which doesn't work either, even though the file is in my local file view/f8. One would think when the script name pops up next to Source Code, the doc. path is correct, but that obviously isn't the case. So what is the deal with this 'local disc'?
    I added a clearbox last week after pulling my hair out over the similar path issues, and after much trial and trib it finally worked. Would rather just like to understand it. Can anyone help? Thank you.
    The .js' Column' script I'm trying to add is here if it helps: http://www.projectseven.com/tutorials/css/pvii_columns/index.htm

    I also would like to know how to do this!

Maybe you are looking for