Why can't I call the function in the swf from the javascript?

Hello,
I have an html file that calls the function in swf file. In the swf file, I registered the function to be called using ExternalInterface.addCallback, as the book says.
And I put this swf file in the html file using <object> tag and attempted to call the function using this object's id attribute.
But every time to run this file, what I see is the error message such as "test1.show is not a function".
Why is it?
Please anyone help me. I am enclosing my work file. It's very simple one.
Thank you.
Daniel.

It is entirely possible your college has decided to block certain websites. It's easy to do.

Similar Messages

  • Problem:  Unable to call a function in parent swf from the child swf.

    I am working on a site right now that has a parent loader
    (all it contains are the menu bar [which is as3 tweened] and the
    functions for calling all of the other pages.) The problem that I
    am having right now, are some of the internal or child pages, need
    to call functions that are in the parent loader. For what ever
    reason, I am unable to do any of that.
    I have attached the code so you can look at that.
    Let me see if I can explain it any better.
    The code I just posted is for the Main Stage swf called
    loader.swf. It has the menu, and all the functions that control the
    menu's movement and when to load all the other swfs. The easiest
    way for me to ask this, is to show you.
    click
    http://dev.locallinux.com/mystictan/layout2.html
    When you get there, you will see the menu bar, and it is
    loading home.swf onto the stage behind the menu.
    Mouse over "The Perfect Tan" and click on "1: Base"
    You will notice it just loaded a new swf called ptbase.swf.
    Well in that swf is a button for "Products" That button
    basically needs to take you to "Products > 1: Base" on the menu
    (not working yet, I know. But theres no point in me making that,
    until I could get this working"
    What I would like is when you click on "Products" in
    ptbase.swf, it calls the function clickedProductsBase(), which does
    its thing. But that function is back in the loader.swf. Does that
    make sence?
    What am I missing here?

    RyanORo, thank you very much for your response.
    I try that, and I get this sort of error when I click on it:
    TypeError: Error #1006: fwd is not a function.
    at ptbase_fla::MainTimeline/testing()
    I know all that code that I posted was a bith much, but here
    is the movie loading part:
    function loadComplete(event:Event):void
    loaderbar.visible = false;
    mainbody.removeChild(thisMC);
    thisMC = MovieClip(myloader.content);
    myloader.unload();
    mainbody.addChild(thisMC);
    thisMC.gotoAndStop(1);
    TransitionManager.start(thisMC, {type:Fade,
    direction:Transition.IN, duration:5, easing:Strong.easeOut});
    mainbody is an empty mc under the menu, so that the loaded
    swf file appears under the menu.
    You know what, scratch all that . *MOOWHA* I could KISS you
    right now. "(parent as MovieClip).clickedProductsBase()" did not
    work because it was calling it out of the wrong parent. Just did
    "(this.parent.parent as MovieClip).clickedProductsBase()" and that
    did the magic I needed. Thanks...

  • Why can't I create a response to an email from the Viewer window?

    Why can't I create a response to an email from the Viewer window?
    When I select an email to respond to in the viewer window and click on the respond arrow that appears just under the header, a new response email opens for a split second then disappears.
    I have to actually click on and open the email message in its own screen to be able to then click on the respond arrow and succeed in having Mail open a response email that I can edit - one that remains open.
    This seems to be a bug that we need to have squashed.
    Steve

    Do I have to connect the iPad to a computer to make this work? Is the fact that I used another email address to set up my Apple ID years ago causing the problem? A friend of mine just got a new iPod and he was able to set up a me.com account. I am feeling rather stupid. Hope someone here can help.

  • Why can I no longer import photos to iphoto library from the internet with a right click?

    Why can i no longer import photos from the internet to my iphoto library with just a right click?

    There are 9 different versions of iPhoto and they run on seven different versions of the Operating System. The tricks and tips for dealing with issues vary from version to version and OS to OS. So before anyone can help, they need information to work with. Basic stuff:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. What were you doing when the problem arose?
    - Did it ever work properly?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    Anything else you can think of that might allow someone else to understand your issue.
    With this kind of information somebody can develop a starting point for troubleshooting the issue.

  • How to call a function in a class from the main timeline?

    Hey Guys
    I have a project in Flash with four external AS files, which are linked to items in the library using AS linkage.
    What I want to do is call a function in one of these files from the main timeline, how would I go about doing this? I'm not currently using a document class, most of the code is in Frame 1 of the main timeline.
    Thanks

    // change type to the class name from the instance
    ClassNameHere(this.getChildByName('instance_name')).SomeFunction();

  • Why can't i download e-mail attachments and images from the web using firefox browser

    i am using a Mac laptop.
    when i try to download my e-maill attachments, the Download tab appears. but when i click the download "key", nothing happens.
    i also can't save images from the web using firefox. the Save this Image tab appears but when i try to save, nothing happens.
    when i check on my Downloads folder, only unreadable files like these appear:
    1ttOnsY3.doc.part
    2Sf9jyNT.doc.part
    62+fxHoe.doc.part
    ASx1ZO9N.xls.part
    BtRlxR4R.exe.part
    dZmKC1nU.doc.part
    ehmb9rox.doc.part
    FJx+ku02.doc.part
    FSR7ckkV.doc.part
    hvlqg5Qy.exe.part
    JwVExec0.doc.part
    KEBM+klW.doc.part
    but when i try to use my Safari browser, download is successful.
    ive tried reinstalling my Firefox (version 3.6) but to no avail

    Not all 10g links are wrong however a number of them are as follows:
    Oracle ADF Installer (10.1.3.2) (Version 10.1.3.2, build 4066)
    Oracle ADF Installer (10.1.3.1) (Version 10.1.3.1, build 3984)
    Oracle JDeveloper 10g (Version 10.1.2.3, build 1936)
    Oracle JDeveloper 10g (Version 10.1.2.2, build 1929)
    Oracle JDeveloper 10g (Version 10.1.2.1, build 1913)
    Oracle JDeveloper 10g (Version 10.1.2, build 1811)
    All update this post once resolved.
    Thanks for the notification

  • Why can't I download, edit and tag a photo from the photo stream?, Why can't I download, edit and tag a photo from the photo stream?

    I took a few pictures with my iPhone and then imported them to iPhoto. For a reason I don't understand, a few of the pictures from the camera roll didn't get imported and I thought I lost them. But, there they were in the Photo Stream. But I barely understood how to get the pictures from the steam into my library. Plus, when I copied them to the correct album, iPhoto reported that I couldn't edit them since they were downloaded from the stream. Nor could I tag them.
    Nor could I share them on Facebook. Finally, I just pasted them into the Facebook album and tagged them there.
    This is a mite annoying. Is this how it's supposed to work? Is there no way to actually download and edit and tag a picture from the stream?

    Not all 10g links are wrong however a number of them are as follows:
    Oracle ADF Installer (10.1.3.2) (Version 10.1.3.2, build 4066)
    Oracle ADF Installer (10.1.3.1) (Version 10.1.3.1, build 3984)
    Oracle JDeveloper 10g (Version 10.1.2.3, build 1936)
    Oracle JDeveloper 10g (Version 10.1.2.2, build 1929)
    Oracle JDeveloper 10g (Version 10.1.2.1, build 1913)
    Oracle JDeveloper 10g (Version 10.1.2, build 1811)
    All update this post once resolved.
    Thanks for the notification

  • Why can I not find my music that I download from the iTunes Store or that was ripped from a cd in my library

    I have bought several music from iTunes and now I cannot find them in my library.  The same goes for music that I have ripped from my cds.  What gives?!  Why doesn't the music stay in the iTunes library like it does in Windows Media.  There is music that I cannot get again and this is not acceptable.

    Your iPod can only be synced with one iTunes library at a time.  If you try connecting the iPod to a new iTunes library or PC, you won't be able to add any new content to it until you choose the Erase and Sync option that you are prompted with when you plug it in or restore the iPod if that option doesn't appear.
    If you have content on your iPod that needs to be copied back over to your iPod, see this older post from another forum member Zevoneer covering the different ways to you can recover these contents and moved them back over to your iTunes library.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Why can't I download any of adobe's apps from the website?

    Before you tell me to use the creative cloud desktop app, i've tried. I can't even install it and I can't find a fix for it. So did I just waste my money? I can't download anything. My firewall is off for these downloads and I turned off my anti-virus software as well. I'm running windows 7 right now. Very frustrated right now. I'm getting the good ol' 205 error and nothing is working to fix it.

    Troubleshoot Creative Cloud download and install issues
    Mylenium

  • Why can i only select one LUN for repository creation from the list of LUNs

    1) have successfully created a server pool with heartbeat/cluster lun of 15GB storage
    2) Now trying to create repositories for VMs - Unable to select more then 1LUN per repository - we have a requirement of over 14TB and have 1TB per LUN does this mean we will require 14 repositories??? Please help
    Thanks in advance

    right....It seems as though we will have to have 1TB LUNs per Repository, one question that comes to mind is that is it possible for a single VM to use more then one repository any ideas... ??
    so for example if a VM needs to utilise remaining free space from a LUN is this possible or if a VM needs a bigger partition then 1TB can we use 2 x repositories to build this partition?? as we have max 1TB LUNs from storage.
    Or will we have to request a amendment to the size of LUNs to increase to 2TB from storage? 2TB being max supported to a repository

  • Why can't I download an older version of Pages from the App Store?

    Is there any way to download an older version of Pages? Specifically, version 4.2?
    Upgrading my OS from 10.6.8 is not an option, and I live overseas in a place where I'm completely unable to recieve disks for older iWorks through the mail. This is frustrating... the App should either be compatible or alternatively should keep older versions available, if not on the app store then on the website somewhere. I'm willing to pay Apple for an older version, but have yet to figure out how that's even an option.
    Would love to know if there's a way to get Pages 4.2 that I've missed. Thanks

    Google "Apple iWork '09 Installer".
    Apple seems to have pulled the plug on the manual updaters so you may have to Google those as well.
    Peter

  • Why can't I watch shows I purchased and downloaded from the cloud?

    I purchased a season tv show and I cannot watch anything on my PC.  It seems that iTunes totally freezes up and cannot play the show.  I unistalled iTines and reinstalled once already.

    Go to the "Privacy" section of the option window, and make sure that Firefox is set to remember your browsing history, and not to clear history on exit. Then you should be able to choose "Show my windows and tabs from last time" in the startup options.

  • TS1702 i have a game called dino island that i downloaded from the app store it wont work it closes when i click on an island

    i have a game called dino island that i downloaded from the app store it wont work after i click on an island why can you help?

    See:
    iOS: Troubleshooting applications purchased from the App Store
    Contact the developer/go to their support site
    Restore from backup. See:
    iOS: How to back up
    Restore to factory settings/new iPod

  • Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Not a lot of details here, but my guess is this isn't working for you because you are wiring in the task to the Active Channels Property and not the actual Channel Name. I have attatched a screenshot of what I believe you are trying to do. The Task has 2 channels in it, so I need to index off one of the channels and wire it into the active channels input of the Channel Property node. Then I can read information about that channel
    Attachments:
    channel_name.JPG ‏69 KB

  • Why can I not call a live person ofr support - this is frustrating.

    Why can I not call a support person directly for help - this is frstrating.

    I understand your discontent regarding the delayed availability of our reps when you call us juliusb85! We offer other customer service alternative for you like Twitter @VZWSupport and Facebook http://fb.me/Verizon or we can assist you here also. However, please keep in mind that this is a peer to peer forum and while our Social Media team monitors the posts, the best way to get immediate assistance when network issues are suspected is to call 800-922-0204 from a different line to troubleshoot device or send us a message on twitter at @VZWSupport.
      AntonioC_VZW
    Follow us on Twitter at www.twitter.com/VZWSupport

  • I am getting error Error in calling up function 'BAPI_APOATP_CHECK' in APO server The current application triggered a termination

    I am getting error Error in calling up function 'BAPI_APOATP_CHECK' in APO server The current application triggered a termination
    when triggering for gatp.

    Hi Virender,
    This error can be experienced due to many reasons. based on my experience below reasons can cause this issue.
    1) If you are using allocation check if allocation is correctly set.
    2) In case you are using custom enhancements / user exits (in SD / GATP / CIF) check if any of them, causing this issue.
    In my case correction of allocation setup could resolve this issue, so check what is the reason in your case.
    Rgds
    Sourabh

Maybe you are looking for