Can you use a flex application as part of a whole web page?

Hello all,
Have a quick question. I am coming over from a flash developing background, and I commonly used smaller flash files as 'part' of a entire web page.  For example, a small flash video player section with a combo box to select the video to play; this swf file would be sized at about 600px wide by 400px high. Then I would just put that in a div tag and add it to my web page.  I am trying to do this with flex, but I am running into issues. It seems that the actual published swf wants to run at 100% of the browser window size. I tried adjusting these dimensions; first trying within flex in the <application> height and width props, but that didnt do the trick; then tried to just use the published .swf file in the web page, and set its <object> properties to my required height and width, which 'almost' works but still falls apart when the video player's full screen button is pressed.
So, is it possible to use a flex 'app' as part of a web page, or was flex intended to run on its own and 'not' as part of a web page? Thanks in advance!

You definitely can. I typically drop the Flash/Flex app into a "mainContent" div within my larger page structure, so my page would look something like this:
<html>
<style type="text/css">
     #mainContent {height: 600px; width: 900px;}
</style>
<body>
<div id="topNav">BLAH</div>
<div id="sideNav">BLAH</div>
<div id="mainContent">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
            id="MyFlashApp" width="100%" height="768"
            codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
            <param name="movie" value="MyFlashApp.swf" />
            <param name="quality" value="high" />
            <param name="bgcolor" value="#FFFFFF" />
            <param name="allowScriptAccess" value="sameDomain" />
            <embed src="MyFlashApp.swf" quality="high" bgcolor="#FFFFFF
                width="100%" height="100%" name="MyFlashApp" align="middle"
                play="true"
                loop="false"
                quality="high"
                allowScriptAccess="sameDomain"
                type="application/x-shockwave-flash"
                pluginspage="http://www.adobe.com/go/getflashplayer">
            </embed>
    </object>
</div><!-- close mainContent -->
</body>
</html>
Note that I'm only using the HTML approach, but the Javascript should work just as well. With the flash set to width=100% and height=100%, it will fill the enclosing div, but that's it. So, if you wanted to make this expand vertically but not horizontally, just set your CSS style to height: 100% and leave width a px or em value. Note that the enclosing divs (i.e. if you had a wrapper div around the navs and mainContent) would also have to expand/contract.
I don't know about the effects of going full screen, though.

