Resizing imported swf files...

I have a movie clip that I want to import a swf file into,
but the swf is larger than the movie clip's area. I tried using a
resizing code for importing images that I found, but it makes the
swf very small. Is there a way to control the size of the imported
swf?

I did this recently where I had a backdrop clip that I wanted
to serve as a 'screen' for jpgs I loaded in. I wanted them to
resize to the full extent of the background clip and maintain their
aspect ratio. The backdrop clip could have different dimensions at
different points in time as well... anyhow this should work with
swfs same as jpegs.
So I'll explain it in my context as I don't know exactly
yours (sorry this might sound a bit complicated because of that).
#1 If your holderclip is called
imageHolder and it contains a single clip inside at location
0,0 called
imageBackdrop
#2 You create an emptyMovieClip inside imageHolder and use it
to load your swf into using a Loader with a listener
#3 you have some code similar to this in your onLoadInit
event for the Loader (onLoadInit lets you initialise things like
size location etc before it displays)
If you can do something like that then I think you should be
on the right track for what I think you want to do.

Similar Messages

  • Need to resize a SWF file

    i need to resize a swf file thats 800 x 300 down to 600 x 226
    how can i do this without having to set the new parameters in
    the embed tag like this <embed src="banner.swf" height="226"
    width="600"> ..??
    is there a way to resize the whole project when i export the
    swf file or something.
    i made my project a lil to bigger than i needed and have
    already imported a few other swf files into this main banner swf
    project so i need to resize everything down now..
    How can i do this..??

    What format is the file in before you export to SWF?
    What program are you using to convert your file from its
    current form to SWF?

  • How to resize a SWF file to fit on stage

    Hi everyone,
    I'm fairly new to Flash so please bear with me. I'm trying to resize a SWF file made in InDesign. My Flash application is set at 1920x1080 and the SWF file was made at the same size. I need it to be resized to 1700x956. This is the section of script that relates to the SWF file.
    break;
    case 'fact_btn':
    eventAction = ".../FactSheet.aspx";
    eventLog(eventAction);
    factLoader.load(new URLRequest("FactSheet/HABFactSheet.swf")); //fact.swf
    factLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleteHandler);
    break;
    factLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, loaderCompleteHandler);
    spotlightStageRect.addChild(factLoader);
    spotlightStageRect.visible = true;
    spotlightStageRect.addChild(close_btn);
    close_btn.addEventListener(MouseEvent.CLICK, removeSpotlight);
    I've tried adding in the code below but the stage comes up blank when I run it in Flash. Anyone have suggestions? Also let me know if you need to see more of the script.
    factLoader.width = 1700
    factLoader.height = 956

    you need to execute that resize factLoader code in loaderCompleteHandler

  • Error while importing swf file in to Crystal Xcelsius Designer 4.5

    help me...., Error while importing swf file in to Crystal Xcelsius Designer 4.5

    I read in the book called "CRYSTAL XCELSIUS for DUMMIES" on page 243 under topic called Nesting a Dashboard within another Dashboard.
    sorry i used the wrong word embed, here i am importing the swf using image component.
    My requirement is somethis like this parent child dependency menu.
    eg: i have to two tabs 1)alphabets 2) Numerics  First levet menu
    if you click alphabets tab then the following menu A/B/C/D/..... Z i have diff charts.. under each alphabet.
    If you click numberic tab then the follwing menu should one/two/three/.......ten  here also i have diff charts under number
    in over to avoid complexity in dynamic visibility i divided the into 3 dashboards.  1- alphabets 2- number and 3 -importing both swfs.. everything works fine except first tab and last tab under alphabets and numerics.
    If some one help me with some alernative ... would be great.
    Thanks

  • Import swf files in CP3, but export without any voice?

    Did anyone have the same problem with me?
    I imported swf file in slide and published. But I can't hear any voice in the slide....
    At the same time, I tried to import as flv file and published, then it works. Voice in slide can be heard with no problem.
    How can I fix the problem? thanks!!

    Hi,
    Just a quick check. Go to menu item " Edit > Preferences" and select category "Publish Settings".
    Confirm that option "Include Audio" is checked.
    regards,
    Mukul

  • After effects cs6 will not import swf files...

    after effects cs6 will not import swf files...keeps saying it's unsupported. why would this be? what do i need to change?

    What SWF file? What source? How was it generated? SWF generated by Flex/ Flash Server may contain constructs that are incompatible and SWFs that render all their elements dynamically using Flash drawing primitives and use lots of ActionScript may also not work...
    Mylenium

  • Actions not working to imported swf files in Flash Catalyst

    Hi,
    I have a problem with manipulating my imported swf files (created in Flash professional) in Flash Catalyst CS5. Whenever I add any of the swf control actions to a swf file in the timeline such as 'stop', the animation ignores it and keeps replaying. I tried to add action sequence when a certain button is pressed, and also tried to create 'On application Start' and added 'stop' so that the animation stops immediately when the application opens. No matter what I do, the animation refuses to perform the actions and simply replays. The animation is a simple shape tween between 2 states with no action script attached to it. I published the animation as an swf and exported it to Flash Catalyst. Is there any suggestions whatsoever on why this is happening? Is it something to do with setting up my flash file prior to import? The only way I figured out to stop the animation from playing is adding action script to the flash file in Flash Professional however this is not what I want because I would like the animation to be controlled by components in my flash Catalyst document.
    Thanks

    You can make you swf a custom component with 2 states.
    The first state will be empty and rename it "OFF" the second state will have your swf file and name it ON.
    Then go back to your artboard/project, add your 2 buttons ON & OFF.
    For the ON button add interaction "play transition to custom component ON"
    For the OFF button add interaction "play transition to custom component OFF"
    Here is an example swf_control

  • Can Adobe Interactive PDFs play sound from imported .swf files

    Hello.
    I'm really really stuck, can anyone help? I'm on 10.8.3 using In Design CS6
    I am trying to get an interactive PDF with imported .sfw files with sound to play ....the sound. Preview is fine in the working file - but as per the previous query on thishttp://forums.adobe.com/message/4772574 - The interactive PDF loses the sound. I tried installing ezPDF - but it's an app and I don't know how to install it to work (I think it's meant for  iPADs). So...does anyone know if I can have an imported .swf file play when exported to an Interactive PDF and also work on an end users PC?...should I be able to install ezPDF reader on my MAC and get everything working?
    Any help would be good as this is day 3 having called Adobe on Day 1 which was fruitless.
    Thanks
    Ads

    Really hard to say without seeing the whole project, but my guess is that you have moved your exported SWF somewhere from it´s original location (where you exported it to) without moving Resources folder to same target location too... when you place video, audio or SWF to your layout, indesign does not embedd it to resulting SWF. Those files will be stored into a resources folder which always has to be at same root with exported SWF. Media files will be loaded dynamically from that folder at runtime.
    So you can guess what happens if that folder does not exist....

  • My imported swf files have lost their streaming sound. What can I do?

    I am trying to import a swf I made that contains streaming sound. When I place it on the time line and press cntr enter my animation plays but with no audio. I see the symbols from the swf and the swf inside my library. When I open the swf file inside my project it is broken down frame by frame with no audio. I can add audio back into my movie clip so I know that movie clips can support streaming audio. But I would rather not have to do this.
    I'm very new to flash so I am hoping there is something big that I am missing.
    In addition to my previous question: I need to embed a lot of objects over and over in this project I am working on. Each object will have controls for play back of itself. Is there some reason I cannot do this?
    Thank you for any advice you may have.

    Thank you for your reply
    Ok. I will need to maintain a libary of movie clips that contain streaming audio and simple scripts. Does anyone know of a good tutorial for importing a file at runtime? I've seen something called shared libary properties and it has a field for a url. I put a swf file on my web site and took it's url and put it into this field but nothing shows in my library. What else do I need to do?

  • Trouble importing swf files

    I would like to embed a .swf file into my catalyst project, but everytime I import a file catalyst crashes if I try to modify or reposition the file. I have tried runing the project just to see if the swf is visable, but get a message saying that there is an error in the code. I am not great at coding anything. I know a bit about HTML and CSS, and am completely stuck with this one.
    I have gone to the code screen and this is the error that shows up:
    java.lang.ArrayIndexOutOrBoundsException: -14473
    Resource = Main.mxml
    Path = photohome_Vfx/src
    Location = Unknown
    Type = Flex Problem
    I have tried importing several different files, but always get the same results. The files are all photo galleries that were generated using Slideshow Pro and Flash CS3. Does anyone have any suggestions?
    Thanks

    Hey there,
    I use SSP in Catalyst projects. I may not have the answer you're after. But I might be able to offer clues to the solution by showing you what I have that's enabled me to use SSP + Catalyst successfully. I've installed the most up-to-date SSP version. My images are hosted by director. I don't host them on my server.
    I open Flash and choose Action Script 3. Then I do all the other stuff you know about. I hit publish and save the .flv, .html, and .swf files on my server. I save them in a directory that holds both SSP files and the Catalyst folders. You know, the ones Catalyst publishes when you hit save to Web.
    For Catalyst I use Beta 2. A clean install after removing and deleting Beta 1. I simly make a catalyst file and then hit import media type .swf file. And voila.
    Then I publish to Web and when I do this I choose to publish all the Catalyst files into the directory that will get put to the server. Then I go to the server and delete the folder that says "run local." I don't need that on the Web.
    If I had an overall suggestion It would be to save your Catalyst projects. Delete Catalyst entirely and re-install it. Then delete SSP and re-install it. This shouldn't take more than 15 minutes of your time. After that...reflect, repent and reboot.
    Peace,
    Jim

  • Probs with imported swf file

    Hi
    I have imported a swf file which is displayed correctly
    within the import dialog. After clicking OK only the placeholder of
    the imported animation is seen. When running the captivate movie
    the swf is not diplayed. When setting the swf to synchronize to
    movie all frames of the swf are displayed but don't stop where they
    are supposed to do. Unfortunately this swf file was exported from
    the authoring system opus xe so I don't have a chance to edit it in
    flash itself.
    Maybe someone knows a solution for this prob?
    T.

    It sounds like the swf file may not be 30 frames per second.
    I'm using v1.01 and I've had a lot of problems with swf files
    loading consistently. A few times when I positioned the swf file at
    the very beginning of the Captivate timeline it wouldn't load.
    Moving it a half second up on the timeline fixed the
    problem.

  • 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.

  • Import .swf files into keynote slide

    Hi,
    I have a short flash file that I would like to embed into my keynote presentation. Is there any way to do this? Should I convert the .swf file first? And which program should I use? Or is there a simple way to import this .swf file into Keynote?
    I hope someone can help me!
    Regards,
    Ellen van der Zwan(The Netherlands)

    OIh by the way, the .swf is a scripted flash file. I have tried multiple converters, but no success yet...

  • Can't import swf file into QuarkXpress 8.12

    Hello everyone,
    I'm using QuarkXpress v 8.12 | Apple iMac Intel Core 2  Duo, 64 bit |  Flash Player 10.1.85.3.(?)
    When I tried to import a swf file into a picture box in Quark it freezes the program and then I have to force quit the application and restart. I've been onto Quark's forum already with this issue and the advice is to uninstall Flash 10.1 and go back to v10 that came with the Quark DVD.This is the advice given:
    This FLash player consists out of two files, flashplayer.xpt and  Flash Player.plugin. However it is much cleaner to uninstall by using  the Flash Uninstaller Adobe provides on their web page.
    However, it's not made clear where these xpt and plugin files reside. Are they inside the Library>Internet Plug-ins? Quark's forum then goes on to say that there is ANOTHER standalone Flash Player programe that previews Flash files out of QuarkXpress and I did manage to open up the swf flie without trouble and saw the interactiveness within it. (I didn't create the swf file and don't know its provenance, it came with a tutorial).
    Inside of Quark's Extensions, there's a folder called ForIneractive that contains a Flash Player, when I clicked on it to get info it says it's v10.0 r22. Is this the standalone programe that previews flash files out of QuarkXpress and has nothing to do with the problem of my swf files not importing? To add confusion, when I visited Adobe Flash's troubleshoot site, it detects the Flash Player I have on my system as 10.1.85.3. So I'm totally puzzled as to what's what (version wise)! I've tried spotlight and it leads back only to the QuarkXpress ForInterActive folder and the Library for the plugin.
    The main question is, if I uninstall with the Adobe Flash Uninstaller, how do I know that I'm uninstalling the right components? Any other advice to fix this?
    Thanks a million
    Jadeytai

    Photoshop elements has never had File>Import>Video Frames to Layers.
    At one time, until a few versions back, there was File>Import>Frame from Video, but that was just able to do one frame at a time and the function has since been removed from photoshop elements.
    Photoshop and photoshop elements are two different applications, photoshop elements being an application based on photoshop, but with less advanced features.

  • Problem with import SWF file

    I am trying to import a SWF file that i have exported from indesign CS5, as i want to create a pdf that has interactive page curl and page turn.
    But whenever i reimport the file it is really low resolution.

    I agree with Steve, you really should think is it absolutely necessery to try to place your SWF into PDF... you probably will face some problems if you do that.
    If you really must, you have to understand some basic rules about working with palced SWF (and videos too) in InDesign.
    The pixelated image you see above is not actual SWF. It´s an element called poster. When you place a SWF or video to your layout in InDesign, you may choose a poster for it. It´s kind of placeholder for actual SWF or video and will be shown when actual content is not playing. InDesign uses poster also as an appearance for your SWF/video file while you are working with your layout. InDesign can´t show actual SWF/video content in working area.
    You have few options how to define your poster. The most popular one is to grab it from SWF or video file. You can choose any frame to be used as a poster. Except that poster is not that frame itself, it´s a "screenshot" of that frame. Which means of course a risk that it may be pixelated at some point. Resolution you will define in Export SWF window´s Advanced tab effects to posters too. So be careful with lower resolutions if you want to avoid pixelation.
    Another, and IMO more professional method is to use good quality image as a poster. You can prepare your poster image in any regular image editing software.

Maybe you are looking for