Help needed making SWF file loop

Hello Everyone-
I have been researching this topic and am really struggling.
I'm not much of a HTML guy and I think I'll need to do some to
resolve my issues. I have searched and searched but I'm not having
any luck.
I create an animation in Apple Motion, exported it as a MOV
and imported it as video into Flash CS3. It was encoded using
Progressive download from server it creates a FLV file a SWF file
and an HTML file. My provider is 1and1. I then use Adobe GoLive to
create my webpage and upload to the web. I need my SWF file to loop
and I cannot get it to loop.
In flash. Everything plays fine. When I do a publish preview
however, the swf file does not loop. I've got the loop option
checked in my publish preview settings and even in the inspector in
GoLive but it does nothing.
Here is the link to the page. And the source code. If anyone
can help me that would be genius.
PS there is actually two SWF that I need to loop. Neither of
them are looping.
http://www.drewwfilms.com/Index2.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type"
content="text/html;charset=utf-8" />
<meta name= content="Adobe GoLive" />
<title>Drew W Films Index</title>
</head>
<body>
<div
style="position:relative;width:750px;height:571px;margin:auto;-adbe-g:p;">
<div
style="position:absolute;top:64px;left:16px;width:720px;height:150px;">
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
height="150" width="720">
<param name="loop" value="true" />
<param name="movie" value="IndexHeader2/IndexHeader2.swf"
/>
<param name="quality" value="best" />
<param name="play" value="true" />
<embed height="150" pluginspage="
http://www.macromedia.com/go/getflashplayer"
src="IndexHeader2/IndexHeader2.swf"
type="application/x-shockwave-flash" width="720" quality="best"
play="true" loop="true"></embed>
</object></div>
<div
style="position:absolute;top:16px;left:64px;width:624px;height:32px;-adbe-c:c">
<menumachine name="indexheader2" id="mre8mxf">
<csobj t="Component"
csref="menumachine/indexheader2/menuspecs.menudata"><noscript>
<p><a class="mm_no_js_link"
href="menumachine/indexheader2/navigation.html">Site
Navigation</a></p>
</noscript> </csobj>
<script type="text/javascript"><!--
var mmfolder=/*URL*/"menumachine/",zidx=1000;
//--></script>
<script type="text/javascript"
src="menumachine/menumachine2.js"></script>
<script type="text/javascript"
src="menumachine/indexheader2/menuspecs.js"></script>
</menumachine>
</div>
<div
style="position:absolute;top:224px;left:16px;width:720px;height:304px;">
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
height="304" width="720">
<param name="loop" value="true" />
<param name="movie" value="IndexHeader2/IndexBody.swf"
/>
<param name="quality" value="best" />
<param name="play" value="true" />
<embed height="304" pluginspage="
http://www.macromedia.com/go/getflashplayer"
src="IndexHeader2/IndexBody.swf"
type="application/x-shockwave-flash" width="720" quality="best"
play="true" loop="true"></embed>
</object></div>
</div>
<p></p>
</body>
</html>

