How to create multiple pages using flex application.

Hi all,
i am doing flex application which contains 5 different
pages,
to do this i have used viewstack component to navigate
between the pages.
this is working fine if all my pages are of same size. each
page as different background image.
but i have to create pages with different sizes.
my first and second page are small and remaining pages are
big.
when i navigate to 3rd or 4th page, it is showing scrollbar
inside swf.
but i want scrollbar for browser window not inside my swf
anyone please guide me how to create pages in flex
application.
i have one more doubt, if my page contains some html links ,
how to open those links,
is it posible to open the link in new window.
please help me , i have no idea how to create web
applications using flex
Thanks in advance
regards
avanthika

Hi inlineblue,
Thanks for your reply,
you asked about sample code,
following is my sample code.
In my Application mxml file, i am loading all custom
components for each page.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns="*"
horizontalAlign="center" verticalAlign="top"
styleName="plain"
backgroundColor="#FFFFFF"
creationComplete="init()" width="780" height="594" >
<mx:Script>
<![CDATA[
//navigating to next page
public function showNextStep(newIndx:int):void{
vs.selectedIndex=newIndx;
//navigating to previous page
public function showPreviousStep(newIndx):void{
vs.selectedIndex=newIndx
]]>
</mx:Script>
<mx:ViewStack id="vs" paddingLeft="0" height="100%"
width="100%" >
<mx:Canvas id="s1" label="step1"
backgroundImage="assets/Step1.jpg" >
<!-- Step1.jpg image size is width=778, height=560 -->
<mx:HBox paddingLeft="8" width="780" height="548">
</mx:HBox>
<mx:Button alpha="0" buttonMode="true" x="697" y="18"
click="showNextStep(1)" width="72" height="24" />
<mx:Button alpha="0" buttonMode="true" x="697" y="508"
width="72" click="showNextStep(1)" height="24"/>
</mx:Canvas>
<step2 id="s2" label="Step2" hideEffect="{blurImage}"
showEffect="{unblurImage}" />
<step3 id="s3" label="Step3" hideEffect="{blurImage}"
showEffect="{unblurImage}" />
<step4 id="s4" label="Step4" hideEffect="{blurImage}"
showEffect="{unblurImage}" />
<step5 id="s5" label="Step5" hideEffect="{blurImage}"
showEffect="{unblurImage}" />
</mx:ViewStack>
</mx:Application>
// following is the page2 (step2) component code
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="init()"
backgroundImage="assets/Step2.jpg" width="778" height="600"
>
<!-- Step2.jpg image size is width=778, height=600 -->
<mx:HBox horizontalAlign="left" paddingLeft="5"
height="511" width="768">
</mx:HBox>
<mx:Button alpha="0" buttonMode="true" x="648" y="6"
click="this.parentApplication.showPreviousStep(0)" width="61"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="711" y="6"
click="this.parentApplication.showNextStep(2)" width="53"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="651" y="529"
width="58" click="this.parentApplication.showPreviousStep(0)"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="712" y="528"
width="54" click="this.parentApplication.showNextStep(2)"
height="24"/>
</mx:Canvas>
// following is the code for page3 (step3) component
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="init()"
backgroundImage="assets/Step3.jpg" >
<!-- Step3.jpg image size is width=778, height=660 -->
<mx:VBox width="763" height="668">
</mx:VBox>
<mx:Button alpha="0" buttonMode="true" x="644" y="10"
click="this.parentApplication.showPreviousStep(1)" width="61"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="708" y="10"
click="this.parentApplication.showNextStep(3)" width="53"
height="24"/>
<mx:Button alpha="0" buttonMode="true" label="Back"
x="625" y="590" width="58"
click="this.parentApplication.showPreviousStep(1)" height="24"/>
<mx:Button alpha="0" buttonMode="true" x="694" y="590"
width="68" click="this.parentApplication.showNextStep(3)"
height="24"/>
</mx:Canvas>
// following is code for page4 (step 4),
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="init()"
backgroundImage="assets/Step4.jpg" >
<!-- Step4.jpg image size is width=778, height=773 -->
<mx:VBox width="762" height="792">
<!-- User interface -->
</mx:VBox>
<mx:Button alpha="0" buttonMode="true" x="644" y="15"
click="this.parentApplication.showPreviousStep(2)" width="61"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="708" y="16"
click="this.parentApplication.showNextStep(4)" width="53"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="644" y="710"
width="58" click="this.parentApplication.showPreviousStep(2)"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="703" y="710"
width="54" click="this.parentApplication.showNextStep(4)"
height="24"/>
</mx:Canvas>
// Following is code for Page 5 (step 5 ) component.
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="init()"
backgroundImage="assets/Step5.jpg" width="778"
height="600">
<!-- Step5.jpg image size is width=778, height=539-->
<mx:VBox paddingLeft="170" paddingTop="170" width="778"
height="522">
</mx:VBox>
<mx:Button alpha="0" buttonMode="true" x="654" y="41"
click="this.parentApplication.showPreviousStep(3)" width="72"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="654" y="486"
width="72" click="this.parentApplication.showPreviousStep(3)"
height="24"/>
</mx:Canvas>
I am getting vertical scrollbar for page3 and page4,
please tell me how to avoid this, Is their any other method
to do this.
Following is the link for my above code
http://www.emantras.com/flexdemo/sample.html
in this application one more problem is also their,
background image loads very slow, before it loads all the flex
components will load. So when you open this please wait till
background image loaded, to move to next and back pages.
Thanks for your time and consideration.
Regards
Avanthika

Similar Messages

  • How to create multiple pages in the output file?

    hi, we have an application (C++) that generates PDF output. I've been asked to figure out how to create multiple copies of each page (uncollated). i.e. the output would be 4 copies of p 1 followed by 4 copies of p 2, etc. I'd like to do this without actually replicating each page if possible ... any ideas?

    Why not just put four copies of the same CosObj reference into the Pages array/tree?

  • How to create multiple page pdf file

    Hello,
    Sometimes I need to create multiple (more precisely double) page pdf file from another pdf file to reduce the printing cost of the document. For this I crop the single page document and then print it in a double page pdf file (in landscape).
    But I am still facing a problem in this regard. When I make a double page pdf the gutter (distance between two pages, left and right) is more than 1.5 inch. This is a great problem. Can anyone tell me how to reduce the gutter when making a double page pdf file (don't just suggest to crop the single page pdf, i tried this as well, I cropped using the feature "remove white margin" but still there is more than 1.5 inch between two pages)
    Please help me.
    Thanks in advance.
    Regards
    mathmad

    When you print, select the printer properties for the Adobe PDF printer. On the layout tab is an option for the number of pages per sheet. In some versions it is listed as multi-up as I recall. I did not say to simply print from the 2-up display. It is a printer option, not a display option.

  • How to print multiple pages using Internet Explorer with af:showPrintablePageBehavior

    Hello,
    I am facing one issue with using af:showPrintablePageBehavior. I found similar posts and google pages, but unable to fix the issue. Most relevant post is,
    Print issues with af:showPrintablePageBehavior and Internet Explorer
    I have a page show in a af:popup. This page contain a Title in the top, af:outputText and a Print button below it. I have added af:showPrintablePageBehavior to Print button. I am using lots of data in the af:outputText. When I click on Print button, showPrintablePageBehavior is opening new browser window with multiple pages. But when I click on the Print Preview or Print, only first page is shown.
    I have tried the solution mentioned in above post but no luck.
        <f:verbatim>
            <style type="text/css">
                textarea {
                    width: 95%;
                    height: 350px;
                    overflow: auto;
                @agent ie {
                    af|document:maximized::printable {
                        position: static;
            </style>
      </f:verbatim>
      <af:panelStretchLayout bottomHeight="10%" startWidth="0%" endWidth="0%" topHeight="10%" inlineStyle="height: 100%; width: 100%">
      <f:facet name="top">
      <af:panelGroupLayout id="pnlGrpTitle"  layout="vertical" halign="center" inlineStyle="width: 100%;">
      <af:spacer id="titleSpacer" height="10px" />
      <af:label value="Title" inlineStyle="font-weight:bold; font-size: 16px; color:#000066; padding-left: 5px" id="dialogTitle" />
      <af:spacer id="titleSpacer2" height="20px" />
      </af:panelGroupLayout>
      </f:facet>
      <f:facet name="center">
      <af:panelStretchLayout bottomHeight="0" topHeight="0" startWidth="0" endWidth="0">
      <f:facet name="center">
      <af:panelStretchLayout bottomHeight="0" topHeight="25" startWidth="0" endWidth="0">
      <f:facet name="center">
      <af:panelGroupLayout id="pnlTextArea" layout="scroll">
      <af:outputText binding="#{mybean.tfdArea}" escape="false" id="tfdArea" />
      </af:panelGroupLayout>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>
      <f:facet name="bottom">
      <af:panelGroupLayout id="pnlGrpBottom" layout="vertical" halign="center" inlineStyle="width: 100%">
      <af:commandToolbarButton id="cbPrint" shortDesc="Print" icon="/images/print.png" inlineStyle="width: 40%" >
      <!--af:clientListener method="self.print" type="action"/-->
      <af:showPrintablePageBehavior />
      </af:commandToolbarButton>
      </af:panelGroupLayout>
      </f:facet>
      </af:panelStretchLayout>
    Any idea how to fix it?
    - Sujay

    Hello,
    I am facing one issue with using af:showPrintablePageBehavior. I found similar posts and google pages, but unable to fix the issue. Most relevant post is,
    Print issues with af:showPrintablePageBehavior and Internet Explorer
    I have a page show in a af:popup. This page contain a Title in the top, af:outputText and a Print button below it. I have added af:showPrintablePageBehavior to Print button. I am using lots of data in the af:outputText. When I click on Print button, showPrintablePageBehavior is opening new browser window with multiple pages. But when I click on the Print Preview or Print, only first page is shown.
    I have tried the solution mentioned in above post but no luck.
        <f:verbatim>
            <style type="text/css">
                textarea {
                    width: 95%;
                    height: 350px;
                    overflow: auto;
                @agent ie {
                    af|document:maximized::printable {
                        position: static;
            </style>
      </f:verbatim>
      <af:panelStretchLayout bottomHeight="10%" startWidth="0%" endWidth="0%" topHeight="10%" inlineStyle="height: 100%; width: 100%">
      <f:facet name="top">
      <af:panelGroupLayout id="pnlGrpTitle"  layout="vertical" halign="center" inlineStyle="width: 100%;">
      <af:spacer id="titleSpacer" height="10px" />
      <af:label value="Title" inlineStyle="font-weight:bold; font-size: 16px; color:#000066; padding-left: 5px" id="dialogTitle" />
      <af:spacer id="titleSpacer2" height="20px" />
      </af:panelGroupLayout>
      </f:facet>
      <f:facet name="center">
      <af:panelStretchLayout bottomHeight="0" topHeight="0" startWidth="0" endWidth="0">
      <f:facet name="center">
      <af:panelStretchLayout bottomHeight="0" topHeight="25" startWidth="0" endWidth="0">
      <f:facet name="center">
      <af:panelGroupLayout id="pnlTextArea" layout="scroll">
      <af:outputText binding="#{mybean.tfdArea}" escape="false" id="tfdArea" />
      </af:panelGroupLayout>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>
      <f:facet name="bottom">
      <af:panelGroupLayout id="pnlGrpBottom" layout="vertical" halign="center" inlineStyle="width: 100%">
      <af:commandToolbarButton id="cbPrint" shortDesc="Print" icon="/images/print.png" inlineStyle="width: 40%" >
      <!--af:clientListener method="self.print" type="action"/-->
      <af:showPrintablePageBehavior />
      </af:commandToolbarButton>
      </af:panelGroupLayout>
      </f:facet>
      </af:panelStretchLayout>
    Any idea how to fix it?
    - Sujay

  • How to create multiple Contracts using BAPI_BUSPROCESSND_CREATEMULTI?

    Hi Experts,
    I m trying to create multiple service contracts using BAPI_BUSPROCESSND_CREATEMULTI. I can create single transaction in one go but program is failing to create multiple service contracts in one go. It does create the multiple contracts but messes up with products and product related information. As when there is same product in two different contracts, the record in item internal table has same values for both contracts as we are not passing header guid to the intem related internal table 'ITEM', 'SCHEDULELINE' etc.
    How to use this BAPI to create mulitple service contracts in one go?
    Thanks and Regards.

    Any guideline?
    Thanks and Regards,

  • How to Create Tag Cloud using Flex

    Hi
    I am trying to create Tag cloud using Adobe Flex. Can you
    please give me a hint of how to proceed.
    Any hint will be a help.
    Thanks,
    Dev

    Hi
    I am trying to create Tag cloud using Adobe Flex. Can you
    please give me a hint of how to proceed.
    Any hint will be a help.
    Thanks,
    Dev

  • How to create multiple TextBox using Visual C# in runtime?

    Hello,
    I am writing the following code to create TextBox programmatically in run time. When I am clicking in the target Button it will create TextBox. But the problem is, only one TextBox is created. Can anyone tell me how can I write code that will create multiple
    TextBox when I am continuously clicking a Button?
    Here is my current code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    namespace testing
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    int x, y;
    TextBox txt = new TextBox();
    private void button_add_Click(object sender, EventArgs e)
    cnt++; y = 139; x = 139;
    txt.Parent = this;
    txt.Location = new System.Drawing.Point(x, y);
    txt.Size = new System.Drawing.Size(100, 20);
    txt.Name = "text" + cnt; ;
    txt.Text = "Text" + cnt; ;
    ///txt.Visible = true;
    y += 30; x += 30;
    ///MessageBox.Show(txt.Name.ToString());
    int cnt;
    private void Form1_Load(object sender, EventArgs e)
    cnt = 0; x = 139; y = 139;
    - Thanks

    Hello,
    In your sample code only one instance of the text box is created. You may put the 
    TextBox txt = new TextBox();
    inside the button click handler function for creating new instance for each button click.
    Also change the change  txt.Location  for each text box. In your code it is specified as 139, 139 always.
    Regards,
    Mathews

  • How to create multiple records using ADF

    Currently working on my first ADF BC and UIX project, and I basically want to create multiple records after a user makes a choice on the screen. I would like to know at what layer should this functionality be implemented?
    Would this be more at the Struts/Controller level, where I have a java class to perform the creation as part of a data action? I ask because, I am not sure if this is feasible at the ADF BC level (View objects and Entity Objects) via some sort of customization, and i am new to the different possibilies avail as part of the ADF framework
    Regards
    Anora
    (Jdeveloper 10.1.2.1 build 1913, Oracle DB 10.1.2)

    I'd put it into the application module. You then can call the method from the controller layer or from an other application module. This way you put it into the business logic, which helps if you ever decide to use a different client approach (like swing).

  • How to create login page using OAF

    Hi,
    I am using Jdeveloper 11.1.1.6.0
    Plese give me Sample Code creating the log in page .
    Thanks
    Ram

    Hi,
    here i am using the webcenter application using the adf faces need secured login page using the OAM.
    Thanks
    Ram

  • How to create multiple page PDF from multiple jpg images?

    I have three jpeg images with pixel dimensions 1008 x 1464. I wish to create a PDF file with one image per page. Apparently Preview previously performed this function, and this functionality was deliberately removed by the time of Mac OS X 10.6.
    I use Mac OS X 10.6.8. I have combined the images via Gimp into one jpeg image of size 1008 x 4392, but it would be better if I could create a PDF file. I have been unable to figure out how to do this via GraphicConverter, which trial version constantly displays the 30 second "buy me" window before loading -- annoying: I once accidentally opened it, and it would not let me close the application until the "buy me" window finished...
    I have been able to create a PDF file through the action of "printing" (cf. https://discussions.apple.com/message/12395021#12395021), but that reduces the image size and creates a white margin around the images (as if printing on a sheet of paper), which I wish to avoid.
    Thank you for your time and help!
    Message was edited by: ethereality -- added another "workaround" attempt

    I drag and dropped from Finder into TextEdit, and it only copied the file path as text. From what software would I drag the images into TextEdit?
    First, set the TextEdit document to Rich Text Format - you can do that via the Format menu in TextEdit. This will allow the inclusion of pictures.
    Then you can either -
    • Drag an image file into the TextEdit window, and a preview-sized image will be inserted. If this is too small for your purposes -
    • Open the image file in Preview (or an image editor, if you choose), size the image to your liking, press Command-A (Select All) and the press Command-C (Copy) - doing this will place a copy of the image on the Clipboard. Then switch focus to the TextEdit document and press Command-V (Paste). This will place a large-size image of the file.

  • How to create a page break in application designer

    Hi Folks,
    I need to create a simple page break in a PeopleSoft online page for the purpose controlling how the page prints. To achieve this, I'm using an HTML area in app designer with the following page break code:
    <p style="page-break-after:always;"></p>
    Unfortunately, with this code, and extra blank page will print out after the HTML area. It's actually breaking both before and after the HTML area. I've tried every permutation of the 'break' command with no luck. How can I stop the extra blank page from printing?
    Thanks!
    -Larry

    Try posting in the iWorks forum.
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • How to create Form page using a query-like filter to select editable rows

    Hi!
    Does anyone knows how can I create a Tabular Form page to update a table's data, but using the capabilities offered when creating an Interactive Report page (that is, having the "Search Bar" filtering tool at the top of the form)?
    I mean, is that possible without customizing the page? I ask this because I still don't have that much APEX knowledge and I would prefer to accomplish this by just using the "Create Page" wizard but without doing too much programming afterwards.
    Thanks a lot.

    Try this method,
    1. Creat a Master Detail Form (Custom Layout and not tabular)
    and in the master block select one field.
    2. In the HTML layout for master remove the reference for
    that field(so that nothing will appear in the master block
    of the form).
    3. Before the update (in the Pl/SQL event handler select the 'Save' event and write the following code to avoid updating master block).
    p_session.set_value(p_block_name => 'MASTER_BLOCK',
    p_attribute_name => 'MASTER_ACTION',
    p_value => 'None');
    doSave;
    For eg, let's say
    Master is from 'Dept' table and Detail is from 'Emp' table(with join condition Dept.dept_id = Emp.dept_id). In the master remove everything except dept_id field and in the HTML layout for master remove the reference of the dept_id field(you cannot remove this field physically from the master layout). Now the form will look like multirow form rather than master detail form but only problem with this workaround is 'Detail Action' will be present in the detail block.
    I hope this will help you.
    Thanks
    -Krishnamurthy

  • How  to create Tab pages using servlet

    I want to create a tab pages which can carry different pages. Can you help me on this?? Provided if you have some guideline or program which can help me.
    Thanks
    Message was edited by:
    wesleygch

    those kinda tab pages should be coded :) there is no built-in support for them!
    like BalusC wrote you better sould export the layout into CSS, then, you have the option of using javascript when switching between tabs.
    if you want to avoid using of javascript or you want to do it serverside, then you'll have to write that tab handling in your jsp page

  • How to create multiple pages within one navbar entry

    I'm trying to revamp my site to include specific information and files for the classes I teach at the university. What I'd like to do is to have one entry on the navbar entitled "University Classes" or some such, and have it lead to a page where I can have a list of classes as links, each leading to its own page. Is it possible to do this, or do I need to create an entire new site for this purpose?

    To make the link to the second site be incorporated in to the navbar of the main site add a totally blank page in the main site and name it to indicate the classes site. Then put the following code in an HTML snippet on that blank page:
    <script type="text/javascript">
    parent.window.location = "URL TO PAGE ON SITE YOU WANT TO REDIRET TO"; </script>
    Thanks to Cyclosaurus for this code
    When that page is clicked on the visitor will be immediately redirected to the classes site. You can put a similar blank page on the classes site redirecting them back to the main site.
    OT

  • How to create multiple ifs users using XML

    I used the following xml file to create a ifs user. But I don't know how to create multiple users using XML. Thanks for your help.
    <SimpleUser>
    <UserName>bill</UserName>
    <Password>bill</Password>
    <DirectoryUserDescription>Bill</DirectoryUserDescription>
    </SimpleUser>

    There are many good resources for Powershell tutorials. The MS help page for each cmdlet is usually a good place to start.
    The suggested answer is very good and easy to modify to your needs. The linked article provides good detail on creating your csv file. If you look at their sample csv, you will see the column for LicenseAgreement and UsageLocation. You can change the script
    to use the values from the csv instead of the same value for every user like so:
    -LicenseAssignment $_.LicenseAgreement -UsageLocation $_UsageLocation
    Basically, $_.<valuename> is the filled in by the value under the heading <valuename> in your csv file for the current user. 
    As for what msdivision, replace this with the correct domain name value for your organization. You can get the values for license SKUs from existing users by using the following:
    Connect-MsolService
    Get-MsolUser -UserPrincipalName <userprincipalname> |select Licenses

Maybe you are looking for

  • Using older shared libs for games ?

    Hi fellow archers, I like to play the enhanced Quake engine DarkPlaces (http://icculus.org/twilight/darkplaces/) together with a few mods (namely SDQuake and Kleshik). Under Ubuntu 9.04 x64 DarkPlaces runs nicely as native x64 Linux app. Under the mo

  • ORIGINAL and AP set..

    hello...what the different between with ap set.. ****Moderator Note**** Edited Email address. Message Edited by linwood on 30-Apr-2008 11:15 AM

  • Dbms_stats fails on larger patitioned tables.

    Hi, I need to run dbms_stats on partitioned table with partition as large as 300gb and it fails please help how would i work on a startegy to collect stats. Thanks, Kp

  • P67A-GD55 can't access bios.

    Had problem earlier to access bios using an msi p67a gd43, today i changed in to a p67a gd55 and i have the same problem. When i start it counts "98","99","A3" and then i press ALT and it just locks saying "starting setup". I'm able to boot in to win

  • Database connectivity problem..! Help..!

    Hi, I have an application running on Windows platform deployed on Weblogic. This application is trying to access a Database which is configured on Redhat Linux 4 -I configure it as a JDBC connection pool in the weblogic, now if i test the connectivit