Creating a topic > menu of the sub-heading based on something similar to this...

Hello

I tried to get this type of service works for several days now, nothing helps. I have my parsed xml document in and I created successfully the required dynamically film clips. The issue I'm having is to get properly aligned film clips.

The resulting structure might look like this:

Topic1
|
| - subtopic1
|
| - subtopic2
|
| - subtopic3
|
| - subtopic4

Topic2
|
| - subtopic1
|
| - subtopic2
|
| - subtopic3
|
| - subtopic4

which will be created based on something similar to this function:

function createXMLMenu(menuLength:Number):void {}
Create dynamic menu based on
menuLength parameter that is passed in
know - menuLength = 2
for (var i: Number = 0; i < menuLength; i ++) {}
var mcMenuItem:mcMenu = new mcMenu();
Set the position of the menu item
mcMenuItem.x = mcMenuHolder.x;
Here are the 1st annoying lines
mcMenuItem.y = int (?);
Add the menu item to the scene and Flash.DisplayList
addChild (mcMenuItem);
Create the submenu
var xmlSubMenuLength:Number = 4;
If (xmlSubMenuLength! = 0) {}
for (var j: Number = 0; j < xmlSubMenuLength; j ++) {}
var mcSubMenuItem:mcMenu = new mcMenu();
var mc2Attach2:MovieClip = MovieClip (mcMenuItem);
Add the menu item to the scene and Flash.DisplayList
mc2Attach2.addChild (mcSubMenuItem);
mcSubMenuItem.x = mcMenuHolder.x + 20;
Here's the 2nd annoying line
mcSubMenuItem.y = int (?);
}
}
}
}

By red lines, what is the right way to create the coords y for the chapter film clips?

I hope this makes sense. If it is not sensible, feel free to let me know and I'll try to structure my question differently.

Thanks much for any help.

~ Chipleh

:

var topicSpace:uint = 20;

var subtopicSpace:uint = 10;

var nextBtnY:uint = either;

function createXMLMenu(menuLength:Number):void {}
Create dynamic menu based on
menuLength parameter that is passed in
know - menuLength = 2
for (var i: Number = 0; i<>
var mcMenuItem:mcMenu = new mcMenu();
Set the position of the menu item
mcMenuItem.x = mcMenuHolder.x;
Here are the 1st annoying lines

nextBtnY += topicSpace;

mcMenuItem.y = nextBtnY;

Add the menu item to the scene and Flash.DisplayList
addChild (mcMenuItem);
Create the submenu
var xmlSubMenuLength:Number = 4;
If (xmlSubMenuLength! = 0) {}
for (var j: Number = 0; j<>
var mcSubMenuItem:mcMenu = new mcMenu();
var mc2Attach2:MovieClip = MovieClip (mcMenuItem);
Add the menu item to the scene and Flash.DisplayList
mc2Attach2.addChild (mcSubMenuItem);
mcSubMenuItem.x = mcMenuHolder.x + 20;
Here's the 2nd annoying line
mcSubMenuItem.y = nextBtnY;

nextBtnY += subtopicSpace;

}
}
}
}

Tags: Adobe Animate

