AS3.0 Fullscreen, with noscale

I’m having a problem with ActionScript 3.0 on
performing a specific function. I’ve done this dozens of
times in AS2.0, but it seems to elude me in 3.0.
Let me set up the problem for you… I’m creating
training interfaces using Flash as the front end. This is not an
swf file embedded into an HTML page; it stands on its own, and will
be loaded directly from a CD.
When the student activates the swf file, I want the monitor
to display the flash document, without scaling, in the center of
the monitor. I don’t want the flash document in a
window… just centered on the monitor, and the rest of the
monitor to display a black background.
As I’ve said, I’ve accomplished this many times
in AS2.0… a little noscale, a bit of fullscreen, etc.
However, I cannot for the life of me, figure out how to do this
simple task in AS 3.0. Nothing I’ve tried, or been advised to
try seems to work. I can prevent it from scaling; however, it still
displays in its own movable window.
All I need is a code piece that I can add to my loader
document, that instructs the file to display to center of screen,
without scaling, and blacks out the rest of the monitor.

if you talking about centering a display object on the center of the stage then it you can load the flvPlayback into a Sprite that has it registration point on center then centering that sprite then it's like
mySprite x = stage.stageWidth/2;
mySprite.y = stage.stageHeight/2;
The way you wrote the question it sounde like the video is full screen.  If it's fullScreen wouldn't it have to be centered by definition?

