Function loads in swf but not transition

i have a function that loads in different .swf files depending on what buttons are clicked:
function loadF(y:Number, d:Number) {
loadMovieNum("floors_swf/"+y+"_"+d+".swf", 1);
in  my .swf files, i have a white box that fades out for 15 frames and stops to reveal the content,
then fades in for 15 frames to hide the content.
is this an ok way to do a fade or is there an easier way to fade in and out the .swf file?
Also, how can I write that into my function so when a new button is clicked, I want the current .swf file
to play the exit animation, frames 15-30, then load in the new .swf file...?

what, hey, when, whois!!!!
It sounds as though you want someone else to write this for you.
There are many, many, many, many ways to skin the same cat within Flash (as with most development languages) it really is up to you with which way you want to take your development.
You might want to look at "MovieClipLoader" which will give you more options.

Similar Messages

  • Load random swf but not same

    someone here helped with the code to load random SWF files
    into a movie clip...however, i need to make sure it doesnt load the
    one that's already playing, that it goes on to a new one
    everytime..

    i dont think saying thank you really does it, but really,
    thank you.. you've helped me countless number of times, and it's
    only made me better at what I do, so I really am great full .
    Thanks again

  • Unable to load style(SWF is not a loadable module)

    While devoloping an App voor iOS we decided to use several StyleSheets.
    We are implementing the loading of Stylesheets as:
    event_dispatcher:IEventDispatcher = this.styleManager.loadStyleDeclarations2("assests/styles/default.swf");
     event_dispatcher.addEventListener(StyleEvent.COMPLETE, OnStyleLoaded);
    event_dispatcher.addEventListener(StyleEvent.ERROR, OnStyleError);
    running the app on the desktop simulators work fine.
    packaging the app with package method fast, and running the app on an iphone4 works fine.
    packaging the app with package method standaard, and running the app on an iphone4 gives an error:
    Unable to load style(SWF is not a loadable module): assets/styles/default.swf.
    Is there something im missing? Why does it work when packaging as Fast, and not as Standard?

    Hi,
            The source file is .swf ie(.css is converted to .swf).
             Main swf is running from local.
             Style module is from server.
    I set security domain. But it throws security sanbox violation.
    What should i do. Even some time if a use the local url means it thorws the same error Unable to load style(SWF is not a loadable module).
    thanks,
    Jayagopal.

  • Error: Unable to load style(SWF is not a loadable module)

    Hi,
            While i am trying to load theme dynamically from server, i am getting an error like this
         Error: Unable to load style(SWF is not a loadable module)
    Can anybody help me.
    regards,
    Jayagopal.

    Hi,
            The source file is .swf ie(.css is converted to .swf).
             Main swf is running from local.
             Style module is from server.
    I set security domain. But it throws security sanbox violation.
    What should i do. Even some time if a use the local url means it thorws the same error Unable to load style(SWF is not a loadable module).
    thanks,
    Jayagopal.

  • After the new project by importing PPT release, how to achieve the release of the demo mode SWF, but not now only Click to continue?

    After the new project by importing PPT release, how to achieve the release of the demo mode SWF, but not now only Click to continue?
    Note:Captivate 5.5
    Thks

    通过导入PPT新建的项目发布后,如何实现发布演示模式的SWF(自动播放),而不是交互模式的SWF(只能点击才能继续)?

  • Sound plays in stand-alone SWF, but not when SWF is loaded into another SWF

    I have my Main FLA (Main.SWF) into which I load another SWF (1.SWF).  I have a sound the plays in 1.SWF and it works just fine when I publish 1.SWF alone.  When I load 1.SWF into my Main.SWF and publish Main.SWF, the sound in the loaded 1.SWF no longer plays.  I can't figure out why.
    //Here's the code (AS2) in 1.SWF to play the sound; seems pretty straight forward.
    mySound = new Sound();
    mySound.attachSound("soundSWF1");
    mySound.start();

    I found some information on-line that helped me figure out how to fix this issue.  First, I moved the sound object code to the timeline of the movieclip in which I wanted to play the sound, even if the movieclip was in a loaded SWF.  So if I my sound should play in mc_1.mc_2.mc_3, the sound object is created in mc_3 timeline.  Also, when creating the sound object, "this" is placed as the parameter, as such:
    soundObject = new Sound(this);
    Also, when stoping the sound, I'm using stopAllSounds() instead of soundObject.stop().
    I hope this helps someone who is struggling with this same issue.

  • Probelm with .swf but not .exe or Test Movie?

    I've created this project that works perfectly when I view it through "test movie" (CTRL+Enter) and when I publish it to an .exe file - but when I view the .swf it doesn't work correctly.
    I am using Flash CS3 - actionscript 2 - Flash Player 8
    In my project I have controls that allow me to set the brightness and contrast of a movieclip, but when I view the .swf and I click on other buttons (unrelated to contrast and brightness), the contrast and brightness of my movieclip get reset. This does not happen when viewing the .exe or in Test Movie mode.
    I would greatly appreciate any help - thanks!

    If your calling that action from within your movieClip, be
    aware that it's looking for frame "cPause" in the root level, not
    in your movieClip. And, if you load the SWF into another "shell"
    SWF, the shell will become the root, and it will look for cPause
    there. If cPause is in your movieClip, then take off
    "_root".

  • Pdf docs will load on MacBook but not iMac

    I have an iMac and a Macbook Air. Both bought in the past three years.  I am running a proprietary back end database which uses a browser as a front end and is Java dependant..  Both have current versions of OS Mavericks, Java, safari and mozilla.  The database contains pdf docs that are displayed with the standard pdf icon.  When I click on the icon in my MacBook, they load into Word or Adobe on a separate page.  When I click on the icons in my iMac they do not load.  Does anyone have and ideas?

    Hi.  Thanks for the quick reply.  I realized I was not clear.  The docs are resumes.  If they are Word docs, they open in Word.  If they are pdf, they open in Adobe Acrobat Pro.  These open fine on my MacBook Pro, but not the iMac.  When I try opening them on the iMac, I get a Java error message.  Any ideas?

  • Slow web page loads on Mac, but not for PC

    I use a D-Link wireless router (DI-524) for my PowerBook G4 15" and my roommate's Dell PC. Very recently I seem to get very slow web page loads with some pages not even loading at all.
    Airport is consistently connected with no drops at all and when I'm downloading something it never gets interrupted the whole way through.
    My roommate's PC has no problem whatsoever and all of the web pages that he visits load instantly. It seems that my main problem is with web pages.
    I've tried doing a clean install on my Powerbook, I've tried resetting the router (I've tried upgrading the firmware but the router decided it didn't want to work with the new version). And surprisingly, I get the same slow speeds when I hook up my Powerbook to my router via ethernet cable. The only time my speeds are perfectly fine is when I hook up my Powerbook directly to the wall (I dorm in a university so we have a T3 line).
    Can someone please give me some advice on this very frustrating issue?

    In addition to Neds suggestions, empty the Safari cache (which should be empty after a clean install).
    Goto the Safari Get Info screen (in Finder or in Dock if you have Safari there), click the triangle on languages, and disable those you don't use.
    My Safari response time was significantly slowed after the 10.4.5 update, and using the combo updater took care of that. The 10.4.6 combo update is located here.

  • Loading from local but not remote HELP??

    Hi
    I've created a flash "app" that works 100% on my local server but not on a remote one, I'm connecting to a MySQL server using flash VIA php.
    Weird part is the fact that I can delete and add to the database but it doesn't want to read from the server and populate a datagrid???
    If I test the php file it gives the correct output in IE and the flash file is in the same directory(and domain obviously) it just doens't read\load it?
    Any help would be MUCH appreciated!!!
    Link to php and flash files:
    http://portable-shade.vacau.com/PSIO/

    Hello,
    This forum is actually for the Adobe Digital Rights Management (DRM) product "Flash Access".  Your question likely belongs in the Flash Player forum @ http://forums.adobe.com/community/webplayers/flash_player
    cheers,
    /Eric.

  • Movie loads on Firefox but not IE (surprise?), but also not in Safari??

    I am a novice, but it's hard to do anything wrong using iWeb. I tried sharing a movie made in iMovie to iWeb on my .mac account. The movie only plays on a Mac (or PC) using Firefox. Both IE (what a surprise! joke...) and Safari will not load the movie. It's 8.2 MB, orig size about 3.2 GB. It's understandable that the movie might not load on IE, but Safari - same Mac used to create the site. Note: it does load in Safari, if I am simultaneously running Firefox and have the page with the movie open and loaded, otherwise it just hangs and shows the big Q for Quicktime, but no movie... Any ideas. PS. When I send the updated site to a folder on my Mac, it works fine, but when I post it to .mac, no go.
    Thanks for any help for this novice.

    I am a novice, but it's hard to do anything wrong using iWeb. I tried sharing a movie made in iMovie to iWeb on my .mac account. The movie only plays on a Mac (or PC) using Firefox. Both IE (what a surprise! joke...) and Safari will not load the movie. It's 8.2 MB, orig size about 3.2 GB. It's understandable that the movie might not load on IE, but Safari - same Mac used to create the site. Note: it does load in Safari, if I am simultaneously running Firefox and have the page with the movie open and loaded, otherwise it just hangs and shows the big Q for Quicktime, but no movie... Any ideas. PS. When I send the updated site to a folder on my Mac, it works fine, but when I post it to .mac, no go.
    Thanks for any help for this novice.

  • Microhpone work in swf but not projector(exe)

    I have an actionscript use to record voice from microphone, it work fine in swf but if i publish it as projector (exe) it won't work anymore, even the "adobe flash player setting asking for camera and microphone access" box din't appear.
    Below is my actionscript, is it because of the classes i use or projector(exe) won't support microphone.
    Help! Thanks in advance.
    import flash.media.Microphone;
    import flash.events.MouseEvent;
    import flash.events.Event;
    import flash.events.SampleDataEvent;
    import flash.media.Sound;
    import flash.media.SoundChannel;
    import flash.utils.ByteArray;
    var _mic:Microphone;
    var _sndBytes:ByteArray;
    var _snd:Sound = new Sound();
    var _channel:SoundChannel = new SoundChannel();
    _mic=Microphone.getMicrophone();
    _mic.rate=44;
    _mic.setSilenceLevel(5);
    _mic.gain=70;
    _mic.setUseEchoSuppression(true);
    mc_recorder.btn_startrecord.addEventListener(MouseEvent.CLICK,startRecording);
    mc_recorder.btn_stoprecord.addEventListener(MouseEvent.CLICK,stopRecording);
    mc_recorder.mc_equalizer.addEventListener(Event.ENTER_FRAME,updateEqualizer);
    function startRecording(evt:Event):void {
        _sndBytes = new ByteArray();
        if (! _mic.hasEventListener(SampleDataEvent.SAMPLE_DATA)) {
            _mic.addEventListener(SampleDataEvent.SAMPLE_DATA, getMicData, false, 0, true);
    function getMicData(evt:SampleDataEvent):void {
        _sndBytes.writeBytes(evt.data);
    function stopRecording(evt:Event):void {
        _mic.removeEventListener(SampleDataEvent.SAMPLE_DATA, getMicData);
    function updateEqualizer(evt:Event) {
        mc_recorder.mc_equalizer.gotoAndStop(_mic.activityLevel);

    Check you publishing settings and parameters.

  • I can open Xcelsius 4.5 files in Adobe SWF, but not Xcelsius 5.0 files

    I had a trial version of Xcelsius 4.5 and was able to export files into SWF and upload/open them on our company webiste. Therefore, I purchased Xcelsius 5.0. I am able to export files into SWF, but UNABLE to upload/open them on our website. We are using Adobe Flash 9.0. Can someone PLEASE help me out on this??!

    There is no error message. It just doesn't open at all.
    If you go to the website www.myfleetsolutions.com, click enter, click solutions, click calculate savings,  there are four types tabs to choose from.  If you click MAINTENANCE, nothing comes up (This is where the 5.0 swf file should be), if you click on FUEL, the 4.5 SWF shows up. They are both loaded the exact same way. ??

  • Home sharing will load on PC but not Mac

    I'm transferring music from my old computer (PC) to my new one (MacBook Pro) and I can see my Mac's library on my PC but not vice versa. Help?

    Hi Dexterfreak95,
    It sounds like you got a good start to Home Sharing as you have it one direction.
    I would suggest the steps in this article next.
    Troubleshooting Home Sharing
    http://support.apple.com/kb/TS2972
    Best Regards,
    Nubz

  • Page fully loads in IE but not in Firefox

    This page opens fully in IE but not in Firefox 4.

    yeah, some pages are only designed for internet explore. cannot make compatibility with firefox 3.x/4.0 or google chrome 10.x.x.x, for example, zude.com, these kind of websites now are minorities, but they exist.
    so at least, you need 2 internet browser for all you need, an IE browser version upper than 7.0, and a firefox 4.0 or a google chrome 10.x for fast browse.

Maybe you are looking for

  • ITunes Playlist and Time Machine

    I just spent a couple of hours making a playlist for an event. Then I made a couple more playlists for different parts of the event. All the while, Time Machine was dutifully making its backups. I was listening to some songs in the playlist and delet

  • How do I view code in FlashCS4?

    Hi,   How do I view code in Flash CS4? I am wondering if it's even possible but I am new to Flash so I guess anything is possible, haha. I need to fix my actionscript and this is one of the ways I was told to do it was to look at the code first. Than

  • Non-Oracle connection through HS issue

    Greetings! I have created a HS to a MySQL server and from SQL> this works fine as a dblink create database link "dvb_mysqllink" connect to "sord_ro" identified by "<pwd>" using 'mysqlSORDdev_cmdb'; SQL> select 'foo' from dual@dvb_mysqllink; 'FOO' foo

  • Unwanted Emails

    I have been recieving the following email messages to my Blackberry over the past 3 days: "This message is used to carry data between the BlackBerry handheld and an associated server. Please do not delete, move or respond to this message - it will be

  • Problem importing photos from Extreme Pro SD Card

    Sorry if this has been covered. I atempted to import photos from my new CF card via a Griffin card reader into my iMAC. Never had a problem before, but iPhoto won't respond and won't recognize the card. Was able to import to my wife's MacBook Pro wit