Launching swf files with Director

I recently obtained Adobe Director 11.5 to create a menu for launching a series of Flash CS4 files.  I worked through Dean Utian’s excellent tutorial and found the following script to program a button to launch another Director file.  However, I can’t figure out how to get it to launch a swf file.  If someone could tell this poor soul how to get Director to launch swf files I would really appreciate it.  Thatch
on mouseUp me    
  play movie "FileName”      
end

I don’t know if anyone else will ever need to do this, but just in case I thought I should share the final protocol we developed.  This will embed a Flash SWF file into a Director DIR, so it can be published in a form that can be opened directly, without the multiple clicks required to open an swf with Windows Explorer (or the MAC equivalent).  It has been tested with Director 11.5 and Flash CS4.  I hope my shorthand is clear.  Dean Utian, Sean Wilson and James Newton all helped me with this, and support their support was far above and beyond the call of duty. 
1.) Resize the Director stage to match the Flash stage
Click the Director stage > Windows > Property Inspector > Stage Size > 550 x 400
(alternatively you can compose the Flash file with a stage that matches Director’s.   640 x 480 is the default)
2.) Embed the SWF into Director
File > Import > Browse to File > Import
Drag cast member from cast window to stage
ctrlK > distribute horizontal across stage > distribute vertical across stage
3.) Type a pause script into the script channel of the score
on exitFrame
  go to the frame
end
4.) Open the movie script window (Ctrl + Shift + U) and type in stretcher script (this allows the SWF cast member to resize if the final window is maximized)
on resizeWindow
  aw = _player.activeWindow
  awRect = aw.rect
  aw.drawRect = awRect.offset(-awRect.left, -awRect.top)
end
on zoomWindow
  resizeWindow()
end
5.) Set publication settings
File > Publish Settings > Projector > Shockwave
                                                      > Center stage in monitor
                                     > Shockwave > Allow movie scaling
                                     > Html > Template > Shockwave Default
                                                >  Stretch Style > Preserve Proportions
                                                >  Stretch Position > Horizontal Align
                                                >  Stretch Position > Vertical Align
                                                >  Dimensions > Percentage of Browser Window
                                                >  Width > 100
                                                >  Width > 100
                                     > Formats > Windows Projector (Creates an exe for Windows)
                                                      > Macintosh Projector (Creates an app for MACs)
                                                      > HTML (Creates an htm and dcr for Windows or MACs)
6.)Publish the movie
File > Publish
The Windows Projector will create a single exe file that can be opened by double clicking the icon.  If your SWF has addChild script, it will launch a second SWF, but the second SWF must be in the same folder as the exe. 
The Macintosh Projector will create an app application that can be opened by double clicking the icon.  However this application actually consists of a folder with several subfolders and files.  You will not see this with the MAC file directory, but you will if you try to E-mail the application.  If your SWF has addChild script, it will launch a second SWF, but the second SWF must be in the same folder as the app.
The HTM Projector will create a htm file and a dcr shockwave file.  Both must be in the same folder, and the user must double click the htm icon to open the dcr.  If your SWF has addChild script it will not launch a second SWF.

