Cannot import SWF with document class (AS3)

When I try to import a SWF-file (published from a FLA-file with a as3 document class) via the mx:SWFLoader into Flash Builder, the imported SWF is not showing up (as3 build a cube from papervision3d). Which way do you have to import such a SWF-file?
Regards, Sjoerd

Shitf+Ctrl+Enter:
Attempting to launch and connect to Player using URL preloader.swf
[SWF] preloader.swf - 9591 bytes after decompression
[SWF] big.swf - 1785015 bytes after decompression
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at DocumentlClass()
Cannot display source code at this location.
My document class (simplyfied):
package {
    import flash.display.Sprite;
    import flash.display.MovieClip;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    import fl.transitions.easing.*;
    import flash.events.ProgressEvent;
    public class CarouselClass extends MovieClip {
        private vars...
        public function CarouselClass() {
            trace("document class triggered");
                this.addEventListener(Event.ADDED_TO_STAGE,init);
        private function init(evt:Event):void{
             texts = new Texts();
            carouselSprite = new Sprite();
            addChild(carouselSprite);
            topContainer = new Sprite();
            carouselSprite.addChild(topContainer);
            hitBar = new HitBar();
            hitBar.x = stage.stageWidth / 2 - hitBar.width /2;
            hitBar.y = 245;
            addChild(hitBar);
            downContent = new DownContent();
            addChild(downContent);
            downContent.y = 325;
            downContent.title_txt.text = "Learning Carousel";
            downContent.description_txt.text = "Click on one of images above to view further details";
            createSections();
        } ... (more functions)

Similar Messages

  • Cannot import swf/air file from flash catalyst

    Cannot import swf/air file from flash catalyst, states error in code, there is nothing in the properties panel.

    Hi Kristen
    Have you tried using ActionScript 2? You might give that a go
    and see if things improve.
    Just a thought... Rick

  • Class not communicating with document class

    I created classes that would hold the layout of my level. So level 1 has an array like:
      floor1[0] = [2,1,1,1,1,1,2];
      floor1[1] = [1,1,1,1,1,1,1];
      floor1[2] = [1,1,1,2,1,1,1];
      floor1[3] = [1,1,1,1,1,1,1];
      floor1[4] = [1,1,1,2,1,1,1];
      floor1[5] = [1,1,1,1,1,1,1];
      floor1[6] = [2,1,1,1,1,1,2];
    And level 2 would contain a different setup like:
      floor2[0] = [1,1,1,3,1,1,1];
      floor2[1] = [1,2,1,3,1,2,1];
      floor2[2] = [1,1,1,3,1,1,1];
      floor2[3] = [1,1,1,2,1,1,1];
      floor2[4] = [1,1,1,3,1,1,1];
      floor2[5] = [1,2,1,3,1,2,1];
      floor2[6] = [1,1,1,3,1,1,1];
    Here's my problem. These classes aren't communicating with my document class. My document has a blank array called createFloor that will equal floor1 first. Once that level is finished, it will equal floor2, and so on. The code is below:
    for (var Y:int=0; Y<createFloor.length; Y++)
                                            for (var X:int=0; X<createFloor[Y].length; X++)
                                                      var cell:MovieClip = new Tile(X,Y);
                                                      cell.gotoAndStop(createFloor[Y][X]);
                                                      cell.x = ((X-Y)*tileh)+365;
                                                      cell.y = ((X+Y)*tileh/2)+70;
                                                      addChild(cell);
                                                      cell.addEventListener(MouseEvent.CLICK, mouseclick);
                                                      cell.addEventListener(Event.ENTER_FRAME, onGame);
    I'm not sure how to get the document class and the level class to talk to each other. I tried making the level class extend the Main, but I fugre that had nothing to do with it. Any ideas

    change your Level1 class to:
    package  {
              import flash.display.MovieClip;
              public class Level1 extends MovieClip {
    public var floor1:Array;
                        public function Level1() {
                                 floor1 = new Array();
                                  floor1[0] = [2,1,1,1,1,1,2];
                                  floor1[1] = [1,1,1,1,1,1,1];
                                  floor1[2] = [1,1,1,2,1,1,1];
                                  floor1[3] = [1,1,1,1,1,1,1];
                                  floor1[4] = [1,1,1,2,1,1,1];
                                  floor1[5] = [1,1,1,1,1,1,1];
                                  floor1[6] = [2,1,1,1,1,1,2];
    as long as Level1 is in the same directory as your document class, in your document class you can use:
    private var level1:Level1 = new Level1();
    trace(level1.floor1);

  • Cannot import custom made java class

    Hello
    I wrote a java class say (Money.java) which compiled fine. When I was importing it to another class (Account.java), the folowing error message appears:
    Account.java.1:'.' expected
    import Money;(an errow pointing to ";")
    I dont think the code is wrong, because when I cut and attach the Money class code to the front of the Account class it compiled successfully.... I am confused! I wrote the import command according to the text book as follows:
    import Money;
    public class Account
    By the way, both the Money and Account classes are saved in the save folder... How come it wont let me import...
    Looking forward for an early reply.
    Thanks

    In older versions of Java, it was possible to import classes from the default package using a statement like:
    import Money;
    This feature has been removed from Java as of version 1.5. You cannot import classes from the default package.
    Note that if your other code (Account.java) is also in the default package, you do not need to import the class Money. Just remove the import statement.
    If class Account is in a different package and you want to use class Money, then the only option you have is to put class Money in another package than the default (unnamed) package.

  • Change default association with DOCUMENT class

    Hi
    Is it possible to change the default association of files in IFS with the DOCUMENT class to a subclass of DOCUMENT?
    I would like to make a subclass of DOCUMENT with additional attributes and, by default, associate ALL uploaded files with that subclass.
    If this is a setting in IFS manager, would someone be able to tell me what to change?
    Any help will be greatly appreciated.
    Thanks very much
    Hugo

    Hi,
    Yes, you have to associate the basic content type with the document library manually. You can refer to the following powershell:
    #Get site object and
    #specify name of the content type to look for in each library
    $site = Get-SPSite http://portal
    $lookForCT = "Sales Document"
    #Walk through each site in the site collection
    $site | Get-SPWeb -Limit all | ForEach-Object {
    write-host "Checking site:"$_.Title
    #Go through each document library in the site
    $_.Lists | where { $_.BaseTemplate -eq "DocumentLibrary" } | ForEach-Object {
    write-host "Checking list:"$_.Title
    $_.ContentTypesEnabled = $true
    #Check to see if the library contains the content type specified
    #at the start of the script
    if (($_.ContentTypes | where { $_.Name -eq $lookForCT }) -eq $null)
    write-host "No content type exists with the name" $lookForCT "on list" $_.Title
    else
    #Add site content types to the list
    $ctToAdd = $site.RootWeb.ContentTypes["HR Document"]
    $ct = $_.ContentTypes.Add($ctToAdd)
    write-host "Content type" $ct.Name "added to list" $_.Title
    $ctToAdd = $site.RootWeb.ContentTypes["IT Document"]
    $ct = $_.ContentTypes.Add($ctToAdd)
    write-host "Content type" $ct.Name "added to list" $_.Title
    $_.Update()
    #Dispose of the site object
    $site.Dispose()
    Reference:
    https://social.technet.microsoft.com/Forums/office/en-US/dc030cb6-5d99-47eb-9620-f3640f6d6b1b/powershell-script-enable-content-types-on-a-list-and-add-content-types?forum=sharepointadminprevious
    http://www.getinthesky.com/2014/11/add-contenttype-documents-sitecollection-using-powershell-sharepoint-2013/
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Can Play iTunes Library from PC on MacBook Air but cannot import, problem with access rights?

    I can play Itunes library from Windows Vista PC on my MacBook Air using homeshare but cannot import the library . Error message is problem with access rights. Latest OS and Itunes installed. Both computers registered with Apple on same Apple ID. Wifi Router turned on and off. Still does not allow importing. Any suggestions please?

    Might be an alternative for you here > iTunes: How to move your music to a new computer

  • Cannot get SWF with imported video to play on server

    I have had this issue for quite some time, but I never got around to looking into it until now.
    I am having an issue trying to get an SWF that features an imported video to play on our web server from its URL. About six months ago, I didn't have this issue. The only thing that has changed since then is that I have gone from Mac (Snow Leopard) to PC (Windows 7). I am using CS 5. I've attempted to perform that same action on the Mac in CS 4 without success.
    I do as I usually do: import the video (in this case an MP4 or F4V) into a Flash file and add a skin using Flash's "Import Video" function. I publish the file as an SWF and can get it to play on my hard drive. Once I place it on the web server, I can get the file to play by browsing to the server's contents in Windows Explorer and clicking on the SWF file. However, when I attempt to access the movie via its URL, the file will not play. The skin I chose shows up, but the status bar in between the "play" and "stop" buttons just looks like it's loading continuously.
    I've tried importing the video in several different formats, always with the same result. At first, I thought it was the MP4 file, but then I used Adobe Media Encoder to encode it into an F4V file with the same results. Everything plays fine locally (even from the web server). But when I attempt to access the video by its URL, it simply won't play.
    Any suggestions for what might be going on?

    Glad you got it working. Good Job!!
    Just to clarify a couple things for future reference.
    The reason the mp4 didn’t play was because it was an mp4, not an flv. Attempting to play the video in a .swf does not “convert” it into a .swf, it’s still a mp4 (or .flv)  Both are external files that stay external, they are just loaded into the .swf video player in order to display the video.
    In this case as well as the other example link you posted, the .swf is just the player, it is NOT the video. Neither the other flvs or the mp4 have been “converted” to .swf, they are still the same, flv or mp4.
    In the case of the older videos, you chose a format that worked with your .swf video player, the .flv format. In the case of the mp4, it doesn’t work with your .swf video player.
    To verify for yourself that the .flv is separate and has not been converted to a .swf, go to your server and rename this file “FK_DHI240.flv” to “FK_DHI240B.flv” and then test the link you posted, it will not play the video, even though no changes were made to the .swf.
    Any flv can be played from the hard drive just as easily as from a server, given a .swf video player that is correctly pathed to find the .flv video file.
    As for “streaming” the flv from a Web server, technically that means that you are using a Flash Media Server to do true streaming, which is most likely not the case.
    A better choice would be to choose “progressive download” when you are importing the video into Flash.
    But glad it’s all working. Hopefully next time will go smoother.
    Best wishes,
    Adninjastrator

  • Cannot import a word document with Pictures into iWEB

    I have a small word document that has embedded pictures included in the document when i try to copy it to a page in iWEB i get the text but no pictures, i assume this is because it has no media placeholder included and iWEB doesn't recognize the pictures and create Media Holders, how do i get round this?, when i try to overlay a picture directly onto the web page I cannot configure the WRAP Text in the text inspect panel, so the text and the pictures format looks clumsey
    Anyone any ideas?
    Thx
    John
    Message was edited by: John...

    OK, but were are they saved? I have looked in the folder were the document is saved and there is nothing .....
    I tried to Copy and Paste an image into the text box and yes at first glance it appears to be "in the Box" but on my system it is actually overlaying the text box, ie I cannot control the picture location from within the text box.
    If you understand what I am trying to say
    John

  • Importing RSS with HTML in AS3

    I succesfully imported RSS in Flash... now in flash i have
    <title>
    <link>
    and <description>
    I want to Display in a List component the Title and the Description, and on click a textfield displays the HTML text grabbed from the Link...
    Here's my code
    var rssLoader:URLLoader = new URLLoader();
        var rssURL:URLRequest =
             new URLRequest("http://www.parliamocidicalcio.it/rss/xml/RSS2.0/category/34-seriea.html");
        rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
        rssLoader.load(rssURL);
        var rssXML:XML = new XML();
        rssXML.ignoreWhitespace = true;
        function rssLoaded(evt:Event):void {
            rssXML = XML(rssLoader.data);
            for(var item:String in rssXML.channel.item) {
                liLog.addItem(
                          {label: rssXML.channel.item[item].pubDate.substr(0, 16) +
                        ": " + rssXML.channel.item[item].description } );
        function selectLog(evt:Event):void {
            var list:XMLList =
                        rssXML.channel.item[evt.target.selectedIndex ].children();
       var item:XML;
            for(var i = 0; i<list.length(); i++)
                if(list[i].name() == "description")
                { i++; break; }
        item = list[i].children()[0];
        var LinkLoader:String = rssXML.channel.item[evt.target.selectedIndex].link;
        var textLoader:URLLoader = new URLLoader();
        var textReq:URLRequest = new URLRequest(LinkLoader);
        textLoader.load(textReq);
            taLog.htmlText =  textLoader.data;
            //taLog.htmlText = item.toString();
        liLog.addEventListener(Event.CHANGE, selectLog);
        liLog.rowHeight = 90;
    And there's another problem... the <description> contains an <img src="xxx">... AS doesn't read HTML so it displays the code... is there a solution to remove <img src"xx"> from <description> when importing in flash? And to remove it and display the image?

    Yout cannot put an iframe into a Flash file.
    Dan Smith > adobe community expert
    Flash Helps >
    http://www.smithmediafusion.com/blog/?cat=11
    twitter:
    http://twitter.com/dmode
    "tziady" <[email protected]> wrote in
    message
    news:g58bqj$o0q$[email protected]..
    > Hello all; I am looking to embed a google calendar into
    a flash file. Has
    > anyone attempted this successfully. The embedding code
    looks like this:
    >
    > <iframe
    > src="
    http://www.google.com/calendar/embed?src=40j2e2qt3efr2rblk8r08fv530%40group
    > .calendar.google.com&ctz=America/New_York"
    style="border: 0" width="800"
    > height="600" frameborder="0"
    scrolling="no"></iframe>
    >
    > Any help with this problem would be greatly appreciated.
    >
    > Cheers
    > Tamer
    >

  • Cannot import stills with Ken Burns effect

    I apply Ken to the clip, tell it to update or apply it to a clip and drag it into the timeline. I get the status window showing it is importing, then I get an alert sound and the clip with the effect is not there. Tied removing he plist but that made no difference. Cannot figure this one out. All pics are jpg and not huge in size. I used to be able to do this with no problem in earlier versions of iMovie but HD6 is giving me fits. I dunno - maybe this will require a support call - juts hoping someone has had a similar problem and found a way to solve it.

    Well - much to my dismay and disgust moving the movie file to the main system drive solved the problem. Dismay and disgust because the other drive is an internal SATA. formatted properly. etc. Just don't seem right. I appreciate, as always, the help I get on the forum.
    Thanks again.
    Joe

  • Problem Loading swf with MCL class

    Hey, I am relatively new to actionscripting and am having a
    bear of a time trying to figure out why this won't
    load.....basically i am trying to use the movieClipLoader class to
    call up a swf..... so basic i know..This is my script
    any help here?

    does container exit on the timeline that contains your code?
    is master.swf in the same directory with your flash swf and
    html?

  • Imported SWF with custom mouse

    Hello all,
    I imported a swf animation ( Game), this swf uses a custom mouse. I guess they did a 'mouse.hide' in AS3. Is there any way i can reclame my original mouse after i leave the animation slide? Now when i leave the slide, my mouse stays hidden...

    If this issue is caused by the AS3 in your SWF, you'll need to resolve it there. Contact your ActionScript developer and tell them you've found a bug.

  • Cannot Import SWF to Premiere

    I did this the other day and it worked fine. I uploaded an old swf cartoon that I made, and it imported fine. Today I went back into premiere and tried to import a different file, and it just freezes. I tried to go back and import the same file I did the other day, and it is freezing as well. I attempted this multiple times with the same result. I tried the age old computer remedy of rebooting, and it worked, but only once. Again, everything swf I try to import causes the same problem. Does anyone have any ideas?

    Have you tried other .psd files?  Is the problem that .psd files won't import no matter which .psd file is used?
    -Jeff

  • Cannot import swf files of flash player 8 into  director

    Since I upgraded to Flash 8 the swf files generated canot be
    seen in Macromedia Director unless I am saving them as Flash 7. I
    have updated both Flash and Director and the problem is persistent,
    please help.

    ANY SUGGESTIONS PLEASE
    I suggest there's no need to shout.
    Try linking the Director cast member to the external swf file instead of fully importing it. You also should have the 10.1.1 update in place - this is particularly important.

  • Cannot import fotos with new OS lion

    Dear all,
    When I start up iphoto he is asking if I want to import my fotos.
    It takes ages and nothing happens.
    I delete the cache from the library
    I also started up with CMD and alt, a nice menu appears but nothing just the spinning wheel going on and on (this morning 3 hours).
    I have a normal amount of photos.
    Who knows whats upp?
    Greetings Saskia

    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.
    If that doesn't work:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

Maybe you are looking for

  • Rough cut planning in SOP for resource levelling

    Hello, I am trying rough cut planning in SOP. I have created rough cut planning profile for a product group by using MC35. The task list exits for the product group. In task list , work centre is maintained and the same is given while creating the ro

  • Parsing a UTF-8 encoded XML Blob object

    Hi, I am having a really strange problem, I am fetching a database BLOB object containing the XMLs and then parsing the XMLs. The XMLs are having some UTF-8 Encoded characters and when I am reading the XML from the BLOB, these characters lose their e

  • Orders consolidation and Frieght charges in delivery

    Hi SAP gurus, Scenario: customer 'x' places orders every day. once the material is available we want to ship it. so lets say that for orders placed on monday and tuesday ...material is available on wednesday. so i consolidate the two orders and make

  • Filetransfer Slow after applying Solaris 8 Patch

    Hi, I have applied Solaris 8 Patches on SUNF V240 to upgrade from SunOS 5.8 Generic_117250-22 TO SunOS DSSPDAPPSGO2 5.8 Generic_117350-33. After applying the patch, the filetransfer between the SUNFV240 & my IBM AIX (Version 5.3 ML09) becomes very sl

  • Is there shutdown of primary database needed when creating standby by Grid?

    I want to create physical standby database using EM Grid Control. Is there neccessary during the process to shutdown primary database, e.g. when creating backup of primary database? Thanks for advise, M.