Proper way of implementing page transition?

Hi, I have a Flex application that uses multiple pages,
joined by a ViewStack. Page transition is handled by the attached
function (which, as the comment indicates, causes massive memory
leak). This function is called in about 40 locations throughout the
Flex application. The function calls removeAllChildren and
createComponentsFromDescriptors so that pages with forms are reset
to blank, as opposed to having to manually go through each
component in a page and resetting them to their initialized state.
Preferably, I would like to preserve the form resetting behaviour
of this function but cut the memory leak. Any advice on what the
best solution to this problem would be?

"remix_hatta" <[email protected]> wrote in
message
news:gh0jtc$25f$[email protected]..
> Hi, I have a Flex application that uses multiple pages,
joined by a
> ViewStack.
> Page transition is handled by the attached function
(which, as the comment
> indicates, causes massive memory leak). This function is
called in about
> 40
> locations throughout the Flex application. The function
calls
> removeAllChildren
> and createComponentsFromDescriptors so that pages with
forms are reset to
> blank, as opposed to having to manually go through each
component in a
> page and
> resetting them to their initialized state. Preferably, I
would like to
> preserve
> the form resetting behaviour of this function but cut
the memory leak. Any
> advice on what the best solution to this problem would
be?
>
> public function goToPage(canvas:Canvas,
topStack:ViewStack):void {
> var idx:int = topStack.getChildIndex(canvas);
> //1-2MB memory leak caused by the following two lines
> topStack.removeAllChildren();
> topStack.createComponentsFromDescriptors();
> topStack.selectedIndex = idx;
> }
Look at AdvancedForm
http://code.google.com/p/flexlib/wiki/ComponentList

