How to structure an OOP flash website?

Hi all, just getting my feet wet with OOP and actionscript
and wanted to find out it there is any tutorials on how to
correctly stucture an object oriented website without using any
timeline code (all based on class files)?
Thanks in advance,
Jake

Hi Kglad,
Of course i tried a few google searches before typing out
this post! Maybe you could be more specific on the exact keywords
used as it have tried the following searches "structure flash
object oriented website", "flash object oriented website", "oop
flash site" but unfortunately they didn't bring up anything of use.
Hence the reason why i posted this question (isn't this what the
forum for? i'm sure you could answer every post on this forum with
that response).

Similar Messages

  • How do you structure a full flash website without the timeline?

    Hello there. I was wondering how to build and structure a full flash website using the OOP approach. I have an idea of how to structure an application using the MVC design pattern, but I cannot put things together in order to structure a whole website.

    I'm nowhere near an expert on this topic, and I suspect that the overall purpose of your site would help guide the best approach to designing and developing it without the timeline.  I've done a lot of this with Flash for a limited purpose - creating a client clip that has only one frame, but responds to user events with dynamic behavior.  My suggestion would be to take a look at some of the books that cover this topic to get a better idea of exactly how you'd like to deal with this project.
    Two books are in my library that cover this topic - ActionScript 3.0 Design Patterns by Sanders & Cumaranatunge, published by O'Reilly & Associates, check it out at http://www.amazon.com/ActionScript-3-0-Design-Patterns-Programming/dp/0596528469/ref=sr_1_ 1?ie=UTF8&s=books&qid=1254149170&sr=8-1   as well as Advanced ActionScript 3 with Design Patterns by Lott and Patterson which can be found at http://www.amazon.com/Advanced-ActionScript-3-Design-Patterns/dp/0321426568/ref=sr_1_3?ie= UTF8&s=books&qid=1254149170&sr=8-3
    Both books have a chapter on implementing an MVC design pattern with ActionScript and provide some basic examples you can build on.  Sorry to be so meager in responding, I hope this might help a bit.  Good luck!

  • How do I create a flash website with multiple urls?

    I am not great at flash and am making a website that has a few different tabs for different pages.  How do I make different urls for each page?  I want to track each page seperately.
    Thank you.

    use getURL() (as2) or navigateToURL()  (as3).

  • Can someone explain the structure behind this common practice in most flash websites?

    I'm kind of a newbie with flash. I havent used it in a long long time and when I was using it, I wasnt really fully understanding what I was doing at the time. Anyways, it's been like 10 years now and I have to use it to make a website, but I can't figure out how others are doing this specific thing. I understand the basic concept of how flash works with making a website, and I've even built a very basic website with audio/video and mouse interaction, but now I want to step it up. I've seen many flash websites before and some have a lot of things going on at once and I'm wondering how you implement that smoothly while still allowing mouse interaction and navigation. I know this sounds confusing but basically, what I mean is:
    let's say I have a website and on the website I have buttons that lead to different pages(frames) when clicked. On the main page I have something like a bird that flies from left to right. Let's say that the bird is in the middle of the screen and a user clicks a button. How do I make it so that the bird continues to fly off screen before switching pages? Obviously, I cant tell what the location of the bird will be when the button is clicked since it will vary from user to user so I am completely confused on how to structurally set this up. Would the bird be it's own swf embedded in the main swf? Or is this feature a massive keyframing project for every frame of animation that bird has?
    Also, how do have multiple animations that run on different clocks looping simultaneously? What I mean by this is, lets say the previously mentioned bird has a 25 frame animation loop and a second element, like a sunrise/sunset has a 30 frame animation loop... how do I loop both of them so that they loop seemlessly at the same time? Will I have to animate both of them in a loop until both reach a common frame (150 frames from 6x 25frame bird loops and 5x 30frame sunrise/sunset loops)?
    Thanks,
    MorisatoKei

    You will have to experiment to see what works well and what doesn't.   You can have things animating along a timeline in parallel, but you can also have them be their own movieclips and animated when commanded to play().
    In the case of your bird flying off before a button click is processed, you could manage that as follows.  Have the button set a variable that is defaulted at false to be true.  At the end of the bird's flight, you test that variable ( as in ... if(variable == true)...) to see if it is true, and if so, you process whatever command that button is intended for.  If you used a timeline animtion for the bird, then that test would occur at the last frame of the animation.  If you used a coded tween to move the bird across the scene, then you could use an event listener to detect the animation completed and do the test then.
    There are almost always a variety of choices for achieving the same design goal.  The key to determining a solution is knowing what tools you have to work with... and coming to know what those tools are and how to use them is where learning comes in.

  • How can I replace the Portal with completely new Flash website?

    Can I replace the Portal with completely new Flash website? My customer do not want the JSP UI. Instead, he wants a completely new designed Flash site. Is it possible to do it? How can I deploy a new portal to cover the current one?

    If you have a look at some of the code examples which do the equivalent of site maps, you could in theory replace the whole portal desktop with some sort of Flash framework which reads the user's role structure at run time.
    I think it is useful to remember that the SAP portal is primarily a business application launchpad. It does that very well. Trying to make it into a Flash launchpad will be challenging.

  • How do I use Brige Web Gallery in a Flash website

    How do you use the output of a Brige Web Gallery for use inside of a Flash Website?

    Hi there -
    I'd try posting your question over in the Flash general forum. You could also try the Flash site design forum. The folks over there will probably be able to help you solve your issue

  • How do you use an Adobe Bridge Web gallery in a Flash Website

    How do you embed the output from Adobe Bridge Web Gallery into a Flash Website?

    Hi there -
    I'd try posting your question over in the Flash general forum. You could also try the Flash site design forum. The folks over there will probably be able to help you solve your issue

  • How do I add an html link/banner to a page in my flash website?

    I purchased a flash website template and am in the process of editing my main.fla file.  In order to get listed on an advertising website with a higher rating, I have to place a reciprocal link to them on my site.  However, I cannot figure out how to place an html link/banner on my site for other businesses.  If I paste the html code in a text box, all that shows up is the html code rather than the image and link it is meant to generate.  Please help!

    Flash only supports a small amount of html in text areas.  If what you re trying to include is within what it supports, then you assign the text to the textfield using the htmlText property of the TextField...
    tfield.htmlText = "<a href="...">link</a>"; // will display "link" as a link

  • How do I create a hyperlink to a specific section of a flash website?

    Ok, I have no experience coding in flash, I just want to
    create links to specific parts of a flash website (website that
    were created by other people, not that I am building). In other
    words, I just want to create the hyperlink that will open a certain
    section of the website - I'm not developing the site and I don't
    want to create links inside the site. Is there any way to do this?
    For example:
    http://www.lucasarts.com/games/fracture/
    is the flash site I want to link to. Wherever I navigate in
    the site, the address never changes in my browser. But I know it is
    possible to get a URL to a specific flash page, because I have seen
    some of the web admins post them.
    For example:
    http://www.lucasarts.com/games/fracture/?section=2&sub=5
    which opens a very specific section of the site. So is there
    anyway for me, an average computer user with no experience in flash
    coding, to get a hyperlink to open a certain section of a flash
    site, or at the least get my browser to display the specific URL
    (that is, the "?section=2&sub=5" part of the address). I use
    firefox, but am willing to try anything or any browser at this
    point.
    Thanks!

    My Flash sites use a section and subSection structure, and
    within the site I use the numbers to display specific areas. But
    it's done internally. I have no code that looks at a query string
    attached to the URL so supplying the numbers to my sites will have
    no effect. The example you give clearly does read parameters passed
    in a query string so if you know the correct numbers (and the param
    names eg 'section') then you can do it.

  • How do I add tracking code to a Flash website?

    Tracking software requires that you insert their code into the page you want to track (I'm using StatCounter).  I installed a Flash website template and it just has one .html file where I can insert the code.  That tracks visits to the first page with no problem but if a visitor clicks on different pages of the site, it doesn't get tracked.  Does anyone know how and where to add code so that each page of the Flash site can be tracked?
    Note, in my template a part of each page is found in different symbols.  For example, the first column of every page is located in a symbol called PAGES1 and the second column of every page is located in a symbol called PAGES2, and the third column located in PAGES3.  Different layers within each symbol correspond to the different pages.  So I'm at a loss of how I could get this tracking code to be able to track each page visit, since each page shares a symbol with another page.  Anyone know?

    http://code.google.com/apis/analytics/docs/tracking/flashTrackingIntro.html

  • Advice on how to keep Flash website small & fast

    Hi, I'm developing my first Flash website (I know, I know, there are plenty of reasons to use other development products, but for now it will be Flash), and I envision a site with several pages and needing to load some large graphics.  I'm doing the main design work in Illustrator and importing it into Flash.  I'm not too concerned with animation except perhaps moving some buttons around.  My plan so far is to use a lot of UI loaders to keep the main .swf small and to really try to keep the coding pretty simple as I'm a newbie anyway.  I'm looking for general advice on how to prevent the main site from loading quickly - for example, I don't have a good sense of the best format to use for graphics, or which makes the site slower: using several UI loaders or just keeping the content in the main site?  Is a lot of code or large graphics more draining on the load time?  Any thoughts on what you think I can do or not do to keep it lean would be super appreciated, or any other resources you might be able to point me to.
    Thanks in advance!

    Nah... really really stupid questions only get asked in non-Flash forums.  The size of the swf is not tied tot the size of the fla.  The fla has alot more baggage that inflates its size greatly compared to the swf it creates.  The swf will end up bearing the weight of whatever content you put in it.
    If you want to see what's adding weight to your swf, go into your Flash Publish Settings and select the option to Generate Size Report.  When you publish the file it will display a detailed report of each element and the weight it contributes to the swf.
    As far as dynamically loading swf's, it is often a necessity, unless the swf is strictly an animation.  If you import an swf into an fla file, all of the actionscript that might have been in it is stripped out.
    Code will have negligible weight in a file.  Images (large/heavy ones) can put lead shoes on a file, along with video and sound files.

  • How to integrate new Facebook social plugins with a Flash website?

    Facebook has just released a suite of social plugins which are supposed to be very simple to implement (one line of HTML is the promise, in the form of an iframe).
    However this approach is not compatible with a full flash website. The iframe will not display. Any ideas how best to implement one of these plugins?

    If the plugin is not designed for use with Flash and needs to be in an html page, then that's what needs to happen.  Normally there is no such thing as a full Flash site.  Most Flash sites are staged in an html web page, so it is possibly you can add the plugin on the same page, just not within the Flash portion.

  • How to put Skype button in adobe flash website

    how to put Skype button in adobe flash website. I got the code from "http://www.skype.com/intl/en-us/tell-a-friend/wiza​rd/" but unfortunately it can generate codes for only html websites and emails but my site is in flash and these codes are not working. Pls help me to put the Skype button on my flash website.

    Hi,
    Please refer to the following link Shopping Carts
    Regards,
    Aish

  • How Can i Use Flash Website ?

    i Want Use Flash Website ( Games Websites ) But Safari in ios7 Does Not Support Flash
    Please Help Me To Know How Can i Use Flash Websites

    IOS device do not support Flash
    However Skyfire, Photon, iSwifter, Browse2Go and Puffin Web Browser will provide limited Flash capability

  • How to add a background image to a flash website?

    Hi there.
    I've created a flash website at 960X600 pixels.
    I have a JPG image that I want to use a BG to fill the browser page.
    I can edit the index.html file. Should it be inserted there? the name of the BG is bg.jpg
    Thanks
    Gil.

    GREAT! how do I do that?
    this is the html:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title>index</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css" media="screen">
    html, body { height:100%; background-color: #ffffff;}
    body { margin:0; padding:0; overflow:hidden; }
    #flashContent { width:100%; height:100%; }
    </style>
    </head>
    <body>
    <div id="flashContent">
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%" height="100%" id="index" align="middle">
    <param name="movie" value="index.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="wmode" value="transparent" />
    <param name="scale" value="noscale" />
    <param name="menu" value="true" />
    <param name="devicefont" value="false" />
    <param name="salign" value="" />
    <param name="allowScriptAccess" value="sameDomain" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="index.swf" width="100%" height="100%">
    <param name="movie" value="index.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="wmode" value="transparent" />
    <param name="scale" value="noscale" />
    <param name="menu" value="true" />
    <param name="devicefont" value="false" />
    <param name="salign" value="" />
    <param name="allowScriptAccess" value="sameDomain" />
    <!--<![endif]-->
    <a href="http://www.adobe.com/go/getflash">
    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
    </a>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </div>
    </body>
    </html>

Maybe you are looking for

  • How to get the frame rate of my application

    Hi again... How can I get the frame rate of my application? I also want the frame rate value to be the title of the frame, updated every second. How do I do that? thanks in advance...

  • Quotation creation through DP81 Error related to Material maintain Inquiry

    Dear All, This is related to Quotation creation through DP81.I have maintain A DIP profile and as per my Easy Cost Planning (ECP) in Project System it is capturing in sales price in DP81.Please note that I have maintain three (3) line item in the sal

  • Losing pdf data after closing and reopening the pdf problem

    i have a problem with a pdf file i did with livecycle , which is when i fill the tables into the pdf opened in acrobat professional and save the file then reopen the file again i found some tables lose the data i have inserted before closing although

  • Setting up auditing for tables

    Hi Gurus, Could some one help me in setting up an auditing process for few tables on one of the schema say scott. auditing on insert,update,select and delete . I have 4 tables say for example emp, dept,org,ssn

  • QPM on Windows 2008 R2

    Is there a work around to get QPM to run under Windows 2008 R2?  There is a helper application to get LMS to run but I don't see the equivalent for QPM.  I am trying to help mock up a problem for a customer.  Please let me know.  Thanks