Results 1 to 6 of 6

Thread: How to navigate to other page in Blackberry Playbook

  1. #1
    Join Date
    Jan 2011
    Posts
    74

    How to navigate to other page in Blackberry Playbook

    Guys I am stuck with some kind of problem with this Blackberry playbook of mine which I am desperately thinking of navigating to the other pages. I have tried it by myself using some kind of help from my friends who are very good in all the codings of this navigation of the pages. Although the code is looking good but still I am not able to get the code correct, so guys if some one can look into this code and can find out what exactly is missing out here, please do provide some suggestion through which I can make this thing successful.

    Code:
    public class Page1 extends Sprite
     {
      public var page2age2;  
      public function Page1()   {
      
       var btn:Button = new Button();
       var lab:Label = new Label();
       
       lab.text = "Click";
       btn.addChild(lab);
       btn.setPosition(10,50);
       btn.addEventListener(MouseEvent.CLICK,dothis);
       addChild(btn);
       addChild(log);
       stage.nativeWindow.visible = true;
       
      }
      public function dothis(event:Event):void {
       page2 = new Page2();
       addChild(log);  
    }   
    }

  2. #2
    Join Date
    Apr 2009
    Posts
    488

    Re: How to navigate to other page in Blackberry Playbook

    Well I really don’t know are you looking to make the navigation of the pages through the help of a code by yourself, if you want you can request the Blackberry authority so as to help you in providing some kind of code that can help you in making this kind of thing possible. Since they are the actual developers of this playbook then what I feel is that they will be knowing the exact details of when and how to bring the changes that you would want to make in this playbook. What I think is that you should not waste time in doing all this stuff as it can cause some kind of damage to the playbook, just send an email to the Blackberry authorities and request them to do the changes that you would want to have.

  3. #3
    Join Date
    Apr 2009
    Posts
    569

    Re: How to navigate to other page in Blackberry Playbook

    Hey I have gone through the codings that you have been provided in the above posts and it seems that the codings is almost correct the only thing is that in the Page1() constructor you must set the page2 = new Page2() and in the dothis() function set the addChild([page2) which will surely help you in showing up the page2. The one thing that is of a concerned is the log object since I suppose that you have definitely put them in the codings but you might have forgot to mention the same in the post that you have been provided in the above post.

  4. #4
    Join Date
    Jan 2011
    Posts
    74

    Re: How to navigate to other page in Blackberry Playbook

    Guys thanks for all the replies that you have mentioned in the above post but I think that none of them did work for me, as far as making the request to the Blackberry is concerned what I believe is that I would want to make the changes myself as I myself a developer and would want to definitely try out by myself. I know that if I request them I would be definitely provided with the solutions of the page but this is not what I want. The problem that I am facing with the above code that I have mentioned in the above post still doesn’t show up the page1. I have made the changes that has been provided in the second post but till no response the page 1 is not getting displayed at all. Please provide some quick suggestion.

  5. #5
    Join Date
    May 2009
    Posts
    543

    Re: How to navigate to other page in Blackberry Playbook

    It seems that you might have got something wrong with the code that has been provided by you in the question, your friends might have suggested you with their ideas but as far as I know what I believe is that you will not get the same code running successfully to navigate with the pages, I have also tried it out by myself and have found that the there is some black screen that comes whenever I run this code on my playbook. If you will comment put the page2=new page2() then also the problem doesn’t gets solved still the problem persist.

  6. #6
    Join Date
    Jun 2009
    Posts
    4,586

    Re: How to navigate to other page in Blackberry Playbook

    This is the coding that I have tried out to move it form one page to another, I have tried it myself on my Blackberry playbook and I have found that using this solution does workout for navigating to any pages that you want in your Blackberry Playbook. What I have done in the coding is that I have same package which is the default one in the page2 and the rest follows the same.

    Code:
    public class Page2 extends Sprite
     {
      public function Page2()
      {
       var label:LabelButton = new LabelButton();
       label.label = "Welcome to Second Page";
       addChild(label);
       stage.nativeWindow.visible = true;
      }

Similar Threads

  1. Replies: 7
    Last Post: 07-11-2011, 07:27 AM
  2. No IM+ in BlackBerry PlayBook
    By Nimos in forum Portable Devices
    Replies: 6
    Last Post: 14-08-2011, 10:18 PM
  3. Replies: 5
    Last Post: 30-04-2011, 10:21 AM
  4. Replies: 4
    Last Post: 23-04-2011, 07:53 PM
  5. BlackBerry Bridge for your BlackBerry Playbook
    By Vance in forum Portable Devices
    Replies: 5
    Last Post: 21-04-2011, 10:25 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,121,478.49093 seconds with 16 queries