Problem going to fullscreen after loading AS2 movie into AS3

I've got a loader movie that is written in AS3, and
fullscreen is enabled. I have a context-menu fullscreen trigger and
a keypress fullscreen trigger built into the loader movie. When I
load an AS3 movie or an AS1 movie through the loader movie, I can
go to fullscreen without problems. When I load the AS2 movie, I
cannot.
Does anyone have an idea why this might be? I'm struggling.
Thanks in advance.

Thanks for your help, but as said ("But also using a
separated second loader to load the second file is not working.")
even when using a second loader (with a different name) the second
file loaded will not work.
I'm removing any EventListener from the first loader,
unloading and then nulling it.
But to me it seems, that the first content is not garbage
collected and because of that, even when loaded with an other
loader the first loaded swf-file interferes with the second.
I came to this conclusion, because the first loaded swf-file
is still working after trying to load the second file. And just
more weird: the first loaded file is in the same state and also
after closing the Flash-Player.
You can see it for yourself: download the testcase. Start the
testcase.swf. Load a contentfile. Skip a few pages. Quit the Flash
Player. Start the testcase.swf again and load the same contentfile.
You will see it's at the same position like before quiting the
Player.
And I can't help, but that seems like a bug to me...

Similar Messages

  • Load AS2 swf into AS3 swf problem

    I have a flash with AS3 and inside this swf i load in a AS2 swf.
    to load swf works just fine, but the problem is when i load this i want to go to
    a specific part of it, for example i want to go to frame 3 in the loaded swf.
    i must control this from the AS3 swf, does someone know if this is possible?
    thanks in advance

    so can i do like this then to go to frame 3 in my loaded swf?
    MovieClip(ldr.content).gotoAndStop(3); ?
    sorry for being such an airhead
    thanks for helping me out =)
    Date: Sun, 7 Jun 2009 10:25:09 -0600
    From: [email protected]
    To: [email protected]
    Subject: load AS2 swf into AS3 swf problem
    no.
    if, in your loaded swf, you have a function f1() on the loaded swf's main timeline and you load that swf using a loader (say ldr), use:
    MovieClip(ldr.content).f1();   // to call f1() in the loaded swf
    >

  • Problems with loading AS2 assets into AS3 container

    Hello,
    in a Project I use the AS3 Loader Class to load
    AS2-swf-files. The swf-files are placed into different subfolders,
    since they're using the same filenames and subfoldernames for
    config-files etc.
    The Problem is: Whatever swf-file I load first, it is
    working, but every swf-file after that fails. It seems to be
    loaded, but it's not working correctly.
    I'm using the attached code (easy as it seems) to unload the
    present content and then loading the new one. But also using a
    separated second loader to load the second file is not working.
    I made some kind of testcase (a loader with 2 content
    swf-files) for you, so you can understand what I'm talking about.
    Here you can download the
    testcase (28
    MB).
    It seems like there is a bug in the flash player 9 that
    prevents the AS2-content from being unloaded correctly from an AS3
    file. Can you confirm that there is such a bug? Or do you have an
    explanation for this behavior? Or even better: a solution or
    workaround?
    Thanks a lot!

    Thanks for your help, but as said ("But also using a
    separated second loader to load the second file is not working.")
    even when using a second loader (with a different name) the second
    file loaded will not work.
    I'm removing any EventListener from the first loader,
    unloading and then nulling it.
    But to me it seems, that the first content is not garbage
    collected and because of that, even when loaded with an other
    loader the first loaded swf-file interferes with the second.
    I came to this conclusion, because the first loaded swf-file
    is still working after trying to load the second file. And just
    more weird: the first loaded file is in the same state and also
    after closing the Flash-Player.
    You can see it for yourself: download the testcase. Start the
    testcase.swf. Load a contentfile. Skip a few pages. Quit the Flash
    Player. Start the testcase.swf again and load the same contentfile.
    You will see it's at the same position like before quiting the
    Player.
    And I can't help, but that seems like a bug to me...

  • Load AS2 swf into AS3 swf

    here is the code i'm using:
    var url:String = "avm1.swf";
    var urlrequest:URLRequest = new URLRequest(url);
    var loader:Loader = new Loader();
    loaderListener(loader.contentLoaderInfo);
    loader.load(urlrequest);
    function loaderListener(dispatched:IEventDispatcher){
    dispatched.addEventListener(Event.COMPLETE, assignSWF);
    function assignSWF(event:Event){
    addChild(loader.content);
    here is the error i get:
    It is illegal to move AVM1 content (AS1 or AS2) to a
    different part of the displayList when it has been loaded into AVM2
    (AS3) content.
    Is there a different way to do this?

    addChild(loader)

  • Problem loading AS2 movies

    I'm loading AS2 movies in a AS3 environment, using a Loader.
    Movies load, but they loose some onRelease handlers. This behaviour
    is consistent. Some onRelease handlers in the AS2 work (all the
    time), some not. Anyone have the same experience or is there a
    solution?

    just ran across this note from the docs:
    "If the loaded content is an AVM1 SWF file (written using
    ActionScript 1.0 or 2.0), it cannot be cross-scripted by an AVM2
    SWF file (written using ActionScript 3.0). However, you can
    communicate between the two SWF files by using the LocalConnection
    class."
    might want to check into the LocalConnection class. you may
    be able to construct some methods to pass values, but you still
    will not be to 'script' from one version to another - however if
    you're clever with you method construction you may be able to
    utilize data gathered within the AVM1 by a AS2 script and pass it
    for use in the AVM2 script.

  • Problem clicking on movieclip after load movie

    I have five movie clips named box1 through box5
    I have 20 movie clips that are on my screen.  When I clic one of those 20, I want to load a movie into on of the five boxes.
    All that works fine now.
    However, I want to click on those five boes.  When I mouse over let's say box1, I get a hand and can click.  When the movie loads in there, my cursor no longer changes and I can't click.
    Not doing anything more than
    item1.onRelease =function(){
    box1.loadMovie(blah)
    box1 is nothing more than
    box1.onRelease=function(){
    //do something
    Thanks.

    When you load something into box1 itself, it replaces box1.  So if you want to retain box1 with the code assigned to it, you should have something inside box1 to load into...
    item1.onRelease =function(){
    box1.createEmptyMovieClip("box1mc", box1.getNextHighestDepth());
    box1.box1mc.loadMovie(blah);
    box1.onRelease=function(){
    // do something

  • Still having issues loading AS2 movies

    I'm loading AS2 movies in a AS3 environment. The AS2 movies
    use Tweener (any other tweening engine gives the same results btw).
    If I load a AS2 movie the first time, a tween that uses a time and
    easing property runs fine. When I load the AS2 movie the second
    time... no go (the AS2 movie is removed... loader.unload, and the
    loader is nullified, no listeners...). If I remove the time and
    easing property on the tween, the 'tween' (it's now simply a new
    value for x or y...) runs fine every time.
    Is this some sort of cache issue? Broken GC kglad? Anyone
    experienced this too or does anyone can shed some light on this?
    Ideas maybe what I can try to solve this?

    Have you removed the page as i get redirected to http://steamcurriculum.blogspot.in/p/home.html/whatsmissing/index.html
    I do not see any edge realted content even in the source of this page

  • Load as2 swf in as3 swf

    Hi All,
    I am new to this forum.
    Can anyone tell me how to load as2 swf in as3?
    If this is possible,can anyone give me some sample example?
    Thanks
    Harshal

    You can talk to loaded AVM1 (AS1/2) SWF using LocalConnection. I used Grant Skinner's SWFBridge class in the past and worked very well:
    http://gskinner.com/blog/archives/2007/07/swfbridge_easie.html
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • Load a Movie into a Loaded Movie?

    Okay, so I've got movie1. I loaded movie2 into movie1 using
    loadMovie. That works fine.
    I loaded movie3 into movie2, also using loadMovie. That works
    fine when I preview movie2, but when I preview movie1, movie3
    doesn't load.
    How can I load a movie into a loaded movie? I don't want to
    replace the movie, I want to load into it.
    They're all in the same folder.
    I'm using a movie clip placement marker instead of levels.
    Help!!!

    davidlieb wrote:
    > Okay, so I've got movie1. I loaded movie2 into movie1
    using loadMovie. That
    > works fine.
    >
    > I loaded movie3 into movie2, also using loadMovie. That
    works fine when I
    > preview movie2, but when I preview movie1, movie3
    doesn't load.
    >
    > How can I load a movie into a loaded movie? I don't want
    to replace the movie,
    > I want to load into it.
    >
    > They're all in the same folder.
    >
    > I'm using a movie clip placement marker instead of
    levels.
    >
    > Help!!!
    >
    I think that
    _root.
    this.
    _parent.
    helps.

  • Why after loading all music into Itunes library does it erase every song on there a few days later?

    Why after loading all music into Itunes library does it erase every song on there a few days later?

    Welcome to AD!
    Your signature line shows you have a Sony. Vaio users worldwide are seeing this.
    It's some Sony software conflicting with itunes.
    Older topic on that:
    http://discussions.apple.com/message.jspa?messageID=9345281

  • Dummy Guide needed for converting AS2 code into AS3

    I have to convert my existing AS2 code into AS3, but I might as well be reading chinese. I never even began to learn AS3, it was still fairly new at the time and the class ended before we had an opportunity to even touch on it. My major was not web design, it was the print side of design. I took an additional class, after I graduated, to learn web design and our teacher told us, basically, that we were designers, not coders so we won't be getting much into actionscripting, beyond the basics. At the time I was relieved, but looking back, I really wish we would have gotten more into it. Bottom line, I need to learn now.
    Is there ANYONE that can help me out? I will list my code below, buy I am way beyond lost any help that can be provided, I would be so grateful!!!!
    On the main timeline I have the basic..
    stop(); -- I found the AS3 version, but I don't know what I'm looking at. I get "not_yet_set.stop()" and there are are 8 options I can choose from. I just want the timeline to stop until I tell it where to go next. And what is "not_yet_set"
    Then I have my buttons, which are, basically...
    on (release) {
    gotoAndStop("Home");
    Or "gotoAndPlay("Whatever");"
    I also have buttons for scrolling...
    on (press) {
    play();
    on (release) {
    stop();
    AND
    on (press) {
    _root.AboutMe_Controller.gotoAndPlay(…
    on (release) {
    _root.AboutMe_Controller.gotoAndStop(…
    For the on(release) command, this is what I found as the AS3 version: not_set_yet.dispatchEvent()

    because that's really as1 code, you have steeper learning curve than going from as2 to as3.
    first, remove all code from objects, assign instance names to your buttons and you can then start on as3:
    // so, if you name your home button, home_btn:
    home_btn.addEventListener(MouseEvent.CLICK,homeF);
    function homeF(e:MouseEvent):void{
    gotoAndStop("Home");
    p.s.  the not_yet_set stuff is there because you tried to use script assist or some other actionscript shortcut.

  • External as2 userDrawingTablet into as3

    created a tablet where the user could draw on the pad. i did it a while ago using actionscript 2. now i'm loading it externally into as3. when placed in as3 it seems to be confused as to where the tablet is and draws only on the bottom right and off the page. also have a text function that is not working properly either.
    kind of a random application and random problem, but not sure where else to go with this...
    was just wondering if anyone had done this and had a similar problem?
    thanx

    "submitter" is a movie clip on the main timeline. this code is inside submitter layed out with a mc named "blackboard". blackboard has a mc named "innerBlackboard" inside of it.
    blackboard.clearChalk = function():Void {
        var cl = this._parent._parent.chalkLine;
        this.createEmptyMovieClip("chalkLayer", 0);
        this.chalkLayer.lineStyle(cl.thickness, cl.color, cl.alpha);
        this.drawings = [];
    blackboard.clearText = function():Void {
        this.createEmptyMovieClip("textLayer", 10);
        this.textfields = [];
    blackboard.clearAll = function():Void {
        this.clearChalk();
        this.clearText();
    blackboard.enterDrawMode = function():Void {
        this.innerBlackboard.onPress = this.startDraw;
    blackboard.startDraw = function():Void {
        var x:Number = Math.round(this._xmouse);
        var y:Number = Math.round(this._ymouse);
        var coordinates = [x + "," + y];
        this._parent.currentDrawing = coordinates;
        this._parent.drawings.push(coordinates);
        this._parent.chalkLayer.moveTo(x, y);
        this._parent.onMouseMove = this._parent.drawChalk;
        this.onRelease = function() {
            delete this._parent.onMouseMove;
    blackboard.endDraw = function():Void {
        delete this.onMouseMove;
        delete this.innerBlackboard.onRelease;
    blackboard.drawChalk = function():Void {
        if (this.hitTest(_root._xmouse, _root._ymouse)) {
            var x:Number = Math.round(this._xmouse);
            var y:Number = Math.round(this._ymouse);
            this.currentDrawing.push(x + "," + y);
            this.chalkLayer.lineTo(x, y);
        } else {
            this.endDraw();
        updateAfterEvent();
    blackboard.enterTextMode = function():Void {
        this.innerBlackboard.onPress = this.startText;
    blackboard.startText = function():Void {
        var d:Number = this._parent.textLayer.getNextHighestDepth();
        var x:Number = this._parent._xmouse;
        var y:Number = this._parent._ymouse;
        this._parent.textLayer.createTextField("t" + d, d, x, y, this._parent.width - x, this._parent.height - y);
        var tf:TextField = this._parent.textLayer["t" + d];
        this._parent.textfields.push(tf);
        tf.type = "input";
        tf.multiline = true;
        tf.wordWrap = true;
        tf.restrict = "^'<>";
        tf.setNewTextFormat(this._parent._parent._parent.chalkFormat);
        tf.embedFonts = true;
        tf.text = "Type message";
        Selection.setFocus(tf);
        Selection.setSelection(0, tf.text.length);
        tf.onKillFocus = function() {
            this.type = "dynamic";
            this.selectable = false;
    blackboard.formatEntry = function():String {
        var tf:TextField;
        var d:Object;
        var entryXML    =  "<entry>";
        entryXML        +=         "<text>";
        for (var i:Number = 0; i < this.textfields.length; i++) {
            tf = this.textfields[i];
            entryXML    +=            "<field x='" + tf._x + "' y='" + tf._y + "' text='" + tf.text + "' />";
        entryXML        +=         "</text>";
        entryXML        +=         "<drawings>";
        for (i = 0; i < this.drawings.length; i++) {
            d = this.drawings[i];
            entryXML    +=            "<drawing coordinates='" + d.join("|") + "' />";
        entryXML        +=         "</drawings>";
        entryXML        += "</entry>";
        return escape(entryXML);
    blackboard.clearAll();
    blackboard.innerBlackboard.useHandCursor = false;
    blackboard.width = blackboard._width;
    blackboard.height = blackboard._height;
    draw_bn.onRelease = function() {
        blackboard.enterDrawMode();
        text_bn.gotoAndStop("_Up");
        text_bn.enabled = true;
        this.gotoAndStop("_Down");
        this.enabled = false;
    text_bn.onRelease = function() {
        blackboard.enterTextMode();
        draw_bn.gotoAndStop("_Up");
        draw_bn.enabled = true;
        this.gotoAndStop("_Down");
        this.enabled = false;
    clear_bn.onRelease = function() {
        blackboard.clearAll();
    submit_bn.onRelease = function() {
        var name:String = name_if.text;
        if (name == "" || name == "name (required)") return;
        var email:String = email_if.text;
        if (email == "" || email == "email (required)") return;
        entry = new LoadVars();
        entry.name = name;
        entry.email = email_if.text;
        entry.message = blackboard.formatEntry();
        returnEntry = new LoadVars();
        returnEntry.onLoad = traceReturn;
        entry.sendAndLoad("submitEntry.php", returnEntry);
    function traceReturn() {
        if (this.result == "success") {
            blackboard.clearAll();
    name_if.onSetFocus = email_if.onSetFocus = function() {
        this.text = "";
        delete this.onSetFocus;
    name_if.restrict = email_if.restrict = "^'<>";

  • Disabled combo boxes don't display properly after loading a movie.

    Hi,
    I have a main movie that contains some combo boxes. Some of them may be disabled.
    By pressing a button I load another movie using loadMovie. The loaded movie also contains combo boxes.
    When the button is pressed, the clip that shows the combo boxes is removed from the stage and the loaded movie is displayed. By pressing another button, the loaded movie is unloaded and the clip with the combo boxes is displayed again.
    Well, once the other movie has been loaded, when I go back to the clip with combo boxes, the disabled combo boxes have a small gray button covering the black down arrow.
    I have determined that so long as the loaded movie contains combo box in the library, the problem occurrs, even if there is no actual instance of it.
    The combo boxes that are not disabled are not affected. The combo boxes are disabled by setting "cb_name.enabled=false".
    If the combo box is enabled, it displays correctly, but if disabled again, it goes wrong again.
    My project is targeting Flash 8, so it uses AS2.
    I'm using Flash CS4.
    This is a very simple example I did to make sure I wasn't doing anything funny:
    Initially:
    After pressing the button:
    After pressing the other button:
    The behaviour in a web browser is the same...
    I hope someone can help me with this. Thanks in advance!

    Thanks for the response.
    The "Load the movie" button:
    on(click)
        _parent.gotoAndStop(2);
    The 2nd frame:
    loadMovie("Test another child.swf",Container);
    stop();
    The "Unload and go back" button:
    on(click)
        unloadMovie(_parent.Container);
        _parent.gotoAndStop(1);
    Container is a movieClip with a dark gray square shape the size of the movie clip that is loaded. It doesn't exist on frame 1, only on frame 2.
    The combo boxes are inside a movie clip, and this is only on the stage on frame 1.
    This and the captures belong to a very simple test I did. If there is a way of posting files, I can post a zip file with the two .fla and the two .swf.

  • I have installed itunes 10.7 several times.  All goes well.  After reboot, I go into itunes and check for updates and it says I need to download the update 10.7! (And so cant sync with my Iphone)

    I have installed itunes 10.7 several times, all goes well. After reeboot, I go to check for updates and it still wants to update to version 10.7! I cant sync to my iphone4 because I get an error message saying I need version 10.6.3 or later. Help

    Thank you for getting me started on the track by mentioning "Revo" Uninstaller.  The results of "Revo" spoke volumns on why a successful install of ITunes is so difficult to achieve.  It is the evil "BONJOUR".
    I then tripped upon the following site by Apple and the detailed directions (I read, printed, re-read and followed the instructions.  It was intense) brought a successful ITunes, Quick Time and the lovely Bonjour home.  Thank you for the start JD42.
    http://support.apple.com/kb/HT1923

  • Load AS2 SWF in AS3 SWF with FlashVars

    I am able to load SWF which is created using AS2 in to AS3
    SWF but I am not able to pass Flashvars to it..
    Does any one has any idea, how can I do that??
    Thanks

    You can talk to loaded AVM1 (AS1/2) SWF using LocalConnection. I used Grant Skinner's SWFBridge class in the past and worked very well:
    http://gskinner.com/blog/archives/2007/07/swfbridge_easie.html
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

Maybe you are looking for

  • Songs Not Copying to the IPhone

    I get the message, "A song was not copied to my IPhone because I am not autorized to play it on my computer." In all cases, these are songs that I've purchassed through Itunes. How do I correct this?

  • Jldap and groupwise

    Hallo, I'm using a self written Java-program to manage the edirectory users. I can create or delete a user, modify an useraccount, modify groups etc .... But when I delete an useraccount, the user remains in the Groupwise - Postoffice. How can I remo

  • Flash Player 10.1 is jerky and freezes - Apple Mac

    I have a MacBook (a 2.4 GHz Intel Core 2 Duo with 2 GB of memory (1067 MHz DDR3)) running OS10.6 and  had an issue with Flash 10.1 - ie. it was jerky and the picture would occasionally freeze... BUT  only when trying to play a live stream. Note, watc

  • Driver labview pour wattmetre agilent E4419B

    J'ai acheté recemment une sonde série E9300  pour un wattmetre E4419B de Agilent. Ce wattmetre était jusqu'à présent utilisé sous labview 8.6 avec des sondes type HP8481.La différence entre les 2 sondes est qu'il fallait précedemment charger une tabl

  • Problems when trying to execute the jarfile

    I am facing a problem while executing a jar file. I have got a few .class files, when I run them in jbuilder , they run fine without any problems. Then I create a jar file using the jbuilder archive builder and try to run the jar file in dos prompt.