Similar Messages

  • How do I add playback control to a .swf file in Director 11.5 (PLEASE HELP!)

    Hi,
    I am currently trying to add controls (play/stop/etc) to a .swf file within Director 11.5. The movie imports fine and plays perfectly, however there does seems to be built in options to add the control in the same way you would for a .mov.
    The .swf file has been created with controls and plays outside of director fine. When it is placed into director the controls disappear and leave a white space.
    Is there a step by step guide somewhere or can someone give me a step by step guide? I'm fairly new to director and won't know some of the terms etc....
    The movie is 30 mins long and requires the user to move to various points and pause the playback. I cannot change the format of the file either.
    Please let me know if you need any more info...
    PLEASE HELP, I have to complete this in 2 days.
    W

    Probably too late for your project but...
    You can do this by using 3 sprites in addition to the SWF. In this example, I've named them "videoPlay", "videoRewind, and "videoStop". The SWF in this case was named "video."
    Apply this script to each of the 3 sprites.
    property mySprite
    on beginSprite me
      mySprite = sprite(me.spriteNum)
    end
    on mouseUp me
      case mySprite.name of 
        "videoPlay":
          sprite("video").play()
        "videoStop":
          sprite("video").stop()
        "videoRewind":
          sprite("video").stop()
          sprite("video").rewind()
      end case
    end

  • Launching SWF file within the project - Video Avatar and Calculator

    Hi There, I am somewhat new to Captivate so please bear with me. I am using Captivate 6.0 and have basic coding knowledge. I have a question about how to launch SWF files within my project. There are 2 things I am trying to accomplish.
    1. I have a video avatar that I want to use within my project. When a user clicks an icon or button on certain screens I want the appropriate video to launch within the same window. My video is an swf file but it can be another file type if that is better. Is this something that I can accomplish with Captivate 6.0?
    2. I have built a basic flash calculator - also an swf file - that I want the user to be able to launch on certain screens. When the user clicks a calculator button, the calculator would launch for the user to use, then the user would be able to close the calculator and return to the screen they were on.
    Could someone direct me to some resources on how to accomplish this? If there are any widgets that would make this easier that would be great - but if I need to write some code I can try and do this if someone can direct down the right road. I have spent hours looking for information on this topic but can't find any (at least any that I understand)
    Please, and thank you!!!

    Rory,
    Your Video is 720 x 480 @ 1.212 PAR, according to your screen-cap. In Photoshop (PS), go to Image New (Ctrl+N) and choose the NTSC 720 x 480 Widescreen 16:9 PAR 1.2. Once done, choose Image>PAR and Custiom, change 1.2 to 1.212 (this was a change in PrPro, and might not have yet made it into PS yet). Now, Open your full rez image. Ctrl+A (Select All), Ctrl+C (Copy), and then bring focus to your New Image. Hold Shift and Ctrl+V (Paste). This will put your image on a New Layer, Layer 1, in an Image with the correct dimensions and PAR. You can the Ctrl+T (Free Transform) and adjust the size of your Layer 1 image to suit. Holding down Shift while dragging the Handles of the Bounding Box will constrain the Aspect Ratio. Note, you might be cropping some of that image to fit the Aspect Ratio of your New Image. Anything outside of the Image boundries will effectly be cropped off. Note: you are NOT using the Crop Tool here, but letting the New Image Aspect Ratio effectively do the cropping (note no capitalization) for you. When satisfied with the result, you Delete the Background Layer (not necessary, but I do this to clean things up a bit), and Save_As .PSD to the proper folder.
    With Scale to Fit turned OFF, Import_As Footage, this image and drag to the Timeline, making sure that Scale to Fit is OFF. It should be perfect then. Hope that this works for you and gets rid of the problem.
    Good luck,
    Hunt

  • How to generate SWF file with dynamic data but no live connection

    Hello,
    We got a requirement where we have to email out SWF file either in PPT or outlook generated from BOBJ universe. When the file reaches the customer who would be outside our network with no access to our servers or data should be able to view the swf file with data. So the goal is to generate these files automatically and should not prompt for BOBJ login or wouldn't have ability to query the database but need to report data pertaining to the customer.
    Any help in this regards is greatly appreciated.
    Thanks
    Manohar

    Hi Manohar,
    You can use QAAWS(query as a web services) and build your queries on universe.
    You get an option of hardcoding the user id and password in the data connection for QAAWS which will not asks the users for login credentials.
    This will hepl the user to veiw the latest data from the database and the user wont be asked for login too.
    Thanks,
    Amit.

  • Export a pdf to a swf file with navigation buttons???

    I have CS4 and I've tried to export a couple indesign files using the swf export feature, but it the navigation of the file is very weak and not very intuitive, and when you zoom in to any of the text the text goes fuzzy.
    I would like to just convert a PDF to SWF file with navigation buttons, page controls, zoom in/out, single or two page view options, so that my end user can view it with the free flash player, but I don't have time to build the file in Flash and I don't want to use an online service that comes with a per month or per publication fee.
    Any suggestions??

    I've looked at that, but most of the pdf's that I need to convert are more than 10 pages.  I want a program I can download, install and use without a per use cost, or per publication cost.
    I'm looking more for a plug-in for either Acrobat, or Indesign or stand alone program that would convert them without adding copyrights, or ads to the file.

  • How can I associat ".swf" files with flashlite 2.1

    How can I associate ".swf" files with flashlite 2.1? When I
    install flash lite 2.0,it can do ---- click .swf files system can
    autoly use flashlite to play.But now I install flashlite 2.1,it
    lost this ability return as "unknow files formate".
    Now,how can I reassociate ".swf" with flashlite 2.1?
    first: I must use flashlite 2.1.
    second:I must click .swf file directly.
    I know another way to open :open the player and then find the
    .swf,and open it. But ,unfortunately,I can not use this way to
    open.Now I will be looking for another way.

    unfortunately, the 2.1 developer edition you have installed
    has not overwritten the original version integrated into the
    symbian OS by the manufacturer. This means that the only way to
    open the 2.1 files is to open the 2.1 player from your apps menuu,
    and click on the swf file. You will only get direct access if the
    updated player is in a firmware update for you handset.
    Matt
    http://www.outside-media.co.uk/blog

  • How to place a Flash swf file with a movie FLV file embedded in DW

         My hair is getting shorter by the hour or maybe missing.  I have created a SWF file with Flash 8 that has an embedded FLV file that was created from a MP4 file.   The SWF file works perfectly in FLASH including my Flash nav buttons, and the movie with soundtrack and the buttons for control of volume and start stop.  Now I am ready to place it on the web using DW to make the html page.  What happens when I test the page on FireFox or IE is the background loads, the buttons load but do not work properly anymore but worse than that:  The slide show and the control buttons do not even show up. 
         I am also having trouble defining my site locally.  I select new site and tell it where every thing is but no luck. All in the same directory, right now I have a image directory but I have not used them on the page as the only image is a jpg and flv file and they are embedded in the swf file.
         I know this is 2 different programs but the Flash files need to be placed in a HTML file to be uploaded, and I have to text them first.
    HELP
    Randy

    from the Premiere Pro Help section about importing SWF files:
    " Interactive content and scripted animation are not retained. Animation defined by keyframes in the main, top-level movie is retained."

  • Embedding SWF file with SAP Netweaver BI Connection to JSP page

    All,
    Is it possible to embed a SWF file with SAP Netweaver BI connection that is already published in BW system to a JSP page?
    Thanks...

    Hallo,
    embedding the published web-template via iframe into the jsp should work:
    <iframe id="test" src="/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?DASHBOARD=TECHNICAL_NAME_DASHBOARD" width="600" height="800" />
    Regards,
    Roman

  • Can i access swf files with your product?

    can i access swf files with dreamweaver?

    You will need Flash as well as Dreamweaver.
    Follow these instructions http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcda9110b1f693f21-7ad0a .html

  • SWF file with white border

    Hi
    I'm trying to import an SWF file (with associated movie and captioning) into Acrobat Pro 9.
    I'm placing it using a URL from my server.
    The video places fine but I'm getting a white border top and bottom of the file. This is a problem as there is a coloured background to the Acrobat file I'm trying to place the movie.
    The white border doesn't exist when I view the file in Flash.
    Any help would be much appreciated.
    Thanks
    Andy

    Andy:
    Have you checked the properties of the imported file. Control-Click on the file with the Video Tool and a fly-out menu will appear where you can bring up it's properties. You should be able to see if a border is set there.

  • Flash swf file with web link only opens my safari home page not the link

    I have a flash swf file with a simple web link. when i load the swf file and click the link it opens safari then loads up my homepage. It does not go to the link i clicked. if i choose internet explorer as my browser the swf file works fine.
    I am running 2 G4's 10.2.8 & 10.3.9
    safari 1.0.3 & 1.3.1
    PLEASE HELP

    Type '''about:addons'''<enter> in the address bar to open your Add-ons Manager.
    Hot key; '''<Control>''(Mac:<Command>)''<Shift> A)'''
    In the Add-ons Manager, on the left, select '''Extensions.'''
    Disable a few add-ons, then '''Restart Firefox.'''
    Some added toolbar and anti-virus add-ons are known to cause
    Firefox issues. '''Disable All of them.'''
    If the problem continues, disable some more (restarting FF). Continue until
    the problem is gone. After, you know what group is causing the issue.
    Re-enable the last group '''ONE AT A TIME''' (restarting FF) until the problem returns.
    Once you think you found the problem, disable that and re-enable all the
    others, then restart again. Let us know who the suspect is detective

  • Is this possible to package flash 8 swf file with AIR

    Hi All,
    Is this possible to package flash 8 swf file with AIR
    packager or load flash 8 swf file in AIR?
    Any info on AIR would be greatful.
    Thanks,
    Shailesh

    Yes.
    -ted

  • Cannot open the SWF file with firefox

    right click open SWF files with IE,it's ok , but with firefox opening it ,point out that can't find the application

    IE uses a Flash ActiveX control.<br />
    Google Chrome comes with its own flash plugin (gcswf32.dll)(libgcflashplayer.so)<br />
    Firefox uses a different Flash plugin.
    Your above posted list of installed plugins doesn't show the Flash plugin for Firefox, so you need to install that Flash plugin.
    See:
    * https://support.mozilla.org/kb/Managing+the+Flash+plugin
    * https://support.mozilla.org/kb/Installing+the+Flash+plugin
    * http://kb.mozillazine.org/Flash
    *http://www.adobe.com/software/flash/about/
    *http://helpx.adobe.com/flash-player.html

  • Can CDHtmlDialog play swf file with audio component?

    Hello, I'm using CDHtmlDialog in our application to play swf that shows user how to do a workflow. It works fine if swf does NOT have audio; if the swf has audio component, then it does not play.
    Can CDHtmlDialog play swf with audio?
    If not, any suggestion on how to implement playing swf file with audio?
    Many thanks in davance.

    Hi PingHu,
    How do you play the swf file in a html. I tried play a swf file with audio in my CDHtmlDialog class. I just use this:
    Html code Play the SWF file.
    <!DOCTYPE html>
    <html>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <body>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="100">
    <param name="movie" value="filename.swf">
    <param name="wmode" value="transparent">
    <embed src="D:\html directory\swf filename.swf" width="400" height="500" type="application/x-shockwave-flash" />
    </object>
    </body>
    </html>
    Then my sample is able to play a SWF file with audio. Hope this helps some.
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Starting a .swf file with Autorun

    Autorun doesn't allow you to start an executable
    (Flashpla.exe) with command line arguements (such as the name of
    the .swf file). Does anyone have any suggestions of how I can start
    Flashpla.exe and autolaunch the .swf file? Perhaps a .ini file? Can
    Flashpla.exe access a .ini file? Any help would be
    appreciated.

    Clarification:
    I can't launch this as a projector file. I'll be launching it
    from an Internet location (URL) and I can't start an executable
    from the Internet. This has to run as a .swf. Thanx.

Maybe you are looking for