Similar Messages

  • How Stop Pop-Up Window: Allow Fullscreen With Keyboard Controls?

    How can I cause the cessation of the pop-up window that asks me, "Allow fullscreen with keyboard controls?" 
    In the last month or two (January- February of 2013), this black, semi-transparent pop-up has appeared every time I go to full screen in the game Battle Pirates on facebook.
    After numerous iterations, this confirmation request has become completely unneccessary and nothing more than an unwelcome annoyance.

    Tom,
    Moderators have the authority and privilege to mark answers as correct, in addition to the original posters. ANY moderator here could have marked it that way.
    The Bug report/Feature Request link is not a "vote" page per say, but a place to submit a request for a feature you'd like to see added or dropped from Flash Player. It's the best way to voice a concern or "wish" for a feature, since the development team reads the reports/requests. Management who'd make the decision to add or remove something won't read about it here. They WILL hear about it from development.

  • Firefox exits fullscreen with 2 monitors

    I am using 2 monitor, identified as display-1 and display-2.
    I split 1 window of the Firefox in the display-1 and another in display-2.
    I set display-1 to full screen (using the HTML5 video API), then I focus in the display-2. Just after focusing on display-2, display-1 exits fullscreen with the Title Bar showing on top.
    https://support.mozilla.org/en-US/questions/995644 don't helped me.
    navigator.userAgent = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0"

    So if you zoom in and out on the second screen the first one goes out of full screen mode.
    I also noticed on the bug that was references that the feature full-screen-api.exit-on-deactivate is no longer visible in about:config. It is possible to add it back. Right click on the about:config page and add a new entry.
    Does adding it back make a difference?

  • How Stop Pop-Up Advisory: "Allow Fullscreen With Keyboard Controls?"

    Is there any way to stop the repeteing ad nauseum and excruciatingly annoying pop-up queery: "Allow Fullscreen With Keyboard Controls?" everytime one expands a Flash window to full screen?
    Similarly, is there a way to turn off the "<webpage address> is now fullscreen.  Press Esc to exit." advisement, which reemerges every time one's cursor grazes the top of the screen?  

    I hear you.  There is no official way to get this done at this time.  If you have a few minutes, I'd encourage you to visit this bug report and leave a comment/vote.
    https://bugbase.adobe.com/index.cfm?event=bug&id=3058752

  • Fullscreen and noscale using AS3.0

    I'm attempting to create a projector that will go fullscreen
    and without scaling using AS 3.0
    In AS 2.0 I simply did this:
    fscommand("allowscale", false);
    fscommand('fullscreen",true);
    Worked every time...
    I've tried a few things, like the following:
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    stage.scaleMode = StageScaleMode.NO_BORDER;
    stage.align = StageAlign.EXACT_FIT;
    But it ignors the code.
    I have had success with the following:
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    Suggestions???

    fscommand still exists in AS3. try this for your AS3
    projector
    import flash.system.fscommand;
    fscommand("allowscale", false);
    fscommand('fullscreen",true);
    Edit: Thought I might post a link to the LiveDocs for
    fscommand since people on the forums keep getting confused about
    this pretty much undocumented function in AS3. I'm sure it is
    simply because the Flash team is intending to deprecate it
    completely but either way, it is still there and it's use is no
    different that it was in AS2. The only difference is that now you
    MUST import the flash.system package to use it.
    AS3
    Help - fscommand on LiveDocs

  • AS3 help with buttonClickHandler

    Ok, so i am getting the following error:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at file_Scene1_fla::MainTimeline/buttonClickHandler()
    So here is the code
    At frame 75 (intro before hand, works perfectly, with only a
    play command)
    note: 30fps
    var nextSection:String="home";
    stop();
    firstButtons.firstButton.addEventListener(MouseEvent.CLICK,
    buttonClickHandler)
    function buttonClickHandler(event:MouseEvent):void {
    if ( event.target == firstButtons.firstButton ) {
    nextSection="home";
    gotoAndStop(nextSection);
    } else if ( event.target == home_btn ) {
    nextSection="home";
    gotoAndStop(nextSection);
    } else if ( event.target == collections_btn ) {
    nextSection="collections";
    gottoAndStop(nextSection);
    } else if ( event.target == orders_btn ) {
    nextSection="orders";
    gottoAndStop(nextSection);
    } else if ( event.target == about_btn ) {
    nextSection="about";
    gottoAndStop(nextSection);
    } else if ( event.target == contact_btn ) {
    nextSection="contact";
    gottoAndStop(nextSection);
    } else if ( event.target == americas_btn ) {
    nextSection="americas";
    gottoAndStop(nextSection);
    } else if ( event.target == europe_btn ) {
    nextSection="europe";
    gottoAndStop(nextSection);
    } else if ( event.target == asia_btn ) {
    nextSection="asia";
    gottoAndStop(nextSection);
    } else if ( event.target == oceania_btn ) {
    nextSection="oceania";
    gottoAndStop(nextSection);
    then, i have more objects enter the stage at frame 80
    home_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    collections_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    orders_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    about_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    contact_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    stop();
    and finally at frame 95
    americas_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    europe_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    asia_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    oceania_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    stop();
    the error comes, when i try to click on the buttons that
    enter in frame 80 (also, the button works as in the up and down
    state changes, but it does not move on to the next section of the
    website)
    from what i got, i have to list the function and all its
    possibilities the first time (as in AS3, you can only list a
    function once or else get error 1114 (i think thats the # might be
    wrong))
    then later you list the items entering (as they enter the
    stage) or get error 1009, which i still am getting
    thank you very much in advance
    PS: i only learned Flash this week and have looked through
    dark world wide webs for many errors but am finally stumped

    ok, the firstButtons.firstButton is a button called
    firstButton in a movie clip firstButtons however, the movie plays
    (i said a simple play command in the post plays it) and if i click
    on it, it takes me to the next section of the website, so i dont
    think that's it (note: from what i understand you have to list the
    button in that order or else it wont identify it (am i wrong))
    the problem starts at frame 80 with the new buttons that dont
    forward me on to their given sections
    if you can explain what to do next (ie: trouble shoot x or
    y...) that would be greatly appreciated as im way way out of my
    league
    thanks alot

  • Compiling an existing as3 packag with flex sdk (for a flash/flex/as beginner)

    Hi
    I am new to flash, flex, mxml, and actionscript (with a strong background in c, python, and scheme and some background in Java, VBA, and Javascript). I have a website for which I would like to develop some simple swf content. Basically, I would like to load esri shp files at runtime (and display a series of them as an animation) using these APIs.
    I have read through some flex getting started material, but I have found that there is no better way to learn a framework/language than to look at and modify existing code. Happily, I've found a sample that is both salient to my project and about the right level of complexity.
    I have the Flex SDK 3 and have created some simple movies. However, I haven't managed to compile the example as3 source code to a successful swf movie. I'd like to write mxml for layout/structure and as3 for functionality, and compile with mxmlc, period. Most examples I've found use of Flex Builder, Adobe Air plugins, other IDEs, etc and so they aren't very helpful.
    Here is a link to the content I'm interested in, and more importantly the as3 source packages (zip or browesable) that I'd like to compile. There are two: ManualCartogramTest.as and USStatesCartogramExample. I can use mxmlc to compile either one sucessfully, but the resulting swf file displays nothing. It seems that I should use the ManualCartogramTest class to create an instance of it, but none of my efforts have worked.
    Can anyone help out? How should I generate the swf movie given one of these packages? What key piece am I missing?
    Jeff
    For completeness, here is another example using the shp/dbf packages (from the creator) that I just can't figure out what to do with.

    1. Perhaps this wasn't the right forum.
    2. I had to use set -use-network=false to enter "local-with-filesystem" mode. Unfortunately, it took a while before I finally used a flash player that told me the problem instead of silently failing. The linux standalone or linux debugger from adobe was key! Gnash, swfdec, and my firefox plugin hid the problem.

  • AS3 Problems with CuePoints using FLVPlayback in Projector executable

    I have a Flash CS3 project that uses the FLVPlayBack component to play 5 FLV files. Each of the files has between 1 and 15 navigation CuePoints embedded in the video (MOV files encoded using Flash Encoder).
    When I test the app using Ctrl-Enter from the IDE all works fine.
    When I test the published projector EXE on the hard disk all works fine.
    When I burn all the files to CD-ROM and start the projector EXE not all is fine.
    When I click on one of my buttons that will navigate to the desired cuepoint within the FLV, it acts like it is unable to find the cuepoint and thus goes to the end of the FLV file.
    This is very annoying and I can not find anything listed anywhere. I suspect it has something to do with buffering or something because the CD-ROM is slower than the hard drive.
    When playing the video all I am doing is:
    vidPlayer.stop();
    vidPlayer.source = "name of flv file";
    vidPlayer.play();
    When I navigate to the cuepoint I am using the following:
    vidPlayer.seekToNavCuePoint(cueName);
    Need help understanding why this is happening.  Thanks.

    I have an update.
    I re-published the Windows Projector executable, this time using the playWhenEnoughDownloaded method of the FLVPlayBack component.
    This has helped some. If I now choose one of the next 2 cuepoints in relation to where the video is currently playing, the seekToNavCuePoint command will find and play from that cuepoint appropriately.
    But if I choose a cuepoint too far from the point of where the video currently playing, it jumps to the end of the video and fires the COMPLETE event.
    Any additional help or suggestions would be helpful.
    Right now I am possibly thinking of breaking up the two larger videos into small videos and dealing with the transitioning in AS3.
    Thanks.

  • Does Flash CS5 (AS3) come with more components than CS4 (AS3)?

    Hi all.
    Bit of a background to my question- I started learning AS3 around June last year (with no prior Flash experience). I was mainly interested in learning Flash for my own knowledge and personal projects I had in mind. Lately though I've been considering getting employed as a Flash developer, but most companies seem to be asking for AS2 experience, as well as AS3. So I fired up CS4 this morning and took a look at AS2. Probably the most surprising thing I found was that CS4 has a whole bunch more components for AS2 than it does for AS3, making me want to drop AS3 and work with AS2 permanently lol (the built in components make my life so much easier, and offer me more than faster execution does). I'm assuming the reason for this is because AS2 has been around for while, and Adobe has had more time to build more components for it, whereas AS3 is only relatively new.
    So to conclude, does CS5 have more AS3 components (perhaps equal to AS2), or do we only have the same components as we had in CS4?
    <3 components lol.
    Thanks guys.

    Flash CS5:
         ActionScript 3 - 3 categories (Flex, User Interface, Video). 33 components in total.
         ActionScript 2 - 3 categories (Media, User Interface, Video). 36 components in total.
    Flash CS4:
         ActionScript 3 - 2 categories (User Interface, Video) 31 components in total.
         ActionScript 2 - 4 categories (Data, Media, User Interface, Video) 25+ components in total.
    Sorry that I don't know how exactly how many components are in Flash CS4 AS2. Couldn't find enough images (I don't have CS4, I use CS5).
    Anyway, I think that Flash CS4 AS2 has the most components, with the most categories. However, whether you should use CS5 or CS4 and AS3 or AS2/AS1 really depends on, not how many components are available, but what you need. Chances are some components you will never touch. Also, sometimes you will need a new feature only in Flash CS5, or be asked by your future employer to write an application in the other scripting language.
    So really, it depends what you think. If I were you, I would download a trial of both CS4 and CS5, and play around, see which option you like the most. Oh, and be prepared to be forced to use another option by your employer at some stage.
    Hope it helps
    dikuno <><

  • No interaction at fullscreen with FP 10.1 // Firefox 3.6.9 from AS2

    I am using FP 10,1,82,76 on Firefox 3.6.9, having tested on Windows XP and Vista, through a Flash movie made with AS2 published to FP9.
    When I engage full-screen, none of the screen elements can be manipulated anymore until I hit ESC to bring it back to normal view.  When in fullscreen, I get the hand cursor but nothing is clickable or draggable:
    http://www.eqsim.com/fstest/
    It works correctly in IE8 but not in Firefox 3.6.9.  I believe I last tested it in an earlier version of Firefox 3.6, but I can't remember how long ago it was.  Anyone have an idea what could be going wrong?
    Thanks!

    Hi, If AS2 refers to Action Script, I don't know anything about how that works. But with Flash Player 10.1, you may turn off hardware acceleration by right clicking on any Flash content. Click on Settings & then Display Settings and UNcheck it. This has helped other users. It is also recommended to update the graphic and video drivers to the latest versions. Sometimes just turning off the H.A. helps.
    Here is the link that explains the H.A.
    http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html
    Thanks,
    eidnolb

  • Image in fullscreen with on/off captions

    I need to tap an image to show it in fullscreen, and then tap an "info" icon on that fullscreen image to show/hide some captions; and finally, tap a "close" button to get the image in its original size again.
    I already know about some MSO limitations, but if is it possible to do, i appreciate to know how to.
    Thanks in advance,
    Ricardo

    not really the thing your looking for, but maybe a way you can make it work.
    for my "fullscreen" slideshows I use a button with "go to url" and use "HTMLResources/fullscreen.pdf"
    then upload the pdf with the picture in a HTMLResources.zip.
    this opens a big picture with a "done" button to close it. Lacks the info part you mentioned though.
    (for android you need to build this using a html instead of pdf)

  • Fullscreen with Internet Explorer

    Hello,
    when clicking on the link in a _fs.htm file, the Internet
    Explorer 7 displays an address bar that can't be closed or removed.
    Does anybody see a fullscreen in Internet Explorer 7 with the
    default settings?
    Are there any settings in Internet Explorer 7 that enable a
    fullscreen like in Internet Explorer 6?
    Thanks for your comment!

    In IE the only way to handle that in a browser would be to
    use javascript. Setting fullscreen to 'true' will do it. It's
    something I have to do for presentations I create since the powers
    that be want to utilize the entire screen and not go the executable
    route. Just be sure you have an exit button since all the browser
    close options will be gone and most folks don't know the "Alt +F4"
    keyboard shortcut to back out of browser in fullscreen mode. You
    will also have to consider the resolution in which you publish your
    movie vs. the resolution a user will view it in.

  • When using Flash plugin in Fullscreen the video starts pausing occasionally for a second. OK when not in Fullscreen and works fine in Fullscreen with other Browsers.

    I have recently upgraded to 10.0 and whenn using Flash Player in Fullscreen it behaves badly. Starts pausing frequently for aroun a second. It's annoying. When I escape fullscreen and run it within the Browser panel it's fine.. Other Browsers work fine in Full Screen Mode. Tried it with IE and Google Chrome. Firefox is my default Browser so my preferred option.

    goneja2 wrote:
    I have narrowed it down to my Motherboard, GPU, CPU or Power Supply that is emitting the noise.
    I have never heard of such a thing, but the first thing I would try is to disabled Hardware Acceleration (Flash Player Settings).

  • How to use an AS3 library with FlasCC?

    I found an interesting library for analytics tracking (https://code.google.com/p/gaforflash/).
    I'd like to use that (or something better, if you know any) for a game I'm creating with FlasCC. The problem is that I can't seem to integrate the library into the code.
    flascc compiler returns
    Error: Type was not found or was not a compile-time constant: AnalyticsTracker.
    import com.google.analytics.GATracker;import com.google.analytics.AnalyticsTracker;public var tracker:AnalyticsTracker;
    in my make file I have defined flags like
    -static-link-runtime-shared-libraries -library-path+=analytics.swc
    in my c++ file I have this at the beginning of file
    package_as3(
              "import com.google.analytics.GATracker;"
              "import com.google.analytics.AnalyticsTracker;"           
              "public var tracker:AnalyticsTracker;"
    then I construct the tracker here
    inline_as3(
                                  "tracker = new GATracker( this, \"UA-1384830-17\", \"AS3\", true );"
    and I use it here
    inline_as3(
                                  "tracker.trackEvent( \"%0\", \"%1\", \"%2\");"
                                  : :"r"(param1) , "r"(param2) , "r"(param3)

    I have been told that storing an iPhoto library on a network HD is not recommended by Apple, but it seems to work for many users, according to forums.
    Hmm, well you experience rather contradicts the forums, no? iPhoto is not designed for network access, end of story. If you try use it that way then things fail.
    See this article
    http://support.apple.com/kb/TS5168
    for more. Note the comment:
    “Additionally, storing the iPhoto library on a network rather than locally on your computer can also lead to poor performance or data loss.”

  • FullScreen and noScale

    Hi,
    How can you set noScale to false or something similar when
    using the new fullScreen mode?
    I'm setting the displaystate to fullscreen:
    Stage["displayState"] = "fullScreen";
    But this line doesn't have any effect, the graphics are still
    scaled up:
    Stage["scaleMode"] = "noScale";
    How to do this?
    Jakob

    Hi Jakob,
    It works OK for me. Bizarre. The only thing I can think of :
    Have you tried putting both Stage settings in the function?
    fullScreen.onRelease = function()
    Stage["displayState"] = "fullScreen";
    Stage["scaleMode"] = "noScale";
    Morten

Maybe you are looking for

  • Officejet 7510 duplex printing

    i bought this officejet 7510 wide format this week but i cannot print in duplex. can someone tell me whether it is possible or not?

  • Belkin's Nostromo N52 does not recognize/work with games

    I am using Belkin's Nostromo N52 gamepad with my iMac G5 Recently I installed "James Bond 007 Nightfire" and "Tron 2.0". Nostromo is not recognizing Nightfire at all. When I select the application Nightfire.app, Nostromo does not work as usually when

  • Host recomendation - linux - php/mysql

    Hi gangsters and molls :) I'm looking again for some advice from the knowledgable contributors of this forum, of which there are many, many, many! I'm in need of a host, that provides php/mysql linux and some good online instructions (preferably the

  • Link problem: problem

    hi i am using tomcat 4.1 and developed one jp page which will generate a report on PDF format. I saved the file in the same directory of that of jsp and give a href to that file and it works Then i saved that file outside the tomcat directory and giv

  • EJB Clients

    How can i invoke EJBs in a different JVM