Similar Messages

  • What is the proper way to delete video transitions and restore clips?

    I guess this is a two parter.. In the case where you overlap two clips and add a cross-fade, etc., and when you butt two clips together and do a 3D-spin, etc. I am talking about when you are long past using Command-Z to backup. I'd like to restore adjacent clips to their original state before overlaping and/or adding transitions.
     20" Intel iMac (2.0GB RAM, 256MB VRAM, 500GB HD)   Mac OS X (10.4.6)  

    well, i can think of the best way to restore if you think you're gonna get into a transition heavy sequence.
    duplicate your cuts only sequence and add transitions to your duplicate. i often create duplicate sequences and than add a word or two as well as the date as an identifier. when i'm done with the project, i delete the unused sequences or keep them around if i think i may reuse something.
    otherwise, what is wrong with just selecting the transition and deleting?

  • Is there a way to control "push" page transitions when using up/down keys to navigate a PDF?

    I have a multi-page PDF designed with push page transitions. When using the forward/back arrow keys or the interactive buttons I have designed on the page, the push navigation direction changes whether one is moving forward in the PDF or back. However, if I use the mouse scroll button or up/down arrow keys to navigate, the push navigation only animates from the same direction...and therefore makes it look as if the user is only moving "forward" in the book. Is there a way to control this effect more precisely?
    I am creating the document with InDesign CC 2014, adding the page transitions within the file, and exporting to interactive PDF using the setting "Page Transitions: From Document".

    I don't think the iPad has it in it to control another device. Unless there's an app for it to be a remote control, but I'd imagine that it woudl be very brand specific.
    You can certainly experiment with the VGA or HDMI adapters, but I wouldn't put total faith in them unless you had the ability to experiment prior to your presentation. I'd definitely have a backup plan.

  • What is the best way to implement Carousel i.e. web part in a site page on office 365 site?

    We can implement the Carousel web part in many ways like content By Query Web Part , jquery (nivo) plugin or content search web part etc. But among these which one is the best way to implement to get best performance of the page?
    Thanks

    content search web part always provides best performance because it uses the search. only consideration you need to take is, it does not display the changes immediately and you need to wait for the incremental crawl to happen.
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • What is the proper way to include search terms in your page

    Say you have a web page that is about a certain topic and has information displayed on the page.  What is the proper way to include terms that you would like this page to show up on a search for but don't necessarily want to display on the page?
    I didn't know if including the search keywords at the bottom in small font with invisible color was the proper way.

    I didn't know if including the search keywords at the bottom in small font with invisible color was the proper way.
    ABSOLUTELY NOT!!!  This practice will get your site banned or blacklisted from Search Engines.  It is considered a Black Hat tactic to attempt to mislead search engine results in an effort to drive traffic to your site.
    Instead, use plenty of keyword rich, relevant text and good semantic mark-up (h1, h2, h3) inside the body of your pages.   In time, search engines will find you.
    Some Excellent Links on Search Engine Optimization:
    Google's SEO Starter Guide (PDF)
    http://www.google.com/webmasters/docs/search-engine-optimization-starter-guide.pdf.
    Can Better Web Accessibility Mean Better Search  Ranking?
    http://alt-web.blogspot.com/2007/07/can-better-web-accessibility-mean.html
    High Rankings Advisor
    http://www.highrankings.com/newsletter/
    SEOMoz.org - Beginner's Guide to SEO (1-page  html)
    http://www.seomoz.org/article/beginners-1-page
    SEO Chat
    http://www.seochat.com/
    Submit Site Maps to 4 Major Search Engines
    http://alt-web.blogspot.com/2008/11/submit-sitemaps-to-4-major-search.html
    Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    www.twitter.com/altweb
    www.alt-web.blogspot.com/

  • Embed Video PDF InDesign Booklet with Page Transitions & Playable Video

    e.g.
    http://help.adobe.com/en_US/InDesign...3D6C6A460.html
    also such as:
    http://www.page-flip.com (although yet to implement  feature...)
    So...
    Is there any way to get embedded video within pdf - once placed in  InDesign - to export (either swf or xfl) creating a booklet-type  publication with page transitions (curl/ page-flip) with the videos  playable?

    Only Adobe Acrobat or Reader can show those PDFs (and many others) correctly. Are you sure that the PDF was opened in one of these 2 applications and not in Apple Preview or Ghostviewer or something else?
    Only Adobe Reader 9 and X and Acrobat 9 and X can show PDFs with Flash content correctly. If you have an older version, let us say Version 8 or older, you are not able to see Flash content at all. If you have a newer version, that is Reader XI or Acrobat XI you need additional Adobe Flash player have installed on that computer and allow access to your PDFs. Can you check, if these substantial requirement are fulfilled?

  • What is the Proper Way to place a Background Image inside a Div?

    I have been searching Google and the Adobe forums for awhile now, and while there are very valid solutions to similar problems I found that none of them fixed the problem that I am facing. I blame myself and getting lost in this sloppy coding of mine, so part of my plan was to start my style sheet over from scratch.
    My question, what is the proper way to add a background image into a div? I currently have the top div following the "header" css style, here is what I have typed into that sections:
    <style type="text/css">
    @import url("../twoColLiqLtHdr.css");
    .header {
        width: 1000px;
        height: 300px;
        background-image: url(Assets/HeaderTemplate.png);
        background-repeat: no-repeat;
        background-position: center;
    The problem here is that the background image isn't even appearing. I would greatly appreciate any help, could anyone inform me on the proper way to doing this so that I can implement images in divs in the future without turning my coding in a down right mess?
    Thank you in advance.

    I apologize, I'm unable to post a link to the page just yet. This is a snip of coding for a website still in the making for the company I work for.
    Would any of the coding below help?:
    </script>
    <style type="text/css">
    <!--
    body {
        background-color: #760101;
    a:link {
        color: #FFF;
    a:visited {
        color: #690;
    .twoColLiqLtHdr #header table tr td {
        color: #400000;
        text-align: right;
    -->
    </style>
    <link href="../twoColLiqLtHdr.css" rel="stylesheet" type="text/css" />
    </head>
    <header class="twoColLiqLtHdr">
    <scmenu class="twoColLiqLtHdr">
    <tab class="twoColLiqLtHdr">
    <body class="twoColLiqLtHdr">
    <div class="header" align="" id="header">Content Goes Here</div>
    <div class="scmenu" align="" id="scmenu">Content Goes Here</div>
    <div class="tabs" align="" id="tabs">Content Goes Here</div>
    <div class="body" align="" id="body">Content Goes Here</div>
    <div class="footer" align="" id="footer">Content Goes Here</div>
    <script type="text/javascript">var TFN='';var TFA='';var TFI='0';var TFL='0';var tf_RetServer="rt.trafficfacts.com";var tf_SiteId="11773g197b36be92cde14c11fc77dacc3a2a4f1660eb17h9";var tf_ScrServer=document.location.protocol+"//rt.trafficfacts.com/tf.php?k=11773g197b36be92c de14c11fc77dacc3a2a4f1660eb17h9;c=s;v=5";document.write(unescape('%3Cscript type="text/JavaScript" src="'+tf_ScrServer+'">%3C/script>'));</script>
    </body>
    </html>
    That above is parts I added into the source code.

  • What is the proper way to publish standard proxies/services using PI?

    Hello experts,
    Iu2019m working on a Project where we have an ECC 6.0 and we need to publish some standard services to external third-party applications. We found that the functionality that these third-party applications need is accomplished by the service MaintenanceRequestCreateRequestConfirmation_In of component ESA ECC-SE 603. As we are centralizing all our interfaces in SAP Process Intregration I have installed the ESA ECC-SE 603 XI content in SAP PI. After the installation, in tr. SPROXY transaction of the ECC system I can see the proxy properly implemented and ready to be called. And now I have to configure the interface in Integration Directoy. What I wonder is whatu2019s the best practice to configure this in PI? As I can see in ESR the service category is Inbound but, if Iu2019m not wrong, I have to publish a Outbound service? What should I do? Copy the entire definition to my own Software Component and create my own Outbound service? What is the proper way to publish standard proxies/services using PI?
    Thank you in advance.

    Using the Page Items to Submit property on the report region, the Refresh action is all that should be needed. I created a copy of page 2 on page 3, removed the Set Value action, and it is working as expected. I don't have access to 4.2.1 to try it on that specific patch level, but I've been using Page Items to Submit with a Refresh DA since 4.2.0 with no problems.

  • ADF View Controller - Page Transitions

    Hi All,
    Definitley releveant here - JSF 2.0 / Jdev 11.1.2
    This one may be considered a little left of filed, but has anyone out their played around or implemented view controller transitions? Depending upon the network speed, with a lot of my pages, I can see the components rendering and loading. This is especially true with tables set with auto-height-rows not equal to -1.
    Just to be clear, some other front-end only frameworks give you the ability to slide or fade into the new page, once this is entirely loaded into the DOM.
    My educated guess is that this would involve some sort of View Model Layer extension, however I am guessing that this may be one of the areas that not many developers have attempted to tackle. Nothing on google so far - that or my search terms are way off.
    Even if someone could provide some psuedo logic into how this theortetically would be achieved. From my experience in ADF, I have realised that the framework is very extensible, and being open source, could support this requirement.
    Cheers,
    Simo
    Edited by: Simo on Jun 19, 2012 11:51 PM
    Edited by: Simo on Jun 19, 2012 11:52 PM
    Edited by: Simo on Jun 19, 2012 11:55 PM

    Simo,
    you may want to try partial page navigation as documented here http://docs.oracle.com/cd/E23943_01/web.1111/b31973/ap_config.htm#sthref409to speed page transition.
    I don't think that open source is a guarantee for animated transition(and ADF is not open source) as otherwise we would see that e.g. in Trinidad MyFaces or other open source JSF frameworks. Instead what we do is to work on reducing the page content size and the supplement CSS and JS file downloads (You will see improvements when JDeveloper 12c goes out) . Other strategies for faster page load and response include the use of page templates and ADF regions. So unless you need transition for a visual effect I am not quite sure I want to follow that adding transition animation is a way to improve the use experience in regards to performance
    Frank

  • What is the proper way to open the app store  for ios

    Using Air3.1 to develope a game.
    I want to have links on my main menu which will open the iOS app store for a specific application.
    The only way I have found to do this is by opening a url "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=<THEAPPIDHERE>&mt=8"
    However, while this does work, so to speak, when I try to go back to the application, it starts up as if it had crashed... and it does several "redirects" before it get's where it is eventually going.
    Is there a better/proper way to open the app store?
    Cheers
    dave

    Read this page, especially the later examples:
    http://bjango.com/articles/ituneslinks/

  • The Excel-Mania - Best Ways of Implementing Excel-Like ADF

    Hello people, good afternoon!
    I would like to share with you a doubt i have implementing complex, matrix-like forms in ADF. More often than i'd like to hear, users ask for input forms that closely resemble Microsoft Excel, where the dimensions are layered both vertically and horizontally, and the intersection between them must contain an input or output component, allowing themselves to rapidly input the data they need or to create a web version of Oracle Reports' Matrix Report. Some cases are:
    1) The user wishes to associate the employees (located in table EMPLOYEES) to the projects (located in table PROJECTS) in a screen that lays out the employees as columns and the projects as rows in a table. The intersection between them must contain a checkbox, which will insert a third record when selected, on a table called EMP_PROJ, which associates the employees to the projects.
    2) The user wishes to input a timecard in a time control system. This system must have a screen that shows the days in the week as columns, and the projects the employee is working on as rows. On the intersection, we must provide an input text where he will enter the hours he worked on that specific project on that day.
    3) The user wishes to see a screen that shows the Open Auctions they have in a Purchasing system as rows in a table, crossed with the suppliers that have bidded on these (as the columns). The intersection must contain the price each supplier bidded on each Auction.
    As you can see, i run across this requirement A LOT =). And, as much as i have polished my "Web-Like-Applications-Are-Not-Like-This" and "You-Are-Not-Working-With-Excel" speeches, our beloved users never learn ;)
    Nevertheless, i have been looking for a consistent way to implement this behavior, and i have found some options along the way. I would like to know your impressions on this matter, and if you have any "Best-Practices" that you imagine for this case.
    CASE 1: Creating a Dynamic, On-The-Fly View Object by using ADF BC APIs and using af:table component to do the trick on the page
    PROS: Less work in the View layer, Preservation of the Table CSS Layout (very nice blue header and light brown cells)
    CONS: A LOT of work on the BC layer, creates an awful lot of View Objects, and generates tons of java code on the Application Modules.
    CASE 2: Creating the model as usual and working with repeating layouts on ADF Faces (for example, enclosing an af:cellFormat on an af:forEach to repeat each column)
    PROS: Simplifies the BC layer, making it much cleaner and maintainable.
    CONS: Loses a lot of the declarative wonders of ADF Faces and also the CSS Layouts, since we are using cellFormat, rowLayout and tableLayout instead of table tag we have to manually apply the styles to the columns and rows.
    Of course, both implementations take an awful lot of time. Any other implementation styles are quite welcome (ADF Wizards, step in!)
    Anyone wants to discuss better ways of doing it?
    Best Regards,
    Thiago Souza

    Well, you could do the following:
    1) Create a stored procedure that assembles the data into a rowset with rows and fields like the format you want.
    2) Create stored procedures that handle insert, update, and delete.
    3) Create an entity object definition with all transient attributes. Make the attributes match the elements of one row.
    4) Override doDML() in the entity object class to call your procedures (the doc explains how to do this). You might also need to do a bit of research and figure out if you need to override some other method so you can report rows with transient attribute changes only as needing posting. (getPostState(), maybe?)
    5) Create a view object definition with entity-derived attributes based on your EO attributes.
    6) Override the appropriate methods to call your data assembly procedure rather than execute a query (this is also in the doc).
    Still kind of kludgy, but it keeps your business components pretty clean, especially if you use framework classes to do most of the work for you. (I have a partial example of how to do that here.) Of course, it keeps your business components clean by moving the real work to the DB, but some people find that more maintainable that a kazillion business components.
    Hope this helps,
    Avrom

  • Proper way to embed PDF into IE6 or 7

    Does anyone know the official proper way to embed these files?
    I have seen it this way
    [code]
    EMBED src="example1.pdf" width="450" height="450" href="example1.pdf"> /EMBED>
    [/code]
    and this way
    [code]
    OBJECT CLASSID="clsid:CA8A9780-280D-11CF-A24D-444553540000" WIDTH=728
    HEIGHT=728>  EMBED SRC="manual.pdf"
    HEIGHT=728 WIDTH=728> NOEMBED> Your browser does not support embedded PDF
    files. /NOEMBED> /EMBED>/OBJECT>
    [/code]
    Any help is appreciated.
    (I had to take out all the less-than signs becase it was trying to run the actual code.)
    thanks,
    -brett

    To send an html email, you must first build a web page (with the contents you need) then send that.
    Keep in mind that a lot of people have disabled the option to get the html so they will see garbage.
    Here is a great resource for html email design...
    http://www.mailchimp.com/resources/html_email_design.pdf

  • Best way to insert pages from a document to another

    Hi everybody,
    I need to append/insert pages from a InDesign CS4 document to another one with all the content that may be present in page.
    What is the best way to implement that? I didn't find anything similar to kAddDocToBookCmdBoss.
    The optimum would be to have something like kAddPageToDocCmdBoss for better granularity.
    Thanks a lot in advance to anybody who will express his opinion.
    Luca Severini

    The Pages panel flyout menu has a "Move Pages..." action / dialog.
    It fires off several commands:
    kCreatePageFromPageCmdBoss
    cmd target is the target document
    UIDList is the source kSpreadBoss.
    IID_ILAYOUTCMDDATA document is the target doc again.
    followed by kMoveSpreadCmdBoss and kShufflePagesCmdBoss.
    Dirk

  • Best way to implement m to n relation?

    Could you please give me some advice on the best way to implement m-n relations in apex?
    Example: I want to store server and database info. A server can have multiple database of course. But in case of a RAC database, the database can be running on multiple servers. So I have tables:
    create table SERVERS (id number primary key, name varchar2(30));
    create table DATABASES(id number primary key, name varchar2(30))
    and an m-to-n table
    create table SERV_DB(serv_id number references SERVERS(id), db_id number references DATABASES(id), instance_name varchar2(30))
    So the table SERV_DB can tell me e.g. that database PROD is running on server 'prdsrv1' with instance PROD1 and on server 'prdsrv2' with instance name PROD2
    How would you design an apex page to maintain this information (adding relations, updating instance names, etc)? I have a solution using checkboxes and 2 for-loops over htmldb_application.g_f40 (to process checkboxes) and g_f41 (to process text fields with instance names) and some delete statements but the logic behind it looks too complex for me. I am convinced that this can be done more simpler. Seems like a common problem to me, so I wonder if there is no out-of-the-box solution in apex for this?
    Could you please show me or create a small demo application with the solution that looks most elegant to you?
    Thanks,
    Geert

    Thanks for your reply. You modified the question slightly, but conceptually it is still the same. What you call the instances table corresponds with my serv_db table. I understand the solution you propose using the tabular report. If I see it correctly, you would have an insert button above the tabular report for each new relation (instance - server) you would want to add. This is ok for the case i used (databases, servers, instances) because there are relatively few relations. However I would not like this solution for other cases. E.g.:
    case: you have a list of persons and a list of tasks. You want to assign tasks to persons in a way that each person has multiple tasks to do and each task can be assigned to multiple persons.
    Suppose you add a new person, and you want to assign 15 tasks to him. The solution above (with the tabular report) would be quite some work because you would have to click 15 times on the insert button and on each click select a task from the select list. In this case it would be more appropriate to, after selecting the new person, see a list of all tasks (e.g. 30 tasks) with a checkbox in front, so you can mark 15 out of the 30 checkboxes and press submit. It gets more complex when you want to assign also an attribute to the relation, i.e. showing the list with all tasks, a checkbox in front and a select list next to each task where you can choose from e.g. "priority high" or "priority low" to indicate that this task is high or low priority for that person. Is there an easy way to implement that?

  • Best way to implement an EULA popup (imprint) in RH 9

    Hello there ,
    I have a question about RoboHelp 9. The fact is my help page is divided into 2 iframes.
    A left sidebar iframe containing a navigation menu, and a right sided iframe, the main one, containing the data. (index, content, ...)
    The fact is I want, when the user load my helpdesk, to pop up a message, asking him if he agree to the legal terms of our society (EULA).
    If he answer Yes, the popup is closed, and he can navigate freely in the menu, but if he answer No, I want him being redirected on our official website.
    Is there a simple way to implement this kind of popup, with the following features :
    focus locked on the popup (the user cannot naviguate until he didn't agreed)
    the redirection have to take over the whole window, including the iframes (because if he is redirected only on the main iframe, he still can load pages from the left sidebar menu)
    I tried :
    to use BSSCPopup(), but it loses focus as I click outside the popup, and it cannot be closed properly.
    I tried to use jQuery, but RoboHelp don't appreciate the library, and reformat the code (impossible to make it works).
    I tried to use simply javascript, was the best results, as I could keep the focus, close the popup, but the redirection was always made on the main iframe, whatever I tried.
    Thus, that leads me to begging for help, 'cause I just don't get why it's that hard to implement this in RH.
    Thank you for any suggestions or help

    Actually, it is a bit more complex than you think. For example, when the user leaves the page and returns an hour later, you don't want to show the popup (overlay, because you can close a popup) again. This means that you need to save the acceptance in a cookie. The content files should also check whether the terms are accepted and whether the navigation frame is not shown. If the navigation is not shown, the content must show the EULA acceptance overlay as well.
    Note that there will be a way to circumvent this with web development tools if you are using JavaScript (just disable the overlay with the tool). Or even the possibility that JavaScript is turned off. The only reliable way would be server side scripting (PHP etc.) and RH doesn't support that. So make sure that your EULA contains some information on this possibility as well, such as a link in your topics stating that using the pages means that you accept the EULA. This may even be easier to implement, but I have no idea of the legal implications.
    You can use jQuery for RoboHelp (I've used it quite a bit.) In my experience, RoboHelp doesn't reformat the code when it is in an external script file. I use a lot of script files and I have never seen this behaviour before (though that doesn't mean it doesn't of course).
    Such a requirement is a lot of work and the best I can do on the forum is point you in the right direction.
    If you require professional support, contact me via my site: http://www.wvanweelden.eu/ and we can talk about your options. Note that this is not associated with my forum contributions nor is it in any way affiliated with Adobe.
    Greet,
    Willam

Maybe you are looking for

  • Report to show data for specific MD

    Hello, I am racking my brain thinking of a way to do this... I have some specific masterdata for example Product 1,2,3...10 and i also have a cube where any Actual & target sales are recorded I need a way of producing a report whereby the report show

  • Webapp XML error

    So it seems this a bit of a unique problem. I have a webapp called XMLedittest which checks a users XML file format for them and returns results. This web app works fine when run only by 1 user at a time. However when multiple users run this webapp i

  • Building Combined analysis reports

    Hi, I am new to Oracle Crm on demand and I working on building reports. I have a requirement where I require to create a combined analysis report but I completely don't understand how to display records in a single row. I am using a pivot table to di

  • IPod will not sync with my iTunes

    Hopefully someone can help me with this. I just synced my iPod classic 80GB to my iTunes and it only gets to about the 80th song when the iPod stops syncing with iTunes but iTunes is still syncing with the iPod. I then get a message saying that The d

  • Flash player not recognized

    I am running Windows 8.1 64 bit.  Whenever I try to view something that requires flash player I get a message that Flash player is not installed, or it needs to be updated. I've explored the flash player help site and tried everything there.  When I