The problem you are encountering is that you are telling the
SWF to loop, when in fact you need to tell the FLV to loop.
Unfortunately, you need to code a few lines of Actionscript
to get this to work, you would think that it would be as simple as
just checking an option.
I don't know if you have an AS2 or AS3 project, so I'm going
to give you both for the code.
Actionscript 2:
1. Select the FLVPlayback component on the stage.
2. In the Actions panel, enter the following:
on(complete){
this.autoRewind = true;
this.play();
Actionscript 3:
1. Select the FLVPlayback component on the stage, and give it
an instance name by entering some text in the properties panel.
(Upper left corner of the panel, right under where it says
"Component" there is a text input box. This is where you input it.)
Names are commonly things like "myFLVPlayback" or "myVideo" etc.
2. Deselect everything.
3. In the actions panel, enter the following (replacing
"myVideo" with the instance name you chose):
myVideo.addEventListener(VideoEvent.COMPLETE,doLoop);
function doLoop(evt:VideoEvent):void {
evt.currentTarget.play();
Either of those blocks of code should work for you. Simply
add them to your flash project and re-export the SWF.

Similar Messages

  • [Need help with a swf file]

    Hello,
    I need help with a flash demo that I am creating. I have a
    main swf file that contains links to other sub swfs that I have
    created. What I really want this to do is... when I click on one of
    the link on the browser, the other swf have to load in the window.
    I tried to code it with .loadMovie,.... but for some weird reason,
    it is not showing up.
    Can anyone help me on this?
    Thanks

    you might have a security violation and you do have a
    load-target issue. remove that "_parent": there's no 2nd parameter
    in the loadMovie() method.
    if you want to replace the main swf with that url, loading
    into _root is fine. otherwise, you want to use a different
    target.

  • Need Your Help with Swapping SWF files

    Hello,
    I am need to swap Two SWF files. I am acheving this by make
    one swf as a holder. call it main.fla main.swf file. Embed that
    file into my html document. In that file I placed one button with
    the
    following action :
    on (release) {
    loadMovieNum("second.swf", 1);
    in that file have a button with action to load the 3rd file :
    on (release) {
    loadMovieNum("3rd.swf", 1);
    by loading them in same level (1) they will replace each
    other. My problem is that my SWF files obtain some information
    using combination of PHP and XML file. I have noticed when I place
    the SWF with it’s required PHP and XML in separate folders
    the SWF file is uploaded (swapped) but since the PHP files are NOT
    run by the server my dynamically generated XML files are empty and
    therefore the uploaded SWF file has not information expect the SWF
    file. Is there any way to get round this problem?
    Thank you in advance for your help and hope you have a great
    day.
    Cheers,
    Babak

    Khoramdin wrote:
    > Hello,
    >
    > I have two separate Flash SWF files which I would like
    upload into the same
    > HTML file. But I would like to load only one of them at
    the time and would
    > like to have a Button on each SWF Flash file which
    causes the other SWF to be
    > loaded.
    >
    > hmmm.. I am not sure if I managed to make sense. :o) Let
    me try it one more
    > time. :o) I would like to swap one SWF file for another
    SWF file by clicking
    > on the buttons which are placed on the SWF files! :o)
    make one swf as a holder. call it main.fla main.swf file.
    Embed that file in your html document. In that file place
    button with the
    following action :
    on (release) {
    loadMovieNum("second.swf", 1);
    in that file have a button with action to load the 3rd file :
    on (release) {
    loadMovieNum("3rd.swf", 1);
    by loading them in same level (1) they will replace each
    other.
    Pretty simple..uh ?
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Need help with combining swf files together

    Hi Everyone
    I have problem with my project.
    I created several SWF files, now i want them to interact with each other
    So there is main SWF file lets call it:
    main.swf
    then within that file(main.swf) i would like to create buttons which will be calling other swf files for instance by pressing one button one.swf will be open by pressing other button two.swf will be open and so on.
    Then I would like to create buttons within one.swf and two.swf which will allowed to go back to main.swf
    If someone could help me how to do it I will be grateful.
    AS2.0 i am working with
    many thanks

    thanks for quick respond
    So the first of all my main.swf would load, within it i would have a button. If i click on button will take me to frame 40 ( just example ) where i will have this.loadMovie("first.swf"), when this file will be loaded i want to have other button with in the first.swf which will take me back to main.swf and now you are suggesting to use this.removeMovie("first.swf")?
    I am not sure if i got you answer right
    Thanks again for help i am quite new to ActionScript as you can tell.

  • Need your Help with Swapping SWF File Problem

    Hello,
    I have two separate Flash SWF files which I would like upload
    into the same HTML file. But I would like to load only one of them
    at the time and would like to have a Button on each SWF Flash file
    which causes the other SWF to be loaded.
    hmmm.. I am not sure if I managed to make sense. :o) Let me
    try it one more time. :o) I would like to swap one SWF file for
    another SWF file by clicking on the buttons which are placed on the
    SWF files! :o)
    I was wondering if that is possible or I should think of
    another way to get around this problem of mine.
    Thank you very much for your help and have a great day.
    Cheers,
    Babak

    Khoramdin wrote:
    > Hello,
    >
    > I have two separate Flash SWF files which I would like
    upload into the same
    > HTML file. But I would like to load only one of them at
    the time and would
    > like to have a Button on each SWF Flash file which
    causes the other SWF to be
    > loaded.
    >
    > hmmm.. I am not sure if I managed to make sense. :o) Let
    me try it one more
    > time. :o) I would like to swap one SWF file for another
    SWF file by clicking
    > on the buttons which are placed on the SWF files! :o)
    make one swf as a holder. call it main.fla main.swf file.
    Embed that file in your html document. In that file place
    button with the
    following action :
    on (release) {
    loadMovieNum("second.swf", 1);
    in that file have a button with action to load the 3rd file :
    on (release) {
    loadMovieNum("3rd.swf", 1);
    by loading them in same level (1) they will replace each
    other.
    Pretty simple..uh ?
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Help with inserting SWF file into .html page

    I created a photo gallery in Flash CS5.5, using the advanced photo gallery template. It works fine as a standalone SWF file but it's not displaying properly when I try and insert it into the Gallery page of my website.
    The thumbnails are showing as blank white boxes and the main image holder isn't showing at all, though the controls beneath it are showing. The SWF file and all the images are stored in site/images/gallery/ and my Gallery page is in the root. What's going on here? Can anyone help please?
    Thanks

    If you are storing any of your Flash assets in sub-folders and having problems... it's most likely because of pathing problems. 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
    What it boils down to is that you need to path the Flash assets from the Web page that you place the main .swf on... NOT the physical location of the .swf
    Best wishes,
    Adninjastrator

  • PLEASE HELP ME WITH SWF FILES ON E65

    PLEASE IF YOU KNOW TELL ME HOW TO USE SWF FILES(FLASH FILES,ANIMETED SCREENSAVERS)AS SCREENSAVER ON MY NOKIA E65.
    THANKS A LOT!
    SORRY FOR MY BAD ENGLISH!

    So far, importing Flash into Keynote has turned up a big, fat "NO!" I am REALLY disappointed by this. Both Adobe and Apple's attitude towards interoperability is just making us, the end user, unhappy. What happened to "it just works"? Why is Apple so against Flash?
    So far I've found no easy way to get my Flash project into a Keynote presentation. There seems to be several rather complicated methods. I don't need this. I'm very miffed.

  • Help importing a .swf file from Flash CS5.5 to After Effects CS5.5

    I am working on animating a person in flash.  I have a main timeline and then a timeline inside of a symbol so I can move
    the characters facial features (eyebrows and mouth etc) apart from moving his entire body.
    I want to have multiple scenes so I am importing all of the .swfs into After Effects and putting them together. 
    However, when I import the .swf into After Effects, it only plays what occurs in the main timeline
    and not the timeline inside of the symbol, so it is just the character moving without the facial movements.
    Is there a way to fix this or a better program to import the .swfs into and make the video?
    Thanks in advance.

    Here's the note from After Effects Help aboutt he limitations to SWF import:
    SWF (continuously rasterized) Note:  SWF files are imported with an alpha channel. Audio is not retained. Interactive content and scripted animation are not retained. Animation defined by keyframes in the main, top-level movie is retained.
    The limitation that you noticed---that only animation in the top-level timeline is retained---is not one that can be worked around without changing how your animation is set up in Flash.

  • Help needed with jar file

    hi, first of all sorry if my post is in wrong forum...but my application is done using swing so i am posting this here....and regarding my question...
    I have made an GUI using Java swings and my application is working fine. Now i want to make an executable jar file for my GUI. I have read some tutorilas on making jar files and this is what i have done...
    i have created a manifest file called mainClass.txt which has
    Main-Class: MainWindow ,where MainWindow is my main class name.
    Then i ran the jar utility with this command line:
    jar cmf mainClass.txt example.jar *.class
    With this line, I told jar to create a JAR file (option c) with modifications to the manifest file (option m) as specified within mainClass.txt, naming the JAR file (option f) as example.jar and including everything that matches the pattern *Class
    everything is file till now but my problem is ...I have some library files from JFreechart software included in my GUI to generate barcharts..How can i include these library files in my example.jar file..
    Kindly help me
    Thanks
    byee

    I had this problem too. I ran my program out of JCreator and it worked flawlessly. I jarred it up into and Executable Jar and I would get a runtime error explaning I have not included the correct libraries.
    What I did was look at the error, for example say it said something like:
    org.uhoh.PathSys ClassDefNotFound (or something similar to this)
    What I did was extract the library that contained that class file. Then in my project file where I kept my classes I made the folder org, then in org I made uhoh. Inside uhoh I copied over PathSys.class.
    I hope I addressed the problem you speak of. I am only a novice but this is how I figured it out. If anyone knows a better way let us know =D

  • Help needed:Printing HTML file using javax.print

    Hi
    I am using the following code which i got form the forum for rpinting an HTML file.
    The folllowing code is working fine, but the problem is the content of HTML file is not getting printed. I am geeting a blank page with no content. What is the change that is required in the code? ALso is there any simpler way to implement this. Help needed ASAP.
    public boolean printHTMLFile(String filename) {
              try {
                   JEditorPane editorPane = new JEditorPane();
                   editorPane.setEditorKit(new HTMLEditorKit());
                   //editorPane.setContentType("text/html");
                   editorPane.setSize(500,500);
                   String text = getFileContents(filename);
                   if (text != null) {
                        editorPane.setText(text);                    
                   } else {
                        return false;
                   printEditorPane(editorPane);
                   return true;
              } catch (Exception tce) {
                   tce.printStackTrace();
              return false;
         public String getFileContents(String filename) {
              try {
                   File file = new File(filename);
                   BufferedReader br = new BufferedReader(new FileReader(file));
                   String line;
                   StringBuffer sb = new StringBuffer();
                   while ((line = br.readLine()) != null) {
                        sb.append(line);
                   br.close();
                   return sb.toString();
              } catch (Exception tce) {
                   tce.printStackTrace();
              return null;
         public void printEditorPane(JEditorPane editorPane) {
                   try {
                        HTMLPrinter htmlPrinter = new HTMLPrinter();
                        htmlPrinter.printJEditorPane(editorPane, htmlPrinter.showPrintDialog());
                   } catch (Exception tce) {
                        tce.printStackTrace();
         * Sets up to easily print HTML documents. It is not necessary to call any of the setter
         * methods as they all have default values, they are provided should you wish to change
         * any of the default values.
         public class HTMLPrinter {
         public int DEFAULT_DPI = 72;
         public float DEFAULT_PAGE_WIDTH_INCH = 8.5f;
         public float DEFAULT_PAGE_HEIGHT_INCH = 11f;
         int x = 100;
         int y = 80;
         GraphicsConfiguration gc;
         PrintService[] services;
         PrintService defaultService;
         DocFlavor flavor;
         PrintRequestAttributeSet attributes;
         Vector pjlListeners = new Vector();
         Vector pjalListeners = new Vector();
         Vector psalListeners = new Vector();
         public HTMLPrinter() {
              gc = null;
              attributes = new HashPrintRequestAttributeSet();
              flavor = null;
              defaultService = PrintServiceLookup.lookupDefaultPrintService();
              services = PrintServiceLookup.lookupPrintServices(flavor, attributes);
              // do something with the supported docflavors
              DocFlavor[] df = defaultService.getSupportedDocFlavors();
              for (int i = 0; i < df.length; i++)
              System.out.println(df.getMimeType() + " " + df[i].getRepresentationClassName());
              // if there is a default service, but no other services
              if (defaultService != null && (services == null || services.length == 0)) {
              services = new PrintService[1];
              services[0] = defaultService;
         * Set the GraphicsConfiguration to display the print dialog on.
         * @param gc a GraphicsConfiguration object
         public void setGraphicsConfiguration(GraphicsConfiguration gc) {
              this.gc = gc;
         public void setServices(PrintService[] services) {
              this.services = services;
         public void setDefaultService(PrintService service) {
              this.defaultService = service;
         public void setDocFlavor(DocFlavor flavor) {
              this.flavor = flavor;
         public void setPrintRequestAttributes(PrintRequestAttributeSet attributes) {
              this.attributes = attributes;
         public void setPrintDialogLocation(int x, int y) {
              this.x = x;
              this.y = y;
         public void addPrintJobListener(PrintJobListener pjl) {
              pjlListeners.addElement(pjl);
         public void removePrintJobListener(PrintJobListener pjl) {
              pjlListeners.removeElement(pjl);
         public void addPrintServiceAttributeListener(PrintServiceAttributeListener psal) {
              psalListeners.addElement(psal);
         public void removePrintServiceAttributeListener(PrintServiceAttributeListener psal) {
              psalListeners.removeElement(psal);
         public boolean printJEditorPane(JEditorPane jep, PrintService ps) {
                   if (ps == null || jep == null) {
                        System.out.println("printJEditorPane: jep or ps is NULL, aborting...");
                        return false;
                   // get the root view of the preview pane
                   View rv = jep.getUI().getRootView(jep);
                   // get the size of the view (hopefully the total size of the page to be printed
                   int x = (int) rv.getPreferredSpan(View.X_AXIS);
                   int y = (int) rv.getPreferredSpan(View.Y_AXIS);
                   // find out if the print has been set to colour mode
                   DocPrintJob dpj = ps.createPrintJob();
                   PrintJobAttributeSet pjas = dpj.getAttributes();
                   // get the DPI and printable area of the page. use default values if not available
                   // use this to get the maximum number of pixels on the vertical axis
                   PrinterResolution pr = (PrinterResolution) pjas.get(PrinterResolution.class);
                   int dpi;
                   float pageX, pageY;
                   if (pr != null)
                        dpi = pr.getFeedResolution(PrinterResolution.DPI);
                   else
                        dpi = DEFAULT_DPI;
                   MediaPrintableArea mpa = (MediaPrintableArea) pjas.get(MediaPrintableArea.class);
                   if (mpa != null) {
                        pageX = mpa.getX(MediaPrintableArea.INCH);
                        pageY = mpa.getX(MediaPrintableArea.INCH);
                   } else {
                        pageX = DEFAULT_PAGE_WIDTH_INCH;
                        pageY = DEFAULT_PAGE_HEIGHT_INCH;
                   int pixelsPerPageY = (int) (dpi * pageY);
                   int pixelsPerPageX = (int) (dpi * pageX);
                   int minY = Math.max(pixelsPerPageY, y);
                   // make colour true if the user has selected colour, and the PrintService can support colour
                   boolean colour = pjas.containsValue(Chromaticity.COLOR);
                   colour = colour & (ps.getAttribute(ColorSupported.class) == ColorSupported.SUPPORTED);
                   // create a BufferedImage to draw on
                   int imgMode;
                   if (colour)
                        imgMode = BufferedImage.TYPE_3BYTE_BGR;
                   else
                        imgMode = BufferedImage.TYPE_BYTE_GRAY;
                   BufferedImage img = new BufferedImage(pixelsPerPageX, minY, imgMode);
                   Graphics myGraphics = img.getGraphics();
                   myGraphics.setClip(0, 0, pixelsPerPageX, minY);
                   myGraphics.setColor(Color.WHITE);
                   myGraphics.fillRect(0, 0, pixelsPerPageX, minY);
                        java.awt.Rectangle rectangle=new java.awt.Rectangle(0,0,pixelsPerPageX, minY);
                   // call rootView.paint( myGraphics, rect ) to paint the whole image on myGraphics
                   rv.paint(myGraphics, rectangle);
                   try {
                        // write the image as a JPEG to the ByteArray so it can be printed
                        Iterator writers = ImageIO.getImageWritersByFormatName("jpeg");
                        ImageWriter writer = (ImageWriter) writers.next();
                                       // mod: Added the iwparam to create the highest quality image possible
                        ImageWriteParam iwparam = writer.getDefaultWriteParam();
                        iwparam.setCompressionMode(ImageWriteParam.MODE_EXPLICIT) ;
                        iwparam.setCompressionQuality(1.0f); // highest quality
                        ByteArrayOutputStream out = new ByteArrayOutputStream();
                        ImageOutputStream ios = ImageIO.createImageOutputStream(out);
                        writer.setOutput(ios);
                        // get the number of pages we need to print this image
                        int imageHeight = img.getHeight();
                        int numberOfPages = (int) Math.ceil(minY / (double) pixelsPerPageY);
                        // print each page
                        for (int i = 0; i < numberOfPages; i++) {
                             int startY = i * pixelsPerPageY;
                             // get a subimage which is exactly the size of one page
                             BufferedImage subImg = img.getSubimage(0, startY, pixelsPerPageX, Math.min(y - startY, pixelsPerPageY));
                                                 // mod: different .write() method to use the iwparam parameter with highest quality compression
                             writer.write(null, new IIOImage(subImg, null, null), iwparam);
                             SimpleDoc sd = new SimpleDoc(out.toByteArray(), DocFlavor.BYTE_ARRAY.JPEG, null);
                             printDocument(sd, ps);
                             // reset the ByteArray so we can start the next page
                             out.reset();
                   } catch (PrintException e) {
                        System.out.println("Error printing document.");
                        e.printStackTrace();
                        return false;
                   } catch (IOException e) {
                        System.out.println("Error creating ImageOutputStream or writing to it.");
                        e.printStackTrace();
                        return false;
                   // uncomment this code and comment out the 'try-catch' block above
                   // to print to a JFrame instead of to the printer
                   /*          JFrame jf = new JFrame();
                             PaintableJPanel jp = new PaintableJPanel();
                             jp.setImage( img );
                             JScrollPane jsp = new JScrollPane( jp );
                             jf.getContentPane().add( jsp );
                             Insets i = jf.getInsets();
                             jf.setBounds( 0, 0, newX, y );
                             jf.setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE );
                             jf.setVisible( true );*/
                   return true;
              * Print the document to the specified PrintService.
              * This method cannot tell if the printing was successful. You must register
              * a PrintJobListener
              * @return false if no PrintService is selected in the dialog, true otherwise
              public boolean printDocument(Doc doc, PrintService ps) throws PrintException {
                   if (ps == null)
                   return false;
                   addAllPrintServiceAttributeListeners(ps);
                   DocPrintJob dpj = ps.createPrintJob();
                   addAllPrintJobListeners(dpj);
                   dpj.print(doc, attributes);
                   return true;
              public PrintService showPrintDialog() {
                   return ServiceUI.printDialog(gc, x, y, services, defaultService, flavor, attributes);
              private void addAllPrintServiceAttributeListeners(PrintService ps) {
                   // add all listeners that are currently added to this object
                   for (int i = 0; i < psalListeners.size(); i++) {
                   PrintServiceAttributeListener p = (PrintServiceAttributeListener) psalListeners.get(i);
                   ps.addPrintServiceAttributeListener(p);
              private void addAllPrintJobListeners(DocPrintJob dpj) {
                   // add all listeners that are currently added to this object
                   for (int i = 0; i < pjlListeners.size(); i++) {
                   PrintJobListener p = (PrintJobListener) pjlListeners.get(i);
                   dpj.addPrintJobListener(p);
              // uncomment this also to print to a JFrame instead of a printer
              /* protected class PaintableJPanel extends JPanel {
                   Image img;
                   protected PaintableJPanel() {
                        super();
                   public void setImage( Image i ) {
                        img = i;
                   public void paint( Graphics g ) {
                        g.drawImage( img, 0, 0, this );
    Thanks
    Ram

    Ram,
    I have had printing problems too a year and a half ago. I used all printing apis of java and I still find that it is something java lacks. Now basically you can try autosense. To check whether your printer is capable of printing the docflavor use this PrintServiceLookup.lookupPrintServices(flavor, aset); . If it lists the printer then he can print the document otherwise he can't. I guess that is why you get the error.
    Regards,
    Kevin

  • Help need Convert SWF to AVI Video

    Hi plz help
    I have made presentation in flash cs4. I have one main file Index & loading rest all the files through LoadMovie.
    I  want to convert my presentation into AVI for video but when i export it  in avi so it converts in AVI but its not taking the file which m  loading externally & not even converting the movie clip.
    so please help me i want to convert my presentation SWF files to AVI.
    If anyone knows the free converter tool so plz tell me.
    Thanx

    I found a utility the other day that captures SWF playing.
    My flash pieces were to complex to use the Export too.
    Here's just one utility out there.
    iWisoft Flash SWF to Video Converter

  • Making .swf files in Flash Pro CC: What versions of Flash Player could play it?

    Hello, all!
    I was recently let go from my last job. My former boss wanted me to do ActionScript work on a PowerPC Mac (an iMac G5) with a decade-old version of Flash (Flash MX 2004.) Her reasoning for this was sound: she wanted to distribute some of here English tutoring software to cash-strapped schools, so she wanted me to work with older software and hardware to ensure compatibility. Unfortunately (in this case) the only version of Flash Pro that I can legally acquire is Flash Pro CC, so I was unable to actually get my hands on anything that could run ActionScript 2. This made my productivity at work go slower than desired. Not only was I slow in picking up how to use Flash MX on a Mac (I'm primarily a Windows/Linux person) but she made it quite clear that she wasn't going to have me learning how to do the job on company time. In the end, she decided to scrap the project.
    Now, that job is gone, and what's done is done, but I'm still interested in using Flash/ActionScript, and I'm also left with a question that, depending on the answer, may have saved my job if I had asked it just a couple days ago: what's the oldest version of Flash Player that would be able to play .swf files made in the current version of Flash Pro CC?
    Thank you all for your time.

    with a cc subscription, you can download, install and activate flash pro cs6 which supports as2.
    the answer to your last question depends on what features you use of flash pro cc.  at a minimum you would be using as3 and need to use a flash player version that supports as3.

  • Help w/ DWmx2004 swf file creation

    I can not get the swf file I created to work. I create a web site, on the first page as a test I select media> image viewer. I create a name for the swf file  then ok. In the tag area I choose the images I want and if they are not in the folder I have them copied into the new site folder. I choose loop and all the other features that allow the slide show and then press preview. The frame comes up but the images don't.
    I have also create an SWF file in another program and it works fine. This is on a win xp machine w/plenty of resources.
    What am I doing wrong? There has to be some small widget I didn't tickle, but for the life of me I don't have a clue. I checked the html code from both swf files and they appeared the same relative to the locations of the images, each to it's own location \Thanks for any advice, Wyndham

    See the answer in the discussion - 'linking graphics in folder that is the root folder of dreamweaver'.
    http://forums.adobe.com/thread/437037?tstart=0
    HTH
    Message was edited by: pziecina

  • Help needed in splitting files using BPM

    Hello experts,
    I am working on an interface where i need to split files within BPM.
    I know,i can achieve it in Message Mapping by mapping Recordset to Target structure and then using Interface Mapping within Transformation step.But i dont want to follow this.Is there an alternative way to achieve this within BPM.
    I have an input file with multiple headers and i need to split for each header.My input file looks like this:
    HXXXXXABCDVN01
    MXXXXXXXXXXXXXX
    MXXXXXXXXXXXXXX
    SXXXXXXXXXXXXXX
    HXXXXXABCDVN02
    MXXXXXXXXXXXXXX
    MXXXXXXXXXXXXXX
    SXXXXXXXXXXXXXX
    HXXXXXABCDVN03
    MXXXXXXXXXXXXXX
    SXXXXXXXXXXXXXX
    Is there a way, where i can specify this condition within BPM , that split files for every H.
    Thanks in advance.
    Regards,
    Swathi

    Hi,
    have your target structure with occurence as 0...unbounded in the mapping and map the header filed to the root node (repeating parent node) of the target structure....this will create as many target messages as the header fileds....if you want to send these messages separately then use a block in BPM with ForEach option....
    Splitting and Dynamic configuration can be applied in the same mapping.
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Dec 18, 2008 12:59 PM

  • Small help needed with swf in flash CS6!

    Hey everyone! I have a question I’d like to ask, and just wanted to point out a few things. I’m not very advanced with flash software, so I don’t know too much about it. My question was, if it would be possible to take an swf animation- (One that’s already been uploaded on the internet) Put it into Flash CS6, and possibly just change the music that is playing in that flash animation. So that when it’s all done, the animation plays just as it did originally, but with the new track of music that has been put into it.
    Any support would be amazing! Thank you!

    It depends how the sound is used in the swf file. If the sound is streamed from a file on a server, you will most likely get errors when trying to import it in your own library. It also depends on which ActionScript it uses (1,2 & 3). If you drag the swf on the stage of your fla any tweens in it will be converted to keyframes and you will lose traditional (timeline-embedded sound) anyway.

Maybe you are looking for

  • PLZ help AUX Voltage 3.26!

    K7N2 Delta-ILSR 350W Antec True Power Soft Blue Geforce FX 5600 Ultra 512 DDR pc2700 Athlon XP 2500+ Barton Core After reading some other peoples reports on their AUX voltage and talking about around 1.6 or less normally I wanted to ask about mine be

  • How to create a Case Hierarchy

    Hi Friends, Can you pls guide me on how to create a Case Hierarchy? It's very much urgent. Thanks in advance and warm regards Purnendu

  • R400- Error when opening Lenovo Thinkvanta​ge Toolbox

    Hi i am a new user to lenovo i have a R-400 running windows 7 Professional 32 bit. It is only 1 week old and recently, when i open the Lenovo Thinkvantage Toolbox, an error will appear. An error occurred while processing the scriptlet eedf7fe8-5a1b-4

  • IF check against subvar value

    I need to execute code in a calc script based on the value of a sub var:My subvar is CQ, which can have a value of Q1, Q2, Q3, or Q4.I want to do this in a calc script:FIX ( <member list ..> ) "601000"( IF &CQ == Q1 <do this> ELSEIF &CQ == Q2 <do thi

  • Camera shutter wont open to take a pic....???

    camera shutter wont open to take a pic....???