problem with one.swf in another.swf setMask() method


I want to apply a dynamic mask to an another movie.swf who is responsible in a mc.
It should work, but it s not - what is hell is wrong?
I ve works with this problem for about 3 days.

Please tell me if it's my lack of knowledge or if it's something that
Flash 8 can not handle properly.




1. I ve had navigation.swf that contain 6 buttons
and a movieclip called containerMC which act as a support for loaded movies
in this examle load galleri.swf.

2. galleri.swf contain a layer mask with a mc called mcMaskGalleri
(acting as a mask) and a layer mask with a mc called mcGalleri.

3 when I pressed a button in navigation.swf I want to hide
mcGalleri in galleri.swf by the present code on each button in navigation.swf:

{We (Press)}
this.containerMC.mcGalleri.setMask (mcMaskGalleri);
}

But it don't work and even tried to I ve:

{We (Press)}
_parent.containerMC.mcGalleri.SetMask (mcMaskGalleri);
}

{We (Press)}
_root.containerMC.mcGalleri.SetMask (mcMaskGalleri);
}

But nothing works
Yes, that works if I put a mc in the galleri.swf and let it act as a button and run this code:

this.mcBtnTest.onPress = function() {}
trace ("hurry mcBtnis");
mcGalleri.setMask (mcMaskGalleri);
};



What could possible be wrong?

I appreciate every response

You are welcome.

Tags: Adobe Animate

