Como unload un archivo de swf en Action Script 3.0

una imagen me cubre todos los botones y necesito uno botón para unload la galería, como lo hago? quedaría súper agradecida!!! muchas gracias.

una imagen me cubre todos los botones y necesito uno botón para unload la galería, como lo hago? quedaría súper agradecida!!! muchas gracias.

Similar Messages

  • .SWF Redirect Action Script

    Hi, I was wondering if someone could make me a .swf redirect
    action script I don't have any programs to do this. If someone
    could me a the .swf redirect to
    http://www.freewebs.com/self_concept/myspace.html
    that would be awsome heres a example of my friends.
    http://img241.imageshack.us/img241/1194/madfriendsyorn3.swf
    it redirects to a page thats not up anymore. But thats what I want
    it to do. thanks. just reply me back were I can download the .swf
    you uploaded. :)

    getURL("
    http://www.freewebs.com/self_concept/myspace.html","_self");

  • Redirect Action Script

    Hi, I was wondering if someone could make me a .swf redirect
    action script I don't have any programs to do this. If someone
    could me a the .swf redirect to
    http://www.freewebs.com/self_concept/myspace.html
    that would be awsome heres a example of my friends.
    http://img241.imageshack.us/img241/1194/madfriendsyorn3.swf
    it redirects to a page thats not up anymore. But thats what I want
    it to do. thanks. just reply me back were I can download the .swf
    you uploaded. :)

    getURL("
    http://www.freewebs.com/self_concept/myspace.html","_self");

  • Unloading a loaded external SWF with a close button on the external SWF to unload

    I have found some discussion on this topic but I am still having trouble getting it to work and was hoping to get some help here.
    Here I have a file: http://www.dril-quip.com/test/main.swf
    I have: main.swf (a menu) and I have module.swf (content)
    If you navigate to Subsea Wellhead Systems/SS-15 BigBore II and click on that I have it load an external swf which covers most of the parent.
    So far so good. My problem is unloading the loaded 'Child' swf with the button provided on the loaded 'Child' swf.
    below is the code I used to load the file but I cant, for the life of me, find a way to unload it.
    var bigboreLoader:Loader = new Loader();
    btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent);
    function bigborecontent(event:MouseEvent):void{
    var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf");
    bigboreLoader.load(bigboreRequest);
    stage.addChild(bigboreLoader);
    I am certain it requires the Child to communicate with the parent somehow but I am at a loss. If I could get a bit of advice or a link to something deal with this, it would be a big help. I just need to have my links load my modules and the remove them when the close buttong is hit on the loaded swf. I promise I have done searches and I admit I have found asnwers but still they are not working. I found the code below:
    Main FLA:
    function removeF() {
    removeChild(bigboreLoader);
    var bigboreLoader:Loader = new Loader();
    btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent);
    function bigborecontent(event:MouseEvent):void{
    var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf");
    bigboreLoader.load(bigboreRequest);
    stage.addChild(bigboreLoader);
    EXTERNAL FLA:
    btnClose2.addEventListener(MouseEvent.CLICK, bigborecontent);
    function bigborecontent(myevent:MouseEvent):void {
    MovieClip(parent.parent).removeF();
    I think I have a misunderstanding of the code. Thanks for any help you might be able to provide.

    This was the original code I got:
    Main FLA: (on AS layer inside DropDownButton Movie Object)
    function removeF() {
    removeChild(myLoader);
    var myLoader:Loader=new Loader ();
    page1_mc.addEventListener(MouseEvent.CLICK, page1content);
    function page1content(myevent:MouseEvent):void {
    var myURL:URLRequest=new URLRequest("page1.swf");
    myLoader.load(myURL);
    addChild(myLoader);
    EXTERNAL FLA: (on main time line of this file)
    close_mc.addEventListener(MouseEvent.CLICK, closeMC);
    function closeMC(myevent:MouseEvent):void {
    MovieClip(parent.parent).removeF();
    Main.FLA
    myLoader=bigboreLoader (my new loader)
    page1_mc=btnbb2 (the button who event will call external swf)
    page1content = bigborecontent (name given to SWF being loaded???)
    myURL=bigboreRequest (my new URLrequest for bigbore)
    page1.swf=moduletemplate.swf (actual address of what I am loading)
    External.FLA
    close_mc=button that will close external swf
    closeMC=movie clip to close?

  • Full action script swf dimension

    hi guys i want to ask something to that been confusing me..,
    if i create and swf let say for desktop application and it is full action script without any object in the stage ( movie clip and etcetera is created and placed by action script 3) not even in the library panel ( i mean no manual object that i added to library oanel and linking it to my code by using the linkage ) what would become the width  and height of this application?? let just say for example i make a slideshow swf which load it's image by reading a xml file (the url of the image file is in the xml file).
    i ask this because when i test my swf (stage.width) it return 0..,
    and when i loaded it into another swf i cannot set the loaded swf dimension (i did use event.complete)..,
    please do help my..,
    thanks..,

    I'm not sure how you would do this with a swf but I know if you build a
    class and in the class constructor write a param like this the-stage:*
    then when you instantiate the class from the main swf just pass in this *
    ie* theInstance = new myClass(this);  then in your constructor equate a
    variable with the-stage  ie:  stg = theStage; then throughout your
    class you can reference the stage using stg  as in this example:
    stg.stage.stageWidth

  • COMO RECUPERO UN ARCHIVO QUE ELIMINE POR ERROR

    COMO RECUPERO UN ARCHIVO QUE POR ERROR ELIMINE?

    ¿Sabía usted elimina un archivo de revel? Una vez que se elimina un archivo de una biblioteca, se ha ido, pero si se elimina un archivo de un álbum, entonces todavía está en la biblioteca y se puede añadir de nuevo otra vez para el álbum.
    Did you delete a file from revel? Once a file is deleted from a library, it is gone, but if you delete a file from an album, then it is still in the library and you can add it back again to the album.

  • Hola, como sincronizo mis archivos de ibooks (pdf) con itunes, en una nueva PC?

    Hola, como sincronizo mis archivos de ibooks (pdf) con itunes, en una nueva PC?

    Quizás te aparezca un mensaje como este, pulsa en la opción que prefieras (en mi caso, renombro, en tu caso quieres combinar o trasladar a la nueva cuenta).
    Tambien creo que debes actualizar tu aplicación de Creative Cloud a v. 1.3.0.322, Mira en el icono dentado arriba a la dcha. en Preferencias. Qué versión tienes?

  • Como dividir un archivo pdf

    como dividir un archivo pdf

    You mean, using just the free Reader? No way. Easy to do with Acrobat.
    And don't forget there is a forum in Spanish here: Foros de usuario a usuario

  • How do I use the button states in an action script?

    In my Captivate 8 project I use smart shape as buttons. The buttons have different images presented dependent on the state of the button. I have also created a simple action script that shows what happens when the button is pressed. When the button has been pressed the normal state of the button appear. I, however, want the down state of the button to remain visible util the user presses another button. How do I accomplish this? Is there variables for the buttons different state or how can I create that?
    BR,
    Madeleine

    When you talk about 'actionscript' do you mean advanced or shared actions? You cannot write actionscript within Captivate, only Javascript. If you use advanced/shared actions they'll be converted on runtime to either Actionscript (for SWF output) or Javascript (for HTML5 output).
    The states in shape buttons are the normal way buttons behave (not only in Flash). If you are indeed using shared/advanced actions, and you want the down state to remain until the next shape button is clicked, you'll have to go the way described by iFlashAppsToo. Create shapes that have the look of the down state, make them initially invisible and group all those shapes on one slide. Add two statements to the shared/advanced action (please do use shared actions, you'll save time):
    Hide Group   so that eventual down mimicked states on previously clicked buttons disappear
    Show Im_Downx    to show the down image for that button

  • Error while loading an child movieclip if the child has any action script

    Hi
    I am developing an application where I need to load a child.swf . All works fine when I load the mc but as soon as I add Action Script (lets say trace("test")) to the Child.swf I get a Error #1009: Cannot access a property or method of a null object reference. On the addChild line.
    Code
    trace("Toothpaste click");
    var mLoader:Loader = new Loader();
    var mRequest:URLRequest = new URLRequest("Child);
    mLoader.load(mRequest);
    mcContainer.addChild(mLoader);

    Sorry.Thanks
    Typo on the forum.
    I can load the child.swf see the image/text in the child  displayed in the parent but as soon as I add as3 to the child page I receive the above mentioned error. If I run the child.swf from the IDE or by itself everything works fine .
    trace("Toothpaste click");
    var mLoader:Loader = new Loader();
    var mRequest:URLRequest = new URLRequest("Child.swf");
    mLoader.load(mRequest);
    mcContainer.addChild(mLoader);

  • Error in phase of assigniment Action Script

    Hello Guys!
    I created the following action script named "sketch.as" :
    package
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import com.adobe.images.JPGEncoder;
    public class sketch extends Sprite {
    public function sketch():void {
    //this is your documentclass constructor
    stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCursor);
    Mouse.hide();
    function moveCursor(event:MouseEvent):void
        pencil.x = event.stageX;
        pencil.y = event.stageY;
    var canvas_mc:MovieClip = new MovieClip()
    addChildAt(canvas_mc, 0);
    canvas_mc.swapDepths
    function sketch()
    canvas_mc.graphics.beginFill(0xFFFFFF);
    canvas_mc.graphics.drawRect(0, 0, 600, 500);
    canvas_mc.graphics.endFill();
    canvas_mc.addEventListener(MouseEvent.MOUSE_DOWN, startDrawing);
    canvas_mc.addEventListener(MouseEvent.MOUSE_UP, stopDrawing);
    canvas_mc.addEventListener(MouseEvent.MOUSE_MOVE, makeLine);
    function startDrawing(event:MouseEvent):void{
    canvas_mc.graphics.lineStyle(1, 0, 1);
    canvas_mc.graphics.moveTo(mouseX, mouseY);
    canvas_mc.addEventListener(MouseEvent.MOUSE_MOVE, makeLine);
    function stopDrawing(event:MouseEvent):void{
    canvas_mc.removeEventListener(MouseEvent.MOUSE_MOVE, makeLine);
    function makeLine(event:MouseEvent):void{
    canvas_mc.graphics.lineTo(mouseX, mouseY);
    sketch();
    var serverPath:String = "";
    function createJPG(m:MovieClip, q:Number, fileName:String)
    var jpgSource:BitmapData = new BitmapData (m.width, m.height);
    jpgSource.draw(m);
    var jpgEncoder:JPGEncoder = new JPGEncoder(q);
    var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);
    var header:URLRequestHeader = new URLRequestHeader ("Content-type", "application/octet-stream");
    var jpgURLRequest:URLRequest = new URLRequest ( serverPath+"jpg_encoder_download.php?name=" + fileName + ".jpg");
    jpgURLRequest.requestHeaders.push(header);
    jpgURLRequest.method = URLRequestMethod.POST;
    jpgURLRequest.data = jpgStream;
    var jpgURLLoader:URLLoader = new URLLoader();
    //jpgURLLoader.load(jpgURLRequest);
    navigateToURL(jpgURLRequest, "_blank");
    save_btn.addEventListener(MouseEvent.CLICK, saveBtnPress);
    save_btn.addEventListener(MouseEvent.ROLL_OVER, saveBtnOver);
    save_btn.addEventListener(MouseEvent.ROLL_OUT, saveBtnOut);
    function saveBtnPress(e:Event):void
    createJPG(canvas_mc, 90, "sketch");
    function saveBtnOver(e:Event):void
    Mouse.show();
    pencil.visible = false;
    function saveBtnOut(e:Event):void
    Mouse.hide();
    pencil.visible = true;
    Lately I created a file .fla in the same root of the file .as naming it "sketch.fla"
    When I try, in the Adobe Flash CS4 Professional screen, to assign to  ".fla" in the properties Publish my action script, the following message appears:
    “A definition for the document class could not be found in the classpath, so one will be automatically generated in tha SWF file upon export.”
    Obviously, it doesn’t function
    Could somebody help me??

    i don't understand, "When I try, in the Adobe Flash CS4 Professional screen, to assign to   ".fla" in the properties Publish my action script, the following message  appears:"
    but i do understand that error message.  you need to assign the document class for your fla.  in the properties panel with the backstage selected, assign sketch in the class or document class field.

  • XML Gallery won't work remotely - Action Script issues

    I created an XML scrolling thumbnail gallery using a
    tutorial
    found here
    I then had to alter the action script to get my thumbnails to
    display properly -- they were spaced out or overlapping each other
    and not in the sequence specified in the XML file. The new code
    works great locally, but the thumbnails and larger image refuse to
    load remotely in every browser i've tried. Any thoughts on how to
    alter the action script to load the gallery?!?! I'm not much
    experienced in Flash so any help would be most appreciated.
    You can find the page with my unloadable gallery
    here
    You can see my action script in my
    Flash
    CS3 file
    Thanks!
    Joe.

    Hi --
    I clicked on the link for your gallery and the images load??
    Both when I
    click on the image or when I click the "next" and "previous"
    buttons --
    although the "hit" area for the buttons is below the actual
    text so you
    should adjust that on those buttons. I would also recommend
    not making the
    text selectable so the cursor won't change to the "I bar"
    Rich
    "joesavy" <[email protected]> wrote in
    message
    news:fcp3qi$4ak$[email protected]..
    >I created an XML scrolling thumbnail gallery using a
    >
    http://www.kirupa.com/developer/mx2004/thumbnails.htm
    >
    > I then had to alter the action script to get my
    thumbnails to display
    > properly
    > -- they were spaced out or overlapping each other and
    not in the sequence
    > specified in the XML file. The new code works great
    locally, but the
    > thumbnails
    > and larger image refuse to load remotely in every
    browser i've tried. Any
    > thoughts on how to alter the action script to load the
    gallery?!?! I'm not
    > much
    > experienced in Flash so any help would be most
    appreciated.
    >
    > You can find the page with my unloadable gallery
    >
    http://www.sullivancreative.com/clients/se-07-7-24/se_website/gallery.html
    >
    > You can see my action script in my
    >
    http://www.sullivancreative.com/clients/se-07-7-24/se_website/xml_photogallery_s
    > crollthms_fix.fla
    >
    > Thanks!
    > Joe.
    >
    >

  • Flash photo gallery - loading first movie - action script

    Hi,
    I have a movie gallery (they are basically images with a fading effect), and I got it setup, and working, but I cannot get right the action script to make the first movie load when the page opens. The only thing I get to see is the scroll bar with the thumbnails, and after I click on the images I can see the full size. I would like the full size image of the first thumbnail to show up as default when the page opens. And then, if you click on the thumbnails the other images will appear. This is my link:
    http://www.mauriciolopez.info/paintings/
    This is the action script for a typical Thumbnail (setup as a button):
    on (release) {
    loadMovie("clip0.swf", "_root.screen");
    I appreciate your help!!!!
    Thanks!!!!

    Rob, thanks for your answer. I do have a movieClip, at the root level. All my other movies load when I click the thumbnails. For some reason I'm not able to make a video appear before clicking on the thumbnails. I'd like to open the gallery and see the first video full size (automatically), before even clicking the thumbnails. Then, when you scroll and enlarge the other ones, they will replace the default one. I haven't been able to make it do this, and it's driving me crazy....
    Thanks again for your help.

  • Action script 3 and adding code to buttons

    When I open a new doc and selct action script 3 it won't
    allow me to insert code by selcting the button on the stage. It
    does if I select action script 2. All my old pages update ok but if
    I make new buttons it wont take the code. CAn someone tell me what
    is going on???
    Thanks a lot

    If your in a bind at the moment, I would suggest not
    attempting to learn AS3. The system is very different, good, but
    different, the syntax structure is much more strict and most things
    have been revised to use a listener/broadcaster (or event
    dispatcher) model, as well as most coding being class oriented,
    additionally the graphic display structure is quite different.
    Now did you change your publish settings back to AS2? If so,
    you should still be able to apply the above code to a button
    instance. However, as Dave stated, even in AS2 the code is best
    used from the timeline, to do so with the code above (which the on
    handler above is meant for Object attachment) you need to write it
    like this:
    my_btn.onPress = function() {
    _root.loadMovie("graphic_arts/graphic_arts.swf");
    I would also consider using a MovieClipLoader and the
    loadClip method forloading swf files, as it gives you more control
    over the load targeting, progress reporting, and event
    notifications.
    All this said, to use a button and load a file in AS3, you
    need to add an event listener to the button instance and construct
    a responding function to the event, in this case the loading of a
    swf file. Additionally, in AS3 the MovieClipLoader class, as well
    as the loadMovie methods have been replaced by the Loader classes
    and must be used to load swf files. So construct a button in AS3
    you must write something like the following:

  • Where do I put my Action Script?

    So, I created a small Flash site with no loading of external
    swfs. I am strictly using the timeline using labels. I have a layer
    for my main buttons (home, portfolio and timeline). I have selected
    AS3 for the file and I have those buttons working fine.
    I have a button for my portfolio where thumbnails will pop up
    after being pressed. I want to link those thumbnails to the URL's
    of the actual websites. Where do I put the action script?
    I also want to have my email at the bottom of the screen so
    you can click on it to email me. I am used to using AS2 whwere you
    simply put the code on the button.
    Thanks,
    Gabe

    Hey, so thank you for the fast reponse. I totally agree with
    you on learning AS3, I don't want to go back to AS2.
    I already have the code you supplied so I understand what it
    is doing but my question is where do I put it in this case? I
    always create an action layer as you mention. In my action layer, I
    have frame 1 with my preloader code and then frame 2 with my code
    for my main buttons. They call to the labels. So, when I press
    portfolio for example, it goes to that label.......a shape tween
    starts and my portfolio thumbs appear. I then want those thumbs to
    link to the URL of those sites.
    So, where do I stick your code?
    Thanks again for all your help. I am NEW to AS3 and this is
    great learning.
    Thanks,
    Gabe

Maybe you are looking for