A .swf inside a .swf wrapped in a pdf

Here's what I'm doing:
I've created interactive swfs of some print brochures using InDesign CS5. Before export I've tried to install some small .swf animated charts created either out of InDesign or out of Flash Catylyst as well as some f4v and flv movies. I've tried making them button activated or page turn activated and here are the results:
Except for the Catalyst file, everything ran just fine and as expected. The problem with the catalyst file is that I set up a button in InDesign to activate it - which it did - but can only get it to run one time before turning the page to reset it. Actually, this may be the case with the Indesign swf chart as well, although I set it up to activate on page load and haven't experimented to see if a button can make it run repeatedly. Otherwise the movies ran fine either on page load or via button click.
But unfortunately this isn't where the story ends. After exporting as flash, my task is to create pdfs using the swfs. The easiest way I've found is to go to to File/Create PDF/From File, choose the swf and set the parameters appropriately. But now in the pdf I lose the functionality of the smaller embedded swfs as well as the ability to run the movies. All the rest of the animation still works including page transitions etc, just not the embedded stuff.
So my questions are these:
In the swf is there a way to get a chart or animated graphic to run more than once via a button click;
Once the InDesign file with its complement of small swfs and movies is exported as a swf and then embedded into a pdf is there a way to get the embedded swfs and movies to run?
I have devised a work around for the project at hand at least for the movies, however its not optimal and it still would be better if these questions can be resolved, particularly since I haven't come up with a workaround for the animated charts yet.
Many thanks in advance,
SquareMoon