Similar Messages

  • Can you use BBB iplayer application with Apple Tv

    Can you use BBC iplayer application on Apple TV. I live in Spain

    The iPad/iPhone need to be on the same section of the network as the Apple TV. connect the Apple TV to the wireless router instead of the AT&amp;T router. If you can, connect the other devices as well...

  • What DataGrid Can be used in Flex application

    Hi All,
      I need to call a webservice in Flex application. My webservice output would vary depending on the input.ie., it might return 10 rows or 100 rows etc.
    For the above scenario the standard datagrid cannt be used as rows and columns are statically defined.
    I want to develop a custom datagrid component where no.of rows and columns will be added automatically based on the no.rows its returning in the webservice.
    Could anybody tell me the code to create a custom component for Datagrid?
    Thanks&Regards
    Sireesha.
    Edited by: sireesha esukapalli on Dec 2, 2008 7:11 AM

    Hi,
    396696-001 is "HP MOTHERBOARD FULL-FEATURED 915GML PAVILION DV4000 INTEL" Based on the following manual:
      http://www.hp.com/ctg/Manual/c00481822.pdf
    It supports:
      Intel Pentium M 2.00-, 1.73-, 1.60-, or 1.50-GHz processors or Intel Celeron M 1.50-, 1.40-, or 1.30-GHz processors.
    It may support the whole family but you need the right BIOS for it.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How can I use Automator or AppleScript to get text from a web page and paste it in execl?

    I don't know how to make scripts or complexed automator workflows... that's why I'm asking.
    I'm trying to make a simple app or script to ask me what text to extract from a web page, like name, address and phone number of a web page and paste each one of these data in the righ cell of excel.
    I was thinking to promt a request from automator or an applescript to ask me which text to extract from the page or to look throught the HTML of the page to search for specific html tags, from which extracting text and then importing it, or paste it to the specified execl cell. Name in the name cell, address in the address cell and so on.
    Can somebody help me to make this script?
    If you know an alternative, like a software that already do this or another language to use, please tell.

    Try holding down the alt key as you mark the text to be copied. You can then copy columns to table text.

  • What application can you use to open a file with the .acc extension?

    What application can you use to open a file with the .acc extension?

    http://www.fileinfo.com/extension/acc

  • Can you use an application in hyper-v environment in Windows server from each client computer or that is not possible?

    hi,
    I like to know besides running 2 or more operating systems,like exchange or SQL  ect .
    what other benefits it has for example when you install 2-3  applications in t hyper_v environment can you use those applications from each client computer or that is not possible at all. ( I don't mean cloud )
    thanks
    johan
    h.david

    thanks,
    so , now what is the benefit of hyper-v role on essential 2012r2 .  it that means that I can install only one operating system on it only one instance and no more. also I can run some applications on this server  just like you say with RDP licence
    for each user to acces this virtual server!
    and if I want more instances then I have to get datacenter.
    johan
    h.david

  • Can you use the same Apple ID on more than one MacBook Pro for updates and applications?

    We just got a few new MacBook Pro's and when I went to install updates it said I need to make an Apple ID.  Can you use the same Apple ID and email address for that Apple ID on multiple machines, or do I need them both to be unique per machine?  I'm not sure how that works when you have multiple machines.

    An Apple ID is a user name you use for everything you do with Apple. Creating an account for an Apple service, such as the iTunes Store or the App Store, creates an Apple ID. Apple ID allows you to access other Apple services.   So you can use the same Apple ID for up to 10 Macs associated with it.
    To create an Apple ID you need to enter  your full name and your primary email address as your Apple ID. This will be used as the contact email address for your account.

  • How can we handle in flex application if the server is down?

    how can we handle in flex application if the server is down?

    You and me both. 
    As ambiguous as the original question was, I think he was just asking how to handle a server exception and I would suggest generally just using a Alert.show("your specific message (eg.  The server is currently unavailable)") in the place where you handle the fault return from your service or http call.  I'm sure there are more complicated messaging frameworks or approaches, but that seems to be enough for my apps.

  • How can you use symbols in Windows 7 on a IMac 27

    How can you use symbols @$€%£¥ in Windows 7 on a IMac 27 mid 2011?  I tried what was normally done on Windows and got nothing.  Alt plus numbers and nothing happens, what am I missing?

    Frosted Flake,
    Are you referring to an equivalent to the Windows Character Map Application (charmap.exe) that allowed you to see the various characters available in each font, and then give you an ALT-nnn number you could key to use the character you wanted ?
    If so you can use the Special Characters from the Edit menu of most applications. Once you have located the character/symbol you want double click it and it will be entered wherever you cursor is located in your application.
    Further information can be found here :
    http://support.apple.com/kb/PH3871
    Hope this helps
    Cheers
    AF

  • Can you use a soft tip stylus type pen on an IdeaTab A1107 Tablet screen?

    I recently purchased an IdeaTab A1107 Tablet, which I believe is the same as the IdeaTab A1, just with the Android 4.0 OS.  My wife is having trouble always hitting the correct buttons on the screen (7" screen).  Can you use a soft tip stylus type pen or other stylus on an IdeaTab A1107 Tablet screen?  Would that be easier than tapping the screen with your finger?
    Thank You ........
    Solved!
    Go to Solution.

    You can use a stylus that's sold as being designed to work with "capacitive screens" - not just any stylus will do.
    You can also use any conductive object as a stylus on the A1 screen, as long as your skin is touching the part of the object that is conductive.

  • I had Iphoto 08 and now is gone, I have under applications and is not there. Also most of the pictures are gone. Can you easily delete the application?

    I had Iphoto 08 and now is gone, I have looked under applications and is not there. Also most of the pictures are gone. Can you easily delete the application?

    Obviously you can.
    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store or have a Recent Mac you can find it in your Purchases List.

  • I WANT TO BUY A MAC BOOK PRO. MUST I WAIT FOR THE ONE WITH RETINA DISPLAY. WILL THE FACT THAT THERE IS NO CD ROAM BE A PROBLEM. CAN YOU USE A EXSTERNAL CD ROAM ON A MAC?

    I WANT TO BUY A MAC BOOK PRO. MUST I WAIT FOR THE ONE WITH RETINA DISPLAY. WILL THE FACT THAT THERE IS NO CD ROAM BE A PROBLEM? CAN YOU USE AN EXSTERNAL CD ROAM WITH A MAC?

    Apple will gladly sell you a color coordinated and texture matching external SuperDrive to go with your Retina'ized MBP for about $80 bucks.
    Note that those models are completely sealed with no serviceable or upgradeable parts inside. So if you decide to bite the bullet, be sure to customize its guts to your heart's content from the get-go as no further change will be possible. This means CPU speed, amount of RAM and size of the solid state drive. Other external options, like the Superdrive, can be added later.

  • Can you use an Irish bought ipad in Australia?

    Can you use an Irish bought ipad in Australia?

    Yes as long as it is not part of a carrier's  package deal
    best to buy from Apple 
    Depends on model but 3G will be fine
    only the iPad version 4 has the capability to work on 4G in Australia

  • I can't use my Mail application on my  10.6.8 Snow Leopard Mac

    I can't use my Mail application on my  10.6.8 Snow Leopard Mac.
    Any suggestions?

    iCloud is not supported on 10.6.8, the minimum is Lion 10.7.2.
    You can make mail work by manually entering the account however:

  • Can i use the maps application already existing on my i phone in an offline mode?

    can i use the maps application -already existing in iphone 4- in an offline mode?

    No. It downloads the maps as it needs them.
    A very small portion of the map is cached in memory when offline, so you can see the last area you looked at, but as soon as you want to move the map, or look elsewhere it will need an internet connection to download from Google.
    There are standalone map apps available in the AppStore if you search for the area you want.

Maybe you are looking for