Best as3 approach for this website...

Hi everyone!
This post will be a little bit long and I thank you in advance for the patience and help. Sorry for any (or all) English errors. I'm brazilian.
Well, I want to reconstruct a website I have but now using as external .swf and .as files as I can. Also I need to change the way it works.
I have problems with loaders but I'm decided to dive into the subject and put it into practice here, for the first time.
The website will be really simple and here I have a scheme I just made to help you understand what are my doubts.
How this is going to work?
- When the user clicks a button, the current section will slide out (maybe unload?) while  the new section slide in. This is the basic functionality.
- The website will have a home page when the user clicks the company logo.
- In the scheme you see all 4 sections but only one will be visible. The others will be hidden by a  mask.
To start, I guess the best thing I can do is built each section in a separeted .fla file to have 4 external .swfs to load.
Then I thought about loading all 4 sections inside a sprite container. Then, "onSectionClick" slide the sprite to the right X position to show the correspondent section.
Now, what's the best approach to achieve that? The obvious is that each section should load only when the user clicks a button. Should each seaction has its own loader? When is the user going to see the message "loading section" or progress bar? Should I slide the section in onLoadingComplete or should I slide it in and show the message/progress bar? Should I unload the current section when that slide out?
I also thought about working with two sprites. One to loadSection and slideIn and another to load another section. Then, onSectionClick the currentSprite slideOut while the other slideIn and on background the first sprite unloads its content, change its X position and get ready to load another section when requested.
I think that's all.
I have this thing working but it's terrible because all sections load at once and there's no loading progress or whatsoever.
And thanks again!

thanks kglad!
So every section will become a distinct part of the site.
I was really thinking about making every section an external .swf instead of exporting movieClips from stage (linkage option). Which one is better?
As I said, Andrei helped me with the loading process. Actually he's still helping me but with what he already taught me I think I'll be able to do the loading thing.
Anyway, to make my life easier, imagine that all sections will tween to stage from the right side of it... to do that I'll have an onLoad method that will run when the loading process has finished. This method will call other two methods, slideOut and slideIn.
slideIn will only bring the loaded .swf loader on stage (from the right side) while the slideOut will push the current .swf out of stage (to the left side), unload it and finally be positioned at the other side of the stage (right) to receive the next section when requested?
Is this the best way to do this?
I think this is so confusing that not even you will understand what I'm trying to say.

