loading film num

Hello
I have problems to a separate swf to load into my main swf.
I use the technique of digital movie load as follows

on (release) {}
loadMovieNum ("map.swf", 51);
}

I have it inserted this action in the frame that my button is lit, but it does not work.
I also treid to insert the code on my button, but it wouldn't let me.

Help, please
Thank you!

Publish your movie to AS2

Tags: Adobe Animate

Similar Questions

  • Loading film

    Hello everyone...

    I have another question. I have a loading movie in another movie:

    http://studenthome.NKU.edu/~Wester/SITEtester.swf < hand - Menu > work > 2nd icon down on the left. < project info < back
    http://studenthome.NKU.edu/~Wester/sitenkumark2.swf < Loaded

    The 2nd file, self-confidence, work.
    Load in the first file that partially works.

    Is not targeting in a main independent charge the .swf video?

    Thank you

    Urami,

    Quote:

    For example, your film loaded using _root. MCName.gotoAndPlay (123); Once loaded in
    MC action by the LICENSEE must spend to _root. HOLDER. MCName.gotoAndPlay (123);

    Thank you. I salute you.

  • question of loading film

    I am struggling with actionscript 3. I need to load an external. SWF in my .swf 'shell '. both are actionscript 3...

    When I have the ActionScript in frame 1

    loadMovie ("mymovie.swf");

    I get the following error

    1 1180: call to a method may be undefined loadMovie.

    The films can be defined to publish for Flash Player 9 with AS3, but
    loadMovie is AS2.

    Review the flash.display.Loader class use the AS3 way to load
    external SWF, jpg, gif or png.

    HTH
    Manno

    multimedia nice wrote:
    > I am struggling with actionscript 3. I need to load an external. SWF
    > in my .swf 'shell '. both are actionscript 3...
    >
    > when I have the ActionScript in frame 1
    >
    > loadMovie ("mymovie.swf");
    >
    > I get the following error
    >
    1 > 1180: call to a method may be undefined loadMovie.
    >

  • Resizing when loading film in another film.

    I have tried this all day so I thought I might ask for a little help. I and the SWF file created from a PDF through Print2Flash. I'm trying to bring it into another SWF file that is my shell of navigation.

    I try a simple test to load and it work very well all the way up when it's time to resize them. This is AS3 and this is the code that I'm working on:

    Loader instance to load your SWF file.

    var swfLoader:Loader = new Loader();

    URLRequest points to external SWF

    var swfFile:URLRequest = new URLRequest ("FlashDoc.swf");

    Create the container Movie Clip to load the swf

    var container: MovieClip = new MovieClip();

    Assign an event listener so that Flash will inform you when the SWF has been loaded.

    swfLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, swfLoadedHandler);

    function swfLoadedHandler(e:Event):void {}
    trace ("loaded swf");
    }

    swfLoader.load (swfFile);

    Add the swf file loaded in container


    container.addChild (swfLoader);

    Add container to the scene and make it visible

    addChild (container);

    Position and resize container

    Container.x = 300;
    Container.y = 200;
    Container.Width = 800;
    Container.Height = 800;

    This seems to work as long as I don't have to resize the container. repositioning of the containg single X and works... but when I add the container resizing to 800 x 800, I get an error of nocompiler but the SWF file does not load either. Can someone let me know why this would be the case? I found other discussions on this topic, but yet the SWF I bring in just will not show when I add resizing the width and the height. Thank you

    The problem is that you try the size of your container until its content is even loaded. The container has no size at this stage and changing, it will not do what you expect. Try to put your resize in swfLoadedHandler code.

  • How can I load film into a clip of film in CS4?

    I have a clip from movie existing on the stage and I want to load a .swf in there. How?

    :

    var loader: Loader = new Loader();

    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, f);

    Loader.Load (new URLRequest ("banner.swf"));

    addChild (loader);

    function f(e:Event):void {}

    loader.scaleX =. 25;

    loader.scaleY =. 25;

    }

  • access to a loading film

    is there a way to keep a loading external movie to play when he takes over? are you really confused now?

    Here's the scenario:

    I have an external SWF loading

    var ldr:Loader = new Loader();
    var
    url:String = "movie.swf"; "
    var urlReq:URLRequest = new URLRequest (url);

    LDR. Load (urlReq);

    addChildAt(ldr,0);

    It is a SWF file that is large enough and I don't want to start playing until it has loaded and I don't want to encode a stop() function in loading external SWF (I want to do in the clip, it is loaded in).

    I tried:

    LDR. Content.Stop

    LDR. Content.Stop)

    ldr.contentLoaderInfo.content.stop)

    nothing seems to work

    can it be done?

    ldr.contentLoaderInfo.addEventListener (Event.INIT, init);

    function init(e:Event) {}
    e.Target.Content.Stop ();
    }

  • Preloader - not loading film

    Hello.
    I have a preloader on the first frame of my screenplay. When I go to "test the scene", the preloader works and moves to the next section to play the MC. When I go to 'test movie' the preloader sticks after loaded all the bytes. It does not move the 2nd frame.
    The same thing is happening when it is loaded on the web, it sticks on the preloader, but if you refresh the browser, the preloader moves on the next image as it should.
    Something weird is happening here and I need to know what I did wrong.
    Help please.

    Thank you

    MFO says:
    > Hi.
    > I have a preloader on the first frame of my screenplay. When I go to "test
    > stage ', the preloader works and moves to the next section to play the MC. When I
    > go to 'test movie' the preloader sticks after loaded all the bytes. For this
    > going on the 2nd frame.
    > The same thing happens when loading on the web, it sticks on the
    > preloader but if you refresh the browser, the preloader moves on the next
    > frame as it should.
    > Something weird is happening here and I need to know what I did wrong.
    > Help please.

    the preloader is incorrect, but we cannot say anything, be based on "does not work".
    Description.
    Copy paste your exact code or download the problem file to check us.

    --
    Best regards

    Urami

    --


    If you want to send me a message - DO NOT LAUGH at MY ADDRESS

  • Loading film randomly

    Hello

    I use this code to randomization of Jacques:

    filename = ['track1.swf', 'track2.swf', 'track3.swf', 'track4.swf', 'track5.swf', 'track6.swf'];
    path = "media";
    I have = filename.length;
    k = Math.floor (Math.random () * i);
    loadMovie (filename [k], movieTarget);

    view the file, a movie loaded randomly in the instance of movieTarget, but it does not visually... I can hear the audio but no Visual...

    This code was created for MX and MX 2004... would it be different for Flash 8?

    Thanks in advance for any help.
    RS

    Sorry, I thought about it... I resized movieTarget, so the graphics were off the screen, my bad

  • Send var to Flash from html to load film

    After several days I could really use some help with this...

    I created a file banner.swf and placed on an html page using swfObject js detection. I want to send a variable of the web page to tell the file banner.swf to load an external image or .swf file to an empty_mc on the stage with instance container 'name '.


    I have the following html code:


    < script type = "text/javascript" > var fo = new FlashObject ("banner.swf", "swf", "800", "212", "8", "#ffffff"); FO. Write ("movieAlt");
    so.addVariable ("var1", "myImage1.jpg");
    so. Write ("flashcontent"); < /script >



    I have the following text on frame 1 Actionscript:


    var myMCL:MovieClipLoader = new MovieClipLoader();
    myMCL.loadClip ("var1', 'container');


    I got the external file to load when it is hard coded in actionscript but need to load from page html code. I know I must be missing something so thanks for any help! SD

    I had not noticed it before, but this doesn't seem right:

    try to do like this:

  • load film

    I have a swf file called "Acrylic" that loads another swf called "AcrylicsRiverside" with the push of a button using this code:

    on (release) {}
    _root. Floor10.loadMovie ("AcrylicsRiverside.swf");

    }

    Within the AcrylicsRiverside.swf, there are a set of buttons. These buttons have code like this:


    on {(overview)
    tellTarget ("' / reversal" ") {}
    gotoAndPlay ("1texte");
    }
    }
    on {(deployment)
    tellTarget ("' / reversal" ") {}
    gotoAndPlay ("1image");
    }
    }

    "rollover" is the name of the instance of a clip called "movie_actions". When I rollover the buttons there is no action. Does anyone have an explanation? I have load finally the 'Acrylics.swf' in another 'Home.swf' called when you press a button on the Home.swf. Any help is much welcome.

    the problem is that you are publishing for Flash Player 5 acrylicsgeneral.swf. You must use flash player 7 or better for _lockroot.

    If acrylicsgeneral.swf must be published to the PC5, use:

    Floor10._lockroot = true;

    in acrylics.fla

  • Popup Director Player error - failed to load active film/art. DDR

    When I got a game 4 pack by Gogii would not be one of the games download, I got / art Assets.ddr isn't Director file, then a second error popped up: unable to load film/art active. DDR and it will not open.

    Hi patbrat,

    I suggest that you contact support for Gogii for assistance with downloading the games.

    http://www.gogiigames.com/contact

  • Homegroup is very slow. Loading files from another computer is very long and I can't watch movies on the wireless using the homegroup.

    Group residential slow and other problems with it

    Hello!

    I have 3 Windows 7 PC-s (office #1, #2 desktop and laptop). I created HomeGroup and join all computers, so I can access the files on each of them. But my problem is the following: homegroup is very slow. Loading files from another computer is very long and I can't watch movies on the wireless using homegroup, because it is slow and every two seconds of loading film. And also needed a few minutes to open the pictures (more than 10 GB in all folders) to a folder in the other PC. Why is this work so slow? I don't think there is a problem with slow wireless router, because I can replace my old Linksys WRT54GL Linksys E4200, which is able to transfer video HD 3D such as Linksys provide. What should I do to fix this? Should I change all the settings in Windows, perhaps in the router...?
    And why my laptop is not always visible to the other PC to homegroup? He see two others and two other sees, but they are not portable. This happens sometimes. But then I still share with homegroup libraries to my laptop and there still other computers see it and all shared libraries. Where is the problem? I also try to change the HomeGroup services automatically, but this does not solve the problem.
    If I forgot something to write, or you need more information, do not hesitate to ask.
    I'd appreciate any help really.

    Hello

    Manually check manufacturers sites WiFi because pilots offered through
    Updates Windows will most often not be later (MS is far behind certifying)
    drivers and many manufacturers do not quickly submit newer versions or not at all). See
    Manual driver update of the methods below.

    The question could be WiFi in fact however try to device (hardware)
    update the driver first.

    What antivirus/security is used? Some of those who will cause problems with the
    Homegroup. Since it happens more often on a single computer that on there
    a check.

    From this link:

    Homegroup: frequently asked questions (also shows how delete and remove homegroup)
    http://Windows.Microsoft.com/en-us/Windows7/HomeGroup-frequently-asked-questions

    "Only people who belong to the homegroup can see shared libraries. You can also share libraries or files and individual folders with specific people in your homegroup, rather than share them with everyone. For more information, see libraries with your homegroup sharing and keep files and folders to be shared with a specific residential group. »

    Share files with anyone
    http://Windows.Microsoft.com/en-us/Windows7/share-files-with-someone

    ==================

    How to upgrade manually the drivers:

    Control Panel - network - write down of the brand and the model of the Wifi - double click top - tab of the driver - write
    version - click the driver update (cannot do something that MS is far behind the pilots of certification). Then
    Right click on the Wifi device and UNINSTALL - Reboot - it will refresh the driver stack.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    Installation and update of drivers under Windows 7 (updated drivers manually using the methods
    below is preferred so that the latest drivers from the manufacturer of system and device manufacturers are
    found)
    http://www.SevenForums.com/tutorials/43216-installing-updating-drivers-7-a.html

    Download - SAVE - go where you put it - right click – RUN AS ADMIN.

    You can download several at once however restart after the installation of each of them.

    After watching the system manufacturer, you can check the manufacturer of the device an even newer version.
    (Those become your fonts of rescue system manufacturer).

    Repeat for network (NIC) card and is a good time to get the other updated drivers as windows
    7 love the updated drivers.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Gallery images will not load when I transfer the files on the server

    The gallery works fine when files on my computer, but when I download files on my server does not load images.

    I use the xml file to load the images. Here is the code of the Gallery:

    function loadPlayList(url:String) {
              delete myMO.onMouseWheel;
              delete myKO.onKeyDown;
              for (var i in infostruc) {
                        root["_ref"+i] = root["_bmd"+i]=false;
              }
              loadedAll = false;
              infostruc = [];
              for (var i in root) {
                        if ((root[i]._name.substr(0, 3) == "art" || root[i]._name.substr(0, 10) == "reflection") && (parseInt(root[i]._name.split("art")[1]) || parseInt(root[i]._name.split("reflection")[1]))) {
                                  root[i].swapDepths(root.getNextHighestDepth());
                                  root[i].removeMovieClip();
                        }
              }
              current = 1;
              root.createEmptyMovieClip("loader", root.getNextHighestDepth());
              xmlData.load(url);
    }
    function init(Void):Void {
              myMO = {};
              myKO = {};
              Mouse.addListener(myMO);
              Key.addListener(myKO);
              for (var i in infostruc) {
                        loader.clear();
                        loader.gradient_mc.removeMovieClip();
                        loader.attachMovie("default", "art", 1);
                        root["_shelveCDWidth"+i] = shelveCDWidth;
                        root["_shelveCDHeight"+i] = shelveCDHeight;
                        root["_frontCDWidth"+i] = frontCDWidth;
                        root["_frontCDHeight"+i] = frontCDHeight;
                        this["_bmd"+i] = new BitmapData(loader._width, loader._height);
                        this["_ref"+i] = new BitmapData(loader._width, loader._height);
                        this["_bmd"+i].draw(loader);
                        var mc:MovieClip = loader.createEmptyMovieClip("gradient_mc", loader.getNextHighestDepth());
                        matrix = new Matrix();
                        matrix.createGradientBox(loader._width, loader._height, reflectionRotation/180*Math.PI, 0, 0);
                        mc.beginGradientFill(reflectionFillType, reflectionColors, reflectionAlphas, reflectionRatios, matrix, reflectionSpreadMethod, reflectionInterpolationMethod, reflectionFocalPointRatio);
                        mc.moveTo(0, 0);
                        mc.lineTo(0, loader._height);
                        mc.lineTo(loader._width, loader._height);
                        mc.lineTo(loader._width, 0);
                        mc.lineTo(0, 0);
                        mc.endFill();
                        loader.art._alpha = reflectionAlpha;
                        loader.beginFill(reflectionBackgroundColour);
                        loader.moveTo(0, 0);
                        loader.lineTo(0, loader._height);
                        loader.lineTo(loader._width, loader._height);
                        loader.lineTo(loader._width, 0);
                        loader.lineTo(0, 0);
                        loader.endFill();
                        this["_ref"+i].draw(loader);
              }
              for (var i:Number = count=0; count<stageWidth-(centerDistance*3); count += shelveCDSpacing, i++) {
                        var cArt:MovieClip = this.createEmptyMovieClip("art"+this.getNextHighestDepth(), this.getNextHighestDepth());
                        var rArt:MovieClip = this.createEmptyMovieClip("reflection"+(this.getNextHighestDepth()-1), this.getNextHighestDepth());
                        rArt.id = cArt.id=rArt.cid=cArt.cid=Number(i)+1;
                        rArt._x = cArt._x=stageWidth;
                        cArt.DistortImage(this["_bmd"+cArt.id]);
                        controlTheObject(cArt);
                        rArt.DistortImage(this["_ref"+cArt.id]);
                        controlTheObject(rArt);
                        var tmpFilter:BlurFilter = new BlurFilter(reflectionBlurX, reflectionBlurY, reflectionQuality);
                        rArt.filterArray = cArt.filterArray=[];
                        rArt.filterArray[0] = tmpFilter;
                        rArt.filters = rArt.filterArray;
                        tmask = mask.duplicateMovieClip("_mask"+cArt.id, this.getNextHighestDepth(), {_x:mask._x, _y:mask._y});
                        rmask = mask.duplicateMovieClip("_rmask"+cArt.id, this.getNextHighestDepth(), {_x:mask._x, _y:mask._y});
                        cArt.setMask(tmask);
                        rArt.setMask(rmask);
                        rArt._visible = cArt._visible=false;
              }
              myMO.onMouseWheel = function(delta:Number):Void  {
                        if (delta>0) {
                                  next();
                        } else if (delta<=0) {
                                  previous();
                        }
              };
              myKO.onKeyDown = function():Void  {
                        if (Selection.getFocus() != "_level0.goto") {
                                  if (Key.isDown(Key.RIGHT)) {
                                            next();
                                  } else if (Key.isDown(Key.LEFT)) {
                                            previous();
                                  }
                        }
              };
              scrollBar.scroller.onPress = function():Void  {
                        dist = this._parent._xmouse-this._x;
                        this.onMouseMove = function():Void  {
                                  tmp = 1+Math.ceil(((this._parent._xmouse-dist)-scrollBarStart)/(scrollBar._width-scrollBarStop)*(infostruc.length-1));
                                  if (tmp>infostruc.length) {
                                            tmp = infostruc.length;
                                  }
                                  if (tmp<1) {
                                            tmp = 1;
                                  }
                                  current = tmp;
                                  updateInfo();
                        };
              };
              scrollBar.scroller.onRelease = scrollBar.scroller.onReleaseOutside=function ():Void {
                        stopDrag();
                        delete this.onMouseMove;
              };
              scrollBar.left.onPress = function():Void  {
                        previous();
                        shifter = setInterval(previous, scrollerDelay);
              };
              scrollBar.right.onPress = function():Void  {
                        next();
                        shifter = setInterval(next, scrollerDelay);
              };
              scrollBar.onMouseUp = function():Void  {
                        clearInterval(shifter);
              };
              scrollBar.onMouseDown = function():Void  {
                        if (this.hitTest(_xmouse, _ymouse, true) && !this.left.hitTest(_xmouse, _ymouse, true) && !this.right.hitTest(_xmouse, _ymouse, true)) {
                                  if (this._xmouse<this.scroller._x) {
                                            previous();
                                            shifter = setInterval(previous, clickDelay);
                                  }
                                  if (this._xmouse>this.scroller._x+this.scroller._width) {
                                            next();
                                            shifter = setInterval(next, clickDelay);
                                  }
                        }
              };
              goto.restrict = "0-9";
              goto.onKillFocus = function():Void  {
                        if (!isNaN(Number(this.text)+1)) {
                                  if (this.text>infostruc.length) {
                                            this.text = infostruc.length;
                                  }
                                  if (this.text<1) {
                                            this.text = 1;
                                  }
                                  current = Number(this.text);
                        } else {
                                  this.text = current;
                        }
                        updateInfo();
              };
              fscreen.onPress = function():Void  {
                        fscommand("fullscreen", !(this._currentframe-1));
                        this.gotoAndStop(!(this._currentframe-1)+1);
              };
              slideShow.onPress = function():Void  {
                        if (this._currentframe == 1) {
                                  sliderShow = setInterval(function ():Void {
                                            if (current<infostruc.length) {
                                                      next();
                                            } else if (slideshowLooping) {
                                                      current = 0;
                                                      next();
                                            }
                                  }, slideshowSpeed);
                        } else {
                                  clearInterval(sliderShow);
                        }
                        this.gotoAndStop(!(this._currentframe-1)+1);
              };
              distance = Number(i);
              mask.removeMovieClip();
              fscreen.swapDepths(1102);
              slideShow.swapDepths(1103);
              scrollBar.swapDepths(1101);
              i2.swapDepths(1105);
              i1.swapDepths(1106);
              loader.removeMovieClip();
              loadNext();
              updateInfo();
    }
    function concat(m1, m2):Object {
              var mat:Object = {};
              mat.a = m1.c*m2.b;
              mat.b = m1.d*m2.b;
              mat.c = m1.a*m2.c;
              mat.d = m1.b*m2.c;
              mat.tx = m1.a*m2.tx+m1.c*m2.ty+m1.tx;
              mat.ty = m1.b*m2.tx+m1.d*m2.ty+m1.ty;
              return mat;
    }
    function updateInfo():Void {
              goto.text = current;
              info = infostruc[current-1].info;
              author = infostruc[current-1].auth;
              album = infostruc[current-1].album;
              displayAlternArt(root["_bmd"+(current-1)], artDisplay._width, artDisplay._height);
              scrollBar.scroller._x = scrollBarStart+((current-1)/(infostruc.length-1)*(scrollBar._width-scrollBarStop));
    }
    function brightness(_prop:String, _old:Number, _new:Number, target:MovieClip):Void {
              var brightness_array:Array = [1, 0, 0, 0, _new, 0, 1, 0, 0, _new, 0, 0, 1, 0, _new, 0, 0, 0, 1, 0];
              target.filterArray[1] = new ColorMatrixFilter(brightness_array);
              target.filters = target.filterArray;
    }
    function controlTheObject(mc):Void {
              if (mc._name.indexOf("reflection") == -1) {
                        mc.onPress = function():Void  {
                                  if ((getTimer()-this.pressTime<=doubleClickRegister && this.pressTime) || !doubleClickURL) {
                                            if (infostruc[this.cid].urlToGet) {
                                                      getURL(infostruc[this.cid].urlToGet, "_"+infostruc[this.cid].urlAction);
                                            }
                                  }
                                  this.pressTime = getTimer();
                                  current = this.cid+1;
                                  updateInfo();
                        };
              }
              mc.watch("_brightness", brightness, mc);
              mc.onEnterFrame = function():Void  {
                        this._visible = true;
                        if (infostruc[this.cid].loaded && !this.loadedImage) {
                                  this.allowUpdate = true;
                                  this.DistortImage(this._name.indexOf("reflection")>-1 ? this._parent["_ref"+this.cid] : this._parent["_bmd"+this.cid]);
                                  this.setTransform(this.px1, this.py1, this.px2, this.py2, this.px3, this.py3, this.px4, this.py4);
                                  this.loadedImage = true;
                        }
                        if (Math.round(Math.abs(this._x-this.x))>=1 || this.allowUpdate) {
                                  if (this._name.indexOf("reflection") == -1) {
                                            this._y = centerY+((shelveCDHeight/2)-(this._parent["_shelveCDHeight"+this.cid]/2));
                                            if (this._x>=centerX+centerDistance) {
                                                      this.swapDepths(-this._x);
                                                      this.setSides(-(this._parent["_shelveCDWidth"+this.cid]/2), -(this._parent["_shelveCDHeight"+this.cid]/2)+((Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), this._parent["_shelveCDWidth"+this.cid]/2, -(this._parent["_shelveCDHeight"+this.cid]/2), this._parent["_shelveCDWidth"+this.cid]/2, this._parent["_shelveCDHeight"+this.cid]/2, -(this._parent["_shelveCDWidth"+this.cid]/2), (this._parent["_shelveCDHeight"+this.cid]/2)-((Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])));
                                            } else if (this._x<=centerX-centerDistance) {
                                                      this.swapDepths(this._x);
                                                      this.setSides(-(this._parent["_shelveCDWidth"+this.cid]/2), -(this._parent["_shelveCDHeight"+this.cid]/2), this._parent["_shelveCDWidth"+this.cid]/2, -(this._parent["_shelveCDHeight"+this.cid]/2)+(Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid]), this._parent["_shelveCDWidth"+this.cid]/2, (this._parent["_shelveCDHeight"+this.cid]/2)-(Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid]), -(this._parent["_shelveCDWidth"+this.cid]/2), this._parent["_shelveCDHeight"+this.cid]/2);
                                            } else if (this.cid == current-1 || this.cid == current || this.cid == current-2) {
                                                      if (this._x>centerX-centerDistance && Math.floor(this._x)<centerX && angle-((this._x-(centerX-centerDistance))/centerDistance*angle)>autoJump) {
                                                                this.swapDepths(1002);
                                                                var sum:Number = this._parent["_shelveCDWidth"+this.cid]+((this._x-(centerX-centerDistance))/centerDistance*(this._parent["_frontCDWidth"+this.cid]-this._parent["_shelveCDWidth"+this.cid]));
                                                                var sum2:Number = angle-((this._x-(centerX-centerDistance))/centerDistance*angle);
                                                                var sum3:Number = this._parent["_shelveCDHeight"+this.cid]+((this._x-(centerX-centerDistance))/centerDistance*(this._parent["_frontCDHeight"+this.cid]-this._parent["_shelveCDHeight"+this.cid]));
                                                                this.setSides(-(sum/2), -(sum3/2), sum/2, -(sum3/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), sum/2, (sum3/2)-((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), -(sum/2), sum3/2);
                                                      } else if (this._x<centerX+centerDistance && Math.ceil(this._x)>centerX && angle-(((centerX+centerDistance)-this._x)/centerDistance*angle)>autoJump) {
                                                                this.swapDepths(1003);
                                                                var sum:Number = this._parent["_shelveCDWidth"+this.cid]+(((centerX+centerDistance)-this._x)/centerDistance*(this._parent["_frontCDWidth"+this.cid]-this._parent["_shelveCDWidth"+this.cid]));
                                                                var sum2:Number = angle-(((centerX+centerDistance)-this._x)/centerDistance*angle);
                                                                var sum3:Number = this._parent["_shelveCDHeight"+this.cid]+(((centerX+centerDistance)-this._x)/centerDistance*(this._parent["_frontCDHeight"+this.cid]-this._parent["_shelveCDHeight"+this.cid]));
                                                                this.setSides(-(sum/2), -(sum3/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), sum/2, -(sum3/2), sum/2, sum3/2, -(sum/2), (sum3/2)-((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])));
                                                      } else {
                                                                this.swapDepths(1004);
                                                                this.setSides(-(this._parent["_frontCDWidth"+this.cid]/2), -(this._parent["_frontCDHeight"+this.cid]/2), this._parent["_frontCDWidth"+this.cid]/2, -(this._parent["_frontCDHeight"+this.cid]/2), this._parent["_frontCDWidth"+this.cid]/2, this._parent["_frontCDHeight"+this.cid]/2, -(this._parent["_frontCDWidth"+this.cid]/2), this._parent["_frontCDHeight"+this.cid]/2);
                                                      }
                                            } else {
                                                      if (this._x>centerX-centerDistance && Math.floor(this._x)<centerX && angle-((this._x-(centerX-centerDistance))/centerDistance*angle)>autoJump) {
                                                                this.swapDepths(1002);
                                                                var sum2:Number = angle-((this._x-(centerX-centerDistance))/centerDistance*angle);
                                                                this.setSides(-(this._parent["_shelveCDWidth"+this.cid]/2), -(this._parent["_shelveCDHeight"+this.cid]/2), this._parent["_shelveCDWidth"+this.cid]/2, -(this._parent["_shelveCDHeight"+this.cid]/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), this._parent["_shelveCDWidth"+this.cid]/2, (this._parent["_shelveCDHeight"+this.cid]/2)-((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), -(this._parent["_shelveCDWidth"+this.cid]/2), this._parent["_shelveCDHeight"+this.cid]/2);
                                                      } else if (this._x<centerX+centerDistance && Math.ceil(this._x)>centerX && angle-(((centerX+centerDistance)-this._x)/centerDistance*angle)>autoJump) {
                                                                this.swapDepths(1003);
                                                                var sum2:Number = angle-(((centerX+centerDistance)-this._x)/centerDistance*angle);
                                                                this.setSides(-(this._parent["_shelveCDWidth"+this.cid]/2), -(this._parent["_shelveCDHeight"+this.cid]/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), this._parent["_shelveCDWidth"+this.cid]/2, -(this._parent["_shelveCDHeight"+this.cid]/2), this._parent["_shelveCDWidth"+this.cid]/2, this._parent["_shelveCDHeight"+this.cid]/2, -(this._parent["_shelveCDWidth"+this.cid]/2), (this._parent["_shelveCDHeight"+this.cid]/2)-((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])));
                                                      }
                                            }
                                  } else {
                                            this._yscale = -100;
                                            this._y = centerY+((shelveCDHeight/2)-(this._parent["_shelveCDHeight"+this.cid]/2))+this._parent["_shelveCDHeight"+this.cid]+reflectionSpace;
                                            if (this._x>=centerX+centerDistance) {
                                                      this.swapDepths(-this._x-333);
                                                      this.setSides(-(this._parent["_shelveCDWidth"+this.cid]/2), -(this._parent["_shelveCDHeight"+this.cid]/2)+(Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid]), -(this._parent["_shelveCDWidth"+this.cid]/2)+this._parent["_shelveCDWidth"+this.cid], -(this._parent["_shelveCDHeight"+this.cid]/2), -(this._parent["_shelveCDWidth"+this.cid]/2)+this._parent["_shelveCDWidth"+this.cid], this._parent["_shelveCDHeight"+this.cid]/2, -(this._parent["_shelveCDWidth"+this.cid]/2), (this._parent["_shelveCDHeight"+this.cid]/2)+((Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])));
                                            } else if (this._x<=centerX-centerDistance) {
                                                      this.swapDepths(this._x-333);
                                                      this.setSides(-(this._parent["_shelveCDWidth"+this.cid]/2), -(this._parent["_shelveCDHeight"+this.cid]/2), -(this._parent["_shelveCDWidth"+this.cid]/2)+this._parent["_shelveCDWidth"+this.cid], -(this._parent["_shelveCDHeight"+this.cid]/2)+((Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), -(this._parent["_shelveCDWidth"+this.cid]/2)+this._parent["_shelveCDWidth"+this.cid], (this._parent["_shelveCDHeight"+this.cid]/2)+(Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid]), -(this._parent["_shelveCDWidth"+this.cid]/2), this._parent["_shelveCDHeight"+this.cid]/2);
                                            } else if (this.cid == current-1 || this.cid == current || this.cid == current-2) {
                                                      if (this._x>centerX-centerDistance && this._x<centerX && !validateOk(this)) {
                                                                this.swapDepths(999);
                                                                var sum:Number = this._parent["_shelveCDWidth"+this.cid]+((this._x-(centerX-centerDistance))/centerDistance*(this._parent["_frontCDWidth"+this.cid]-this._parent["_shelveCDWidth"+this.cid]));
                                                                var sum2:Number = angle-((this._x-(centerX-centerDistance))/centerDistance*angle);
                                                                var sum3:Number = this._parent["_shelveCDHeight"+this.cid]+((shelveCDHeight/2)-(this._parent["_shelveCDHeight"+this.cid]/2))+((this._x-(centerX-centerDistance))/centerDistance*(this._parent["_frontCDHeight"+this.cid]-this._parent["_shelveCDHeight"+this.cid]));
                                                                this._y = centerY+sum3+reflectionSpace;
                                                                this.setSides(-(sum/2), -(sum3/2), sum/2, -(sum3/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), sum/2, (sum3/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), -(sum/2), sum3/2);
                                                      } else if (this._x<centerX+centerDistance && this._x>centerX && !validateOk(this)) {
                                                                this.swapDepths(998);
                                                                var sum:Number = this._parent["_shelveCDWidth"+this.cid]+(((centerX+centerDistance)-this._x)/centerDistance*(this._parent["_frontCDWidth"+this.cid]-this._parent["_shelveCDWidth"+this.cid]));
                                                                var sum2:Number = angle-(((centerX+centerDistance)-this._x)/centerDistance*angle);
                                                                var sum3:Number = this._parent["_shelveCDHeight"+this.cid]+((shelveCDHeight/2)-(this._parent["_shelveCDHeight"+this.cid]/2))+(((centerX+centerDistance)-this._x)/centerDistance*(this._parent["_frontCDHeight"+this.cid]-this._parent["_shelveCDHeight"+this.cid]));
                                                                this.setSides(-(sum/2), -(sum3/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), sum/2, -(sum3/2), sum/2, sum3/2, -(sum/2), (sum3/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])));
                                                                this._y = centerY+sum3+reflectionSpace;
                                                      } else if (!validateOk(this)) {
                                                                this.swapDepths(995);
                                                                this._y = centerY+((shelveCDHeight/2)-(this._parent["_shelveCDHeight"+this.cid]/2))+this._parent["_frontCDHeight"+this.cid]+reflectionSpace;
                                                                this.setSides(-(this._parent["_frontCDWidth"+this.cid]/2), -(this._parent["_frontCDHeight"+this.cid]/2), this._parent["_frontCDWidth"+this.cid]/2, -(this._parent["_frontCDHeight"+this.cid]/2), this._parent["_frontCDWidth"+this.cid]/2, this._parent["_frontCDHeight"+this.cid]/2, -(this._parent["_frontCDWidth"+this.cid]/2), this._parent["_frontCDHeight"+this.cid]/2);
                                                      }
                                            }
                                  }
                                  this.allowUpdate = false;
                                  this._x -= Math.min(Math.max((this._x-this.x)/albumEase, -maxSlide), maxSlide);
                                  this.setTransform(this.px1, this.py1, this.px2, this.py2, this.px3, this.py3, this.px4, this.py4);
                                  if (this._x<deleteMinDistance && this._parent["_ref"+(this.cid+distance)]) {
                                            this.cid += distance;
                                            this._x = deleteMaxDistance;
                                            controlTheObject(this);
                                            this._visible = false;
                                            this.loadedImage = infostruc[this.cid].loaded;
                                            this.DistortImage(this._name.indexOf("reflection")>-1 ? this._parent["_ref"+this.cid] : this._parent["_bmd"+this.cid]);
                                  }
                                  if (this._x>deleteMaxDistance && this._parent["_ref"+(this.cid-distance)]) {
                                            this.cid -= distance;
                                            this._x = deleteMinDistance;
                                            controlTheObject(this);
                                            this._visible = false;
                                            this.loadedImage = infostruc[this.cid].loaded;
                                            this.DistortImage(this._name.indexOf("reflection")>-1 ? this._parent["_ref"+this.cid] : this._parent["_bmd"+this.cid]);
                                  }
                        } else if (Math.ceil(Math.abs(this._x-this.x)) == 0) {
                                  this._x = this.x;
                        }
                        if (this.cid+1>current) {
                                  this.x = (centerX+((this.cid+1-current)*shelveCDSpacing))+centerDistance;
                        } else if (this.cid+1<current) {
                                  this.x = (centerX+((this.cid+1-current)*shelveCDSpacing))-centerDistance;
                        } else {
                                  this.x = centerX+((this.cid+1-current)*shelveCDSpacing);
                        }
                        if (fadeType == "brightness") {
                                  if (this._x<fadePointMin+fadeDist) {
                                            this._brightness = -(250-((this._x-fadePointMin)/fadeDist*250));
                                  } else if (this._x>fadePointMax-fadeDist) {
                                            this._brightness = -(250-((fadePointMax-this._x)/fadeDist*250));
                                  } else {
                                            this._brightness = 0;
                                  }
                        } else if (fadeType == "alpha") {
                                  if (this._x<fadePointMin+fadeDist) {
                                            this._alpha = ((this._x-fadePointMin)/fadeDist*100);
                                  } else if (this._x>fadePointMax-fadeDist) {
                                            this._alpha = ((fadePointMax-this._x)/fadeDist*100);
                                  } else {
                                            this._alpha = 100;
                                  }
                        }
              };
    }
    function next():Void {
              if (current<infostruc.length) {
                        current += 1;
              }
              updateInfo();
    }
    function previous():Void {
              if (current>1) {
                        current -= 1;
              }
              updateInfo();
    }
    function displayAlternArt(art, width:Number, height:Number):Void {
              artDisplay.attachBitmap(art, 1);
              artDisplay._width = width;
              artDisplay._height = height;
    }
    function loadNext():Void {
              if (!loadedAll) {
                        var num:Number = current-1;
                        if (infostruc[current-1].loaded) {
                                  var num:Number = current-Math.floor(distance/2)-1>=0 ? current-Math.floor(distance/2)-1 : 0;
                                  while (infostruc[num].loaded && num<infostruc.length) {
                                            num++;
                                  }
                                  if (num>=infostruc.length) {
                                            var num:Number = current-1;
                                            while (infostruc[num].loaded && num>0) {
                                                      num--;
                                            }
                                            if (num<=0) {
                                                      loadedAll = true;
                                            }
                                  }
                        }
                        var newLoad:MovieClip = this.createEmptyMovieClip("artLoad"+num, this.getNextHighestDepth());
                        newLoad.createEmptyMovieClip("art", newLoad.getNextHighestDepth());
                        newLoad._alpha = 0;
                        var mc:Object = {};
                        mc.number = num;
                        var artLoader:MovieClipLoader = new MovieClipLoader();
                        artLoader.addListener(mc);
                        artLoader.loadClip(infostruc[num].httpType+infostruc[num].art, newLoad.art);
                        mc.onLoadError = function() {
                                  infostruc[this.number].loaded = true;
                                  loadNext();
                        };
                        mc.onLoadInit = function(target:MovieClip) {
                                  tw = target._width;
                                  ty = target._height;
                                  if (_CDProportions == "auto") {
                                            if (target._width>target._height) {
                                                      target._width = Math.min(frontCDWidth, target._width);
                                                      target._yscale = target._xscale;
                                            } else {
                                                      target._height = Math.min(frontCDHeight, target._height);
                                                      target._xscale = target._yscale;
                                            }
                                  }
                                  root["_frontCDWidth"+this.number] = Math.min(frontCDWidth, target._width);
                                  root["_frontCDHeight"+this.number] = Math.min(frontCDHeight, target._height);
                                  target._width = tw;
                                  target._height = ty;
                                  root["_bmd"+this.number] = new BitmapData(target._width, target._height);
                                  root["_ref"+this.number] = new BitmapData(target._width, target._height);
                                  root["_bmd"+this.number].draw(target);
                                  var mc:MovieClip = target._parent.createEmptyMovieClip("gradient_mc", target._parent.getNextHighestDepth());
                                  matrix = new Matrix();
                                  matrix.createGradientBox(target._width, target._height, reflectionRotation/180*Math.PI, 0, 0);
                                  mc.beginGradientFill(reflectionFillType, reflectionColors, reflectionAlphas, reflectionRatios, matrix, reflectionSpreadMethod, reflectionInterpolationMethod, reflectionFocalPointRatio);
                                  mc.moveTo(0, 0);
                                  mc.lineTo(0, target._height);
                                  mc.lineTo(target._width, target._height);
                                  mc.lineTo(target._width, 0);
                                  mc.lineTo(0, 0);
                                  mc.endFill();
                                  target._parent.beginFill(reflectionBackgroundColour);
                                  target._parent.moveTo(0, 0);
                                  target._parent.lineTo(0, target._height);
                                  target._parent.lineTo(target._width, target._height);
                                  target._parent.lineTo(target._width, 0);
                                  target._parent.lineTo(0, 0);
                                  target._parent.endFill();
                                  target._alpha = reflectionAlpha;
                                  root["_ref"+this.number].draw(target._parent);
                                  infostruc[this.number].loaded = true;
                                  if (_CDProportions == "auto") {
                                            if (target._width>target._height) {
                                                      target._width = Math.min(shelveCDWidth, target._width);
                                                      target._yscale = target._xscale;
                                            } else {
                                                      target._height = Math.min(shelveCDHeight, target._height);
                                                      target._xscale = target._yscale;
                                            }
                                  }
                                  root["_shelveCDWidth"+this.number] = Math.min(shelveCDWidth, target._width);
                                  root["_shelveCDHeight"+this.number] = Math.min(shelveCDHeight, target._height);
                                  target._parent.removeMovieClip();
                                  updateInfo();
                                  loadNext();
                        };
              }
    }
    xmlData.onLoad = function(success:Boolean):Void  {
              if (success) {
                        for (var i:Number = -1; this.childNodes[0].childNodes[++i]; ) {
                                  var cNode:XMLNode = this.childNodes[0].childNodes[i].childNodes;
                                  var val1:String = cNode[1].childNodes[0].nodeValue ? unescape(cNode[1].childNodes[0].nodeValue) : unknownSong;
                                  var val2:String = cNode[2].childNodes[0].nodeValue ? unescape(cNode[2].childNodes[0].nodeValue) : unknownArtist;
                                  var val3:String = cNode[3].childNodes[0].nodeValue ? unescape(cNode[3].childNodes[0].nodeValue) : unknownAlbum;
                                  var val4:String = cNode[4].childNodes[0].nodeValue ? unescape(cNode[4].childNodes[0].nodeValue) : "./";
                                  var val5:String = cNode[5].childNodes[0].nodeValue ? unescape(cNode[5].childNodes[0].nodeValue) : undefined;
                                  var val6:String = cNode[6].childNodes[0].nodeValue ? unescape(cNode[6].childNodes[0].nodeValue) : undefined;
                                  infostruc.push({art:cNode[0].childNodes[0].nodeValue, info:val1, auth:val2, album:val3, httpType:val4, urlToGet:val5, urlAction:val6, loaded:false});
                                  root["_frontCDWidth"+i] = frontCDWidth;
                                  root["_frontCDHeight"+i] = frontCDHeight;
                                  root["_shelveCDWidth"+i] = shelveCDWidth;
                                  root["_shelveCDHeight"+i] = shelveCDHeight;
                        }
                        init();
                        loadStat = "";
              } else {
                        loadStat = "There was an error loading that data, sorry.";
              }
    };
    
    
    xmlData.ignoreWhite = true;
    loadPlayList("./albuminfo9.xml");
    loader._visible = false;
    mask._alpha = 0;
    scrollBar.scroller._y = 0;
    
    

    It will not work on most of the servers:"./albuminfo9.xml". It should be "../albuminfo9.xml". That may or may not solve the problem. Be sure that all of your files and folders are in the same relative location on the server as they are on your computer. Also be sure that the case for each referenced item is correct. Upper and lower case are sometimes more important on a server than they are on your computer. JPG is not the same as jpg. Be sure that your files are uploading correctly.

  • Help with loading a swf from the Google Map API done in AS3 AS2 Flash site

    OK, maybe this can be done, I need to do everything in AS3, or it is a problem of the Google Map API.

    If someone could put me on the right track, I would be grateful.

    I created a Google Map API for Flash Add to my Web site.

    My site has been built using AS2 and the Google Map API was built using AS3

    My site Flash .swf works fine and the Google Map.swf, I created works very well.

    The problem is when I try and do not add the Google Map.swf on my website flash As2 will Google.swf no work.

    I'm trying just to eliminate the error.

    Is it because that...

    1. after having my site flash with AS2, I can't add a .swf with AS3

    2. I need to change the code...

    3. it has nothing to do with AS3, it's because this is a Google Map API.


    I have a button written in AS2 on my main flash site that has a a PreLoader.


    on (release) {}

    Stop behavior MovieClip
    this.gotoAndStop ("Google_Map");
    End behavior


    load film behavior
    If (this.mcContentHolder is {Number (this.mcContentHolder))}
    loadMovieNum ("PreLoaderGoogle.swf", this.mcContentHolder);
    } else {}
    this.mcContentHolder.loadMovie ("PreLoaderGoogle.swf");
    }
    End behavior
    }

    The PreLoaderGoogle.swf was then has a

    Instance of: charger

    contentPath

    Google_Map.swf

    If I change the Google_Map.swf instance in the PreLoader for an another .swf using AS2 it all works.


    or do I just have the wrong end of the stick.

    All advice appreciated.

    If you load an as3 swf into an as2 swf, none of the code in the as3 swf file will work.

    the simplest way around this is: you could create a loader swf (GER) as3 that loads your as2 swf and load your google as3 swf.

  • latest and greatest: conditional statements for referring to the loaded swf format click

    Good forum,

    I'm so close indeed with this update of the site, it's exciting! I'll be sure to throw it here for you to see, because without this forum I was wrong!

    The last big hurdle I have, is this, and I hope that someone can just throw me a bit of advice on this.

    I'm looking for a way to write a function, that the click on my button 'next' in the script, made reference to my loaded swf MovieClip (imageLoader.content) he said to go to the next image tag, so really a compound if/then situation - simply evoking the loaded file throws me.

    So, my next button is 'pNext', and what I'm looking for something in the sense of is:

    If (loaded film) is on frames 12-144, then go here (click).

    If (loaded film) is on the 144-155 frames, then submitted here (click)

    etc. etc.

    Thank you very much! Here is my code that works on one click Next, so you can see bodies etc.

    b

    pNext.addEventListener (MouseEvent.CLICK, nextClick);

    function nextClick (e:MouseEvent): void {}
    MovieClip (imageLoader.content) .gotoAndPlay ('aboutS1');
    }

    If I'm just reading your request, what you can try is to create a table of image tags in the order they appear and use the currentLabel property to determine where you are and indicate where to go...

    var labels: Array = new Array("one","two","three","four","five"...etc...);

    pNext.addEventListener (MouseEvent.CLICK, nextClick);

    function nextClick (e:MouseEvent): void {}
    var mc:MovieClip = MovieClip (imageLoader.content);
    var nextLabel:String = labels [labels.indexOf (String (mc.currentLabel)) + 1];
    mc.gotoAndPlay (nextLabel);
    }

Maybe you are looking for

  • My phone icon left the lower bar.  How can I move it back

    My phone icon left the lower bar.  How can I move it back

  • MacBook El Capitan: 64 bit or 32 bit?

    I tried to find out if my MacBook Pro is 64-bit or 32-bit, but all the information I receive seem to relate only to the Macs of 2011 or earlier - they all arrive to say, ' go to 'about this Mac' and then click on "More information" "and when I go to

  • Thread and ThreadStart functions stop in Labwindows

    Hello I'm trying to access a card PCI Express, which uses the ThreadStart functions and ThreadStop driver. When I compile my code, LabWindows generate an error "missing" prototype I looked at the source code for the driver and the following line is i

  • Time since the last action of the front by the user

    Hi I'm looking for an easy way to get the elapsed time since the last action of the façade was done by the user. This should be a security check as after two hours, the system should. Officially, I checked this by comparing a value absolute clock rea

  • An update from Xbox

    I've updated the xbox one I like the new layout, but does not react too well what he did after the update my xbox has slowed and the worst of all he has caused my games Crash when I play. 1 slowed much in all that (treatment) 2. does not at times 3.