.hasDefinition no longer working when I move .swf movie to a diff directory

I am on Flex 3.6 (Sorry, the move to 4.5 is just too darn difficult right now as I am on a tight deadline and I ran into many many migration issues).
For years I have used the following code in a component I made that subclasses SWFLoader and it works just dandy fine:  
var mClip:MovieClip;
var swfAppDomain:ApplicationDomain = this.loaderContext.applicationDomain;
if (swfAppDomain.hasDefinition(symbolLinkName)){ 
var classRef:Class = swfAppDomain.getDefinition(symbolLinkName) as Class;mClip = new classRef();
The .swf's I am loading with the SWFLoader contain various animation MovieClips that I created in Flash CS4 and are stored in the library of that animations.swf.  When I keep the animations.swf in the relative path of the Flex app MyApp.swf  (i.e. I have a folder myApp which has the Flex app MyApp.swf and a folder called assets which has the animations.swf) all works fine.  As soon as I move the assets folder to a different folder that is outside the myApp folder foodchain, the .hasDefinition no longer works.  That is, the hasDefinition() can't find my animation in the library of the animiations.swf
What on earth could be the issue?  I don't get any exceptions or error messages.  I just don't get the MovieClips out of the library.

Thank you so much for your prompt and helpful reply. I am both testing locally (using file system relative path url's) and going to deploy using http.  Where do I put the crossdomain.xml file?  In the foodchain of where my app will be running?  If I am testing locally and want to test the http url paths, do I put the crossdomain.xml file inside my html-template folder?
Thanks again for all your help.

Similar Messages

  • After up date my I phone 5 will no longer work when calling an automated phone . Press 1 for this or 2 for that. It tells me wrong selection.

    Why will my phone no longer work when calling an system with automated dialing, press 1 for this or 2 for that. Tells me not a valid number.

    sunshinesunshine wrote:
    So basically if a iphone has a fault after the 1 year warranty period is over, there is nothing the consumer can do but purchase a new phone??
    Pretty much. Except that Apple will replace it for a fixed fee that is far less than the cost of a new phone. In the US the replacement cost for an iPhone 4 is $149. It is comparable in the UK. Unless you can prove that the fault was present at the time of purchase. A switch wearing out would probably be considered normal wear and tear, not a "fault".

  • HT1947 The gyro no longer works when using the remote app on my iPad. I updated to iOS 7.0.1. This seem to happen after the update. Any suggestions?

    The gyro no longer works when using the remote app on my iPad. I updated to iOS 7.0.1.
    This seem to happen after the update. Any suggestions?

    Dear Apple friends,
    I have the exact same problem with some apps.
    Even when I try some websites in Safari and Chrome that require loading big chunks of data they crash.
    Today it crashed in two new places. In the notification center and when I opened newstand app I no longer was able to return to the main window and the dock disappeared.
    I have my ipad retina for about three months now but latelly this issue has became more frequent. What should I do?
    Should I update to the latest firmware and do what raymond73 said?
    Is there a fix for this issue?
    Has Apple said anything about this? Because I see that this issue is happening to a lot of people.
    Is it possible to downgrade to iOS 6?
    Is it a firmware problem? That can be fixed in future releases? Or an hardware issue?
    Should I wait or go to the place I bought it and try to get the money back?

  • In Yosemite Mail, the control click option no longer works when clicking on attachments, that previously allowed you to save, quicklook, and select app to open with. Any solutions?

    In Yosemite Mail, the control click option no longer works when clicking on attachments, that previously allowed you to save, quicklook, and select app to open with etc. Any solutions?

    Hi
    It shows just 4 always as an option in the "open with" lsit. Also I haven't downloaded any apps for a while so why would it start now?
    Do you know how I can estabilsh how many apps are counting toward this 10 and what they are?

  • Just upgraded to Mavericks and my HP6100 printer no longer works, when I try to reload the software it says PowerPC apps no longer supported.  Is there a way to use my HP6100 Printer with Mavericks?

    Just upgraded my 2009 iMac (3.06 Ghz, core 2 duo $GB 1067 Mhz DDR3) to Mavericks OSX 10.9.5 and my HP6100 printer no longer works, when I try to reload the software it says PowerPC apps no longer supported.  Printer says the software was improperly installed. Is there a way to use my HP6100 Printer with Mavericks or do I need to go back to Mountain Lion or Snow Leopard? 

    It's not clear whether your printer is included in the Apple list - there is an Officejet 6100 and a couple of other types. Go to the page linked to above and use the browser search for 6100.
    I'm afraid HP are notorious for not supporting older printers - I had the same problem. Probably they hope you will buy another printer (I did, but it was a Canon). I did look on HP's site and couldn't see a driver - you could give it a try (make sure you have the exactly correct printer name):
    http://www8.hp.com/uk/en/support-search.html?tab=1#/qryterm=HP6100&search_search type=s-002
    Alternatively ou could try Gutenprint (open source software):
    http://gimp-print.sourceforge.net/MacOSX.php
    I found it would indeed drive the printer, but the colour dithering wasn't very satisfactory and the duplex printing bolt-on wouldn't work. However as Gutenprint is free it's worth trying to see if it's any good for you.

  • My forward delete no longer works when searching or editing on Itunes since installing an update

    My forward delete no longer works when searching or editing on Itunes since installing an update. Anyone else have that problem? Any fixes?

    Have you tried:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    Apple will exchange your iPod for a refurbished one for this price:
    Apple - Support - iPod - Repair pricing
    A third-party place like the following maybe less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • The control click and external mouse right click no longer works when copying and pasting album art within itunes. Ex. Hit get info for one song to paste to the rest, copying the artwork wont work when it used to.

    The control click and external mouse right click no longer works when copying and pasting album art within itunes. Ex. Hit get info for one song to paste to the rest, copying the artwork wont work when it used to.

    Hello there, Teworsham90.
    The following Knowledge Base article reviews the process of adding artwork to content in your iTunes Library:
    iTunes: How to add artwork to songs and videos in your library
    http://support.apple.com/kb/HT1409
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • Captivate 6:  Can't get any JavaScript to work when published as SWF

    Version 6.0.1.240
    Windows 7 x64
    I have a button with an action of "Execute JavaScript" and can't event get a simple alert("hello"); to work when published as SWF.  I've tried publishing it with each of the different Flash Player versions.  JavaScript works fine when published as HTML5.

    @Erickj:  Either do what Rod stated (adjusting your Flash Security settings) or test your content from a true web server.  Flash automatically trusts content coming off a true web server where the web address begins with http or https and ends in .htm or .html. 
    The nice thing about Cp 7 is that it has a built-in web server so you don't run into issues like this when testing your content.

  • Button no longer works when inside a Movie Clip?

    Again I turn to the almighty Adobe forums for help...
    So basically, I've had this problem for over a day now, and I've posted on Experts-Exchange.com... to no avail really.
    So here we go:
    I have a button in a Flash project I've made. It's used to jump to another place on the root timeline, labelled "Why". It used to work perfectly.
    I have now placed the button inside a movie clip (it has to be in an animated sequence), but now it no longer works. It appears to work fine, the rollover state works and all. But when clicked it does nothing.
    The code I use to work the buttons goes on the main timeline, the code for this button is:
    mc_anim_backdrops_menu.btn_subsection1.onRelease = function() {
    gotoAndStop("Why");
    _global.swfloaded = "";
    Why does it no longer work? and what can I do to fix it?
    The question is posted here over at Experts Exchange - http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Act ionScript/Q_24888850.html
    what we've tried there is tracing the problem. The code seems to be pointing to the right place, but none of the actual function works.. as you'll be able to see if you open up the attached file (and change it's extension from .txt to .fla to get it working)
    So would someone be able to open it up, have a look and tell me what's wrong? Because I'm stumped. And frustrated.

    My guess is that you have a scope problem. By putting the button inside a movieclip you have made the buttons scope the same as that clip.
    So if you add a trace inside the release event handler, what do you get?
    trace("My current scope is: "+this);
    I'm guessing it is "_level0.mc_anim_backdrops_menu," right?
    So since you are using the global function of gotoAndPlay() it is looking for that label in the current timeline and not finding it.
    You should probably use the MovieClip method and specifiy which timeline it should look in.
    _root.gotoAndPlay("Why");
    _level0.gotoAndPlay("Why")
    _parent.gotoAndPlay("Why");
    both would probably work. I would never use the first two, other than to make sure that there wasn't something else going on...

  • Flash no longer working when updating a template page

    Recently switched from GoLive over to DW CS3. I've purchased Total Training for DW CS3 to help me with the transition.
    I am wanting to create a template page to use for the entire site so that if I need to make a change to the template, it updates my entire website.  When I upload the page, the flash image loads fine. The problem I'm having is if I reopen the template.dwt page and make a change, when DW updates the pages that are linked to the template, the flash image in the pages no longer work.
    Here are my steps I've taken:
    1.  Created a page called index.html
    2.  Made an editable region called "main content" using Insert>Template Objects>Editable Region
    3.  Created a folder called templates in the root directory
    4.  File>Save as Template and called it home.html (for testing so I don't mess up my working index.html page)
    5.  File>New>Page from Template and selected my template.dwt file
    6.  Added content to the page.
    7.  File>Save As company-history.html
    8.  Upload index.html, home.html and company-info.html to the server.
    Everything works like it is supposed to.
    9. Open template.dwt and make a change.
    10. Save page and DW updates the home.html and company-info.html pages
    11. Upload to server
    12. Flash image on those two pages stop working
    Here are the links to my pages
    Index - Working properly
    Home - (made from template) Flash not working
    Company Info - Flash not working (made from template) Flash not working
    Any ideas where I'm going wrong?

    Oh, I see you did.  So in the template file, make this -
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','900','height','256','title','Main Flash Slideshow','src','../images/Main-Flash-Slideshow','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../images/Main-Flash-Slideshow' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="900" height="256" title="Main Flash Slideshow">
          <param name="movie" value="images/Main-Flash-Slideshow.swf" />
          <param name="quality" value="high" />
          <embed src="images/Main-Flash-Slideshow.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="256"></embed>
        </object>
    Read like this -
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','900','height','256','title','Main Flash Slideshow','src','/images/Main-Flash-Slideshow','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','/images/Main-Flash-Slideshow' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="900" height="256" title="Main Flash Slideshow">
          <param name="movie" value="/images/Main-Flash-Slideshow.swf" />
          <param name="quality" value="high" />
          <embed src="/images/Main-Flash-Slideshow.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="256"></embed>
        </object>
    See if that helps.
    Message was edited by: Murray *ACP*

  • Keyboard and mouse no longer work when booting into Rhapsody

    I still have a bootable partition with the last release of Rhapsody (aka Mac OS X Server) on my Power Mac G4 but it's been a while (years!) since I actually booted it up. The G4 also has bootable partitions with Mac OS X 10.2, 10.3 and 10.4 (and is in daily use running 10.4.11).
    I used to boot into Rhapsody occasionally, mostly for interest's sake, occasionally to test Unix software on legacy systems; I haven't tried to do so since installing 10.4 until now.
    When I booted up from the Rhapsody partition today, all went well -- the system started up fine, and the login screen appeared -- but the keyboard and mouse no longer work. I even got out the original keyboard and mouse that came with the G4, with no luck.
    I assume that recent firmware updates have bypassed support for Rhapsody. I guess I'm not surprised -- it was a developer-only release, after all. But has anyone a solution?

    Adding to the above: I also tried plugging in an Microsoft USB keyboard at the point when Windows freezes at the Windows log-in screen. The keyboard is not recognized and the only way I can leave this screen is to power-off the computer.

  • Keep image size unchanged when fullscreen the swf movie

    Hi,
    i am including a image on SWF file (using Flash CS4) i want images to keep its original dimension whether user fullscreen the SWF movie or play it on windows.
    currently i do not have any action script or coding on my .fla file. when i publish the movie and fullscreen it, the image i put in fla file get all stretched out and blur. Please help me to figure out how to keep the dimension unchanged.
    Thank you

    All you have to do is to set the scalemode of the stage to "noscale"
    In AS3 add the following code:
    import flash.display.StageDisplayState;
    stop();
    stage.displayState = StageDisplayState.FULL_SCREEN;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    There is a similar code for AS2, i think infact its the same this
    Stage.scaleMode = "noScale";
    Thanks
    Karthik
    P.s. if this post is helpful, please change the thread to answered.

  • Program no longer works when compiled

    I'm not really quite sure why, but when I compile this basic RS232 program, it no longer works.  It runs fine in the actual LabView block diagram/front panel.  Does anyone have any suggestions?
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    lamp_controller_vii.vi ‏78 KB

    Well, I haven't even created an installer for it yet.  I've just tried to build an application.  The application builds fine and the VISA dependencies are included in the build (along with many others), but the commands I'm trying to send don't appear to be going through the serial port.  I've attached output from NI Spy, and it looks like it tries to establish communications with "Com 6" (the port I'm using), and then hangs up.  There should be commands going back and forth.
    Attachments:
    ni_spy_cap.png ‏75 KB

  • Search function no longer works when Mail folder is encrypted

    I posted a reply in another forum that has already been marked as answered...BUT I was not satisfied with the answer...Here is the link to that forum for some context:
    http://discussions.apple.com/thread.jspa?messageID=6362207&#6362207
    And here is basically what I posted there:
    This problem is a result of my attempt to put my User/Library/Mail folder onto an encrypted disk image, so that my mail images would be encrypted without having to encrypt my WHOLE Account with FileVault (rendering Time Machine virtually useless). Like many, I had to create a symbolic link from the terminal rather than use the Alias...that wasn't a problem. I can send/receive/read/write email all while it stays safely encrypted on the Sparse disk image that I created (by the way THANKYOU for making creating the sparse BUNDLE image an option, this makes it useable for time machine so it doesn't back up the whole thing)...Mail appeared to work perfectly with my folder in the new location
    HOWEVER...I quickly discovered that the search tool in the upper right hand corner of the Mail View no longer works...It will allow me to search the "from", "to" and "subject" lines like any old mail program would, BUT the "Entire Message" option returns on results. There must be something special about the Library folder in my Home folder, because I haven't restricted my spotlight settings. In fact with the disk mounted, I even re-indexed my WHOLE computer just to see what would happen. Spotlight is able to search for FILE names on my encrypted disk, but the search "Entire Message" still doesn't work...are there any solutions? I've spent a great deal of time searching the internet for a solution to no avail. I feel like this question requires a real mac genius, but there are other people throughout other forums posting the same question with no answer. I'm no genius, but I'm not afraid of using Terminal if I'm told the basic gist of what should be typed there. I would love to see his answered fully. Thanks!
    Message was edited by: jennings

    Ahhh! The proverbial missing information. Thanks for clarifying. Apple always has plans to fix problems, but their timetable might not meet your expectations. I strongly suggest that you report this to Apple. Send Feedback and send bug reports and enhancement requests via its Bug Reporter system. To do the latter, join the Apple Developer Connection (ADC)—it's free and available for all Mac users and gets you a look at some development software. Since you already have an Apple username/ID, use that. Once a member, go to Apple BugReporter and file your bug report/enhancement request. The nice thing with this procedure over submitting feedback is that you get a response and a follow-up number; thus, starting a dialog with engineering.

  • My speakers no longer work when plugged into my laptop headphone jack (HP Envy 14)...what do I do?

    I have tried to adjust the "line-in" volume but it no longer appears in my sound settings.  I'm starting to wonder if there's something else wrong with my computer...: / Any help would be greatly appreciated!

    hello is there any one who can help out there external speaker is no longer working with my laptop. The start up tune will sound in the external speaker but none of my videos or music will sound in the external speaker. I have try updating the driver but the system is telling me the driver is up to date. also the system identify the external speaker but no sound is coming I need help urgently. my laptop is a compaq 610. Any help will be appreciated.

Maybe you are looking for

  • Labels

    How implicit NULL and Explicit NULL label are useful in MPLS netowrk? what is main function of both the labels?

  • After an update, iTunes no longer works

    I'm sorry for such a long story.  Several weeks ago, iTunes informed me of an available update.  I clicked to update.  The next time I open iTunes, the iTunes store no longer worked.  Everything else worked fine.  I solved this problem by uninstallin

  • Win7 install with multiple/all the FAILS! Satellite P750 (PART NO. PSAY3A-02T001)

    Laptop: Toshiba Satellite P750 (PART NO. PSAY3A-02T001) Installing: Windows 7 Home Premium SP1 (64 bit) Background: Laptop is around 2-3 years old now. Formatting and installing a fresh copy of Win7. Doing this for a close friend. Issue #1: Using the

  • It's been almost 2 weeks and I still didn't receive my package

    Hi guys, I don't know how to ask for help because I have already sent an email to Best Buy and anyone aswered me. I made an order on December 15th for my xbox one and some games. Most of them arrived between 19th and 22th, however one game, Far cry 4

  • How UTF8 Session???

    Hi, after trying the oracle documentation, I have to ask you now, folks. How do I change my session to support the UTF8 "Database" character set. That means, I want to be able to store UTF8 characters in normal varchar2 fields and don't have to chang