Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6575797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:25:54+00:00 2026-05-25T15:25:54+00:00

My goal I’d like to make an application for PlayBook (using Flex) that has

  • 0

My goal

I’d like to make an application for PlayBook (using Flex) that has the UI similar to the PlayBook web browser. By similar I mean I want to implement a menu that is shown when the user swipes down from the top bezel of the tablet. I like this feature because I can draw on it, place tons of other objects and handle all kind of events without using screen space when not needed. Plus the PlayBook does not have a “Menu” button like some phones have.

Depending on configurations chosen from the first view a number of other views will be pushed onto the the stack view. When the user will access the pull down menu I’d like to show in form of thumbnail snapshot my main (configuration view) and the rest of the views that are on the view stack. This will basically show the user what is going on in different view and let him choose to which one to switch.

Achieved so far

The menu is accessible from any view, but the code for event handler is in my main MXML file (project.MXML), I found this to be the only way of having one menu for all the views.
I managed to pull down the menu from any view and displaying a thumbnail of the current view.

My problem

How to get access to all the views. I’ve been trying all day and all my trials give me access to the active view and my menu object. Here is some code to show what is going on:

// This is in my default view MXML

navigator.pushView(MainView);
navigator.pushView(SecondView);
navigator.pushView(ThirdView);
navigator.pushView(FourthView);

…….

// And this is where I try to gain access to my Views (in the Project.MXML)

var totalViews:int = navigator.length;//Length is 5 (4 Views plus menu which is wright)
var obj:Object;

for(var i:int = 0; i < totalViews; ++i)
{
    obj = navigator.getElementAt(i);// Tried child here, it's not working either
    var currentThumbnail:Preview = new Preview();
    var bmData:BitmapData        = new BitmapData( obj.stage.width, obj.stage.height );

    bmData.draw(obj.stage);
    currentThumbnail.setSize( m_previewH, m_previewW );
    currentThumbnail.setBitmap( bmData );
    currentThumbnail.setLayoutBoundsPosition(i * m_previewW + PREVIEW_GAP * i, 10);
    slideMenu.addChild( currentThumbnail );

    trace(i.toString() + " " + obj.toString());
}

As I mentioned above this for loop will successfully do the job for the current view then it will crash.Does anyone know how to loop through all the views?

This is my first application with flex so if there are any alternatives to my approach I’ll be glad to try them. Although I’d like to stick with a single ViewNavigator as opposed to tabbed navigator and multiple views instead of states, I don’t mind suggestions from that side.

TIA.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:25:55+00:00Added an answer on May 25, 2026 at 3:25 pm

    I’m pretty sure that for memory consumpation reasons Flex will not keep more than one instance of the view in memory at a time. So, looping over the number of views and trying to access the instance of that view will cause issues; because the view is essentially created every time it is displayed and destroyed every time it is hidden.

    To do what you want to do, I think you’re going to have to create the view snapshots on your own. Perhaps as in memory bitmaps that will exist even if the view isn’t on screen. Or perhaps you’ll want to save them temporarily to disk for memory purposes. Or even better, you could provide “pre-rendered” images.

    Anyway, then keep a list of the images as they relate to the views and display them in your “Display Shelf” style menu.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Goal: Provide a web service using Visual Basic or C# or .NET that interacts
Goal I want to create a web app with a horizontal GUI bar that
Goal: Create Photomosaics programmatically using .NET and C#. Main reason I'd like to do
Goal: Make a decorator which can modify the scope that it is used in.
Goal: simple browser app, for navigating files on a web server, in a tree
Goal: Don't want the user to make changes in the program's size. Problem: Don't
Goal: I want to achieve the path address, as string, of the application created
Goal: I want to scrape the word Paris inside an iframe using cURL. Say
goal: I have the string 1234432144 I want to only replace the first 2
My Goal I would like to have a main processing thread (non GUI), and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.