Here it goes
public function pushItemFromURL(url:URLRequest, row:int = -1):void {
var loader:Loader = new Loader();
loader.load(new URLRequest("http://127.0.0.1/emi_dir.swf"));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function(ev:Event):void {
pushItem(loader.content, row);
public function pushItem(obj:DisplayObject, row:int = -1):void {
var item:Item = new Item(obj);
if (row < 0 || getLinha(row) == null)
row = getGrelha().numChildren - 1;
if (item.width > maxWidth)
maxWidth = item.width;
if (row >= maxHeights.length)
maxHeights.push(item.height);
getLinha(row).addChild(item);
refreshPlacement(row);
public class Item extends MovieClip {
public function Item(content:DisplayObject) {
super();
var fill:Sprite = new Sprite();
fill.graphics.beginFill(0, 0);
fill.graphics.moveTo(0, 0);
fill.graphics.lineTo(0, content.height);
fill.graphics.lineTo(content.width, content.height);
fill.graphics.lineTo(content.width, 0);
fill.graphics.lineTo(0, 0);
addChild(fill);
addChild(content);

Similar Messages

  • Loading a SWF inside another SWF question

    Hello friends,
    1. (IMPORTANT) As all we know when putting some Flash SWF
    inside an HTML page, normally it starts playing as soon as its
    first frame is loaded.
    Now in my case I have to load a SWF (let call it Flash A)
    inside another Flash, I used mx.controls.Loader control to do this.
    But this internal loaded SWF (Flash A) doesn't display untill it is
    completely loaded. Although what is interesting is that if it
    contains a sound track I can hear it while it is being loaded.
    I wana know is there any way that we can make this Flash
    display while being still loaded.
    2. Is there anyway to change a Flash playback FPS at runtime?
    Thank you so much for any note and help.
    - M

    damatrixhasu wrote:
    > i want to know how i can load a flash inside another
    flash container
    go to help - search for 'loadmovie'
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Linking an SWF inside an SWF

    Hello eveyone. I am looking for an easy method of my .SWF
    file having a button that opens up an external .SWF internally. Any
    help would be appreciated.

    littlejohnny wrote:
    > Hello eveyone. I am looking for an easy method of my
    .SWF file having a button that opens up an external .SWF
    internally. Any help would be appreciated.
    >
    What you mean by open external swf internally ?
    Swf within SWF ? If so, than go to loadMovie action.
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Embedding a SWF inside another SWF

    I used inDesign CS4 to develop a catalog of services for the
    company I work for. Then exported it to a Flash document with
    interactive buttons and page turns. This is the current look:
    http://www.directrixsolutions.com/cw
    My question in regards to my file is, can you import the .swf
    file, which inDesign makes, into a Flash document so that a
    preloader for the file can be used? My .swf (packet.swf) is about a
    1mb large and so should have a preloader. But, when I import it, or
    have an attached .swf within the file that points to my packet.swf,
    this is what happens. WARNING: IF YOU ARE PREDISPOSED TO HAVING
    SEIZERS, YOU SHOULD PROBABLY NOT CLICK ON THIS LINK. (c8
    http://www.directrixsolutions.com/cw/FlashVersion.html
    As you can see, the document goes crazy. Any ideas?

    NedWebs. Yes, I did add that message myself, and it isn't a
    virus. I can explain what it is doing if that would be better. When
    the FlashVersion of the packet is loaded, it goes through the
    preloader, then goes to the packet.swf. But instead of remaining on
    the first page of the packet and waiting for instructions from the
    viewer on going to the next page. It jumps to the next page, then
    to the next and so on. Very quickly. I would have to say that it
    goes through the entire 11page packet 3 or 4 times each second. It
    is as if when the packet.swf is opened, it goes through each frame
    and is on a loop. Maybe the stop(); script for each page is not
    being recognized? I have attached the ActiveScript code that I used
    within this project.

  • Swf inside swf

    Hey.  I am loading an swf from inside an swf like so
    var my_loader:Loader = new Loader();
    var myString:String="clouds.swf";
    my_loader.load(new URLRequest(myString));
    cloudHolder.addChild(my_loader);
    When I display it in flash, it works fine.  However, if I upload this to a server, and view it on the internet, it does not display inside the swf.  Both files are in the same folder, so this shouldnt be the issue.  Is there something special i need to be doing if i am uploading this to a server?
    cheers

    Yes, when you have an swf file in an html page, any files that the swf loads need to be targeted as if that swf is in the same folder as the html file.  So if you have the two swf's in the same different folder, and your html file code uses... "subfolder/flashfile.swf" to target the file it loads, then your flashfile.swf would need to use "subfolder/otherfile.swf" to target the other swf.

  • Having stopped audio with a swf inside a sidelet can someone create a swf that will resume the audio

    Ok, rick is going to post the fla of this file and I will
    post the swf. Basically this is all about having a slide that has
    audio running all the way through and enabling the user to roll
    over a sidelet and have the video and audio stop playback.
    At present, the max you can achieve is, to stop video. The
    audio keeps going and of course everything gets out of
    sync. Rick has create a swf that you input into a sidelet (
    after having imported your image or video ) which stops the audio.
    Fantasitc. Unfortunatly he was not successful in creating a swf
    that will resume the audio.
    So there is the mission. To create something that will resume
    the audio, be it a swf inside the sidelet or something else.

    Hi there paul. Am I right in thinking that your code will
    mute the audio. In my situation this would cause problems becasue
    you would roll over the sidelet - the audio would go silent and
    when you rolled off, or resumed the audio, it would have been
    playing so again the video and audio will be out of sync.
    Rick - rather than another swf which would activate the audio
    and video when you roll off the sidelet ( while that is the perfect
    solution ) what about looking at a button the user can press to
    resume things, maybe Im wrong but that sounds a little easier.
    ( however for all those reading this that is not really the
    solution I am looking for, what Im looking for is the above
    solution where you can just roll off and on and so on )

  • Load and resize a SWF inside a MC

    Hi,
    I'm using AS2 to load an SWF inside an MC. The MC measures
    800x600, while the SWF (which can vary in size) measures in this
    case 14x60, even though, looking at it, it seems to be about half
    the size of the hosting MC. This makes me think that the dimension
    scales are different. I'm loading the SWF using MovieClipLoader and
    I'd like to resize it so that it fits as proportionally snug as
    possible within the MC. How can I do this? If I try to resize the
    SWF to the MC's dimensions, it become way too large and goes off
    screen. If instead I try to rescale the hosting MC to fit around
    the SWF, the SWF itself rescales as well. I'm going nuts! How can
    accomplish this?
    Thank you,
    Tatiana

    To make things simple, I'd like to take an existing SWF (the
    picture) and load it into a FIXED SIZED MC (the frame) and I'd like
    to rescale the SWF so that it fits perfectly into the frame.
    By all means, I know that what you said should work and I
    admit my inexperience with AS2, but somehow the SWF's I'm loading
    in, have scales that are totally different with respect to my
    Stage. I even tried loading the SWF directly onto the stage and
    then I loaded the frame separately onto the stage and tried to
    resize it to the SWF's _width and _height. The frame became a tiny
    dot on the screen, while the SWF filled half of my Stage.
    Thanks again for your help.

  • Turning the page in a pdf from inside a swf video

    I am creating interactive PDFs from InDesign. On the first page of the pdf I have a swf video in which I would like to put a link or a button that would move you to page 2 of the pdf. Not another frame of the video or URL, but just the next page of the PDF. Is it possible to do this? And if so, how?

    You don't make it clear what you're using. A "SWF" is a Flash file, and a video is a video. A SWF can load and play a video, but "SWF video" means nothing.
    If you're talking about a SWF file created in Flash, then inside your SWF you will have to fire an ExternalInterface command using ActionScript:
    ExternalInterface.call(“eval”, “pageNum++”);
    If you're talking about a video file embedded in the PDF and using the default playback widget, then you can't do it.

  • AS3 SWF inside Director 11.5.9 quirk

    I've previously used AS2 SWFs inside Director 11.5.9, and the SWFs work fine, actionscript works as it should.
    I'm working on a project where I need to use some AS3 SWFs inside Director, and I've come across a limit on the pixel width and height of the SWF. It seems that if either the pixel width or height of the published SWF are greater than 1638, then any actionscript inside the SWF is ignored when the SWF is loaded into director. The SWF still works ok outside of Director.
    For example, any actionscript stop(); commands are ignored and the playback continuously loops through the swf timeline.
    Has anyone come across this before?
    I am almost 100% certain this issue is related to the pixel width / height, as I've made a simple button navigation swf, and published it with different stage sizes. 1638 or less work inside Director, 1639 or more don't work inside Director!

    Made me laugh until I cried...
    Or did I just cry? :(
    Cruel but funny!
    Richard

  • Trouble playing one swf inside another

    All,
    I'm trying to load a SWF and play it inside another SWF.
    Both SWFs are targeted to use Flash Player 8, and AS 2.0
    So, in the parent, I've got code that looks like this:
    var movie_mc:MovieClip =
    this.createEmptyMovieClip("movie_mc",
    this.getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    mcLoader.addListener(this);
    mcLoader.loadClip("someothermovie.swf",movie_mc);
    function onLoadInit(target_mc:MovieClip):Void {
    target_mc.play();
    When I run this in the Flash IDE, it runs beautifully.
    However, when I try to play the movie in a browser, the inner
    movie
    plays for a few frames, then just stops playing.
    So potentially relevant facts -
    - Both movies are set to run at 30 FPS
    - The inner movie is about 2,700 frames long
    - The inner movie has an audio track embedded on one of the
    layers
    - The audio track has sync=Stream
    I'm definitely sure the inner movie has stopped playing - I
    set an
    interval in the parent movie that checks the inner movie's
    _currentframe, and displays it in a text field - sure enough
    - it gets
    to about frame 25, and just stops.
    Notably - if I remove the audio track from the inner swf, the
    entire
    thing runs perfectly, both in the Flash IDE and in a browser.
    So, i'm assuming the audio track embedded in a layer, and/or
    Sync=Stream has something to do with this?
    Any advice or insight is MUCH appreciated!
    Cheers,
    Matt

    All,
    I'm trying to load a SWF and play it inside another SWF.
    Both SWFs are targeted to use Flash Player 8, and AS 2.0
    So, in the parent, I've got code that looks like this:
    var movie_mc:MovieClip =
    this.createEmptyMovieClip("movie_mc",
    this.getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    mcLoader.addListener(this);
    mcLoader.loadClip("someothermovie.swf",movie_mc);
    function onLoadInit(target_mc:MovieClip):Void {
    target_mc.play();
    When I run this in the Flash IDE, it runs beautifully.
    However, when I try to play the movie in a browser, the inner
    movie
    plays for a few frames, then just stops playing.
    So potentially relevant facts -
    - Both movies are set to run at 30 FPS
    - The inner movie is about 2,700 frames long
    - The inner movie has an audio track embedded on one of the
    layers
    - The audio track has sync=Stream
    I'm definitely sure the inner movie has stopped playing - I
    set an
    interval in the parent movie that checks the inner movie's
    _currentframe, and displays it in a text field - sure enough
    - it gets
    to about frame 25, and just stops.
    Notably - if I remove the audio track from the inner swf, the
    entire
    thing runs perfectly, both in the Flash IDE and in a browser.
    So, i'm assuming the audio track embedded in a layer, and/or
    Sync=Stream has something to do with this?
    Any advice or insight is MUCH appreciated!
    Cheers,
    Matt

  • How to display PDF file, inside the SWF file or flash exe file

    I  have create the application for Employee details using flash actionscript 3.0
    This application is to view the organization employee details, iam using the tree component in this application,
    the tree component is to get the dada via xml file, this xml file save in the remote server ,
    I display the PDF file inside the swf file to using " StageWebView" class . Then i goto Publish Setting to change the  player Adobe Air 2.6 and run the flash file using
    ctr-l + Enter . It is work correctly the PDF file is Displayed inside the Swf Output. But I Publish this file to exe . then i run the exe it is not working .
    The application is run The xml data is onely get and displayed the Tree component then i click the tree item employee name the xml data in not display and the pdf file is not open .
    Pls Help...................

    hi i need to display the pdf file inside the swf file or flash exe file .
    I use the navigateToURL class this is open the pdf file on the browser. I want to display the pdf file in the swf window .
    Please suggest.

  • Flash SWF inside Masthead

    Hello,
    I am trying to create a masthead with a SWF inside of it.
    So far I try this:
    1.- Put the swf inside dist/images/equipo.swf
    2.- in the HeaderiView.jsp this code:
    <%
    String swfUrl= componentRequest.getWebResourcePath()+"/images/equipo.swf";
    %>
    <TD>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="800" height="200" id="equipo" align="middle">          
         <param name="allowScriptAccess" value="sameDomain" />
         <param name="movie" value="<%=swfUrl%>"/>
         <param name="quality" value="high"/>
         <param name="bgcolor" value="#ffffff"/>
    <embed src="<%=swfUrl%>" quality="high" bgcolor="#ffffff" width="800" height="200" name="equipo" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>
    </object>
    </TD>
    When I do preview of this iView, I got the space for my swf but all blank, this means, the swf is not running.
    Any ideas?
    Regards,
    Orlando Covault.

    Hi Orlando,
    could you try the same code for a normal image file? Just to check whether its a problem with the SWF or with location & path of the image. If the path does not work properly for normal image too you can use the following code to access an image or SWF.
    IResource resource = request.getResource("image","images/myImage.gif").getResourceInformation().getURL(request);
    Let us know whether this helps or not.
    Regards,
    Shubho

  • Making xml playlist to play swf files inside one swf

    Hi,
    I have made an swf file and xml playlist.
    I want to include swf filepaths in xml playlist so i would be able to choose from my the list, which file i want to play.
    My list-component reads data from the xml, but i cannot get the swf files open there.
    I will attach my .fla file so you understand what i'm talking about.
    the .fla:
    http://www.mediafire.com/file/m24dz0gmzwz/Untitled-1.fla
    xml file:
    http://www.mediafire.com/file/gdyzzymy5mn/swfList.xml
    would you guys look at my files? i know i can play .flv files but i want to know how to play swf files inside another swf. The swf files should be loaded to  by the xml list.

    Hi
    we want to give some clarifications
    As per our requirement we need to play same swf file ( about
    5 in number) always.
    These swf files are kept in some folder and during run time
    we need to play these swf files inside our Mac / windows
    application using flash player.
    we don't need to play any swf file, but the same swf files
    we need a api / sdk to implement this
    Any help will be very well appreciated
    Sudesh

  • Call Flex swf inside extension object

    Hi,
    I am building a user application using Flex 3.  The application allows user to input information using input components such as text areas, etc.  The application will create an xml file from user info.  The application needs to save xml file in user's local hard drive.  For user convenience, we want to be able to call the application from inside a DW menu.  This requires an extension which implies installing an mxp.  To avoid multiple installs, we want to deliver the application inside the extension.  This involves creating an extension object that has my Flex app embedded in it.  I have been able to create the extension object, have it show up in my insert bar, and deliver my Flex swf inside the extension.  However, when I type inside a text area in my swf, I am not able to.  It acts as if disabled.  I explicitly set my text area as editable=true and enabled=true.  Why?  Here is my extension:
    <html>
    <head>
    <title>WBT Ouline Tool</title>
    <style>
    body { margin: 0px; overflow:hidden }
    </style>
    <script language="javascript" type="text/javascript">
    function createTextFile(textItem) {
      //future code to create xml file will go here.
      //it will use DW FILE I/O APIs
    </script>
    </head>
    <body>
    <form>
       <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
       id="wbtOutline" width="406" height="276"
       codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
       <param name="flashvars" value="bridgeName=wbtOutlinePanel"/>
                <param name="movie" value="wbtOutline.swf" />
       <param name="quality" value="high" />
       <param name="bgcolor" value="#869ca7" />
       <param name="allowScriptAccess" value="always" />
       <embed src="wbtOutline.swf" quality="high" bgcolor="#869ca7"
        width="406" height="276" name="wbtOutline" align="middle"
        flashvars="bridgeName=wbtOutlinePanel"
                    play="true"
        loop="false"
        quality="high"
        allowScriptAccess="always"
        type="application/x-shockwave-flash"
        pluginspage="http://www.adobe.com/go/getflashplayer">
       </embed>
    </object>
    </form>
    </body>
    </html>

    Do you know where I can find examples on how to use dreamweaver.flash.newControl()?
    I am still having no luck.  My control shows up but can not interact with it and external interface not available.

  • Load AS2 swf into AS3 swf problem

    I have a flash with AS3 and inside this swf i load in a AS2 swf.
    to load swf works just fine, but the problem is when i load this i want to go to
    a specific part of it, for example i want to go to frame 3 in the loaded swf.
    i must control this from the AS3 swf, does someone know if this is possible?
    thanks in advance

    so can i do like this then to go to frame 3 in my loaded swf?
    MovieClip(ldr.content).gotoAndStop(3); ?
    sorry for being such an airhead
    thanks for helping me out =)
    Date: Sun, 7 Jun 2009 10:25:09 -0600
    From: [email protected]
    To: [email protected]
    Subject: load AS2 swf into AS3 swf problem
    no.
    if, in your loaded swf, you have a function f1() on the loaded swf's main timeline and you load that swf using a loader (say ldr), use:
    MovieClip(ldr.content).f1();   // to call f1() in the loaded swf
    >

Maybe you are looking for

  • Display line item based on GL Code in BPS.

    Hi Experts, I have one requirement for BPS. When the user Enter Plan data, it will prompt a variable 0GL_ACCOUNT for user to enter the gl code. Based on the 0GL_ACCOUNT code selected by user, the system should be automatically display the line items.

  • Can not perform Confirmation for TO

    Hi, I received error when I tried to confirm the TO, the error is "Due to system error, foreground processing required". Please tell me what is the cause of this? I don't need solution but I want the reason why this is happening as it happens frequen

  • Problem is detected with Array : 01

    I was backing up my server when it suddenly turned off. When it restarted it showed a critical error message saying "Problem is detected with Array : 01". Windows tried starting and kept rebooting so I just turned it off. When I launch the RAID utili

  • Restoring itunes library using .tmp file (missing .itl)

    My external hardrive that contains my itunes library accidentally got unplugged and when I reopened up itunes, my library disappeared. I went to my Itunes folder and everything seems to be there except my itunes.itl folder. I've read that i can poten

  • IOS 8 contact sharing

    My wife and I have one set of contacts which we share for family business and work. The new iOS 8 does not allow us to share contacts across different Apple IDs. Since contact sharing is so important to our lives, family, and business, most of the fa