Flex Flash Embed Centering Problem

Hello,
I'm developing a Flash site (AS3) that has 5 sub pages (e.g.
loads 5 different SWFs). 3 of those 5 SWFs are Flex apps. When
loaded, the SWFs are to be centered in the screen. This works for
the 2 SWFs created in Flash, but when I resize the window, the Flex
ones jump to the top of the screen, breaking the structure. Not
sure how to fix this.
In the Flash site, I added:
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
var myLoader:Loader = new Loader();
myLoader.load(new URLRequest("NippesKarteApp.swf"));
mcPanelBkg.addChild(myLoader);
function resizeHandlerMain(e:Event):void
mcPanelBkg.x = (mcPanelBkg.stage.stageWidth / 2) -
(mcPanelBkg.width / 2);
mcPanelBkg.y = (mcPanelBkg.stage.stageHeight / 2) -
(mcPanelBkg.height / 2);
stage.addEventListener(Event.RESIZE, resizeHandlerMain);
stage.dispatchEvent(new Event(Event.RESIZE))
What do I need to add to the Flex apps so when loaded into a
fullbrowser Flash site, they remain centered when the browswer
resizes? Any help would be much appreciated!
Regards,
-Stefan

Adobe Newsbot hopes that the following resources helps you.
NewsBot is experimental and any feedback (reply to this post) on
its utility will be appreciated:
Flex 3 - Creating windows:
URLRequest; import flash.display.Loader; public class
LoadedSWF extends Sprite ... nativeWindow.stage property. The
addChild() method will add content
Link:
http://livedocs.adobe.com/flex/3/html/WorkingWithWindows_3.html
Adobe - Developer Center : Tips for migrating your Flash:
Apr 16, 2007 ... Tips for migrating your Flash applications
to ActionScript 3.0 ... you use the addChild method to see a
display object appear on the Stage.
Link:
http://www.adobe.com/devnet/flash/articles/first_as3_application.html
Flex 3 - Defining browser-like user interfaces for HTML
content:
NativeWindow; import flash.display.NativeWindowInitOptions;
public class .... You could, for example, remove the HTMLLoader
from the display list,
Link:
http://livedocs.adobe.com/flex/3/html/ScriptingHTMLContainer_7.html
Adobe - Flash Player 10:
Aug 4, 2008 ... Difficulty running flex 3 apps in Flash 10 -
anstmich - 07/28/2008 08:57:35 AM ... new URLRequest(path); // load
image addChild(imgLoader);
Link:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=675&threadid =1381533&enterthread=y
Flash Magazine > Tutorials > Scrolling photos loaded
dynamically:
import flash.net.URLRequest; public class Thumbnail extends
Sprite { .... (pronounced 'mah-teh') is a tag based framework used
to build Flex applications.
Link:
http://www.flashmagazine.com/tutorials/detail/scrolling_photos_loaded_dynamically_with_act ionscript_3/
Recompile 4.0 with FlashDevelop, FDT or Flex SDK:
stageWidth/stage.stageHeight, but if you embed it in your
flash pages you may want ... for not-autoscaling when in larger
apps is indeed on the todo list.
Link:
http://www.jeroenwijering.com/?thread=12078
Disclaimer: This response is generated automatically by the
Adobe NewsBot based on Adobe
Community
Engine.

Similar Messages

  • Flash slideshow display problem in IE

    Hi,
    I've just  inserted a .swf file into my (DW) site and viewed it in a number of  browers without a problem. Apart from IE which displays 'content on this  page requires new version of flash' text/image. What I'd like to know  is that is there a way for the viewer to see an alternative image  (static .jpeg for example) if they don't have the latest version of  Flash player? (rather than downloading it)?
    Thanks in advance...

    Check out these resources listed below:
    Flash
    Embed Params
    and this site for examples of the usage
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_4150
    Look at the alignment parameters and play with the settings
    through the parameters tags to get the look and alignment you are
    looking for.

  • OSMF  Flex 4 VideoPlayer sound problem

    Hi,
    It seems that there is a problem with sound in the Spark VideoPlayer in video that's been encoded in H.264.
    If I set 'autoPlay' to 'true' or start playing from the very beginning of the clip, everything works fine.
    But if I set 'autoPlay' to 'false' and start the video not from the beginning, i.e. click somewhere in the seekBar, video is playing, but there is no sound. Once I jump back to the very beginning of the clip the sound appears, and from that point I can play the clip from any section and sound is there.
    Once I reload the video, the story is repeated.
    This happens ONLY with H.264 files and does NOT happen with flv files.
    Also, I don't believe that this problem existed back in the beta version of Flex 4 (previous version of FlashPlayer 10.x.xx.xx), even after the VideoPlayer became OSMF based.
    FTQuest

    Good evening Brian,
    After installing the latest Flash Player from the Adobe labs and switching to the latest nightly build of Flex SDK the sound problem is gone.
    But I've run into another one: I make a simple OSMF player in Flash CS5 and it works fine within the Flash and also when I open the resulting SWF in stand alone Flash Player.
    Yet, when I try to open the swf from within the Flex 4 application, using mx:SWFLoader I get the following error: VerifyError: Error #1053: Illegal override of synthesizer in org.osmf.layout.LayoutMetadata.
    Any advice on that?
    Thanks,
    FTQuest
    P.S. Also, for some reasons setting the 'autoPlay' on MediaPlayer to 'false' doesn't prevent the video from instant playing.

  • Data connection between Java Webdynpro - Flex Flash Island

    Hi,
    I'm developing a Java Webdynpro with connection to a Flex Flash Island. I'm using Flex 3.2.
    I've already set up the connection from WDJ to Flex, by using Events and the FlashIsland.fireEvent method, this all works fine. Now I'm trying to update a value in WDJ, to be updated in Flex. This gives the following error:
    Error: Error #1023: Stack overflow occurred.
         at Function/http://adobe.com/AS3/2006/builtin::apply()
         at mx.binding::Watcher/wrapUpdate()
         at mx.binding::PropertyWatcher/eventHandler()
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()
         at UWLApplication/set opentask_updated()
         at MethodInfo-4234()
         at Function/http://adobe.com/AS3/2006/builtin::call()
         at sap.core.wd.context::WDContextListener/execute()
         at sap.core.wd.context::WDContext/notifyListeners()
         at sap.core.wd.context::WDContext/_set()
         at sap.core.wd.context::WDContext/set()
         at sap.wd.island::WDIsland/storeProperty()
         at sap.wd.island::WDIsland/onUpdateProperty()
         at mx.binding.utils::ChangeWatcher/wrapHandler()
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()
         at UWLApplication/set opentask_updated()
         at MethodInfo-4234()
    This is especially strange, cause before I had a refresh button in which I updated my entire item collection. Now, I have added this field and suddenly I get this error !
    Does anybody has any idea what this could mean? Any help would be much appreciated ...
    My field in Flex:
    \[Bindable\]
    public var opentask_updated:Number;
    <mx:Text id="opentask_updated_text" text="{opentask_updated.toString()}" />
    My adaptions in WDJ:
    public void getInbox( )  {
           wdContext.currentInboxElement().setOpentask_updated(0);
    public void wdDoInit()  {
           getInbox();

    Solved!
    It appeared to be a "long" parameter and I was trying to put it in a "Number" parameter in Flex (because there is no long in Flex)
    When I changed both to String, it worked!

  • Flash Player sound problems on a 5.1 system

    I don't know if i found the right topic for asking for this question, but here it goes.
    I noticed that flash player has this issue with my 5.1 system, when i play music (and i mean any music, like my online radio, played through flash, or music through the site VK.com), the sound is extremely awful. Words actually can't explain it, there is no bass, and the sound, overall, seems to be of very low quality. But it's not. When the same music is played via stereo system (any), it seems to be perfect - with bass and etc.
    Now i'm really confused. It's either a problem of flash, or a problem of somewhat in my system. My guess is that flash simply does not support audio output rather than 2.0. I will be really grateful if anyone will at least point me in the direction of the source of this problem; it makes my life miserable. Thank you.

    Is it possible to have e version of flash player like silverlight which give thepossibility to hear audio on whole 5.1 system?
    I have the following system computer:
    Case: Thermaltake Mozart; PSU: Thermaltake Toughpower 750W; MainBoard: Asrock 4coredual-sata2; Heatsink: ZeroTherm Zen120; CPU: Core2 Extreme X6800 3,2Ghz; RAM: OCZ Platinum DDR400, 2x1 GB; GPU: Sapphire HD3850 AGP; PPU: BFG Ageia; HDD1: WD Caviar Blue WD5000AAKS; HDD2: WD WD2000BB; Monitor: Asus VB175T 17" 5:4; Audio System: danneggiato, in corso di sostituzione; OS: Xp Professional Sp3; Browser: Srware Iron.

  • Help: Flash 9 - Video problem - OS X

    OS X 10.4.8
    I installed Flash 9 today, since then no more Google video.
    Browser crashes each time. Also with other sites that use Google
    video. Tried uninstall, and install Flash 8: same problem. Cannot
    get back to previous situation where everything worked fine.
    Also problem with msnbc, no video, claims plugin missing.
    Youtube works fine.

    Hi,
    folder deleted, after reinstall only the two flash files in
    the folder. Same problem.
    Worse, now Google Finance also hangs up. Spinning wheel of
    death, requires force quit. BTW, this is the same for Firefox,
    Safari, and Camino.
    If there is no solution, how can I get back to my previous
    system. The problem started when the Charlie Rose website required
    me to update flash. Before the update everything worked like a
    charm. Now problems everywhere.

  • Flash Islands Tutorial I - Confusion with Flex/Flash Builder Versions

    Hi Guys,
    i am new to the Adobe Flex/Flash Islands technology and tried to implement Tutorial I by Thomas Jung. Unfortunately i am confused by the various different versions for flex and the corresponding IDE's.
    As far as i understood SAP at the moment only supports Flex versions up to version 3.3 for NetWeaver 7 EHP1. Furtheron the Adobe Charting Components (used in the Tutorial) seem to be part of the Flex Builder Professional Version only.
    So i went to the Adobe Website and looked into the products and download areas. All i found was Flash Builder 4.5 Premium and the various Adobe and Open Source Flex SDK versions. I am using Flash Builder 4.5 as a trial right now. Unfortunately the Charting Components are not included.
    So the question i have is whether the Charting Components (e.g. <mx:BarChart /> )are included in the non Trial version of Flash Builder 4.5 Premium or whether there is any possibility to get them as an Add-On. Or do i have to use Flex Builder 3 Professional (i found no information about this on the Adobe Website)?
    Additional Hint:
    I found out that when i compile the poject with Flex SDK vesion 3.6 or higher, the compiler knows the <mx:BarChart /> tag. Also in that case the view designer is working. However FlashIslands is only supported up to Flex SDK 3.3. But when i choose 3.3 the <mx:BarChart /> tag and some other related tags are unknown.
    This is a really anoying issue.
    Best Regards,
    Dirk
    Edited by: Dirk Jäckel on Jul 19, 2011 12:14 PM

    HI Dirk,
    wtith Web Dynpro, you can only use Flex SDK version 3.3 and downwards. You can download the SDK here [http://opensource.adobe.com/wiki/display/flexsdk/DownloadFlex3]
    Flash Builder ships with Flex SDK 4.5 which is not compatible with WDA flash islands.
    As for the charts library, which Adobe referes to as the Data Visualization Component, it is also available as a separate download which can be unzipped into the same directory as the Flex SDK -- the library is available here [http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk]
    I must say I am also confused, because as far I can tell data visualization component is not included in 3.3, but SAP makes no mention of this. Hopefully someone else can enlighten us on this issue?

  • Adobe Flex & Flash

    Hi,
    I have a question about Adobe Flex. I have a project about preparing a digital content (i am planning preaper it at flash and compatible with SCORM 2004). I need to know that can i connect a content prepared with Adobe Flash CS4 to Flex?
    And if yes, how can i do it. I dont know Flex much
    Thank you.
    Nilay P.

    > I am Working as Consultant-SAP.I am creating static Forms using Adobelive
    > Cycle Designer and SAP.
    >
    > How Adobe Flex is useful to create Forms?
    Yes very.
    > Is it usefull for me if i learn Adobeflex?
    Several of us are turning to Flex for eLearning and we are finding it to be
    a great tool.
    > How will be the future with ADOBE FLEX?
    I think Adobe are commiting heavily to Flex - Flex plays on any machine with
    the latest Flash player , so that includes PC, Mac and Linux. AIR plays on
    PC and Mac today, with a Linux version under development right now. In the
    future (Open Screen Project) versions of Flex and AIR should play on mobile
    devices too.
    >
    > I have seen the article SAP WebDynpro + Adobe Flex/Flash = Enterprise UI
    > 2.0.
    > Working as ABAPer shall i shift to Adobe Flex?
    I don't really know what would be good or bad for your needs. Take a look at
    some of the sample Flex and AIR apps on Adobe.com and see if you think the
    features demonstrated are applicable to your needs.
    Steve
    http://twitter.com/Stevehoward999
    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

  • Load Flex/Flash Builder project in Flash Professional CS5

    Is there a way that I can load (or export) Flex/Flash builder project in Flash Professional CS5?
    As it turns out we got Flash Prof for our team, but it may look like we actually need Flash builder to build lots of UI related stuff..

    Specifically, I want to use flex chart in CS5. Is there a way to do this?
    Message was edited by: bart2335658
    And flex ui

  • Qn:OpenGL or similar support in Flex/Flash?

    i am to develop an engineering simulation application that
    runs on web as well as on destop. i am exploring the possibilities
    of using Flex/Flash, & AIR. but i am not getting any
    information on support to OpenGL or similar thing by
    Flex/Flash/AIR. my application will have a graphic window to show
    lines, curves, etc in 3d view. It should also offer pan, zoom.
    rotate etc functionality.
    can Adobe give me all these functionalities?

    The Macintosh implementation of the Flash Player on MacOS X
    10.2+ since Flash Player 8 uses OpenGL hardware acceleration.
    In Flash Player 9 Upadate 3, OpenGL is used for hardware
    acceleration of the fullscreen mode on the Mac.
    On PC, the fullscreen mode uses Direct X.
    So, you can't directly access OpenGL functions but new
    releases of the Flash Player like Astro (Flash Player 10) will use
    it more and more for hardware acceleration of 2D and 3D rendering.

  • Can't log into Adobe Story on windows 7 after installing flash player10. no problems w/win98 @work.

    Can't log into Adobe Story on windows 7 after installing flash player10. no problems w/win98 @work.

    I downloaded Adobe air and the desktop app for story and can get online from that. Thanks anyway. T

  • Director MX 2004 + Flash MX 2004 - Problema con formulario flash con combos dentro de director

    Buenas,
    He desarrollado una aplicacion con base Director, que lleva
    dentro un
    formulario flash con varios combos tirando del componente
    combobox del
    mismo. Hasta ahora lo habia usado en otras aplicaciones con
    una integracion
    similar sin problemas, pero en este caso me ha surgido algo
    realmente
    extra�o, esto es, si pulso muchas veces en los combos
    hay momentos en los
    que estos se vuelven locos y se quedan como colgados (de
    hecho la aplicacion
    esta como colgada cuando pasa esto). Esto pasa mas a menudo
    en windows 2000
    por no decir la mayoria de las veces, y en XP pasa en
    determinadas
    circunstancias. He probado a quitar el direct to stage del
    sprite flash,
    ademas de quitarle la "animacion" que realiza al desplegarse,
    y creo que en
    xp el problema esta resuelto, pero en win 2000 me parece que
    estamos en las
    mismas.
    El problema es que necesito combos para ese formulario, y no
    me valen los
    que trae Director por defecto, basicamente por el aspecto.
    Tampoco puedo
    permitirme el lujo de cambiar todo el formulario a Director
    aunque usara un
    xtra o un behavior, ya que esto lo entrego ma�ana y
    tengo que matizar mas
    cosas. Alguien ha hecho algo parecido, o ha tenido un
    problema similar?
    Muchas gracias y saludos a tod@s

    Buen dia, el problema que tienes radica en la version de xtra
    que
    utiliza director para mostrar la info que hasta el momento
    esta en la
    version 7, lo que debes hacer es exportar los ficheros a una
    version 7y funcionaran perfectamente.
    "Tony" <[email protected]> escribi� en el
    mensaje
    news:e85ovc$s0j$[email protected]..
    > Buenas,
    >
    > tengo una aplicaci�n hecha en Director MX que
    necesita abrir ficheros
    > flash. El problema radica que si estan hecho con la
    versi�n 8 no me los
    > abre. Alguien sabe por qu�? en PC tengo instalado
    la �ltima versi�n del
    > Flash player.
    >
    > Salu2 y gracias de antemano.
    >
    >

  • Will Macbook Air(2012) with 256G storage flash have storage problem

    Will Macbook Air (2012) with 256G storage flash have storage problem described in "MacBook Air Flash Storage Drive Replacement Program"?
    In the web page http://www.apple.com/support/macbookair-flashdrive/, it says that Apple has determined that certain 64GB and 128GB flash storage drives used in the previous generation of MacBook Air systems may fail.  I wonder whether Macbook Air with 256GB flash storage may come into the same problem?

    Welcome to Apple Support Communities
    No. 256 GB flash storage does not have that problem. However, it's important that you make backups of your data to keep your files safe

  • SAP WebDynpro  +  Adobe Flex/Flash  =  Enterprise  UI 2.0

    Hi Frens...
    I am Working as Consultant-SAP.I am creating static Forms using Adobelive Cycle Designer and SAP.
    How Adobe Flex is useful to create Forms?
    Is it usefull for me if i learn Adobeflex?
    How will be the future with ADOBE FLEX?
    I have seen the article SAP WebDynpro + Adobe Flex/Flash = Enterprise UI 2.0.
    Working as ABAPer shall i shift to Adobe Flex?
    Please Suggest me.
    Regards
    Bhuvana

    > I am Working as Consultant-SAP.I am creating static Forms using Adobelive
    > Cycle Designer and SAP.
    >
    > How Adobe Flex is useful to create Forms?
    Yes very.
    > Is it usefull for me if i learn Adobeflex?
    Several of us are turning to Flex for eLearning and we are finding it to be
    a great tool.
    > How will be the future with ADOBE FLEX?
    I think Adobe are commiting heavily to Flex - Flex plays on any machine with
    the latest Flash player , so that includes PC, Mac and Linux. AIR plays on
    PC and Mac today, with a Linux version under development right now. In the
    future (Open Screen Project) versions of Flex and AIR should play on mobile
    devices too.
    >
    > I have seen the article SAP WebDynpro + Adobe Flex/Flash = Enterprise UI
    > 2.0.
    > Working as ABAPer shall i shift to Adobe Flex?
    I don't really know what would be good or bad for your needs. Take a look at
    some of the sample Flex and AIR apps on Adobe.com and see if you think the
    features demonstrated are applicable to your needs.
    Steve
    http://twitter.com/Stevehoward999
    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

  • UC 220 M3 with Flexi Flash

    I just got in 6 UC220 M3 servers with the new Flexi flash option.
    There is documentation out from cisco that states to use Flexi Fash to store your vmware boot files.
    Here are the documents that I have reviewed on the cisco web site.
    http://www.cisco.com/en/US/solutions/collateral/ns340/ns517/ns224/ns944/white_paper_c11-718938_ps10493_Products_White_Paper.html
    Then here are the server install instructions on the UC220m3 server and itsays to install vmware on the raid 5 disk array...
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/virtual/CUCM_BK_CA526319_00_cucm-on-virtualized-servers_chapter_00.html#CUCM_RF_C38CF3EA_00
    The TAC best practices doesnt even mention the Flexi Flash/disk.
    Anyone have a recommendation?
    TIA

    I just got in 6 UC220 M3 servers with the new Flexi flash option.
    There is documentation out from cisco that states to use Flexi Fash to store your vmware boot files.
    Here are the documents that I have reviewed on the cisco web site.
    http://www.cisco.com/en/US/solutions/collateral/ns340/ns517/ns224/ns944/white_paper_c11-718938_ps10493_Products_White_Paper.html
    Then here are the server install instructions on the UC220m3 server and itsays to install vmware on the raid 5 disk array...
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/virtual/CUCM_BK_CA526319_00_cucm-on-virtualized-servers_chapter_00.html#CUCM_RF_C38CF3EA_00
    The TAC best practices doesnt even mention the Flexi Flash/disk.
    Anyone have a recommendation?
    TIA

Maybe you are looking for

  • Sales order information to be captured from a java based website

    Sales order information entered in java nabled website needs to be retrieved into SAP system and a sales order needs to be created in this system. And as soon as a sales order is created an bdoc needs to be triggered and sent to the CRM system... Mid

  • HT1386 iphone syncing problems

    I cannot figure out how to sync my laptop calendar to my iphone. My itunes window says that my calendar is being synced with my iphone over the air, but it's not happening. I can't figure out how to do it manually. It will sync all calendars that I a

  • Is this an iPhone 3gs bug

    I was playing around with my iPhone today and I press the call button with no phone numbers in the display and it called my last phone number which happened to be a missed call telemarketer's number. I hung up quickly but really it shouldn't have don

  • Link from sales order to delivery not complete

    2007A We have a few cases where the link from a sales order to delivery is not complete. For example, we have a sales order with 2 lines on it. We copy to delivery and add. Remarks field has the comment "based on sales order ...." However if you try

  • Calling Windows File Open Dialog from Forms

    Has anyone used the File Open Dialog of MS-Windows from within forms? How do you invoke it and how do you pass arguements (in and out) to communicate with it?