Similar Questions

  • I have an older version of Firefox 3.6.6 I think I'm having a problem with one of the websites that I sign. Is it possible to upgrade to the latest version

    I have an older version of Firefox 3.6.6 I think I'm having a problem with one of the websites that I sign. Is it possible to upgrade to the latest version. Without losing all my favorites and the saved passwords?

    Yes, see this article:

    After:

  • Problem with the primary dns server, get the error "There could be a problem with one or more network adapters on this computer."

    Hello

    I was all of a sudden having problems connecting to my wifi at home. When I was diagnosed, he says cannot communicate with primary dns server. I tried all methods in similar positions, but nothing works. I am also unable to connect to internet with my iphone and the itouch. It's really frustrating, because I've already tried all of your suggestions. I just ran another ' diagnose connection problems and it says the following:
    "There could be a problem with one or more network adapters on this computer." Help, please!
    Thank you!

    Thanks for your help, but I have tried this before. In the end I just unplugged my modem and plugged in again and it worked? I feel a bit silly not to try first.

  • a problem with one of the files in the TestStand\AdapterSupport\LabVIEW directory

    When looking at the module a LabVIEW VI called for TestStand, I get the following message:

    A problem with one of the files in the TestStand\AdapterSupport\LabVIEW directory.  Please reinstall or repair.

    I made the mistake of cleaning C: in my computer.  Clean the C:\National Instruments downloads

    Why would someone put bits of applications or modules, etc. in such a directory?

    I'm not too crazy about restoring 11FR in this folder.  It's just crazy!

    If anyone has encountered this before?  No "easy"? outside re - install TS...

    Side note: I do not touch anything in the \Program files. National Instruments\TestStand\AdapterSupport\LabVIEW

    What version of LabVIEW and TestStand do you use?

    In 2012, TestStand, this directory is mapped to:

    C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 2012\AdapterSupport\LabVIEW

    Have you tried mass compiling the screws in this folder?

    I had to create a new 'TestStand - default values XX.llb"file, where XX is the last version of LabVIEW you use, but I have not seen this message before.

    Good luck

    PH

  • Problem "there could be a problem with one or more network adapter on the computer?

    Hi, I just changed my modem, I can't connect to the internet. I can connect to wireless network but not to the internet. When I diagnose, he said, "there could be a problem with one or more network adapter on the computer. I searched the internet but I can't find anything. When I diagnose, I have also seen something on the 'hot spots', but I can't remember it clearly? Any help please?

    Also, when I go to Device Manager network adapters, each of them has WARNING signs except two of them.

    Hello:

    If your laptop is an Atheros AR5007 wireless card, see if installing this driver solves the problem, you have to be able to connect to wireless but no internet network.

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-108905-1&cc=us&DLC=en&LC=en&JumpID=reg_r1002_usen_c-001_title_r0004

  • Problems with external swf preloading

    Hello

    I have to do a Web site using Flash CS3 and ActionScript 3. I decided to implement a main.swf with a menu that loads all other pages (external SWF) into a movieclip. During the loading process is illustrated a preloader. It works fine until you click on a button to one page in another we're always loading. Although the percentage of meter refreshs swf you asked last gets charge and the dsiplayed, the preloader doesn´t turn invisible and stops above 100%.
    Please can someone help me? What I chose a completely different approach?

    The code on frame 1:

    var swfLoader:Loader = new Loader();
    sets the conbox movieclip as a place for external SWF files
    conbox.addChild (swfLoader);

    all external SWF
    var homeURL:URLRequest = new URLRequest("Unterseiten/home.swf");
    var home2URL:URLRequest = new URLRequest("Unterseiten/home2.swf");

    the EventListener
    swfLoader.contentLoaderInfo.addEventListener (Event.OPEN, loadStart);
    swfLoader.contentLoaderInfo.addEventListener (ProgressEvent.PROGRESS, loadProgress);
    swfLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, loadProdComplete);
    load the first external swf at startup
    swfLoader.load (homeURL);

    the functions
    function loadStart(e:Event):void {}
    var percentLoaded = 0;
    }

    function loadProgress(event:ProgressEvent):void
    {
    var percentLoaded:Number = event.bytesLoaded / event.bytesTotal;
    percentLoaded = Math.round(percentLoaded * 100);
    this.percentLoaded.text = String (uint (percentLoaded)) + '% ';
    This. USLadetext.visible = true;
    this.percentLoaded.visible = true;
    }
    function loadProdComplete(e:Event):void {}
    trace ("file loaded");
    This. USLadetext.visible = false;
    this.percentLoaded.visible = false;
    }

    The code for a button:

    [button1.addEventListener (MouseEvent.MOUSE_UP, onBtn1Release);
    function onBtn1Release(e:MouseEvent):void {}
    swfLoader.load (home2URL);
    }

    Ah now I see you add loader to display the list.  I made an example of loading of 2 swf files, here is the source code of the files are attached, let me know if you don't understand something.

    stop();
    //pages to load
    var swf_ar:Array =["content1.swf","content2.swf"]
    //holder sprite
    var holder:Sprite = new Sprite();
    this.addChildAt(holder,0);
    //loader
    var loader:Loader;
    //controls
    btn1.addEventListener(MouseEvent.CLICK,onControlClick,false,0,true);
    btn2.addEventListener(MouseEvent.CLICK,onControlClick,false,0,true);
    
    function onControlClick(e:MouseEvent):void
    {
         loadSection(Number(e.target.name.charAt(3)));
    }
    function loadSection(pSectionNum:uint):void
    {
         //check of loader exist-> remove listeners ,close the loader,set to null
         if(loader)
         {
              loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,onSectionLoadComplete);
              loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,onSectionLoadProgress);
              loader.close();
              loader=null;
         }
    
         loader = new Loader();
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onSectionLoadComplete,false,0,true);
         loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,onSectionLoadProgress,false,0,true);
         loader.load(new URLRequest(swf_ar[pSectionNum-1]));
    }
    function onSectionLoadComplete(e:Event):void
    {
         if(holder.numChildren > 0)
         {
              holder.removeChildAt(0);
         }
    
         holder.addChild(MovieClip(e.target.content));
    
         //when load finished remove losteners and set the loader to null
         loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,onSectionLoadComplete);
         loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,onSectionLoadProgress);
         loader=null;
    }
    
    function onSectionLoadProgress(e:ProgressEvent):void
    {
         trace(e.bytesLoaded/e.bytesTotal);
    }
    
  • (Eng/Esp)  Problem with. SWF in DW/Problema con. In SWF DW.


    Hello

    Sorry for my English, im learning, but im not an expert.

    I have problem with my Dreamweaver, when I put a .swf (I did my web with Flash) and press F12 I don't see my SWF. And the mensager error is the following:

    Sin título.jpg

    Can u help me please?

    Thnx.

    Andrés

    -----------------------------------------

    Buenas tardes,

    Estoy web designed of pagina mi. He hecho en Flash, pero exportarla hora has a Dreamweaver y al simplice F12 para verla como seria in el FireFox al, sale me este message

    Sin título.jpg

    If the aceptar doy, me aprece el fondo mi, pero donde esta web part Flash is is totally in blanco. He probado otros exploradores is selling me the same message. El of He actualizado flash has the ultima version, etc. Alguien me could help?

    MUCHAS gracias,.

    Andrés

    On lines 33 and 42, change this:

    To do this:

    param name= "swfversion" value= "8.0.35.0" / >

    Nancy O.

  • Color laserjet 4600 - problem with one color (yellow) for the most part does not print

    Colors look purpleish when printing photos.  It turns out that this is a problem with yellow print.

    We tried to replace the yellow toner cartridge, and it was not fixed.

    PQ troubleshooting, the yellow page is empty except for a thin (16th of an inch) to 99% a horizontal line at the top of the page.

    In the configuration page, all the different areas that should have the yellow are mostly empty, with the exception of the same sort of thin horizontal line at the top of each of these areas.  After updating the firmware from 03.001.0 to 03.016.0: in addition to what is described on the configuration page, some of the fields in the configuration page that should be yellow, have a pale magenta and more this yellow line.

    Our technician came several times and has so far tried to replace the hvps, scanner laser, toner alignment and trainer kit Board.  Nothing has improved the question.  Then for the replacement is the regulator dc ($1000).

    Anyone here have an opinion on what could cause this problem?  It seems they are just throwing parts at home and we're about to tell them to give up.

    It wasn't the dc controller.  I figured out well out - somehow, there was a spring missing behind one of the speeds in the train of drum roll.

  • Problem with vista 64 - not another update

    I am running vista 64 ultimate sp1 and for some reason, I can't take

    Update cumulative security for IE7 for Win x 64 (KB972260) 8007371b
    SP2 KB94865                                                                         800F081F
    IE8 for vista 64 8007371b

    I have tried and read all what google can find
    I ran the Fixit
    I ran sfc/scannow - no problem
    I ran the tool - no error
    I disabled and then uninstalled mcafee
    I disabled at startup, which was not microsoft
    I tried as well the update of windows and programs stand-alone installation for all updates 3 - no difference
    reinstalled windows update customer... no diff
    tried in safe mode - same mistake
    renamed caroot2 and software distribution directories - nope

    I'm starting to think this is a problem with ie and you cannot uninstall it. I tried to install these updates several times and I got other errors and even once told me I didn't need the update (2260). I think I had a 80073712 and 7000 d also, not sure update. These errors only came once or twice, said them are the main errors

    the strange thing is that there still updates
    It took these updates after the fact

    Update security for Windows Vista for x 64-based systems (KB973768)
    A security update for Jscript 5.7 for Windows Vista for x 64-based systems (KB971961)
    Update for Windows Mail Junk e-mail filter for x 64 systems [September 2009] (KB905866)
    Update security for Windows Vista for x 64-based systems (KB967723)
    Update security for Windows Vista for x 64-based systems (KB970710)
    X 64-September Windows malicious software removal tool (KB890830) 2009
    A security update for Windows Media Format Runtime 11 for Windows Vista for x 64-based systems (KB968816)

    These upates are more recent than those that it won't take.

    I even tried to reinstall an update but after sitting between 4-5 hours and thinking that he was going to work, he stopped on the last line to 60% and pops up a message saying that he could not continue and it has been reinstalled the origin o/s. I think that this may be due to fact I said to take updates, maybe I should not have.

    Hello

    Welcome.

    A clean install will thus fix registry problems.

    All the best!

    Thank you, and in what concerns:

    Diana D D - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • problem with the SWF version when you use a native extension

    Hello

    I am trying to create an android app where I use a donkey BT (Extension Native Android).  After packaging wih ADT, I get the following message:

    Included native extension "com.myflashlab.air.extensions.bluetooth" includes a

    SWF 25 version that is greater than the root SWF version of this

    application: 17


    Anyone who knows how to change the swf to a swf file version?

    Another article, the CS6-oriented:

    https://chrisgriffith.WordPress.com/2012/07/20/updating-Flash-Professional-CS6-to-support-11-4 /.

    The procedure should work for later versions, simply to find the files to Flash Player 14 or later.

  • Problems with any SWF

    I imported a SWF file in my flash project but when I play the swf file, it works but when I go to another scene, the swf file remains on the other stages. This only happens when I opened the scene tends in the swf file. I use the following Actionscript code to load the swf file.

    var myLoader:Loader = new Loader();

    var url: URLRequest = new URLRequest ("Simulator2.swf");

    myLoader.load (url);

    addChild (myLoader);

    myLoader.x = 185;

    myLoader.y = 35;

    Could someone help? Thank you!

    When you load content dynamically it doesn't have a house in the timeline panel, except if you plant it in something you have manually placed it.  If you create an empty clip in the scene / the frame where you want this file to appear, you can add as a child of this MovieClip loader so that he has something to anchor it to the timeline... as in...

    blankMCName.addChild (myLoader);

    Instead of

    addChild (myLoader);

  • having a problem with 123flashchat.swf

    Tring to enter a chat room,
    Initially he wrote me that I'm missing 123flashchat.swf, so I tried to install, but something went wrong.
    Now when I try to enter a chat room he opens all windows over time but still can't me in the chat room

    A swf file is a file that can be opened by a Flash drive. I would like to do some research on this discussion forum, the suspicious sound.

  • Problems with video clip inside another MC button

    Hi all
    So I solved a problem earlier thanks to this site, but she has created a different problem. I could find a way to get an external text to load into a text inside a music box. However, the problem is I want to have a series of buttons also inside the MC which will change, delivery, the text in the (loading area in the text to another file). I'm running problems, however, because I can't figure out how to get the movie clip buttons to work.

    A short brief on the installer. I have a master.swf that loads in splash.swf (menu animation and splash) and about.swf (a paragraph loaded when you click on 'about' in the navi bar). When about.swf opens, I got a piece of film clip and text and the submenu appear after 20 images.

    This is the code that I placed on frame 1 of the about.swf:

    [PHP] boxmovie.btn_about2.onPress = function () {}
    trace ("button has been pressed");
    _level0.loadText (loadedInfo, ' vars/about2.txt');
    } [PHP]

    You can download the files
    goldinroute.com/MacGregor/Help.zip

    Any help would be appreciated!

    I guess what to expect, I hang on the file... OK, did you give the button the instance name 'more'? ("btn_about2") is not there in the file I have. Then, copy the following code must be IN the MC boxmovie, guess where... of 23 frame, because you cannot assign code to an object that doesn't exist or has not been instantiated, the chronology. so it should read:

    btn_about2.onPress - function() {}
    _level0.loadText (loadedInfo, ' vars/about2.txt');
    }

    (btw - if you reverse the way in which you name the inclinometer, Flash will give you a list of the methods of the class, when you type a '.' later, as in "about2_btn" to instead, just a thought for you, even with as "boxmoive_mc" for example ;))

  • I have problem with one. PST file and send the screenshot of this question by e-mail, but cannot be displayed in a zoomed images.

    Original title: expansion of the e-mail.

    I used scrpnt for a page to a friend and then he sent an email and she said that she could not read, so I looked into this area and shes right, is possible for an enlarged image of a full page by e-mail... (text document

    Hi Charles,

    Thanks for sharing this information with us.

    I am happy to know that the problem is solved, this will help other members of the community to the same question.

    Please do not hesitate to visit our Web site for any help with Windows Operating System.

  • Update multiple rows in a table with one value of another multiple

    Using SQL Server

    How this can be done:

    In all the lines in the upper table PS_CA_BILL_PLAN, we want to update the field LAST_XREF_SEQ_NUM with the MAX (XREF_SEQ_NUM) + 1 of the bottom table

    Where the CONTRACT_NUM and the BILL_PLAN_ID are equal

    This SQL below (in green) works for one line only

    SQL.jpg

    I think it's the SQL code you're looking for:

    UPDATE PS_CA_BILL_PLAN SET LAST_XREF_SEQ_NUM =

    (SELECT MAX (XREF_SEQ_NUM) + PS_CA_BP_XREF 1 B)

    WHERE B.CONTRACT_NUM = A.CONTRACT_NUM AND B.BILL_PLAN_ID = A.BILL_PLAN_ID)

Maybe you are looking for