Problems accessing SWF info using load

i am really trying to use AS3 but having many difficulties using common tasks that seemed straightforward before. i want to find out the totalframes of an SWF that has been externally loaded using the load method.
my script is this so far:
import flash.display.*;
import flash.net.URLRequest;
var ldr:Loader = new Loader();
var url:String="natural numbers_pt-2_composite_v3-compiled audio.swf";
var urlReq:URLRequest=new URLRequest(url);
ldr.load(urlReq);
addChild(ldr);
i tried using trace(ldr.totalframes) just to test it but continue to get errors when i do.

now i get a new error:
Warning: 1090: Migration issue: The onLoad event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0.  You must first register this handler for the event using addEventListener ( 'load', callback_handler).
i would revert back to AS2 but i want to use the new Slider component and that won't happen with AS2.
why couldn't Adobe have just left well-enough alone? i know i sound like a typical designer that uses Flash.

Similar Messages

  • Hi I just updated from Snow Leopard to Mountain Lion. I write DVD's using Final Cut Pro, creating a DVD that plays HD and Standard Definition on one disk. My problem is when I used load the disk on my G5 it would ask if you want High Definition or Standar

    Hi I just updated from Snow Leopard to Mountain Lion.
    I write DVD's using Final Cut Pro, creating a DVD that plays HD and Standard Definition on one disk.
    My problem is when I used load the disk on my G5 it would ask if you want High Definition or Standard Definition, now it just defaults to Standard Definition.(I'm using Apple's DVD Player)
    Can I fix this problem?

    Addendum: I read on a post here (http://forums.macrumors.com/showthread.php?t=420169) about removing some kext files in order to trick OSX into thinking that there were no FireWire ports.
    I followed the instructions and removed from /System/Library/Extensions/ the following files:
    IOFireWireSerialBusProtocolTransport.kext
    IOFireWireAVC.kext
    IOFireWireFamily.kext
    IOFireWireIP.kext
    IOFireWireSBP2.kext
    I restarted and BAM...Snow Leopard booted crazy fast and the mouse and keyboard worked instantly.
    The System Profiler says "No FireWire ports were found."
    So this tells me that the FW port is probably the culprit and is messing up the installation.
    So how do I hack the Mountain Lion installer and tell it to ignore the FW port, which is obviously quite dead? Or is there something I can do to the Base system that is similar?

  • I'm having a problem accessing Bupers Online using my CAC reader. I get an error that says safari can't establish a secure connection to the website. Does anyone know how to fix this?

    I am having a problem accessing Bupers Online on OS X Mountain Lion. I get an error that says Safari cant establish a secure connection with Bupers Online. Does anyone have any tips to access Bupers?

    I don't use CAC certificates, but since updating to 10.9.3, I too am getting the same error, BUT only with some HTTPS sites (e.g., https://webmail.pairlite.com), not all. Meanwhile, Firefox (was 12.0, now 29.0.1) connects with no issue.
    I too have verified date/time is set automatically, checked for (and fixed) disk integrity errors and permissions, and rebooted, all to no avail.
    Update:
    Well...heck. Tried accessing the problematic site via the Guest account, and that WORKED. So...back to the drawing board.

  • Problems accessing certain sites using graphite ABS

    I have recently set up a new broadband account. I have a new netgear router and if i connect the router direct to my computer it's all set up fine and all works.
    If I connect the router to my base station the ethernet light on the router stays red. I have done my best to set up the base station correctly and it works for nearly everything - I can access the internet, use my email client, log on to secure sites etc. BUT - I can't access hotmail or ebay - it finds the login pages but when i try to log on it spends ages trying to find the page then says it can't. I'm assuming this is related to whatever is making the router light red? I bought the router from the apple store and explained that I needed it to work with the old airport so is it the set up on the base station that is wrong? I can provide other info as necessary - thanks for any help. Soph.
    iMac (PowerMac4,2)   Mac OS X (10.4.5)  

    Sophie, Welcome to the discussion area!
    If I connect the router to my base station the ethernet light on the router stays red. ... I'm assuming this is related to whatever is making the router light red?
    Read the router's user guide. I'm guessing that a red light indicates a 100 MB Ethernet connection. It probably does not mean that there is an error.

  • Problem accessing HTML pages using Tomcat 4

    I am very new to programming. I have created an html file (ThreeParamsForm.html) and placed it in development directoy. I am unsure of how to access that file. When i am typing http://localhost/ThreeParamsForm.html it is giving me HTTP Status 404 error. I have tried using servlets in similar way it is working fine. Please help.....

    did you include the port number if other than 80 ?
    i.e. http:\\localhost:8080\whatever

  • ITunes 7 - Problem getting calendar info to load on Nano

    Is anyone else having problems with the extra features? Before the iTunes 7 Update I was able to update Outlook calendar info on my Nano. Now all the previous info is gone and I can't get it back on. Does anyone have any answers?
    Dell Inspiron   Windows XP  

    Apple help line could not fix this...apparently they haven't figured it out yet, since they claim they haven't heard anything about this problem in the week the new version has been out. Last opinion was that it was more likely a problem with Outlook 2003 (pass the buck) and the rest of us can only wait til someone at MS or Apple finally fixes the problem.

  • Problems accessing application when using SmartView

    Hi friends,
    Getting the below error while connecting to applications using smart view.Any suggestions could be of very helpful.
    Unable to access the application when using SmartView. The user has access to the application DB however:
    Either user doesn't get authenticated at all or he gets the following error message:
    Cannot open cube view. Analytic Server Error (1051025): User joseph is not permitted to access application 8_RPT
    Regards.

    You need to provision in Shared Services the user 'Joseph' to have access to the 8_rpt application.

  • Problem displaying retrieved info using RMS and drawString

    Hi,
    I�m trying to show the records I retrieved using RMS, but I get nothing. The System.out.println shows me the exactly records, but I can�t get then to show on the screen using drawString. Can anyone help me ? Thanks
    public void loadScore( )
           g = getGraphics();
          try
            openScore();
            byte[]recData = new byte[50];
            ByteArrayInputStream    bin =  new ByteArrayInputStream( recData );
            DataInputStream         din = new DataInputStream ( bin );
            for (int i = 1; i < 4; i++)
                            rs.getRecord(i, recData, 0);
                            rs.getNumRecords();
                            System.out.println("Nome "+din.readUTF());
                            System.out.println("Recorde "+Integer.toString(din.readInt()));
                            NomeJogadorTela = din.readUTF();
                            RecordJogadorTela = Integer.toString(din.readInt());             
                            g.drawString(NomeJogadorTela, getWidth() / 2, 30, Graphics.TOP | Graphics.HCENTER);
                            g.drawString(RecordJogadorTela, getWidth() / 2, 60, Graphics.TOP | Graphics.HCENTER);
                            din.reset();
             din.close();
             bin.close();
            catch (Exception e)
                     System.out.println("Erro "+e);  
        }

    Was there any video card/driver updates for your system and did you install it?
    Did you goto Microsoft.com and install the latest DirectX?
    It could be your system does not meet the requirments to display this or you meed to upgrade your memory

  • Problem accessing Activity window using Command-Option A

    Until a couple of weeks ago, I was able to download an Internet video file by pressing Option-Command A and then double clicking the largest file while pressing option.  Now, nothing happens when I press Command-Option A.  Any ideas?

    The activity window is absent from Safari 6.

  • Using Loader.loadBytes - specify SecurityDomain for loaded swf?

    Hi i have a problem.
    I use Loader.loadBytes to dynamically load a swf into my app (i use this method to load modules into the app). My trouble is that when I want to use ExternalInterface.addCallback to allow js calls on my app. When those functions get called a SecurityError gets thrown because I'm not in the right Security Domain. Trying to set the SecurityDomain of the loaded content via LoaderContext results in another error telling me that SecurityDomain can't be other than null. Is there a way to actually get my modules accessible from JS?
    *Note:
    I have set in my main ap (the one that instantiates the module controller that loads the modules) the following:
    Security.allowDomain("*");
    Security.allowInsecureDomain("*");
    the loading code:
    var _contextLoader : LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);
    _contextLoader.allowCodeImport = true;
    _moduleLoader.loadBytes(moduleBytes, _contextLoader);
    The error:
    SecurityDomain 'null' tried to access incompatible context ...

    The loaded swf is at loader.content, but you can only access
    it once the loading has completed and the loader has been added to
    the display list. For example, CODE 1 will not work, but CODE 2
    will.
    //CODE 1
    var myLoader:Loader = new Loader();
    addChild(myLoader);
    myLoader.load(new URLRequest("movie.swf"));
    var loadedSwf:MovieClip = MovieClip(loader.content); //ERROR
    //CODE 2
    var myLoader:Loader = new Loader();
    addChild(myLoader);
    myLoader.load(new URLRequest("movie.swf"));
    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    loadCompleted);
    var loadedSwf:MovieClip;
    function loadCompleted(ev:Event):void {
    loadedSwf = MovieClip(loader.content);
    trace(loadedSwf);
    PS. I recommend using the Tweener library for tweening in
    ActionScript. It is much better than the Adobe functions and there
    is a tutorial at:
    http://gotoandlearn.com/player.php?id=45

  • I cannot access the internet using firefox. The little toolbar identical (the far upper right in the screen) pops up and nothing else happerns. This has only started very recently and I have not had this problem in the past.

    When I click on the icon for firefox, a little toolbar (the one you see in the top right corner of the screen) pops up and nothing else happens. I'll close it out and retry, with only the same results. I tried Firefox safemode, with the same result. Like there is something blocking me, but I don't know what. It doesn't matter if I've been on the computer for some time or just started up, I cannot access the web thru Firefox. This has only started in the last couple days. Previously, I've never had this problem. I haven't loaded any new programs anytime recently to account for this. I use Norton for my anti virus program which is the newest and had since end of December. I am not happy having to use the windows internet explorer, so would be very happy to get this resolved. Should I uninstall the mozilla program, and then reinstall it?

    "I have an ethernet cable in port 1 on my computer. That is configured manually to access ther office network."
    Do you have a "real" IP address or a private (192.168.x.x, 10.x.x.x, 172.x.x.x) IP address?
    "The wireless router was connected to the company server only for the purpose of getting me online through Airport because I couldn't access it using an ethernet connection"
    Could not access it because their network security blocked you by intent, or had some unknown technical difficulty?
    Unless you are blocked by intent or ommission (if they have to explicitly allow your machine) I can think of no technical reason why your wired connection should not both get you on their network and on the internet in general. You should not need to be dual homed (though dual homing should work as well).
    Please answer the questions above when you can - I think solving the wired LAN issue will be easier if you are not being intentionally blocked.

  • Access function from a loaded external SWF

    So I have 2 swfs, one is mainly used to loading the other.
    The problem I have is that I'd like to use a "onClickPause" function from the embeded swf after pressing a button.
    Unfortunately I'm getting this error:
    ReferenceError: Error #1069: Property onClickButtonPause not found on dk.game.main.Main and there is no default value.
    Which is understandable since the function is located in: dk.game.view.AppView
    Here's the code:
    var loader: Loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
    loader.load(new URLRequest('myApp.swf'));
    function onLoadComplete(e: Event): void {
        var loaderInfo: LoaderInfo = e.target as LoaderInfo;
        addChild(e.target.content);
        var swf: Object = loaderInfo.content;
        button_2.addEventListener(MouseEvent.CLICK, fl_Click);
        function fl_Click(event: MouseEvent): void {
            swf.onClickPause();
    Now how do I go about it from here?

    Your best bet is to make the swf you are loading implement an Interface. The reason I recommend doing this is you can then cast your loaderInfo.content to that Interface and be sure the method is available. The reason I did not suggest just casting to the Document Class itself is if you do, the entire Document Class definition will get compiled into the loading swf, which presumably is part of what you're trying to avoid by loading it separately.
    The code would then look something like this:
    function onLoadComplete(e: Event): void {
        var loaderInfo: LoaderInfo = e.target as LoaderInfo;
        addChild(e.target.content);
        var swf:IYourInterface = loaderInfo.content as IYourInteface;
        if (swf) {
             button_2.addEventListener(MouseEvent.CLICK, fl_Click);
             function fl_Click(event: MouseEvent): void {
                 swf.onClickPause();
         } else {
              trace('loaded MC does not implement IYourInterface');

  • How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    Hi,
    Thanks for the suggestion. I've been playing around with some of the classes of the java.net package and java.io
    Using the URL class i can get the content of the data from a STATIC page and output that response to file so that is does not display to the client broswer.
    But this only works if the URL i give points to a static html page.
    So the problem i'm getting is if i'm righting in arguments in the URL, this means that server needs to process the arguments i give and its sends back a dynamic result. Because its dynamic the URL class can not handle this and throws me an exception everytime :(
    Have u ever tried to do some things like this?
    Rahul

  • Problem with shared services,, cannot load "assign access control"

    i m using 11.1.1.3 version of EPM.
    I have configured Essbase with Shared Services.
    When I do right click on application on shared services and select "Assign Access Control" , it gives "loading.." .it remains same for hours..
    I re configured essbase ,, but problem remained same...
    Could you please suggest what I can do assign filters to users.

    Have you given maxl a try:
    grant filter appname.dbname.filtername to user;
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Loader Class access .swf content

    Hi!
    I am having trouble accessing a MovieClip from a .swf file
    that I load in my main movie.
    I use a code similar to the one bellow, and
    myMovieClip is a MovieClip placed directly on the stage of
    my .swf file.
    I would apreciate a little help on this.
    Thank you!

    Thanks, AlbertG! I did, indeed, do that, but it didn`t
    work...
    It gave me an error that I was trying to access a proprety of
    loader that didn`t exist. But the way to get around it is(at
    least it worked for me):

Maybe you are looking for

  • Mac Pro Quad core Intel Xeon upgrade advice please!

    Hi all, i have a Mac Pro Quad core 2 x 2.8ghz Intel Xeon (2008 model) with 4gb RAM. I am planning on giving it some upgrades and a fresh OS install as it is slowly grinding to a halt (particualrly noisey hard drives) Can anyone recommend best/fastest

  • Sales order cancel

    1)Can we cancel the Sale order 2)Can we reject the Sale order, if yes how 3)Sale order is crearted but not delivered, customer made down payment through pament card and its captured in SO, now customer  want to cancel the SO, how payment return to cu

  • Directory Utility keeps telling me the name and password do not match

    Installed Leopard Server on my Mini a few days ago, and I enabled Open Directory server. Added the server in my home network with directory utility on my laptop, and it works perfect both when I'm on the local network, and when I'm elsewhere. Tried d

  • Fuzzy photo, when viewed on iPad.

    Dreamweaver novice working on a personal site; worked in Photoshop since the early 1990s. I created graphics in Photoshop that competent web designers would do in Dreamweaver. It worked well, until this page. [see:  http://www.adrianhoff.com/Pages/Ta

  • Need Explaination for the Code

    I would like to understand the declaration part of the code and also the flow below    DATA: L_S_RANGE Type RSR_S_RANGESID,    DATA: LOC_VAR_RANGE like RRRANGEEXIT what is L_S_RANGE     and   RSR_S_RANGESID  ? what is LOC_VAR_RANGE     and    RRRANGE