Use an SWF as a Fill

Does anybody know if it is possible to use an swf file as a fill?
So for instance you could embed the swf file into code then use it as a fill for an object and get an animated fill?
Or is there another way to achieve something similar?
Thank you in advance for taking the time to read and comment.
Jon

Good old 1998!
You could load the swf using SwfLoader and watch its enterFrame event.  When the frame changes, you could fill a BitmapData with it like this: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Graphics. html#beginBitmapFill().  You could use that BitmapData in a Bitmap, which could then be used for the source of an Image.
HTH;
Amy

Similar Messages

  • Is there anything I can do in dreamweaver so my swf file always fills the whole browser screen?

    Hi
    I am deploying my flash swf in dreamweaver, however i have a
    problem my image is not fillng the whole of my browser screen
    idealy 1000 x 600 and I am getting horible white borders around my
    artwork.
    I have
    A used the properties settings in flash and sett my both my
    stages to 1000 x 600 including my preloader
    which the main swf loads into
    B used the publish settings to match my document setting in
    percent so they align in the middle of the page
    Is there anything I can do in dreamweaver so my swf file
    always fills the whole browser screen?
    thanks
    matt

    > I am deploying my flash swf in dreamweaver, however i
    have a problem my
    > image
    > is not fillng the whole of my browser screen idealy 1000
    x 600 and I am
    > getting
    > horible white borders around my artwork.
    A flash file is proportional, and a web browser viewport
    isn't necessarily
    proportional.
    So, unless you are forcing a persons web browser to a set
    size (and I'd
    STRONGLY not recommend doing that...ESPECIALLY at the size
    you want) then
    you'll need to confine your actual SWF file to a specific
    size on the page
    itself.
    > A used the properties settings in flash and sett my both
    my stages to 1000
    > x
    > 600 including my preloader
    > which the main swf loads into
    The stage in Flash is not what tells the web browser what
    size to set the
    SWF on the HTML page itself. That's done in the HTML when you
    'publish/export' your SWF file from flash using the HTML tab.
    > Is there anything I can do in dreamweaver so my swf file
    always fills the
    > whole browser screen?
    Well, you set the width and height to 100%, but that will
    distort your SWF
    file if people change the aspect ration of their browser from
    that of the
    SWF file.
    -Darrel

  • Using a .swf as an HTML layer in DW CS3

    Hello,
    I am using a .swf file as a background for my site and I can get the thing to work in Firefox and Safari on the Mac, but not in IE or Opera.  It will play the .swf but in layers in on top of the content, not underneath.  What is so different about how IE and Opera view the page that Firefox and Safari do not have.  Please give a look at this link: http://www.allwickedthings.com/WT_index_test_1.html and let me know what you think.  The .css files are posted on the root directory, just check the code to find the file names.  I'm going to continue to experiment on the code and see if I can come up with something.  Also this site displays in a different way on Netscape, it just leaves the movie out altogether.
    Thanks,
    Brett

    First, run your page code through the on-line validation tools below and fix the reported errors.
    HTML Validator - http://validator.w3.org
    CSS Validator - http://jigsaw.w3.org/css-validator/
    FREE HTML & CSS Tutorials  - http://w3schools.com/
    You need a document type on your first line of HTML code.  On DW menu hit FILE > Convert and select HTML 4.01 Transitional as your doc type.  Without a doc type declaration, your pages will have undrepdictable cross browser results.
    I've never needed to use an SWF as page background, so can't be much help.  Maybe this thread from another forum will shed some light.
    http://www.kirupa.com/forum/showthread.php?t=277976
    Good luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • How to use an SWF file generated by Flex as a Stand Alone file

    Whenever we compile an MXML file, there is an SWF file
    generated. This file is not a standalone file and will not work on
    any other computer expect on the computer where there is a Project
    file created by the Flex builder.
    Why am I not able to use that SWF file as a stand alone file?
    If I want to use that SWF file alone as in the SWF generated
    by Flash what do I have to do?
    Regards,
    Rashmi

    The swf file will run from anywhere. What's it doing when you
    try to open it on another machine?
    The only thing I can think of is if you're getting a security
    violation in which case you would need to read about Flash Player
    trust files and security.
    -Mac

  • Using a swf generated by Flex from a Flash component

    I know you can include and control a swf generated by Flash
    within a Flex component. But can you do the inverse? Can you use a
    swf generated by Flex within a Flash project/component?
    We plan to develop a "core" module that would be used in a
    lot of other Flash and Flex components we'll develop in the future.
    This core would be a package of classes that could be easily
    re-used by the components. There would be nothing visual in it,
    only standard classes.
    Even if this core would not contain any visual components, we
    would like to develop it using Flex since we prefere Flex Builder
    to the Flash editor to code and debug.
    But I'm not sure if:
    1) A core module like this, developped in Flex, could be used
    by our Flash components or only by other Flex components?
    2) If we use Flex to generated this core, will the resulting
    .swf be bigger than if we would have used Flash to develop it?
    Since there will be no Flex visual components in it, maybe it will
    be as small? Is there a compiler parameter to tell Flex to only
    include the minimum things possible in the generated .swf?
    Any help or link about this would be really appreciated!
    Thanks you in advance!
    P.S. I apologize to those aware that this message was also
    posted on another Flex related forum, but I received no reply on
    it!

    try this. for me it has worked.
    import flash.net.URLRequest;
    import flash.utils.Timer;
    var loader:Loader = new Loader();
    var timer:Timer;
    var myclip:MovieClip;
    //load the Flex Component
    loader.load(new URLRequest("IS.swf"));
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    loaderDone);
    addChild(loader);
    function loaderDone(e:Event) {
    timer = new Timer(100);
    timer.addEventListener(TimerEvent.TIMER, handleTimer)
    timer.start();
    function handleTimer(event:TimerEvent):void {
    //cast the loader.content into MovieClip to access
    currentFrame.
    myclip = loader.content as MovieClip;
    if (myclip.currentFrame == 2)
    however, i need to access properties of IS.mxml..
    any data member would work..
    or if i could dispatch an event in IS.mxml and catch it in
    flash through IS.swf, it would work.
    Pls somebody suggest.

  • When using 'sponge' effect on a fill, how do I get rid of the white 'pixellations' (if that is what they are called around the edges of the fill?

    When using 'sponge' effect on a fill, how do I get rid of the white 'pixellations' (if that is what they are called around the edges of the fill?

    I tried to give you this solution before, but maybe you missed it. This simple procedure will mask out all the various sponge edge-artifacts. Here it is in simple steps:
    1. Make the path shape you want to apply the sponge effect to.
    2. Highlight that path, and select Object > Path > Offset path ... choose +2 points (or whatever works for your drawing scale, to ultimately eliminate the outside line and the artifacts) -- this will make a slightly larger shape, based on the original shape.
    3. Cut the outside path (command or alt-X), select the inside path, and paste the outer path BEHIND the inner path (command or alt-B).
    4. Apply the sponge effect to the OUTER path.
    5. Highlight BOTH paths, and create a MASK (command or alt-7).
    Now you have your original shape, with sponge applied, and the outer 2 points (or whatever your Offset Path was set to), are masked out, masking out the outside line and the sponge artifacts.
    This works with any Document Raster Effect Settings dpi.

  • Using Flash SWF works great on live view and preview in Safari but does run after upload.

    Help needed.
    I have creatd a SWF file using Flash. Saved to root directory of the website.
    Inserted into a AP tag area.
    Plays Ok in Live view
    Plays OK in Safari preview
    Uploads OK
    Checked file present OK
    Upload Scripts folder
    Will not play when go to website page left with white area where swf should be playing.
    Ideas greatly received.
    Using Dreamweaver 5.5
    Cheers
    Bikeboysim
    www.parrotti.com

    Glad you got it all working! Good job!
    Just a note (for yourself and anyone else using Flash) on the rumor that all Flash files must be in the root folder... simply not true. In my opinion, as with any other type of files on your site, I'd suggest putting them in organized folders.... all the images in one folder... then subfolder for diff categories of images, flv video files in another folder, maybe keep all the .swf files in another, the xml data files in another, etc. Flash asset files can be just as organized as any other type of files.
    From an old article.... for review:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    Best wishes,
    Adninjastrator

  • [svn:fx-trunk] 11903: Fix SDK-22564: Debug player logs RSL sizes to console using main SWF name.

    Revision: 11903
    Revision: 11903
    Author:   [email protected]
    Date:     2009-11-17 12:18:59 -0800 (Tue, 17 Nov 2009)
    Log Message:
    Fix SDK-22564: Debug player logs RSL sizes to console using main SWF name.  Now, whenever the player loads a swf whose name is not known, because it was loaded via Loader.loadBytes() (which includes framework RSLs with digests), we display the name as "<unknown-N>", where "N" is a unique number to differentiate it from other unnamed swfs.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22564
    Modified Paths:
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/SwfInfo.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/DManager.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/DSwfInfo.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/events/SwfLoadedEvent.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/threadsafe/ThreadSafeSwfInf o.java

  • SVG Security Error when using a swf with svg in a web application

    Anymap works fine when generating the swf, it's great !
    But when i try to use the swf in a web aplication, i have this error : SVG Security Error, check the web server cross-domain policy file allows access.
    I copied the .jpg and .svg at the good repertories.
    But i had this crossdomain:xml <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM
    "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-http-request-headers-from domain="" headers="" secure="false" />
    <allow-access-from domain="*" secure="false" />
    </cross-domain-policy>
    Thanks in advance and sorry for my poor english.

    You might also want to turn on [Adobe Flash policy file logging|http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_05.html#_Using_Logging].
    We recommend uninstalling the Flash Player before installing the Debug Flash Player.
    Uninstall Flash Player using the following link:
    [http://download.macromedia.com/pub/flashplayer/current/uninstall_flash_player.exe|http://download.macromedia.com/pub/flashplayer/current/uninstall_flash_player.exe]
    Regards,
    Matt

  • Problems in using Flash swf in captivate 5

    Hi,
    I am using captivate 5 and in that for a project I created some flash animation in flash cs4 and using the swf output file in captivate.
    So the problem is this:
    When I publish the project and try playing the project(exe/html output), those flash swf animations are not playing properly or not at all playing.
    There are around 40-50 slides in captivate and around 90% of those files contain flash swf animation. Some of the animations are playing and some are not.
    In flash cs4 the action script version is 3 and also I tried publishing the project in both flash player 9 and 10 but still some animations are not playing. Its random.
    Any fix for that? Its urgent.
    Thanks in advance.

    There's a known issue with the way Captivate 5 loads SWFs.  If the animation is not all on the main timeline level of the SWF, but the animation has been placed inside a symbol, Captivate triggers the animations to play when the SWF is loaded right at the beginning of the movie instead of making them play only on the slide where the SWF should play.  This means that by the time your movie gets to the slide in question, the animation has already finished playing, and it looks to you like it won't play, when in fact it already HAS played.
    This issue only affects SWFs with animation inside symbols, which is unfortunately the way most Flash animation designers are taught to create them.  It can be fixed via some AS3 code inside the SWF, but this is only possible if you have access to the FLA files used to create the SWF, and you know how to use Flash.
    There is more information in this thread: http://forums.adobe.com/message/3551526#3551526

  • Can i use multiple-Swfs in one page to implement the real multi-thread?

    When there are multiple .swfs  in one web page,  if there will be multiple instaces of flashPlayer and run in multiple thread ?-- Per Swf Per instance and Per thread, is it?

    hi,
       It will not work at all In web browser enviornment. If you considering to
    make a scheme in which u use two swfs one helper swf for background
    processing and another for Displaying Front End.Problem remains there if you
    manage to send data from your one swf to the other in same page using
    localConnection . When the processing starts in the helper swf whole page
    will going to be stucked for the period until the helper swf has done
    processing the data.So its no use at all. Altough this library can help you
    make time slice based threads http://code.google.com/p/async-threading/

  • I need to know what Adobe version to use for my iPad to fill in and pay forms online

    I need to know what Adobe version to use for my iPad to fill in and pay bills online

    In the App Store search for Adobe Reader.

  • Difficulty using hardcoded swf file to display flv files

    Hi,
    I have created a swf player using the flvplayback component to display flv files. The document in flash is 275 pixels wide by 130px pixels long. I also have my video component (flyPlayBack) set at 275px by 100px to display the playback controls. My flash code is my simple like the following
    import fl.video.*;
    var myflashvars:Object = new Object();
    myflashvars = this.loaderInfo.parameters;
    var fullVideoPath:String = "";
    for (var item:String in myflashvars)
        if(item == "filename")
            fullVideoPath = myflashvars[item];
    videoPlayer.source = fullVideoPath;
    So using the above it should play the video and does.
    (1) First question is I tried playing 2 different videos in my html code.
    <object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0' width='275' height='130'>
    <param name='allowFullScreen' value='true' />
    <param name='movie' value='moviePlayer.swf' />
    <param name='wmode' value='window' />
    <param name='scale' value='showall' />
    <param name='flashvars' value='filename=sample_sorenson2.flv' />
    <embed width='275' height='130' allowFullScreen='true' type='application/x-shockwave-flash' src='moviePlayer.swf' pluginspage='http://www.macromedia.com/go/getflashplayer' wmode='window' scale='showall' flashvars='filename=sample_sorenson2.flv' />
    </object>
    Just like above works fine. But I tried playing 2 different videos, the first video image is below
    The second video image is below
    I notice the video sizes are different but not the video player size, is this to do a thing called aspect ratio? Is it possible to change this using my simple actionscript code above?
    (2) I also tried the full screen button but the video only takes up part of the screen, as shown below. sorry about image size.
    Is this a common occurance, is there a way to access the buttons on the flyplayback instance using actionscript and overridding the behaviour? Any advice upon my current situation would be much appreciated. Thanks.

    To me the first two screen shots look like you set the wrong aspect ratio/screen size. I don't see any scaling of the player at all... only black bars on sides because the video didn't fill the entire video player display.
    And yes, there is a much more powerful and versatile means of displaying Flash video, called NetStream. You can design your own player and have better control over the display. I always use NetStream rather than the FLVPlayback.
    But if you are having sizing issues introduced during the creation of the video... then the player itself is not necessarily going to fix that. You need to know the correct display size and aspect ratio for each video you plan to display.
    However, you can somewhat adjust the display size for each video using some actionscript... as you see here:
    http://www.cataractvideo.com/cv/physicians/cataract_surgery.html
    an example of a larger (high brandwidth) version and a smaller (lower bandwidth) version... depending on which button you click.
    More on NetStream:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.htm l
    Here is a great tutorial on building your own NetStream video player:
    http://gotoandlearn.com/
    scroll to the very bottom of the page "Video Basics"
    Best of luck!
    Adninjastrator

  • Using variables for answers to fill-in-the-blank questions

    Hello,
    For fill-in-the-blank questions, one has to provide answers. I want to provide these in the form of (user-created) variables, rather than in the form of fixed strings of characters (so then, as $$var1$$ rather than as 'rabbit'). I haven't been able to get this to work. The enter variable function is indeed available (in the properties panel), but it doesn't actually work (i.e. even if you select a variable to be entered, it doesn't actually get entered).
    Is there a way around the problem?
    1. NB that this same issue holds for text entry boxes (rather than fill-in-the-blank questions). If I could get this to work for text entry boxes, I would use them rather than fill-in-the-blank questions.
    2. One can use variables for answers to multiple choice questions. So I'm hoping I can get it to work for fill-in-the-blank questions as well.
    Thank you in advance. Marvin DuBois

    That would have been my suggestion. I don't have a dedicated blog post, but use TEB's for that kind of questions myself as well. And contrary to the widget/interaction I mentioned before, a TEB is an interactive object, which means it can be validated and there can be a score attached to it. But, it will not help you, since you have to add the correct answers in the same way as for a dropdown list in the FIB question (they are sort of TEB's there). And it is that list that doesn't allow to enter a variable instead of a fixed sequence of characters.
    Which means that you are back to the advanced actions, same as in my blog posts with the widget/interaction.
    Have a workaround (after all I am the workaround Queen) to have reporting, if you need to check only one TEB, described here:
    http://blog.lilybiri.com/report-custom-questions-part-2
    The idea is to use another interactive object that can have a score. In reality I use two instances of that same object: one with score 0 and one with score X and show the right one depending on the conditional action.
    However if you want to have multiple TEB's on the same slide, that have to be checked all with the same advanced action, than you'll need either the Mastery widget by InfoSemantics (only for SWF output) or Javascript.
    Lilybiri

  • How can I use Flash_Slideshow.SWF in my Flash CS4 document?

    Hi,
    I have downloaded a nice Flash Slide show file (.SWF) and would like to use in my Flash CS4 document without any modification (as it is). How can I use it? There is no .Fla file this Slide Show. It just works using xml file.
    Please do help.

    Hi,
    You need to load a .swf file in your flash document using the loader class. I'm assuming you are using the AS3. Please click on the below link which helps you to use the loader class.
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/Loader.html
    Thanks

Maybe you are looking for