Similar Questions

  • Creating drop down menu for the item &lt; prodname &gt; &lt; metadata &gt; causes errors

    Framework 11

    DITA 1.2

    Restrictions independent of our will, we must use the names of product ridiculously long. So I want to use drop-down lists to make it easier for authors select a < prodname > in the metadata.

    What I did:

    1. in metaDecl.eddmod.fm, I have created a new attribute and named it prod.

    a. I made the choiceand required.

    b. choices are currently only internal and RTVI for testing purposes. I'll put those absurdly long when I work.

    c. I have a prefix rule of: in all contexts prefix: product name: < $attribute [prod] >

    2. I imported metaDecl.eddmod.fm at all these EDDs:

    In the ESD home folder:

    • Basemap. EDD. FM
    • basetopic. EDD. FM
    • Map.eddmod.FM
    • topic.eddmod.FM

    In the folder technicalContent EDD:

    • concept. EDD. FM
    • ditabase. EDD. FM
    • generalTask.edd.fm
    • GlossEntry. EDD. FM
    • glossgroup. EDD. FM
    • Reference.EDD.FM
    • Task.EDD.FM
    • topic. EDD. FM

    3. I imported element definitions in all of the following conditions:

    • ChapterOutputTpl.fm
    • basemap.template.FM
    • basetopic.template.FM
    • basetopic.template.FM
    • topic.template.FM
    • generalTask.template.fm
    • glossentry.template.FM
    • glossgroup.template.FM
    • Map.template.FM
    • ditabase.template.FM
    • Reference.template.FM
    • concept.template.FM
    • Task.template.FM

    4. I imported task.template.fm elememted definitions in my test paper (Yes, that's a topic of task).

    What happened:

    I get the following in the console error message:

    XML Parser (Document Instance) messages

    Error in H:\DITA_Westminster\Procedures - DITA\Inserting_Product_Names_Versions_In_Metadata\InsertingProductNamesAndVersionsInMetad Our ata.dita.82F, line 28, char 49, Message: 'prod' attribute is not declared for the element "AutoCAD"

    Error on line 28, 71 char, Message: not enough information to match the content model ' (prodname, vrmlist, ((brand|component|featnum|platform|prognum|series)) *)'

    What I did then:

    1. I removed all elements of the general rule of < prodinfo > with the exception of < prodname >. (< prodinfo) is the one who had prodname, vrmlist, (brand | element | featnum | platform | prognum | series) as a general rule. I also did a thorough search to ensure that nothing else had this same element list in the general rule. I could not found.

    2. I did import the EDDs thing and models again.

    3. I got the same error again. < sigh / >

    Question:

    Why am I still these 2 error messages? They are driving me crazy.

    Marsha

    The EDD contains rules probably derived from the DTD structure, but is a separate file that is used by the structured Application.

    You should be able to see the location of your DTD in the StructApps file. Use Structure tools > edit the structured Application file to open it in the menu of the FM.

  • Create a button to force the read head to a specific frame in the timeline

    I have a slide with a timeline of about 60 seconds. Meanwhile, several things happen (text/images/objects appear and disappear, etc.). I now need the ability to allow the user to click on an object (button, text, image, whatever), which would allow to get to the next event in this slide. During the whole of this slide, I have a file audio unique reading of the narrative. So, this solution must have the ability to skip the long as well as audio and audio playback to another point in the timeline panel.

    Is it feasible in a simple way, without chopping upward as the sound signal into individual segments and the creation of click boxes?

    Maybe it wasn't clear: I suspect that the sound signal will stop when object to which it is connected

    is set to invisible,

    Lilybiri

  • How can I create an event listener for the change of variable shared or similar?

    Hello

    I have a 'big' 6 devices communicating measurement system via the TCP protocol. The system is designed to use REST (the representative State transfer) with JSON (JavaScript object notation).

    Now, I need to add labview program to this environment. I've implemented a solution to 'work' with the help of this forum. Thank you for this! Now, I need to do better (currently no timestamps, large delays, etc.).

    I currently have a web service deployed using http-get as input. My web service .vi is just passing the web entrance to shared variables that are then questioned in real measurement program. Reason is that when I put the measurement program directly to the web service, it does not (something about rights and dependencies). Measurement program includes one third of the owners (Instron) drivers. Also I would not direct access via the network to our mechanical testing device potentially dangerous.

    Now, I want to change the message from the web services .vi commensurate .vi. Currently I have a loop of 10ms to query for changes in the shared variable. Is there a better way to do this? I thought create a listener to the shared variable change events.

    In addition, if you have any ideas (preferably, working code example) how to make the interface between labview and TCP-JSON I would really appreciate it.

    BR,

    Juha

    Currently in LabVIEW, the only way to create an event listener or event NSV is to use the DSC toolkit.  Most of the time the DSC is a very expensive tool that simply encapsulates the functionality that is built into the motor of the PSP and OAS and which is accessible to anyone who can program in LabWindows/CVI.

    http://zone.NI.com/reference/en-XX/help/370051P-01/CVI/libref/cvicnvcreatesubscriber/

    If you want to collaborate, I would like to create a small library of LV that would create a base SV events using a vi LV reminder or possibly passing return user LV event which is how works the DSC toolkit.  I asked OR several times to explain how do this and they're very tight discreet about it.  I guess that they do not want to give users LV less reason to buy the DSC.

  • I can't access the file transfer mig easy windows that I created as I have lost the password. Is there something I can do?

    I lost the password for windows easy transfer.

    R2Kool,
    Take a look at this post on our TechNet site.  It addresses the problem you are experiencing. Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Request for Mobile Nav Menu - need to do a vertical accordion menu which contains the elements of vertical menu AND the submenu vertical.

    For a mobile site, I need to do a master vertical [menu] tab in the header of each page that has the following simple qualities.

    (1) all of the menu must be an Accordion widget (or something similar) which can be closed up in the upper part of the screen

    (2) the menu items should be placed vertically (obviously)

    (3) the SUB menu items should also be arranged vertically (for some reason any they out horizontally to the right why cannot they just fall down)

    ---

    I tried to put accordion widgets inside other widgets accordions, but so far, it doesn't look like Muse is what allows this.

    Help, please! I feel like I ask is really very simple!

    N

    Please check these videos:

    https://www.YouTube.com/watch?v=Thm8bsNccvI

    https://www.YouTube.com/watch?v=QM4Z4iLgtfI

    https://www.YouTube.com/watch?v=rOggrg-svPs

    Thank you

    Sanjit

  • How to view a menu on the right a treenode?

    Hello
    I use forms6i.
    I have a hierarchical tree.
    When a user selects a node and rightclicks on this subject, I want to show a menu with open, edit,... options.
    IS this possible with the trees?
    In the affirmative, please guide.

    It is also possible to change the label of a tree node?

    Thank you
    Adkins

    Hi Sandra,.

    There is a Menu tree node property.

    Create a Pop Up Menu and the context Menu of the tree property value.

    I hope this helps.

    Best regards

    Arif Khadas

  • How to turn off the menu in the middle of the screen while you take a picture?

    Hello everyone!

    It's something similar to this post: turn off the menu in the center of the screen.

    But the problem is displayed while taking a photo: I am posting one alarm full screen mode and wait for the interactions of the user on the screen or on the action button. This interaction takes the picture (and triggers my specific treatment), but it also displays elements of specific menu in the middle of the screen.

    Are there settings to set the field that contains the VideoControl to avoid this behavior?

    Thanks in advance.

    OK, the solution is to add a "return true" after the specific action, like this:

    protected boolean invokeAction(int action) {
        boolean handled = super.invokeAction(action);
        if(!handled)
        {
            if(action == ACTION_INVOKE)
        {
                takePicture();
                return true;
            }
        }
    }
    
  • When I try to install adobe Lightroom, it gives me the error that it is not able to create a "Lightroom Catalog" on the network volume. -What it means and how to fix it? I'm on a Dell with Windows 7 computer

    Lightroom Catalog error.pngThis is the error that is displayed. I tried to create a new catalog when the option appears when I click ok but this error pops up again whenever I try.

    Hello

    This means that the location where Lightroom is trying to create the catalog is on the network?

    Could you please try to create a catalog on your local hard drive and then check, as the catalog is not supported on the network.

    Kind regards

    Tanuj

  • Metadata in the latest Lightroom does not.  I can not create metadata presets or synchronize the metadata.

    Metadata in the latest Lightroom does not.  I can not create metadata presets or synchronize the metadata.

    Any body else having this problem and a solution.

    Please follow the steps below

    > Launch Lightroom

    > Click Lightrooom > preferences > Presets tab

    > Please make sure that "With this catalogue store presets" are disabled.

    > Restart Lightroom and create a metadata preset

    > Create a new catalog and look for the question.

    Let me know if it helps.

    ~ UL

  • Apple abandoned the one-to-one program. I need this program and may not renew. They offer an alternative?

    Apple does not allow anyone to renew one by one, because they have abandoned it. I was told that I had support for 3 years after I bought my computer. (with renewal) I really feel that Apple has let its customers down. We need support for the products we bought. I would have returned my computer and never changed Apple if it were not for the support from one to the other which allowed me to understand how to use my imac, the macbook air and the iphone 6. I hope Apple hears complaints from the community and it does something to fix this. At least let me finish my time of renewal. I use the workshops but they are not enough to help me personally. I feel taken advantage by Apple at this point. There are many seniors out there who need this help as well.

    lindafromalliance wrote:

    I hope Apple hears complaints from the community and it does something to fix this.

    This is a user to user support forum. Apple does not here. If you want to tell Apple about your concerns, you can use the comments here, http://www.apple.com/feedback page and click on the appropriate link. As you know that they are still conducting workshops and my experience with them and I'm a person over the age, they are more willing to work a little head to head with people to ensure your understanding. You just don't understand the personal service of an hour as before. Whatever it is, the only way to inform Apple that you want to change is to use the comments link.

  • When you create PDF from WORD 2010 files, can't do the TOC header as hyperlinks entries

    When you create PDF from WORD 2010 files, I can't have the TOC header as hyperlinks entries. I'm used to be able to do this in WORD 2003. I tried to create a PDF file in Acrobat by selecting file > create PDF > navigate to the WORD file > select three check boxes >

    Help them get the entries in TOC topic as hyperlinks?

    Try to do this from Word by using the Ribbon.

  • Get the reference to menu bar for Sub VI

    Hey everybody,

    I've seen this asked questions here before, but it has been a few years, so I thought I would ask again.

    I have a parent VI I want to edit the menu from the time of the execution of a sub VI before Sub VI currently works.

    I have not found a way to get a reference to the menu bar of this VI, except by the running and writing in a global variable or something.

    Thank you!

    No, they have not corrected it yet.

    Mike...

  • How to create the menu of the toolbar at the top of my request

    Hello please I am building my first blackberry app and for my application, I would like to build a menu of toolbar at the top of the screen, something similar to twitter and should be able to work on os5 devices. I saw the tutorial http://docs.blackberry.com/en/developers/deliverables/18125/Toolbar_1247236_11.jsp on creating toolbars at the bottom, but I have not tried because I want the toolbar at the top and do not think it would work for my curve2. would really appreciate if someone can tell me how to do this.

    Welcome to the forums.

    First thing to note that on non-touchscreen devices, toolbars are actually not that useful. -menus provide an easier to use means to provide the 'actions' that users can run, and they do so without taking up space of the screen.

    However, you should be able to create a useful toolbar by bringing together a few buttons, a Manager EquallySpaced from here:

    http://supportforums.BlackBerry.com/T5/Java-development/implement-advanced-buttons-fields-and-manage...

    and put them in the title area of a screen, see

    http://supportforums.BlackBerry.com/T5/Java-development/MainScreen-explained/Ta-p/606644

    I recommend that you had to cut and paste the classes you need from the source of the user interface, advanced, rather than trying to treat it as a library.

    You will find this stimulant I expect, but give it a go and remember to do step at a time, don't try to encode all at once, because it break in loads of places and you won't know where.

    Good luck.

  • How to create the menu on the LEFT, as in new BBM?

    Is there any sample how to create the menu on the left of the application as in the new BBM?

    As I know not - there's a good menu, context menu, top menu... but how to create left?

    It's just a TabbedPane: https://developer.blackberry.com/cascades/reference/bb__cascades__tabbedpane.html

Maybe you are looking for

  • can not download Skype error 1619

    I get an error 1619 when I try to download on my other pc

  • Allow ePrint access my photos

    HelloI just installed ePrint and says 'no' to allow access to my photos by mistake, so I can't print them. He said that I can change this security setting, but I can't find anywhere to change. I tried to delete the app and put it back in an attempt t

  • pouvez iphone with ios 9 use bluetooth 4.1 5

    pouvez iphone with ios 9 use bluetooth 4.1 5

  • HP Pavilion DM4-1060ea: DM4-1060ea mobo replacement/upgrade

    To anyone who may know better,. I currently have a hp Pavilion dm4-1060ea which by defaul has an i5 430 m, 4 GB ram and 512 ati hd5450 mobile gfx and recently it has been over heating, I've already replaced the cpu fan/radiator and the problem persis

  • How to detect when a screen is navigated away from

    How can I detect when a screen is navigated away from? I can override onClose to run code when the user clicks the back button, is there a similar method that is executed when a screen is navigated away from independently to his by the user or the ap