Similar Messages

  • Design Patterns, best approach for this app

    Hi all,
    i am starting with design patterns, and i would like to hear your opinion on what would be the best approach for this app. 
    this is basically an app for data monitoring, analysis and logging (voltage, temperature & vibration)
    i am using 3 devices for N channels (NI 9211A, NI 9215A, NI PXI 4472) all running at different rates. asynchronous.
    and signals are being processed and monitored for logging at a rate specified by the user and in realtime also. 
    individual devices can be initialized or stopped at any time
    basically i'm using 5 loops.
    *1.- GUI: Stop App, Reload Plot Names  (Event handling)
    *2.- Chart & Log:  Monitors Data and Start/Stop log data at a specified time in the GUI (State Machine)
    *3.- Temperature DAQ monitoring @ 3 S/s  (State Machine)   NI 9211A
    *4.- Voltage DAQ monitoring and scaling @ 1K kS/s (State Machine) NI 9215A
    *5.- Vibration DAQ monitoring and Analysis @ 25.6 kS/s (State Machine) NI PXI 4472
    i have attached the files for review, thanks in advance for taking the time.
    Attachments:
    V-T-G Monitor_Logger.llb ‏355 KB

    mundo wrote:
    thanks Will for your response,
    so, basically i could apply a producer/consummer architecture for just the Vibration analysis loop? or all data being collected by the Monitor/Logger loop?
    is it ok having individual loops for every DAQ device as is shown?
    thanks.
    You could use the producer/consumer architecture to split the areas where you are doing both the data collection and teh analysis in the same state machine. If one of these processes is not time critical or the data rate is slow enough you could leave it in a single state machine. I admit that I didn't look through your code but based purely on the descriptions above I would imagine that you could change the three collection state machines to use a producer/consumer architecture. I would leave your UI processing in its own loop as well as the logging process. If this logging is time critical you may want to split that as well.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Had a windows computer with my element 7.  Now just bought a Mac OSX   version 10.9.2 what would be the best photoshop elements for this machine.  I did download elements 12 from Apple store but kept getting incompatible message when trying to open a phot

    I thought elements were simple but maybe it is just me.  Having problems moving photos from iphoto to elements

    Duplicate post; see:
    had a windows computer with my element 7.  Now just bought a Mac OSX   version 10.9.2 what would be the best photoshop elements for this machine.  I did download elements 12 from Apple store but kept getting incompatible message when trying to open a phot

  • Message: "Adobe Reader blocked for this website"

    When I try to open a pdf file a message appears "Adobe Reader blocked for this website". i then click the little arrow and another window pops up and it reads: "Do you want to trus the website www.........com to use the Adobe Reader plug in? And when I click "Trust" I can then move on to my PDF Download. This was never an issue before and wonder how I can rectify this? Does it have something to do with a 'plug in'?

    What browser?  On what OS?

  • Windows Media Player Extension "Add-on for this website failed to run" except for Administrator

    This is on a Windows server 2008 r2. I am trying to allow users to watch help videos at a vendor site. If I remote desktop using the Administrator, I can play the videos and if I check the "manage add-ons", I see Windows Media Player as an extension.
    If I remote desktop on as a "normal user" and try to view the same video, I get the error message "An add-on for this website failed to run" and if I check the "manage add-ons", Windows Media Player extension is not there. That
    makes sense, since if it is not there, it won't run.
    Why isn't Windows Media Player extension showing up in IE 10 on the server for anyone other than Admin? How could I make this work? If I am somehow preventing this from taking place, where would I go on the server to change that?

    Hi,
    Have you try adding this video website into trusted sites zone or compatibility view list?
    Generally, improper security settings may casue failure to run some add-ons. So, please attempt to  decrease  security level for Internet Zone to check if this issue still occurs.
    How do you think your issue is related to Windows Media Player extension? Based on my knowledge, Flash player plug-in can lead to the problem. Please reinstall your flash player for the current user.
    Also, Please check in event log for more clues.
    Andy Altmann
    TechNet Community Support

  • How can i undo "never for this website" on iTouch

    On my iTouch, i incorrectly selected "never for this website" when entering a website password.  is there a way to undo that so i can save the password?

    Success!  I finally got the save password prompt to return for the website I wanted by ALSO clearing HIstory, Cookies and Cache (from Settings>Safari>Clear...History, Cookies, Cache. This was after clearing the auto-fill as recommended by lllaass above.  After clearing the auto-fill, I discovered a stored password was still available at another website so then I tried clearing the other items.  - VW49

  • I would like to build a desk top computer for video editing, business management and online learning and also have a small compatible laptop or tablet or ipad to take to university, Can someone please advise me of the best set up for this?

    I would like to build a desktop computer for video editing, business management and online learning and also have a small laptop, tablet or ipad to take to university, Can someone please advise me of the best set up for this?

    Let's see if I understand this...   You're asking for advice on building a desktop computer, in the Apple developer's forum?  Why not just buy a Mac?

  • Accidently pressed "Never for this website", how to remove?

    I use the auto fill feature to remember login information for many sites. Recently, on one site (aol), when posting an alternate login, I accidently pressed the "Never for this website" when asked to save the alternate login information. Now, the site will not remember the original login information. How do I remove the "Never for this website" designation for this site, so it will remember the login in again?

    I'm not using 10.5, but the fix should be very similar.
    Open Keychain Access and in the search field, type aol. You should see a list of all keychains for aol. The one for aol.com should say "Passwords not saved".
    Delete that keychain.
    The next time you visit aol.com, you should get the option to save the the login info.
    Should you later wish to not save an alternate login info, choose "Not at this time" instead of "Never...".
    Hope this helps.
    Lee

  • I use Safari as my browser. When on a site and I click on a PDF file I get a black screen and a notice that "Adobe Reader blocked for this website". However, this does not happen if I use Firefox.

    I use Safari as my browser. When on a site and I click on a PDF file I get a black screen and a notice that "Adobe Reader blocked for this website". However, this does not happen if I use Firefox.

    Back up all data before making any changes. Please take each of the following steps until the problem is resolved.
    Step 1
    If Adobe Reader or Acrobat is installed, and the problem is just that you can't print PDF's displayed in Safari, you may be able to print by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar may appear under the cursor. Click the printer icon.
    Step 2
    There should be a setting in its preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
    Step 3
    If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
    Safari ▹ Preferences... ▹ Security
    and check the box marked
    Allow Plug-ins
    Then click
    Manage Website Settings...
    and make any required changes to the security settings for the Adobe PDF plugin.
    Step 4
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    Step 5
    The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others — I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
    Step 6
    Do as in Step 3 with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari.

  • Best approach for this problem

    Hi there Experts,
    I have an Async Sync Bridge BPM, to go from Delivery Idocs to Webservice Calls, after that i map the response to a an ALEAUD Idoc structure and i send it back to erp to update the Delivery Status.
    Currently its working as intended on production system, but the Deliveries quantity is growing exponentially, raising the response times for the whole process.
    I found a solution for this problem, instead of making 1 Webservice call for each delivery, i can group those deliveries and send multiple deliveries per each webservice call, the problem i have appears when i need to map this response to single ALEAUD Idocs.
    To Update the original delivery Idoc i need that idoc number onto the ALEAUD, but the webservice returns the response based on delivery number, therefore i need a mechanism, maybe a temporal table or something, that allows me to store the idoc number with the matching delivery number so i can use it as reference to map the huge response to single ALEAUD Idocs, also i'd like to know if this is possible to achieve using graphical mapping or wich would be the best way to do it.
    Thanks for all the input on the matter,
    Regards,
    Roberto.

    Maybe you can write 2 RFC function modules to maintain values in ECC and the other to read it. These RFC's can be called from within mapping.
    I dont know if it will work or not, but can be tried.

  • What is the best design pattern for this problem?

    No code to go with the question. I am trying to settle on the best design pattern for the problem before I code. I want to use an Object Oriented approach.
    I have included a basic UML diagram of what I was thinking so far. 
    Stated simply, I have three devices; Module, Wired Modem, and Wireless Modem.
    In the Device Under Test parent class, I have put the attributes that are variable from device to device, but common to all of them.
    In the child classes, I have put the attributes that are not variable to each copy of that device. The attributes are common across device types. I was planning to use controls in the class definition that have the data set to a default value, since it doesn't change for each serial number of that device. For example, a Module will always have a Device Type ID of 1. These values are used to query the database.
    An example query would be [DHR].[GetDeviceActiveVersions] '39288', 1, '4/26/2012 12:18:52 PM'
    The '1' is the device type ID, the 39288 is the serial number, and the return would be "A000" or "S002", for example.
    So, I would be pulling the Serial Number and Device Type ID from the Device Under Test parent and child, and passing them to the Database using a SQL string stored in the control of the Active Versions child class of Database.
    The overall idea is that the same data is used to send multiple queries to the database and receiving back various data that I then evaluate for pass of fail, and for date order.
    What I can't settle on is the approach. Should it be a Strategy pattern, A Chain of Command pattern, a Decorator pattern or something else. 
    Ideas?

    elrathia wrote:
    Hi Ben,
    I haven't much idea of how override works and when you would use it and why. I'm the newest of the new here. 
    Good. At least you will not be smaking with a OPPer dOOPer hammer if I make some gramatical mistake.
    You may want to look at this thread in the BreakPoint where i trie to help Cory get a handle on Dynamic Dispatching with an example of two classes that inherit from a common parent and invoke Over-ride VIs to do the same thing but with wildly varying results.
    The example uses a Class of "Numeric"  and a sibling class "Text" and the both implement an Add method.
    It is dirt simple and Cory did a decent job of explaining it.
    It just be the motivation you are looking for.
    have fun!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • What is the best MVC approach for designing Swing application

    Hi...
    I am designing an client/server application. In this I am using java swing for the front-end development. We decided on using MVC approach for the front-end design. I found that there are more than one approachs for designing in MVC.
    Which is the best way to model. To create your model taking View into consideration or Creating the Model taking the tables into consideration.
    Can anybody give help me out in this this is urgent. Thanks
    sai

    I'm not sure what you are asking, so I'll just ramble a bit and hope it helps.
    Create your model taking the view and the data into consideration. :-)
    Design a class to hold instances of the rows in your database that correspond (more or less) to the structure of the data. Add any needed methods to that data object to support the data that you might need for the view.
    For example, suppose your database stores a name in two columns (firstname and lastname). You pull that data from the database into a collection of Person objects into your model. Your Person class has two fields (and set/get methods) to hold that data. Now, in your view, you want to display the name as one string, so add a method to the Person object to get the full name (just by concatenating the two data elements).
    You have to take everything into consideration. How you are going to view the data as well as how it might be structured.

  • Disable prompt for "This Website wants to install the following Add-on: Java on Windows 7 x64 SP1 IE 10

    Sorry if this is the wrong place to post this-Didnt see any forum or I missed it for Internet Explorer.
    Here is my problem,  We have uses that are running a webpage that is trying to install an older version of Java, The workstation has the latest version of Java, BUT the webpage seems not to care, and wants to put a older version.
    Is there a way I can disable this:
    "This website wants to install the following add-on: 'Java SE Runtime Environment.....'.
    We have uses that will click on the Install button, and thus compromising the workstation.
    Thanks.

    Hi usgrcm,
    This is a security feature if IE and is not tied to whether or not you have a sight “allowed” to use an add-on.  It behaves in this manor to help protect you against malware. Disabling this notification is not a good choice .
    Have you tried to reinstall the Java software to have a check ?
    There is a possibility the present installation has corrupted .Please restart the machine after reinstalling the software.
    "BUT the webpage seems not to care, and wants to put a older version."
    We can try to install the old version to have a check.
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Best practice approach for seperating Database and SAP servers

    Hi,
    I am looking for a best practice approach/strategy for setting up a distributed SAP landscape i.e separating the database and sap servers. If anyone has some strategies to share.
    Thanks very much

    I can imagine the most easiest way:
    Install a dialog instance on a new server and make sure it can connect nicely to the database. Then shut down the CI on the database server, copy the profiles (and adapt them) and start your CI on the new server. If that doesn't work at the first time you can always restart the CI on the database server again.
    Markus

  • Can anyone describe the workflow for this website nav?

    Here's the url:
    http://www.hypertemplates.com/templates/11195.html
    I'm trying to create a similar nav system for my website, I'm
    not concerned with the search features, but I just want the top nav
    portion to have all the elements "fly into place" after loading,
    then have the main pic have some animation that loops with animated
    buttons such as the one in this template. I know this is a
    subjective question, since there's probably many ways to accomplish
    the same task, but I was curious to hear how different people would
    go about building such a thing before I start. Also, does anyone
    know where to get some simple, non-obnoxious click sounds for
    buttons (kind of like the ones in this template, maybe even more
    non-obtrusive)?
    Thanks everyone, have an awesome new year!

    Here's the basic gist of how I'd do it:
    1) Create your nav, make sure each button is it's own symbol.
    2) Select all the nav items, right click, distribute to
    layers
    3) Select all the keyframes for each nav item layer on frame
    1, and move to some location where the nav will start to fly in
    4) Still dealing with the nav item layers, select a column of
    frames say 10-20 frames beyond where the keyframes are, press F6 to
    add keyframes
    5) You now have two keyframes, start and end point. Scrub the
    timeline to where the first keyframe is, and
    a) Move them to the right, say 50px
    b) In Properties panel, change the Color mode to Alpha, and
    set to 0 or a small value, like 10
    6) Now scrub the timeline to where the end keyframes are,
    select all the nav items on stage, and make sure it appears as you
    will want it to(since you already added the keyframe, it should be
    100 alpha and in the right place)
    7) Select a column of frames between the start and end
    keyframes for the nav item layers
    8) In the properties panel, for Tween select Motion
    9) Add some ease
    10) At this point all nav items zoom in at once. Now simply
    go through the timeline and take each tween and move it to the
    right a few frames, so one will come in after the other
    For the looping animation picture, put some animation inside
    of a MovieClip symbol, it will loop when on the main timeline. Now
    you can just fade in/animate in the MovieClip initially.

Maybe you are looking for

  • For loop prob - PLEASE HELP!

    I am having problems with a for loop. This for loop is nested within some other for loop. the problem I'm having is that the for loop executes once and then exits to execute the outer for loop. my initial reaction was that my condition (in the for lo

  • My colors are off in one Photoshop, but not another.

    I'm illustrating a book and working at both home and the office. At work, my Photoshop CS5 shows the correct colours, but when I export the file in any way, or open it up on my home version of Photoshop CS6, the colours show up much redder and vibran

  • How do I restore an application icon to my desktop on my iPhone 4S?

    I downloaded an app and it was accidentally deleted from my desktop. Now the only way to open the app is through the App Store under purchased apps. I can't figure out how to get it back onto the desktop.

  • Eclipse build not working

    Hello, I am using Eclipse and everytime I try to do a Project -> Clean -> OK (with start build automatically checked), eclipse shows the build status dialogue box, and says it completes the build, but during the build it does not say "compiling" whic

  • Like what I did, but can't remember how I did it.

    I'm new to PSE 8, so I'm just playing around with the software.  I edited a picture in the Enhance, then Adjust Color then Replace Color menus after creating a Layer.  It somehow changed it to look Andy Warholish.  The original white background and m