namely actionscript for a nested swf

Hi all

i've got 3 sovereign wealth funds: call them 1, 2 and 3. I have a function in swf2 who I want to run when the viewer clicks on a button in swf3. If 2 is nested in 1 and 3 is nested in 2, how would I go about running a script from a script in 3 2?

I tried _root.loadImage ();
and _parent.loadImage ();

but neither works. clues?

see you soon,
macron

Hi nsurveyor

Thanks for the suggestion. I was overlooking the fact that there is a pictureframe movieclip in the parent swf file. I changed the script to _parent._parent.loadImage (); and it worked.

Gracias!

macron

Tags: Adobe Animate

Similar Questions

  • Naming Convention for user performed at the Complutense University of MADRID

    Hi all

    Are there specific rules for the naming convention for the assignment of user name in the University Complutense of MADRID 11 g? Is there a specific type of some special characters that cannot be used by the UCM in username?

    Thank you
    Saurabh Anand

    It is the same for the user name. This is a limitation of the underlying directory server. So your restrictions will be the result of the restrictions in the underlying system (AD or LDAP). in general, stick with single-byte characters and using something like the first initial and the name or rating first.last is fairly reliable

  • I need someone to do some actionscript for me.

    I worked on a project for a while and now I'm running out of time because I can't fully grasp actionscript coding. I tried to learn as I go, but it does not work. I need someone to do some actionscript for me. The final product is an ipad app. Color video clips down should be able to drag and drop into the preview window then the game to the size of the preview window, so the user can decide if this is the film they want. They must also be able to drag and drop video clips in color in the Drop Zone Play Order so that when you press the "Generate" button, they will play in their order of appearance, in full screen. The user must also be able to rearrange them in the order of play if they change their mind. If they miss the target, it must return to the movie library in its original position. It will be more than only 5 clips and areas of deposit 5. I have some of this complete (probably 1/2 way) and you can send the. FLA file. If you are interested, we can discuss compensation.  My code is below.

    Screen Shot 2013-01-17 at 2.42.23 PM.png

    MC. Stop(); MC1. Stop(); MC2. Stop (); mc3. Stop(); MC4. Stop();

    Import fl.transitions.Tween;

    Fl.transitions.easing import. *;

    var draggedMc:Object = new Object

    moveable objects in table

    var mcs:Array = [mc, mc1, mc2, mc3, mc4];

    targetzones table

    var targetzones:Array = (targetZone, targetZone2, targetZone3, targetZone4, targetZone5, preview_mc);

    for (var i: int = 0; i < mcs.length; i ++) {}

    MCS [i] .addEventListener (MouseEvent.MOUSE_DOWN, mouseHandler);

    individual positions for each draggable object

    MCS [i] .xpos = MC [i] .x = 60 + 65 * i;

    MCS [i] .ypos is MC [i] = 460 there;.

    }

    function mouseHandler(e:MouseEvent):void {}

    {Switch (e.type)}

    case "mouseDown":

    draggedMc = e.target;

    setChildIndex (getChildByName (e.target.name), this.numChildren - 1);

    e.target.startDrag ();

    stage.addEventListener (MouseEvent.MOUSE_UP, mouseHandler);

    break;

    case "mouseUp":

    stopDrag();

    stage.removeEventListener (MouseEvent.MOUSE_UP, mouseHandler);

    checkPosition();

    break;

    by default:

    trace ("Error");

    break;

    }

    }

    function checkPosition (): void {}

    var xEndPoint:Number;

    var yEndPoint:Number;

    for (var i: int = 0; i < targetzones.length; i ++) {}

    {if (draggedMc.hitTestObject (targetzones [i]))}

    xEndPoint = targetzones [i] .x + ((targetzones [i].width/100)-(draggedMc.width / 100));

    yEndPoint = targetzones [i] there + ((targetzones [i].height/100)-(draggedMc.height / 100));

    for (var j: int = 0; j < mcs.length; j ++) {}

    If (MCS [j] .hitTestObject (targetzones [i]) & & mcs [j]! = draggedMc) {}

    Tween ([j] MCS, MCS [j] .x, MCS [j]. XPos, MCS [j] there, MCS [j]. YPos);

    }

    }

    Tween (draggedMc, draggedMc.x, xEndPoint, draggedMc.y, yEndPoint);

    break;

    } else {}

    Tween (draggedMc, draggedMc.x, draggedMc.xpos, draggedMc.y, draggedMc.ypos);

    }

    }

    }

    function tween (obj:Object, xStart:Number, xEnd:Number, yStart:Number, yEnd:Number): void {}

    var tween1:Tween = new Tween(obj,"x",Strong.easeOut,xStart,xEnd,.5,true);

    var tween2:Tween = new Tween(obj,"y",Strong.easeOut,yStart,yEnd,.5,true);

    }

    Interesting. I make a post offering to pay someone to write the code for me and you (moccamaximum) come in trash telling me to go somewhere else to hire someone. You may say that it is titled so badly that nobody will even look at it, but it got your attention. In the first minutes, 25 other people have looked at it and as you can see I have an offer.

    If something interests you, just move on to the next, you don't have to trash other peoples stations. What do you get out of it?

  • How to use a link to execute an ActionScript function in a SWF file?

    In the Actionscript 3.0 language and components reference > all categories > class TextField > properties > HTML htmlText supported tags table, the description of the anchor tag has this sentence: "you can use the link event causes the link execute an ActionScript function in a SWF file instead of opening a URL. I do not understand how to do this. Can someone tell me how to proceed? Alternatively, can anyone point me to an example or a reference that explains how to run an ActionScript function in a SWF file using the event of links?

    Thank you

    Tim Persinger

    You put a href as you normally would, just by using events: define as follows:

    someTextField.htmlText = "Hello World";
    someTextField.addEventListener (TextEvent.LINK, hwPressed);
    function hwPressed(e:TextEvent) {}
    trace (e.Text);
    }

    will trace "hw".

  • definition of gradients in actionscript for Panel and children

    I have a panel with a graphic in it. I don't want to display a border, but the group container is nice to set the title and add a caption. I use this code to disable the border:

    "" < mx:Panel xmlns:mx = ' http://www.adobe.com/2006/mxml ' styleName = "gradientBgrd" >
    < mx:Style >
    {.gradientBgrd}
    borderStyle: applicationControlBar;
    }
    < / mx:Style >

    But I would like to create some charts to let the user customize the color of the Panel/table (the user, it must seem like a single object, affecting thus the color of the Panel must also create a fill of the chart)

    I know you can do something like this for the buttons:

    button.setStyle ("fillColors", ["#FF0000", "#0000FF"];)

    But how to do this in Actionscript for the Panel/table I described?

    Well, I finally got it to work with the code from this blog:

    o-a-Flex-Panel http://www.brucephillips.name/blog/index.cfm/2007/1/20/apply-A-background-color-gradient-T

  • Naming Convention for Flash? _mc, instances

    Im a bit bogged down in the denomination in Flash.

    IM pretty new to the clips in the film clips as well as grant shares to the buttons to assign said film clips...

    I've been naming my calendar of video clips, but then I have to put a clip in the clip... I've exhausted the names.

    So going for an instance name makes even more twisted.

    No one cares to share their naming conventions? As you name case or anything action verbs?

    I use the btn, the mc, the format of gs to name things, but it becomes overwhelming for simple actions already, so I guess that there is a better nomenclature...

    Personally I don't like Hungarian notation or notations of postfix. Fix _mc or _array post for example come a hold on before typing data and allowed the ActionScript editor guess that something was class and provide code hinting. Now with the best document you can always get the code hinting without using this notation. I always found it difficult to read and type.

    And that's why I don't like Hungarian notation of mcClip or bBoolean. Find it me difficult to read again.

    I recommend that people find their own conventions and pretty much stick to them. It is a very personal matter of how to find the meaning and order and it's so different for each person.

    I think that part of what you are experiencing is that you have difficulties with the library and naming of instances?

    In the library, I use capital letters and spaces. For instance names, I use camelBackCaseWithNoSpaces.

    Often if I have something nested in the library I have something like:

    Control Panel

    Panel arrow up

    Scroller Control Panel

    that holds together in the library. If I have a lot of assets, I'll do a folder

    Control Panel

    Assets of Control Panel

    Panel arrow up

    etc...

    Then for the instances I would probably call the control panel

    Control Panel

    Or if there are several of them:

    controlPanel0, controlPanel1, etc.

    Don't start ever and with a number of instance and learn to start counting from zero!

    Then, inside, I would give the name of instances as

    up arrow

    scroller

    Are other popular names that I use a lot

    work

    background

    content

    holder

    Does this help?

  • Is there a way to mark events in ActionScript for Scout?

    Is it possible to send a message to Scout in my swf file to mark a point where I can later easily find in Scout? For example, there are 4 or 5 different events I'm profiling but that they do not begin until much later. My calendar that runs through the upper part of Scout is very long.

    What would be ideal is to mark the places in my code like this:

    import flash.performance.Scout;

    Scout.Start ("home screen");

    ActionScript code

    Then Scout, I can do a search for "Home screen" and it would take me to governing.

    There are also beaches I want to profile like this:

    import flash.performance.Scout;

    Scout.Start ("Intro animation");

    ActionScript code

    Scout.end ("Intro animation");

    or maybe,

    var object: Object = Scout.start ("Intro animation");

    ActionScript code

    Scout.end (Object);

    I could go ahead and do a search for that keyword and select the range.

    I don't know how it architect. But with the second example, I need to keep a reference to this object autour and the end of the performance test can be in another class or another swf, but somewhere else.

    Yes, you can send telemetry custom Scout of ActionScript to send both values and measure the time spent in code blocks. See the article here:

    http://www.Adobe.com/devnet/Scout/articles/Adobe-Scout-custom-telemetry.html

  • Detect the ActionScript and Flash Player SWF version released

    Hello

    I am looking for a way to find the code ActionScript and Flash Player version of a SWF published using AS3 code?

    Has made google a lot, but can't find anything relevant.

    Thanks for help

    Once loaded, you can tell if it is an AVM1 movie or not, i.e.

    trace(loader.content is AVM1Movie);
    // true = AS1/2, false = AS3
    
  • Naming Convention for LabVIEW

    Hello

    What naming convention should be followed in LabVIEW? I will use typical CamelCase (MyNewProgram.vi) or underscore (My_New_Program.vi) or with spaces (my new Program.vi)? In most standard LabVIEW programs, I have observed that different is with spaces (my new Program.vi) but most of the text language programmers prefer without convention spaces. What is the best way to name VI or variable in LabVIEW and what is the reason for this?

    I went through the guidelines and a different post, but they mention just not to use a special character. Nowhere I found the naming convention in LabVIEW.

    Kindly Guide.

    Thank you.

    The case of camel hails from the days of DOS when you were allowed only 8 characters for a file name.  Windows allow spaces in file names.  Linux does not work.  Due to the limitation of Linux/Unix, you will often see text language programmers to use the underscore character.  Almost all my code is on Windows, so I use spaces in the names of my files simply because I find it easier to read than the underscore.

  • Search for characters, nested and apply the Cstyle

    I have

    you want to find the nested applied characters and apply the Cstyle, but my capture of code all the text in a document. Can you please guide me,

    nestedreport();

    function nestedreport() {}

    myDoc var = app.activeDocument;

    var myDocPath = myDoc.filePath;

    var myDocName = myDoc.name;

    try {}

    app.findGrepPreferences = app.changeTextPreferences = null;

    app.findGrepPreferences.findWhat = "^.» + » ;

    myFind = myDoc.findGrep (false);

    var ntexts = new Array;

    for (i = myFind.length - 1; i > = 0; i--)

    {

    if(myFind[i].contents.nestedStyles==null)

    {

    ntexts.push (myFind [i]. Happy)

    ntexts.appliedCharacterStyle = "Nested";

    }

    }

    }

    {catch (e)}

    }

    Screen shot 2015-07-21 at 2.26.33 PM.png

    Hello

    I'm still somewhat struggled with the final goal, however to make a small step:

    To detect a string that is formatted using nestedStyle (part of the content of the paragraph), you can use this:

    assuming that ==> text is selected - say a paragraph

    var
      cCharStyle,
      charStyles = app.selection[0].characters.everyItem().appliedNestedStyles,
      step = charStyles.length,
      resString = "";
    
      while ( (cCharStyle = charStyles.pop() ) && step--)
           if ( cCharStyle.length )
                resString = app.selection[0].characters[step].contents + resString;
    
    alert ( resString );
    

    Jarek

  • Group of port and the naming convention for vLAN

    What is the naming convention better for groups of ports on vSwitches?  This naming convention should match how we name them VLAN on the physical switches and how important is that?

    Hi VMinator,

    To answer your question, he has not agreed to 'standard' for names of portgroup.  That's all what you're comfortable with the support and what works for you and your organization.  A bit like server names; Some companies are going hardcore with the naming conventions and others their name after the characters in science fiction or world of warcraft bosses

    Forensic science more you pack in a naming of the control standard more you have (i.e. for scripts, health check, etc. see below).  Also, if the name itself answers questions on his own and allows you to save a phone call that is priceless.  For example - the guys says unix... "Uh which network to choose for my new virtual machine.  My IP is blah blah blah. "Well, with right portgroup name, this question would have answered itself... and maybe even recorded some interruptions of service in other cases by the simple fact of being clear and effective in the communication of how this virtual device should work: purely expressed through an appropriate naming convention.

    Here's another one.  My last concert, we had thousands of virtual machines that had to move data centers and when they landed, they needed to change the IPs and start using 3 vNIC (instead of 1) on each virtual machine.  Each vNIC with a different subnet mask.  All support should be conducted by a team of outsourced with minimum experience of VMware.  The only way to support something like this and be effective is PowerCLI.  With just invited the naming convention only, you can perform various tasks such as query the virtual computer and check its settings of portgroup compared to its actual IP information in the operating system, initiate a ping from .NET to the virtual machine, if there is any questions Act automatically.  Some actions that will have to be performed include, for example, change the portgroup or mask on a set of clients;  Or questioning guests and glean information network (CDP, vSwitch, portgroup of information etc.) and compare observed network vs network expected enumerated in the PG naming convention. etc etc.  The list of actions that you can take are limited only by your creativity.  The naming standards give you effective power both in manual and automatic efforts.

    Still, notice of one man, but every site I care and feeding generally ends with a PG standard similar to what I first described above in my previous post.  Don't forget my example naming convention is Basic.  There are many other attributes that you can add (i.e. in vCloud deployments, in addition to the info network, you can choose to identify various features specific to vCloud org-networks, etc.).

    TBH just most of the companies have appointed VM-network exchanges (ok not bad) or some random shortname which doesn't help troubleshooting.  They are fairly easy to fix and also change over time, if necessary.  You can easily drag and drop a set of virtual machines (although I don't personally do this way) in the new port group (via the page of networking to CTRL + SHIFT + N) or PowerCLI it (Yes!  way to go).  Of course, always the ping tests before and after the change.  There are a lot of scripts out there (or ask master lucd post in PowerCLI VMTN forums).  If this is net-news, then you are ahead of the game and will have a standard to follow, whatever it is.

    Best of luck and have fun!

  • ActionScript for connections server-side HTTP Streaming, is it supported?

    Hi, I have an actionscript application working for RTMP, server-side and I would like to reuse this code for HTTP connections.

    Is this possible?

    What you can do is to write your own apache module, which is going to be some queries and appropriate to create http responses as well as communicate to the rtmp server separately.

  • Logical naming Auto for the ID of graphic objects

    Can someone tell me what logic is used for the naming of JPG/PNG images generated for boxes drawn in InDesign, line, ovals, groups, etc.?

    In other words, if you draw a circle in InDesign, this anchor text, exit as EPUB recomposable, unzip the EPUB and look in the oebps\image folder, you will see an image named something like 2022.jpg. I'm trying to determine the logic behind this name, I need to reuse these images for anything else.

    Well, Keith, I'm going to make a trade with you - I'll tell you how we do it, and tell me what you're trying to do with this information.

    The name comes from the unique object identifier (we call it a UID) of the object is rasterized. Because each object has a unique UID we are guaranteed that we will not have a file name conflict.

    I would like to warn you do not depend on that, even if this is still true even in the next update, because it was suggested that it would be more useful for developers who are trying to understand what was going on where to name things according to their number of source page (more the UID). If that will really happen go ahead I have no control on it, unfortunately.

    Douglas

  • named credentilas for OEM12c

    Hello world.

    Currently the admins who want to focus on the use of particular data of a target file must enter the user name and password every time for the database. Economy option or the check box is disabled where as the sysman account can save credentials.

    A way out of what I've found is to create a credential named to a target database and grant this privilege to display of credentials to the admin who wants to access the db. After that, when the administrator clicks the option data files of the database in OEM, he shows her the credentials saved that I grant him so he doesn't have to enter credentials. My question is is this the right way to do it? because there are hundreds of databases, and if the administrator does not want to enter the identification information whenever he wants to check the use of the data file or any admin task, should I create the credential named to all of these databases and provide the DBA? Also why is the save box off for the dba save the credentials by itself?

    Published by: user4530676 on December 21, 2012 08:52

    If the user/pwd is identical, the best option is to create the named cred as you did, then store that as credentials preferred for targets of database (configuration-> Security-> favorite of credentials). This will be used for the default connection and invites only if the acct/pwd does not work. The most likely reason for the record being disabled, is that there is a privilege for the audit powers named, then you can try that allow the user to see if he can then create/modify his own credentials.

  • Naming Convention for Active Center

    My company has about 25 people using Workstation 5 and 6, and different versions of VMPlayer. We use all of the different images. Some people may have up to 10 at the same time. Whenever a new image is created, it should change the name to something meaning full. for example, I have a named "mc-VM-MSCRM-Out" image which is my initails, VM VMware and MSCRM-Out for Microsoft Dynamics CRM for Outlook.

    Images come and go in our society so often that our Active Directory is now become clogged. Its almost impossible to clean the AD because it is impossible to know what images are still active and which are not used.

    VMware has all the tools to make this easier, or is it possible to see what the images are not used in AD.  All ideas are welcome

    Thanks in advanced for any suggetions

    MWac wrote:

    ... The problem is that the password never changes for images. It will have the value when the image is created, but people may still use images that are more than 90 days for example.

    Are you sure? While password domain user account can never change (depending on your strategy of passwords user AD), domain joined computers windows automatically change their domain computer account passwords every 30 days by default (if I remember correctly).   This is the behavior of the advantage of OldCmp tire tool.

    That's why return to a very old snapshot of a system of joints in an area sometimes results in the system that needs to be removed and joined to the domain.

Maybe you are looking for