Navigation question

Hey all,.

I'm pushing a new page, if a user clicks on an image... must be right straight forward?

tried with a button as well... am I missing something?

import bb.cascades 1.0

NavigationPane {
    id: navPane
    backButtonsVisible: false

Page {
    Container {
       layout: DockLayout {}
       Button {
            id: page2button
            onClicked: {
                navPane.push(page2);
            }
        }
        ImageButton {
            id: page3button
            onTouch:  {
                    navPane.push(page3);
            }
        }
    }
    attachedObjects: [
        ComponentDefinition {
            id: page2
            source: "pg3.qml"
        },
        ComponentDefinition {
            id: page3
            source: "p3.qml"
        }
    ]
}

Welcome on the support forums.

If you use a ComponentDefinition you must first create the object.
In your case, it would be:
navPane.push (page2.createObject ());

Tags: BlackBerry Developers

Similar Questions

  • Navigation question simple (I think)

    Hi - I've got a new Sansa Fuze 8 GB that I quite understand, but they have a small question. If I'm listening to a file (podcast, audiobook, etc.) and scroll to another "section", for example, parameters to check how much battery I have left it, the podcast playing appears in a small strip along the bottom. Is there a quick way to return to the file that plays. My old player had an option to go to playback in progress, but I don't see that in the "rocket". If I wait it goes back to reading podcast, but wonder if there is a way to jump to it on demand? Of course, maybe I should just learn to be more patient... TIA, Sally

    I guess that if you press the menu button twice it should return to the now playing screen.

  • Preview Navigator questions Dw

    Hi all

    I am currently struggling to get a glimpse of a CSS code, I've exported an Indesign CS6 in HTML format and got a .css file.

    When I open it in Dreamweaver CS6 the Navigator is not available even though I set a (chrome).

    The file itself is a document A4, RGB (1998) with fonts and attached files. I need for insertion of the site preview.

    What should I do? Maybe because he's from Indesign and not directly encoded in Dw?

    Thanks in advance,

    Cyprien

    You can preview HTML documents only.

  • EPUB TOC navigation question

    Only, I formatted my first ebook with InDesign and it exported to EPUB with the help of InDesign CS5.5 of Lynda.com for series EPUB. I also have it converted to the domain .mobi for Kindle. I wonder on is with TOC navigation. In its current form of each new chapter has a chapter number image, below and to the chapter title under the picture. The number and title are text and are used to create the table of contents for navigation using titles for table of contents entries names and the number of page breaks. Everything has worked very well, but as the .mobi will not allow embedding fonts lose part of beautiful typography associated with this piece. I've seen other ebooks on Kindle that use images for each chapter title. I would like to be able to do this but I'm not sure how to create the table of contents navigation without any text styled to point to each area of the chapter title. The internal table of contents is very well that it is just a page of links to the file .html for each chapter in my InDesign book file. I like to just be able to create my chapter headings in Illustrator and save comme.png/.jpeg to save the typography, but always be able so that InDesign can create a functional navigation OCD.

    Here's what I do. I type the title of this chapter at the top of the page, the way I would like it to appear in the table of contents. I assign it to a paragraph style that is only used for this text. After export, I opened the EPUB in Sigil and edit the CSS. Find the section h1 for the paragraph style, that you have created and change it to have a very small police and a white color. This will make invisible on almost all the eReaders, yet always 'present' and able to be included in the table of contents. I call my style "cover" (because the first time I use, is to write the "lid" over the image of the cover on the first page).

    {H1. Cover}

    do-family: "Times New Roman";

    font size: 0.1em;

    line-height: 0.2em;

    text-align: center;

    color: #FCFCFC;

  • Windows 8 slow navigation questions?

    I installed windows 8 pro on my HP Pavilion dv7 notebook (product A6X02UA #ABA number).  Since I installed the new windows, none of my browsers are working correctly. Chrome does not at all. Firefox and IE take extremely long time to load pages or they don't load at all. Does anyone know what I can do to fix this?

    Really easy solution.

    I had the same problem.

    Launch IE or another web browser "as Administrator", then load web pages as fast as they should.

    You can set IE to always "run as Administrator"

    Run as admin is available in point 8.1 of Windows using IE 11

    IE right click-> properties-> shortcut-> properties-Advanced-> check the box run as administrator...

    If you have several IE shortcuts do the same thing on all the shortcuts to run everything as admin...

  • Question of Safari and Chrome. indicates on the navigation screen. "An element of the Protection of the family filter does not work as expected. Restart your computer. If the problem persists, contact support.  Error: failed to hose CPI. »

    Question of Safari and Chrome. indicates on the navigation screen. "An element of the Protection of the family filter does not work as expected. Restart your computer. If the problem persists, contact support.  Error: failed to hose CPI. »

    Quit Safari, Chrome to quit smoking. If necessary Forcequit.

    Start Safari while holding the SHIFT key, select the menu Safari ClearHistory, then after this check that the homepage is the one you want.

    Do the same for Chrome.

    Close all browsers, restart the mac.

  • Red question mark on the road to navigation network system process

    Hi all
    I correctly mapped network drives that I can view, browse and select using the API "GetOpenFileName().
    Everything works well for all applications running on my XP system. My user has administrator access.
    I also put in place a print (part of the spooler process) using the API "GetOpenFileName()" even driver.
    In this case, the network drive (each net disk) on navigation Gets a red question mark on it.
    Also, by selecting "MyMachine" tab does NOT display my network, only the Local drives (C:\).
    I can go by selecting the files on the network drive, marked in red, but access to files (open + reading) subsequently cause errors.
    Anyone who has an idea why this happens on the process system (spooler) only?
    Thank you very much!

    Hi WalterXS,

    Your computer is connected to a server?

    If the Windows XP computer is in the domain, I recommend you to ask your question in the TechNet forums for assistance.

    Hope the helps of information.

  • Big client - vCenter 5.5 response time of the customer Web U1c / questions of Performance and Navigation

    So we're all aware of the issues with vCenter 5.5U1 WebClient and how we are forced to use it to make use of all the features of the v10, vDS 5.5 vHardware (config switch changes the synchronization problems if an emergency change is done on c# client vDS) VSAN only available via the web client, flash, sluggish to questions do not respond the questions and the list goes with the presentation of the menus and hard to navigate, issues SSO (always after 5.5 upgrades)

    So @ VMware vCenter Architecture Team is going to make an effort to hear and give due to the much needed performance improvements and improvements to the user interface before adding more features and SSO type services which majority of clients don't use not and not force it's customers continue to loose faith its vCenter product?

    Looking for answers with options to remove vCenter 5.5 U1c installation as well as a promise to answer to these in vCenter 6.0 version!

    Here is your answer. First of all, to use Chrome as your browser, then you need to go with at least 4vCPU * 32 GB of RAM & adjust the segment size of java for SSO, Tomcat, (TC) Management Server, inventory server and profile based storage to "refine" vCenter device with DB Oracle embedded or external memory. I did, and performance gains went 10 X. This includes the vSAN enabled running clusters. My recommendation that works very well based on design documents:

    vCenter Server inventory

    VMware VirtualCenter Management Webservices (tc Server)

    The inventory service

    (Sps) profile-based storage service

    Large (more than 400 guests or 4000 VMS) stock

    4 GB

    12 GB

    4 GB

    Setting on the vCenter server 5.5 of the memory unit

    • Connect the unit to vCenter server using SSH
    • VI /usr/lib/vmware-vsphere-client/server/wrapper/conf/wrapper.conf configuration file, locate the JVM memory section and change maxmemory to 4096
    Line 66 # Memory #wrapper.java.initmemory = 512wrapper.java.maxmemory = 4096 JVM
    • /usr/lib/vmware-vpx/inventoryservice/wrapper/conf/wrapper.conf VI configuration file, find the setting. MaxMemory and replace it with 12288
    Line 116 # Size (in MB) maximum Java heap wrapper.java.maxmemory = 12288
    • VI /usr/lib/vmware-vpx/sps/wrapper/conf/wrapper.conf find the setting. MaxMemory and change from 1024 to 4096
    On line 154 # Size (in MB) maximum Java heap wrapper.java.maxmemory = 4096
    • Restart the vCenter device w / DB (1000 hosts) external /embedded for lab (100 guests)

    http://KB.VMware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=2005086&sliceId=1&docTypeID=DT_KB_1_1&dialogID=294472825&StateID=1%200%20294492358

    Documentation Centre of vSphere 5.5

    PS: vCenter 6.0 has much better performance based on my beta test... so don't lose hope yet. Many improvements to come...

    PS: I've also broken down on this here until I figured this out just recently: Re: big client - vCenter 5.5 response time of the customer Web U1c / questions of Performance and Navigation

  • navigation bar question elementary

    Hello! If I create a Web site in DW, what the navigation bar...? If I got 30 pages or more for example... what should I do to return to the navigation menu bar!  What is the best way to reproduce the navigation menu on every page of my Web site? Can u redirect me to some good tutorials or give me some instructions for this elementary question! Thks!

    Server-side includes work just fine for info repeated on each page:

    If your server has PHP: http://www.stevedawson.com/tutorials/php-includes.php

    If the server has ISS: How to include HTML in many Documents using SSI

    Or, if you do not want to go down the road of include and your site isn't supposed to be bigger than those 30 pages, look in templates Dreamweaver here:

    https://helpx.Adobe.com/Dreamweaver/topics.html

  • Navigation button question

    OK, I'm moderator, and not much of a programmer.

    What I have is a button which acts like a music video. you fly over and he did some aninmation, roll-off and and the reversal of the animation. Here's the code.

    What I can't understand is when the button is clicked, I want the navigation to occur on the main timeline or root. My question is, what is the code that I have to place instead of the route command that will allow me to position the main timeline is a framework or an instance of movieclip? Thank you

    anim_mc. Stop();

    anim_mc.addEventListener (MouseEvent.MOUSE_OVER, onMouseOver);
    anim_mc.addEventListener (MouseEvent.MOUSE_OUT, onMouseOut);
    anim_mc.addEventListener (MouseEvent.CLICK, onClick);

    anim_mc.buttonMode = true;
    anim_mc.mouseChildren = false;

    function onClick(e:MouseEvent):void
    {
    trace ("Click");
    }

    function onMouseOver(e:MouseEvent):void
    {
    var mc:MovieClip = MovieClip (e.currentTarget);

    mc.removeEventListener (Event.ENTER_FRAME, rewind);

    MC. Play();
    mc.addEventListener (Event.ENTER_FRAME, advance);
    }

    function onMouseOut(e:MouseEvent):void
    {
    var mc:MovieClip = MovieClip (e.currentTarget);

    mc.removeEventListener (Event.ENTER_FRAME, advance);

    mc.prevFrame ();
    mc.addEventListener (Event.ENTER_FRAME, rewind);
    }

    function advance(e:Event):void
    {
    var mc:MovieClip = MovieClip (e.currentTarget);

    If (mc.currentFrame is mc.totalFrames)
    {
    MC. Stop();
    mc.removeEventListener (Event.ENTER_FRAME, advance);
    }
    }

    function rewind(e:Event):void
    {
    var mc:MovieClip = MovieClip (e.currentTarget);

    If (mc.currentFrame == 1)
    {
    MC. Stop();
    mc.removeEventListener (Event.ENTER_FRAME, rewind);
    }
    on the other
    {
    mc.prevFrame ();
    }
    }

    If this code is on the main timeline, use:

    anim_mc. Stop();

    anim_mc.addEventListener (MouseEvent.MOUSE_OVER, onMouseOver);
    anim_mc.addEventListener (MouseEvent.MOUSE_OUT, onMouseOut);
    anim_mc.addEventListener (MouseEvent.CLICK, onClick);

    anim_mc.buttonMode = true;
    anim_mc.mouseChildren = false;

    function onClick(e:MouseEvent):void
    {
    this.gotoAndPlay ("maintimelineframelabel");

    otherwise, as a last resort, you can always use: MovieClip (root) .gotoAndPlay ("maintimelineframelabel");

    }

    function onMouseOver(e:MouseEvent):void
    {
    var mc:MovieClip = MovieClip (e.currentTarget);

    mc.removeEventListener (Event.ENTER_FRAME, rewind);

    MC. Play();
    mc.addEventListener (Event.ENTER_FRAME, advance);
    }

    function onMouseOut(e:MouseEvent):void
    {
    var mc:MovieClip = MovieClip (e.currentTarget);

    mc.removeEventListener (Event.ENTER_FRAME, advance);

    mc.prevFrame ();
    mc.addEventListener (Event.ENTER_FRAME, rewind);
    }

    function advance(e:Event):void
    {
    var mc:MovieClip = MovieClip (e.currentTarget);

    If (mc.currentFrame is mc.totalFrames)
    {
    MC. Stop();
    mc.removeEventListener (Event.ENTER_FRAME, advance);
    }
    }

    function rewind(e:Event):void
    {
    var mc:MovieClip = MovieClip (e.currentTarget);

    If (mc.currentFrame == 1)
    {
    MC. Stop();
    mc.removeEventListener (Event.ENTER_FRAME, rewind);
    }
    on the other
    {
    mc.prevFrame ();
    }
    }

  • Navigation on question slides

    Maybe I'm missing something. I have a set course to the point with three slides in question. The question slides are not sequenced one after the other, but rather, spaced all screens in the content. I have the question changed to move to the next slide on a correct answer. This happens when the correct answer is provided. The slide plays through the time allocated to it rather than move forward.

    I don't GET the navigation options available. They seem much too rigid. Can someone tell me a quiz in Captivate 4 which is online, so I can see how others have dealt with the navigation options in the quizzes?

    Thank you

    Larry

    Yes. Had the same problem. After clicking on send, the slide will go through the timing of the slide. Simply adjust timing of the slide 3 seconds or more and set it if it seems too short or too long.

  • CSS IE problem and navigation bar question

    Hello

    I have 2 questions:

    Is there a way to make all the elements of a horizontal navigation bar the same size, no matter the size of the word? I think I can use a background image, but perhaps someoneknows otherwise...

    and the problem with IE is that im setting the style of bottom border of a thing as dotted and thin but looks like "BOLD" or something on IE and normal in firefox, anyone knows how to fix this?

    Thank you

    Yes - you are missing the float: left... 8)

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.dreamweavermx-templates.com - template Triage!
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "mfv84" wrote in message
    News:ee1vtp$EUD$1@forums. Macromedia.com...
    > I solved the problem of IE by setting the width of the border to "1px" instead of
    > 'thin' and I tried the "display: block;" thing, but he ordered the
    > navigation bar vertically! Maybe I'm missing something...
    >
    >

  • Navigation/Bluetooth question.

    I finally had time to try the navigation today. Everything worked OK, but it was hard to hear so I have a few questions. (1) I did not hear the voice directions through my bluetooth earpeice although this arrangement has worked well for the functions of the phone. I can do the voice directions come through bluetooth? (2) if I plugged the Droid to MP3 (to the) connection of the car radio, would voice music interrupt directions & come through speakers? (3) if I had music on Droid & played it with earphones (jack Bluetooth or audio) would have voice directions override & stop the music when it is necessary? Last question is off topic. Does anyone know of a car charger which has an angle of 90 degrees on the taken micro USB. Since the Droid car holder does not a plug in connection, I do not have the lead from charger to the bottom of the phone. I guess an extension USB microphone with a 90 degree to the input end would do the trick, or maybe someone knows a 90 degree adapter? Thanks in advance.

    Not all the headphones blue tooth will receive all the signals... There are two types, and the called A2DP, one is basically the one who receives the voice of your calls, but also of other sounds on your phone.  If you don't see anything on your helmet, a quick way to see is to go to youtube on your phone and try to play a video. If the sound comes through your bluetooth headset, then navigation does not work properly, but I think you will find that your helmet does not pick up the sound, as there are has that one or two headsets bluetooth single ear that are A2DP.  If you hear the sound from the speaker on your phone, it simply means that the helmet only works for voice calls.

  • Why have I not question marks on my folders in the navigation pane?

    Many of my folders have blue circles with a white question marks.  First of all, what does this mean? Second, how to fix?

    Backup applications set these icons to indicate the current state of the affected folders backup.

    Special symbols you describe sound like the ones Norton.  Go to the Norton support system for an explanation of the meaning of each symbol.  You can disable the symbols if they are of no use to you by changing the settings of Norton [they refer to the symbols as Backup state overlays].

  • question of basic keyboard navigation function

    Im a real novice in AS3 and I'm trying to create a keyboard navigation of base that will navigate back in the main timeline.

    I have many different functions - for example...

    stage.addEventListener (KeyboardEvent.KEY_DOWN, anim2);

    function anim2(myevent: KeyboardEvent): void {}

    If (myevent.keyCode == Keyboard.RIGHT) {}

    gotoAndPlay ("twoToThree")

    } else

    If (myevent.keyCode == Keyboard.LEFT) {}

    gotoAndPlay ("twoToOne")

    }

    }

    Everything seems to work fine - but then when I return the timeline to a function that has already been called, things do not work correctly - that is, in the example above, pressing the right button actions the code left buttons.

    Ive got a feeling that I need to reset some functions or listeners but don't know . Could someone please give me some suggestions?

    any help much appreciated

    Thank you

    Nick

    resolved - had to remove the headphones :-D

Maybe you are looking for