Loading an external clip(swf) and removing existing one

Hi All,
I am tearing my hair out; I simply want a button when
clicked, to load an external swf. But I just can't seem to get my
head around it. Here is my code:
butt1_btn.addEventListener(MouseEvent.CLICK, swf1);
function swf1(evt:MouseEvent):void
loadSwf1.load(new URLRequest("swf1.swf") );
butt1_btn.buttonMode = true;
Any help with this would be much appreciated!
Kind Regards,
Boxing Boom

Hi,
Sorry for late response. I used the following code, which
loads another swf and replaces the original swf;
computerProtection_btn.addEventListener(MouseEvent.CLICK,
removeMain, false, 0, true);
var ld:Loader = new Loader();
ld.load(new URLRequest("computerProtection.swf"))
function removeMain(evt:MouseEvent):void {
this.parent.addChild(ld);
this.parent.removeChild(this);
Now, the problem is that when I use the same code to get back
to the original, it doesn't work. Obviously, I have changes the
button name and the requested swf.
I get an error stating something about the main timeline.
Funny, how it works only once, loads a swf but won't load another
swf file.
I appreciate the time this issue has taken. But an answer
would be nice!
Kind Regards,
Boxing Boom

Similar Messages

  • Adding new text  and removing existing one in standard oaf page

    Hi,
    I got requirement like this in iRecruitment login page .in that i need to modify raw text like New to iRecruitment?in this i have to place client text.
    can u help me?
    Thanks,
    ajay

    Ajay,
    If message which needs to be changed is attached to AOL message then try the below
    1.modify the message according to your requirement
    2. clear fucntional cache to reflect the change in login page
    Navigation to clear cache: Functional Administrator Responsibility -> Core Services -> Caching Framework -> Global Configuration -> Click on “Clear All Cache” button then click “Yes” button
    How to find out which message is attached with that login page.Is there any way to find out that in about this page or personalization or any other method.If your login page is OAF page then you can check it using about this page. Go to 'about this page' link select "Expand All" radio button then search for your message.
    regards,
    Anand

  • Opening an existing .swf and removing the music?

    I have a site that I've been asked to work on.
    its joomla and each page has a .swf on it and it plays an annoying sound.
    is there a tool that would let me crack open this swf and remove the music and put it back together again?
    here's the page: http://agrithority.com/
    thanks,

    You would have to find a Flash decompiler and use it to create an fla and then edit that fla to remove the sound.
    Beyond the ability to make changes the question arises as to whether you have the right to do so.  If you did not create this file then you probably do not own the rights to the file that would allow you to modify it.  You should check with whoever designed the site to see what needs to be done in that regard.

  • Load an external clip in all connected user ?

    hi everybody
    i have a problem and I will try to explain.. :
    i load a external clip on the stage (with loadClip), and i want for all users connected (FMS) on this time to load also this clip ?
    how can a triggered the load of the clip to other users ?
    any help ?

    Hi,
        You can try this.
    <mx:HTTPService url="https://localhost/external.php" method="POST" useProxy="false" id="httpService"
                resultFormat="text" result="resultHandler(event)"/>
    public function resultHandler(evt:ResultEvent):void
                    var res:String=evt.result as String
    Instead of res you can use your variable to assign the php result.
    Thanks
    Jayagopal.

  • Use loadSWF load my stage3D game swf and show In AIR , This swf may crash when running

    Problem Description:
    use loadSWF load my stage3D game swf and show , This swf may crash when running
    Steps to Reproduce:
    run my Upload Project . Fill in the login box, any account and password . Because of network problems, you may need to wait a long time to show up login box
    Actual Result:
    this swf crash when running
    Expected Result:
    this swf do not crash when running
    Any Workarounds: 
    Test Configuration
    My Hardware and Environment details:
    1.this url's swf load files in worker
    2.this url's swf use SDK is Flex 4.6.0(bulid23201)
    3.this url's swf is Flex Project
    Upload Project Url:
    http://fight.fuhuodao.com/fight/testUrl/!FightAirShell.zip

    The loading of SWFs from AIR has a different Security model than that of the WebPlayer.  There is a workaround to loading plugins in AIR: If you use a static plugin this should work for you.  To do this: Link in the plugin at compile time, and pass the PluginInfoResource to the loadPlugin() method.

  • Loading mcaffee livesafe wants me to remove existing anti virus software. How do I know what I have on my pc

    I am loading Mcaffee for me MAC and thought I had removed the existing antivirus software but it says I haven't. How do I look for existing anti virus software?

    Little Teddy wrote:
    I am loading Mcaffee for me MAC
    Are you REALLY a sure you want to do this? Macafee products are generally not well received in the Mac world. The same can be said for anti virus in general.
    before doing something that will slow your Mac to a crawl take a look at http://www.thesafemac.com

  • Installing new drive for OSX-How do I format and remove existing drive

    I'm going to replace the 320G drive that came in my Mac Pro with a 500G. I want to format and remove the 320G, then put OSX on the 500G. How would I go about this.

    Hi,
    Shut down computer, add the 500GB drive into one of the open hard drive slots, reboot, there might be a window that pops up indicating if you want to "intialize" the new drive. Click Intialize (If nothing comes up launch disk utility located in applications--> utilities--> disk utility).
    In the disk utility window, locate the new drive on the left side column. Click on the drive, and in the middle portion of the window there will be 5 tabs: First Aid, Erase, Partition, RAID, Restore. Click Partition.
    Under Volume Scheme, choose how many partitions you want. I your case you probably just want 1 partition, so choose 1 partition.
    Name the volume under volume information, choose Mac OS Extended (Journaled) for format.
    Looking at the buttons below press "Options". Your mac is intel make sure "GUID Partition Table" is clicked.
    Press Partition. Wait a couple seconds for it to partition. Once done, it will show up on the desktop. It's ready to go.
    Next step to decide is if you want to fresh install the OS onto this new 500GB drive OR simply clone over your 320GB. This is up to you. If you don't want to reinstall everything just use a cloning program such as "Superduper!" or "Carbon Copy Cloner".
    If you want to fresh install the OS, insert the OS disk that came with the mac pro. Restart. When restarting hold down the letter "c" on the keyboard to boot from disk. Follow the instructions, and choose "erase and install". If you are going to fresh install, BE SURE TO CHOOSE THE BLANK 500GB, NOT YOUR CURRENT 320GB. To fresh install, the choice is "Erase and Install" I think. Install and your 500GB drive should be ready to go, with a brand new OS installed.
    Whether you choose to clone over your system, or fresh install, if possible always run "Disk Warrior" or "Tech Tools" maintenance disks if you have them either after the OS install or after installing all your applications.
    Have fun!
    noice_T

  • Paste attributes while removing existing ones

    Hello,
    in previous versions of Final Cut Pro X you could only copy and paste all effects at once. However, when pasting, Final Cut would remove previous effects from the selected clips. That was very handy when making color correction and mood to multiple clips. I could make a correction to one clip, copy, and paste effects to a new clip, and both clips would have the same look.
    Version 10.0.6 brought the amazing "paste attributes", but when pasting it doesn't remove the old effects. "Paste effects", too, has changed its behavior.
    How can I bring the old behavior back?
    Thanks

    Fill out the feedback form.  A link is in the Final Cut Pro menu.

  • How do I get the screensavers to stop loading from iphoto and remove the ones now in screensaver?

    How do I remove photos from screensaver and get them to stop importing from wherever in my computer they are importing from?

    Apple Menu / System Preferences / Desktop & Screen Saver. Select Screen Saver and click on what you want. There probably is a "slide show" selected.
    You can turn it off by setting Start After: Never.

  • Is it possible to load an external MP3 file and play it on a mobile phone?

    please help, is that possible? if so, how??

    Could you elaborate your issue?
    It is possible. Are you using Flash Lite 3.1 to achieve this? if so, refer to the help documentation for more help on "how" to do this.
    If you are using FL 3.0 or less, you cannot as it doesn't support Sound streaming. But better if your question was detailed.
    - Hemanth Sharma
    http://www.flashlitehub.com/blog

  • When i put my own contacts into my iphone 3gs and deleted existing ones, the same happened on my mums iphone 4? my iphone was hers previously, but has been unlocked by o2, we have different networks and were 12 miles apart when i did it!

    My mum upgraded last week from iphone 3gs to iphone 4, I got the iphone 3gs unlocked as of this morning and proceeded to remove her contacts and put my own in.
    Several hours later she came home from work to find her contacts on the iphone 4 had been replaced with the same list i had put on mine!
    We have different networks, different itunes accounts etc, I can't understand why or how this has happened or most importantly how to fix it as she has lost all her numbers and is understandably very very cross....

    contacts are not visible in back up, but if she restores from that back up - contacts will come back to phone. Then all her apps and music have to be synced back again. She will also have all other personal info return to the phone, but all that info will be as old, as back up itself.

  • How do I take a list of numbers and remove every one that ends in zero?

    Thank you in advance for the help.

    How about a WHERE condition:
    ... yourcolumn NOT LIKE '%0'
    or think about the MOD function:
    ... MOD(yourcolumn, 10) = 0
    If that's not what you want, you should think about giving more details on your requirement.
    C.
    Message was edited by:
    cd

  • The lastest iTunes wont work and the existing one is now corrupt

    Has anyone else experienced this problem ? I'm annoyed.

    Are you getting an error message when you try to run iTunes? If so, what does it say? (Precise text, please.)

  • LoadMovie- loading an external swf into movieclip in AS3

    Im extremely frustrated.........im trying to do something
    that was once very simple, which has now become over complicated
    unecessecarily.....i want to do a simple loadMovie type action and
    load an external clip into a movieclip called ph. my AS2 code would
    be:
    loadMovie("ExternalMovieClip.swf","ph");
    or
    on(release) {
    loadMovie("ExternalMovieClip.swf","ph");
    This no longer works. Can somebody tell me the new code that
    i would use with AS3 to do exactly what i just demonstrated? I
    honestly dont even want to touch AS3. The only reason i want to use
    it is because it makes skinning the components SOOOOOO much easier
    than AS2. That is the one and only reason im trying to convert to
    AS3. All the new load movie AS3 examples ive seen on google look
    like half a page long to do what i used to do in 2 lines. There
    must be a simpler and much easier way. I am a designer. It looks to
    me like Adobe went back to making flash for programmers only again
    leaving us designers out of the mix. Someone please help me, im
    desperate. I also have other old code that im sure im going to have
    to convert to AS3 for it to still work, and i may eventually need
    help with that as well, but ill stick with this loadMovie problem
    for now. Any and all help is appreciated. Thanks

    have a look here:
    http://www.smithmediafusion.com/blog/?p=381
    use this:
    var i =new Loader();
    i.load(new URLRequest(”yourSwf.swf”));
    myMC.addChild(i)
    myMC is the name of your clip on the stage.
    Dan Smith > adobe community expert
    Flash Helps >
    http://www.smithmediafusion.com/blog/?cat=11
    http://www.dsmith.tv

  • Loading an external movie clip

    Hi team,
      Last time I wanted to load an external clip I could do it like this
    on (release) {
              unloadMovieNum(1);
              loadMovieNum("whatever.swf",1);
    So now I want to achieve exactly the same thing in AS3,
    I have been looking at examples on the web but am getting all sorts of errors and basically don't know what I am doing.  I also want to know how to navigate to .swf files in a file structure, as I have to build an old school fscommand file structure for a cd-rom.
    Any and all help greatly appreciated.
    Cheers,
    Sub

    Hey worked it out guys!
    var myLoader:Loader = new Loader();                     // create a new instance of the Loader class
    var url:URLRequest = new URLRequest("whatever.swf"); // in this case both SWFs are in the same folder
    myLoader.load(url);                                     // load the SWF file
    addChild(myLoader);                                     // add that instance to the display list, adding it to the Stage at 0,0
    But now I need to know.. How do I unload it?
    Cheers
    sub

Maybe you are looking for

  • Can't update album info with Get Info

    Hi While I am new to the Mac world I have used iTunes on the PC. My problem is that I have some random tracks from various albums that I want to group as one album in iTunes. So I've highlighted an item and hit Get Info and none of the fields are edi

  • DBMS_CRYPTO error

    Hi I have problem using dbms_crypto package. If I execute this code: declare   c_text clob := to_clob('TEST TEXT');   b_result blob;   function crypt (ac_text clob) return blob as      secret_key   RAW (32) := utl_raw.cast_to_raw('1234567890123456789

  • Getting an softwaretronghold.*** system notification error message...says i must click 'OK" and clean my mac,  can't make this go away!

    was surfing on you tube with safari.... got this pop up system notification, that my computer war running slow , and needed to be cleaned.... must click "ok" to begin and follow directions!.... can't get around it. did force quit, and restarted. came

  • Custom Fields in the Product Master Data

    Hi Experts! I have to add some custom fields in the product master data on SRM and I also need to have this data to be synchronized with the same in ERP. After having added this fields, can you pelase suggest a way to syncrhonized them with the ERP?

  • Adobe Print Properties Issue

    I am having an issue with the print properties being extremely delayed when hitting the print icon on Adobe Reader XI. I reverted to Adobe X to see if that would fix the issue, but it did not. I am running adobe reader XI on several (32) different Te