JMFproblem in adding a layer over e palyer

Hi to all.
I'm a newbie to JMF.
What I'm trying to do with no success is to add a LayeredPanel the visualComponent of the player
and afterwards a simpel JLabel.
It must be for the fact that teh visualcomponents contains the component given from the layer whitch must be a thread (but I'm not sure)
I'm really desperate beacause I can't find a way out.
For whom has already worked with JMF it sould be easy but not for my.
Any hint or help Would be really wonderful
Thanks to all in advance
Mandy
I Post here my code
import javax.swing.*;
import javax.swing.border.*;
import java.io.*;
import javax.media.*;
import javax.media.format.*;
import javax.media.control.*;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import com.sun.media.protocol.vfw.VFWCapture;
public class MediaPlayer extends JFrame implements WindowListener,
ComponentListener {
     private MenuBar mb;
     private Menu fileMenu;
     private Menu aboutMenu;
     private MenuItem aboutItem;
     private MenuItem exitItem;
     protected final static int MIN_WIDTH = 320;
     protected final static int MIN_HEIGHT = 240;
     protected static int shotCounter = 1;
     protected JLabel statusBar = null;
     protected JLayeredPane visualContainer = null;
     protected Component visualComponent = null;
     protected Player player = null;
     protected CaptureDeviceInfo webCamDeviceInfo = null;
     protected MediaLocator ml = null;
     protected Dimension imageSize = null;
     protected FormatControl formatControl = null;
     protected VideoFormat currentFormat = null;
     protected Format[] videoFormats = null;
     protected boolean initialised = false;
      * Costruttore *
     public MediaPlayer(String frameTitle) {
          super(frameTitle);
//          dimensione della finestra
          Image icon = Toolkit.getDefaultToolkit().getImage("icona.gif");
          this.setIconImage(icon);
          Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
          this.setLocation(10 , 10);
          this.setSize(screenSize.width-100,screenSize.height-100);
          this.setResizable(false);
// Add Menu Bar
          mb = new MenuBar();
          fileMenu = new Menu("File");
          mb.add(fileMenu);
          setMenuBar(mb);
          aboutMenu = new Menu("About");
          fileMenu.add(aboutMenu);
          AboutAction aboutAction = new AboutAction();
          aboutItem = new MenuItem("Application");
          aboutItem.addActionListener(aboutAction);
          aboutMenu.add(aboutItem);
          ExitAction action2 = new ExitAction();
          exitItem = new MenuItem("Exit");
          exitItem.addActionListener(action2);
          fileMenu.add(exitItem);
          addWindowListener(this);
          addComponentListener(this);
          getContentPane().setLayout(new BorderLayout());
          JPanel genericcontainer = new JPanel();
          //visualContainer = new JLayeredPane();
          //visualContainer.setLayout(new BorderLayout());
          visualContainer = new JLayeredPane();
          visualContainer.setBorder(BorderFactory.createTitledBorder(
                                    "STREAM VIEWER"));
          genericcontainer.add(visualContainer);
          getContentPane().add(genericcontainer, BorderLayout.CENTER);
          statusBar = new JLabel("");
          statusBar.setBorder(new EtchedBorder());
          getContentPane().add(statusBar, BorderLayout.SOUTH);
      * @restituisce true se viene trovata una webcam *
     public boolean initialise() throws Exception {
          return (initialise(autoDetect()));
      * @params _deviceInfo, informazioni sulla webcam rilevata * @restituisce
      * true se la webcam viene correttamente rilevata*
     public boolean initialise(CaptureDeviceInfo _deviceInfo) throws Exception {
          statusBar.setText("detecting WEBCAM");
          webCamDeviceInfo = _deviceInfo;
          if (webCamDeviceInfo != null) {
               statusBar.setText("Connessione alla webcam : "
                         + webCamDeviceInfo.getName());
               try {
                    ml = webCamDeviceInfo.getLocator();
                    if (ml != null) {
                         player = Manager.createRealizedPlayer(ml);
                         if (player != null) {
                              player.start();
                              formatControl = (FormatControl) player
                              .getControl("javax.media.control.FormatControl");
                              videoFormats = webCamDeviceInfo.getFormats();
                              visualComponent = player.getVisualComponent();
                              if (visualComponent != null) {
                                   visualContainer.setOpaque(false);
                                   visualContainer.add(visualComponent, new Integer(1));
                                   visualContainer.add(new JLabel("sssss"), new Integer(2));
                                   Format currFormat = formatControl.getFormat();
                                   if (currFormat instanceof VideoFormat) {
                                        currentFormat = (VideoFormat) currFormat;
                                        imageSize = currentFormat.getSize();
                                        visualContainer.setPreferredSize(imageSize);
                                        setSize(this.getSize().width, this.getSize().height
                                                  + statusBar.getHeight());
                                   } else {
                                        System.err
                                        .println("Errore nella rilevazione del formato video.");
                                   invalidate();
                                   pack();
                                   return (true);
                              } else {
                                   System.err
                                   .println("Errore nella creazione della componente visiva.");
                                   return (false);
                         } else {
                              System.err
                              .println("Errore nella creazione del player.");
                              statusBar.setText("Errore nella creazione del player.");
                              return (false);
                    } else {
                         System.err.println("Nessun MediaLocator per: "
                                   + webCamDeviceInfo.getName());
                         statusBar.setText("Nessun MediaLocator per: "
                                   + webCamDeviceInfo.getName());
                         return (false);
               } catch (IOException ioEx) {
                    statusBar.setText("Connessione a: "
                              + webCamDeviceInfo.getName());
                    return (false);
               } catch (NoPlayerException npex) {
                    statusBar.setText("Errore nella creazione del player.");
                    return (false);
               } catch (CannotRealizeException nre) {
                    statusBar.setText("Errore nella realizzazione del player.");
                    return (false);
          } else {
               return (false);
      * Cerca una webcam installata per Windows (vfw)*
      * @restituisce le informazioni sul device trovato
     public CaptureDeviceInfo autoDetect() {
          Vector list = CaptureDeviceManager.getDeviceList(null);
          CaptureDeviceInfo devInfo = null;
          if (list != null) {
               String name;
               for (int i = 0; i < list.size(); i++) {
                    devInfo = (CaptureDeviceInfo) list.elementAt(i);
                    name = devInfo.getName();
                    if (name.startsWith("vfw:")) {
                         break;
               if (devInfo != null && devInfo.getName().startsWith("vfw:")) {
                    return (devInfo);
               } else {
                    for (int i = 0; i < 10; i++) {
                         try {
                              name = VFWCapture.capGetDriverDescriptionName(i);
                              if (name != null && name.length() > 1) {
                                   devInfo = com.sun.media.protocol.vfw.VFWSourceStream
                                   .autoDetect(i);
                                   if (devInfo != null) {
                                        return (devInfo);
                         } catch (Exception ioEx) {
                              statusBar
                              .setText("Errore nella ricerca della webcam : "
                                        + ioEx.getMessage());
                    return (null);
          } else {
               return (null);
     public void playerClose() {
          if (player != null) {
               player.close();
               player.deallocate();
               player = null;
     public void windowClosing(WindowEvent e) {
          playerClose();
          System.exit(1);
     public void componentResized(ComponentEvent e) {
          Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
          setSize(dim.width-100,dim.height-100);
     public void windowActivated(WindowEvent e) {
     public void windowClosed(WindowEvent e) {
     public void windowDeactivated(WindowEvent e) {
     public void windowDeiconified(WindowEvent e) {
     public void windowIconified(WindowEvent e) {
     public void windowOpened(WindowEvent e) {
     public void componentHidden(ComponentEvent e) {
     public void componentMoved(ComponentEvent e) {
     public void componentShown(ComponentEvent e) {
     protected void finalize() throws Throwable {
          playerClose();
          super.finalize();
     public class ExitAction implements ActionListener {
          public void actionPerformed(ActionEvent evt) {
               playerClose();
               System.exit(1);
     public class AboutAction implements ActionListener {
          public void actionPerformed(ActionEvent evt) {
               JFrame myframe = new JFrame();
              JOptionPane optionPane = new JOptionPane("\n" +
                        "   Java Application\n" +
                        "\n" +
                        "Created by M.Zachariadou\n" +
                        "\n" +
                        " uses jre 1.6.0_3\n and JMF 2.1.1" +
                        "\n" +
                     JOptionPane.INFORMATION_MESSAGE, JOptionPane.DEFAULT_OPTION);
                 optionPane.createDialog(myframe, null).setVisible(true);
     public static void main(String[] args) {
          try {
               MediaPlayer myWebCam = new MediaPlayer("Video Streaming from WEBCAM detected");
               myWebCam.setVisible(true);
               if (!myWebCam.initialise()) {
                    System.out.println("WebCam non trovata / inizializzata");
          } catch (Exception ex) {
               ex.printStackTrace();
}

After Effects will mix and match any size and pixel aspect ratio footage without problems as long as you have all footage items interpreted properly. It would help us a lot if we knew more about your composition. You should always use the presets for comp size and you should never change the PAR that a preset gives you. Distortion in non square standard comps is removed when you select PAR correction in preview.
If you don't understand any of what I'm talking about then you must read and understand the help materials on rendering, composition setings and pixel aspect ratios. To keep your life simple always work with a square pixel preset then render using a pre-set for your desired delivery method.

Similar Messages

  • Adding a text layer over a sliced PS image

    Having trouble positioning a text layer over a PS sliced
    image.
    The sliced image is positioned relative to the center of the
    page (so it appears in the same place regardless of monitor size or
    resolution, and that's where I want it).
    I can position the layer in Dreamweaver, but when previewed
    in the browser, the test layer moves to the left -- apparently
    being positioned relative to the left side of the screen.
    Is there any way to position a text layer so that it is
    position relative to the center of the page (and therefore reliably
    will appear on top of an image also positioned relative to the
    center of the page)?
    Any suggestions?

    This is a bad approach. Consider what will happen to your
    careful alignment
    if someone resizes their text in their browser. If you must
    place text over
    an image, the best way to do it is to make the image the
    background of some
    container, and then use CSS (margins or padding) to nudge the
    text into the
    desired location location. You will still have the same
    problem, though.
    > I can position the layer in Dreamweaver, but when
    previewed in the
    > browser,
    > the test layer moves to the left -- apparently being
    positioned relative
    > to the
    > left side of the screen.
    That's how absolutely positioned elements work when they are
    not within some
    other positioned element. The zero coordinates default to the
    <body> tag,
    i.e., the upper, left-hand corner of the browser viewport.
    > Is there any way to position a text layer so that it is
    position relative
    > to
    > the center of the page (and therefore reliably will
    appear on top of an
    > image
    > also positioned relative to the center of the page)?
    Certainly, but you will have to understand CSS positioning to
    accomplish it.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Phyto-Man" <[email protected]> wrote in
    message
    news:[email protected]...
    > Having trouble positioning a text layer over a PS sliced
    image.
    >
    > The sliced image is positioned relative to the center of
    the page (so it
    > appears in the same place regardless of monitor size or
    resolution, and
    > that's
    > where I want it).
    >
    > I can position the layer in Dreamweaver, but when
    previewed in the
    > browser,
    > the test layer moves to the left -- apparently being
    positioned relative
    > to the
    > left side of the screen.
    >
    > Is there any way to position a text layer so that it is
    position relative
    > to
    > the center of the page (and therefore reliably will
    appear on top of an
    > image
    > also positioned relative to the center of the page)?
    >
    > Any suggestions?
    >

  • [Photoshop CC 2014] Click&hold-move-release doesn't work when adding adjustment layer from the layer panel

    When selecting a menu item I used to click the left mouse button and hold it down, move the pointer to the desired menu item and release the mouse button. Everything works fine in the mine menu, but there's a problem when adding new adjustment layer from the layer panel: when I release the button nothing happens, I have to press the button again. In previous PS version it worked fine. How can I fix this?

    I don't think that is user fixable, meaning you'll have to wait till adobe fixes it with an update.
    Photoshop cc 2014
    windows does not work
    mac does work
    Did you already post over here:
    [Photoshop CC 2014] Click&hold-move-release doesn't work when adding adjustment layer from the layer panel

  • Putting A Layer Over Drawing Canvas - Tile Map

    I want to make it so that a layer will be above the map when its drawn.
    Like I want a layer over this, cause im making a menu for the game, but the game is above the layer.
    var tiles:Object = new Object({width:52, height:26}); // The size of the 'flat' tile. Tiles are allowed to be different dimentions, to give the '3D' effect.
    var offset:Object = new Object({x:130, y:100}); // This object helps center the 'hero' to the stage.
    var hero:Object = new Object({x:1, y:5}); // The starting position of the 'hero'
    var canvas:Object = new Object({mc:_root.createEmptyMovieClip("canvas", _root.getNextHighestDepth())}); // Contains the primary movie clip and map information.
    canvas.map = new Array( // Dictates the topography of the environment
                            // The reason I decided to to use 200 for walls and 100 for ground is to leave
                            // the option open add more tiles, such as 86 for another type of tile that is
                            // walkable. Since the collision detection code checks to see if the tile is
                            // less then 200 (less is walkable, 200 or above is not), there is no need to change
                            // the code toenable new tiles, simply name them a number between 0 and 200.
                            new Array(200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200),
                            new Array(200,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,200),
                            new Array(200,100,100,100,100,100,100,100,100,100,100,100,193,196,196,196,196,189,100,200),
                            new Array(200,100,100,100,100,100,100,100,100,100,100,100,194,187,182,182,179,190,100,200),
                            new Array(200,100,100,199,199,199,199,199,199,199,199,199,199,186,183,183,180,190,100,200),
                            new Array(201,199,199,199,100,100,100,100,100,100,100,100,194,186,183,183,180,190,100,200),
                            new Array(200,100,100,100,100,100,100,100,100,100,100,100,194,186,183,183,180,190,100,200),
                            new Array(200,100,100,100,100,100,100,100,100,100,100,100,194,186,183,183,180,190,100,200),
                            new Array(200,100,100,100,100,100,100,100,100,100,100,100,194,185,181,181,178,190,100,200),
                            new Array(200,100,100,100,100,100,100,100,100,100,100,100,192,195,195,195,195,188,100,200),
                            new Array(200,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,200),
                            new Array(200,100,100,100,100,100,200,200,200,200,200,200,200,200,200,200,200,200,200,200),
                            new Array(200,200,200,200,200,200,200)
    _root.onLoad = function():Void
        initmap(canvas.map); // Draw the map
        initplayer(); // Draw the player
        return;
    _root.onEnterFrame = function():Void
        input(); // Handle keyboard movement
        return;
    function input():Void // Modifies the 'hero' object, handles collision detection ('hero' and wall)
        // Any tile less then 200 is walkable, anything above is not.
        // No need to change this code handle more tiles, just name the tiles a number.
        // (not the best way to do this but simple, quick, and easy to do)
        if(Key.isDown(Key.LEFT) && canvas.map[hero.y - 1][hero.x] < 200) hero.y--;
        else if(Key.isDown(Key.RIGHT) && canvas.map[hero.y + 1][hero.x] < 200) hero.y++;
        else if(Key.isDown(Key.UP) && canvas.map[hero.y][hero.x - 1] < 200) hero.x--;
        else if(Key.isDown(Key.DOWN) && canvas.map[hero.y][hero.x + 1] < 200) hero.x++;
        move();
        return;
    function move():Void // Moves the background and the hero
        // These three lines handle swapping the tile depths to give the '3D' effect
        var d:Number = (hero.y * tiles.height) + (hero.x * tiles.width) + hero.y;
        hero.mc.swapDepths(d);
        canvas.mc["tile_" + hero.y + "_" + hero.x].swapDepths(d - 1);
        // Move the hero in the opposite direction the environment moves
        hero.mc._x = (tiles.width / 2) * (hero.y - hero.x) + offset.x;
        hero.mc._y = (tiles.height / 2) * (hero.y + hero.x) + offset.y;
        // Move the environment
        canvas.mc._x = (tiles.width / 2) * (-hero.y - -hero.x) + offset.x;
        canvas.mc._y = (tiles.height / 2) * (-hero.y + -hero.x) + offset.y;
        return;
    function initplayer():Void // Self-expalanatory
        var d:Number = (hero.y * tiles.height) + (hero.x * tiles.width) + hero.y;
        hero.mc = canvas.mc.attachMovie("hero", "hero_mc", d + 1, {_x:hero.x * tiles.width, _y:hero.y * tiles.height});
        move();
        return;
    function initmap(map:Array):Void // Render map
        var map_height:Number = map.length; // Determine height of the map
        var map_width:Number = map[0].length; // Determine width of the map
        for(var y = 0; y < map_height; y++)
            for(var x = 0; x < map_width; x++)
                // Movieclip depth is everything when doing an isometric game
                var depth:Number = (y * tiles.height) + (x * tiles.width) + y;
                // Attach tile to 'canvas'
                var tile:MovieClip = canvas.mc.attachMovie("tile" + map[y][x], "tile_" + y + "_" + x, depth);
                tile._x = (tiles.width / 2) * (y - x) + offset.x;
                tile._y = (tiles.height / 2) * (y + x) + offset.y;
        return;

    there are no layers when your fla is published (or tested).  all displayobjects are assigned depths based on code used to assign depths and compiler code that assigns depths to objects you place on-stage in the authoring environment.
    all objects placed on-stage in the authoring environment are placed at negative depths starting with about -16,380.   that's why your menu (which is probably added to some layer in the authoring environment is below the movieclip you placed at nextHighestDepth() (which adds to no depth less than zero)
    to change a movieclip's depth use the swapDepths() method of movieclips.

  • How to make a transparent text layer over a photo that scrolls?

    I looked through the Adobe Inspire Magazine, and found something really astonishing: the editor's added a text-over-photo effect multiple times throughout the magazine (See http://inspire.adobe.com/, october 2014. Has to be on the iPad to see the actual effect. "It's about the stories" by Dan Cowles features this effect).
    I was really baffled to see it, as it fits my current project perfectly. I'm building a book about a recent trip to Iceland, which will be released for the iPad in the nearest future. So far, I have used Adobe InDesign CC to create pretty much the entire book, since I know little to nothing about programming.
    My question is, how did they (he) do it?
    Is it possible to do for someone with pretty limited knowledge? If it is, how can I do it?
    Thanks a lot!

    Since Adobe Inspire is made using DPS, then you can do everything that it does.
    At the top of the help document, Digital Publishing Suite Help | Digital Publishing Suite Help, there are links to topics like Getting Started, Design and Layout, System Requirements, etc. Read them over to gain an overview. Also, download and review DPS Tips from the App Store.
    If you are using Creative Cloud 2014, you should already have DPS Tools available to you. DPS is supported for InDesign version 6 and greater. I have found DPS pretty straight forward to use following the information given in the documentation along with help from this forum and DPS Tips.

  • Graphics layer over video Layer problem

    Hello!
    we are blu-ray applications developers and we have a problem with repainting graphics layer over video layer. In MHP this problem is solved using the method call repaint() to the HScene. This Method remove all graphics and paint again. But in Blu-ray is not work correctly. When you have a graphics over video, this graphics don´t disappear when you paint other graphics, because don´t refresh the HScene and all the containers get painted over the others.
    what is the solution of this problem?
    Thanks a lot for your help!
    Regards

    Thanks for your reply.
    As far as I know, targas can only be RGB. I couldn't find a way in Photoshop to work in YCbCr. I have Photoshop CS, so its pretty old, but even on my work computer, which has CS3, I didn't see anything. Next week I'll be installing CS4, so there might be something in that.
    I won't be able to test anything until late tonight, but I'll try several formats to see if they make a difference. I'm wondering if there might also be some kind of option in FCE to convert imported graphics to the correct color space.
    When keying graphics over video in your projects, how do you save them(formate,color space, etc)? Ever see this issue?
    Thanks for your help
    Colin

  • Transparent layer over something opaque

    Hi I'm trying to put an image over a webcam video. Is it possible to put a transparent layer over the video so it makes the video form into a shape.
    Like here's the webcam ->
    |                    |  
    |                    |
    Can I put a image layer over it that is transparent, that will show the background through? Like this ->
    |              |___ <- this is an image layered over the webcam with the background visible.
    |                    |
    Thanks if anyone can lend me a hand.

    Hi...
    Looks like we are trying to do the same thing - unfortunately we don't know much about coding, so we don't quit understand what to do.
    we would like to place an image on top of the webcamera
    so that the image of whats is being recorded is behind this image.
    is it possible?

  • I am adding a voice over - it plays when I am in "clip trimmer" mode but NOT in the actual movie ... frustrating - any help?

    I am adding a voice over - it plays when I am in "clip trimmer" mode but NOT in the actual movie ... frustrating - any help?am in

    In Finder you will find the voiceover in the project's package contents folder. If on your internal drive, the project will be in your User (Home) folder Movies/iMovie projects. If on an external drive it will be in the iMovie Projects folder at the top (root) level of the drive.
    Right-click (or Control-click) on the project name and select Show Package Contents from the pop-up menu. There should be a file named something like Voiceover Recording.caf in the package contents folder. Copy and paste this .caf file to the Desktop. See if it will open in QuickTime, GarageBand or another program capable of editing audio, such as MPEG Streamclip or Audacity (both free). If it will open, save (export) it in a different format, such as AIFF, preferably to a location where it will not be moved, such as iTunes.
    Now drag that file into iMovie to the desired position (if in iTunes drag from iMovie's music browser panel). Hopefully it will now play correctly.
    John
    Message was edited by: John Cogdell

  • Blue haze, layer over video content

    Hi,
    I recently bought a new mac mini server 2,3 Ghz i7 HD Graphics 4000 (brand new) and expanded it with one SSD and 16GB of ram.
    The monitor is a Dell monitor U2413
    The mini is connected either with HDMI --> HDMI or Thunderbolt --> Displayport.
    Both setups give the same problem.
    I have not tried the DVI port yet as I don't have a cable.
    When a video is played in a browser (Safari or Firefox) within 3 seconds a blue-ish (purple - pink) haze or layer comes over the video image.
    When the video is pauzed, the haze is gone, starting the video again and within 3 seconds the haze is back.
    This happens when a video is played in a window in the browser and also in full screen mode.
    When I hook up my Macbook Pro Retina with the Dell monitor (Thunderbolt --> Displayport) I do not have this issue.
    What causes this problem?
    - Johan -

    There is a dedicated forum for DPS questions and this issue has been addressed there.
    http://forums.adobe.com/community/dps
    In short, create an MSO and place those over the video. For details visit the DPS forum.
    Bob

  • Problem Adding Usable Layer Mask

    I keep trying to add a reveal-all layer mask to an image,(with another image on a layer below) but can't seem to produce a mask that I can paint on to reveal the image below.  When I click the add mask icon or go to layer add a mask, I see a layer mask icon next to the image, but it is still a rectangle with a white circle in it, not an all white framed rectangle. And painting on the original image produces no effect at all on the mask. Every video tutorial I watch, adding the mask produces an all-white mask icon in the layers panel and selecting that allows for easy painting to hide or reveal.  I just can't figure out what's going on and it's driving me nuts, so any help would be greatly appreciated.

    Hello Jow333!
    I've put together this little map that might help you better understand layer masks!
    1. Add a layer mask to the layer you want to mask out and reveal the background beneath.
    2. Make sure that the Mask is selected
    3. Grab the Paint Brush tool
    4. Choose the color Black
    Then you should be able to paint right onto the layer!
    Hope this helps!
    Julia

  • Is it possible to create a 'layer' over the top of a PDF in Captivate?

    I am trying to integrate a 3dpdf within captivate 8 for a software training program, for this it is important to retain functionality to the pdf menu, Captivate handles this well : ) HOWEVER on importing the pdf it becomes clear that the pdf 'trumps' other objects such as clickable areas or text, which therefore don't seem to appear when published. I also wish to provide 'blocked' areas by putting transparent objects over the top of the pdf so as to control the learning process, which also doesn't seem possible on initial inspection.
    Does the PDF exist outside the timeline?
    Does anyone know how to layer objects over a pdf object that will remain there when published?
    Many thanks!
    Sam the Giraffe

    How/where do you want to accomplish it?
    Within the document? Using Acrobat? Using another application?
    Using Acrobat within the document would be possible using Acrobat JavaScript. You can access the annotation objects of your document, and you then can evaluate the properties of each of these objects. Have a closer look at the Annotation Object section in the Acrobat JavaScript documentation.
    You will look for the contents property, and evaluate its content. When you have found something looking like a URL, you can create a link (using the rect property of the annotation), and you have what you want; you might then think to destroy the annotation, as it may overlay the link.
    Hope this can help.
    Max Wyss.

  • Increase and decrease a numerical text layer over time

    I need to create a text layer with a numerical value that will range from 0% to 100% over time using key frames. I need the value to change over time, increasing or decreasing the percentage based on key frames. Any ideas? Thank you!

    Add a Slider Control effect to the text layer, which you use to keyframe the percentage, then use this expression on the text layer's Source Text property:
    effect("Slider Control")("Slider").value.toFixed(0) + "%";
    The value in toFixed(0) controls the number of decimal places.

  • Adding a Layer (absolute position div) to a locked page

    Maybe I am just not understanding templates but I have a
    really simple one that has one editable region called "content". I
    want to add a absolute positioned div to the content area but DW
    tells me this would require changing code that is locked by the
    template. I thought that the editable area automatically put in by
    DW would accommodate the added code (css) that DW puts in when
    adding a template to the page.
    So what is the Editable area called "Head" used for anyways
    if not for situations like this?
    Thanks

    Here's the problem with layers in template child pages, and a
    simple
    solution.
    When you DRAG a layer onto the page in DW (this means you
    click on the layer
    icon in the Insert Toolbar and drag the layer on the page),
    DW wants to put
    the code for that layer immediately under the body tag, e.g.,
    BEFORE DRAG -
    <body...>
    <table>
    AFTER DRAG -
    <body ...>
    <div id="foo" style="position:absolute; ...>LAYER
    STUFF</div>
    <table>
    In a template child page, this region is usually not part of
    your editable
    region, and so the layer's code is rejected by the template
    engine. This is
    a bad thing.
    If instead of dragging the layer onto the page, you use
    INSERT | Layer, that
    should work provided your cursor is in an editable region,
    but since
    editable regions are usually within tables or other layers,
    you have just
    broken one of the rules listed above. This is also a bad
    thing.
    THE SOLUTION -
    Open your template page in DW, and create a special place
    where it is SAFE
    to put your layers. In code view, find this -
    </body>
    and click so that your cursor insertion point is just to the
    left of
    </body>.
    Now, use INSERT | Template Objects > Editable Region, and
    name this region
    "Layer Pad" or something like that.
    When you save your template page, all your child pages will
    now have the
    LayerPad editable region on them.
    THE BIG FINISH -
    On any child page where you need a layer, just click in this
    editable
    region, and use INSERT | Layer. Bada bing, bada boom.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "htown" <[email protected]> wrote in message
    news:[email protected]...
    > Maybe I am just not understanding templates but I have a
    really simple one
    > that
    > has one editable region called "content". I want to add
    a absolute
    > positioned
    > div to the content area but DW tells me this would
    require changing code
    > that
    > is locked by the template. I thought that the editable
    area automatically
    > put
    > in by DW would accommodate the added code (css) that DW
    puts in when
    > adding a
    > template to the page.
    >
    > So what is the Editable area called "Head" used for
    anyways if not for
    > situations like this?
    >
    > Thanks
    >
    >

  • Image not appearing after adding adjustment layer?

    My image layer isn't showing after adding an adjustment layer. I'm trying to turn a JPG picture of a nuclear explosion into a 3D/Camera effect.
    I've added one solid layer below the JPG which is just grey. The JPG is in the middle. The adjustment layer is on top, with Colorama Get phase/Add phase from alpha channel. Plus turbulnce display added.
    Whats going on? Or am I meant to do something else to the JPG first?

    I figured out what was wrong- it just didn't appear in the static preview, but it was fine when I clicked composition>Preview. Is this how it looks normally?
    I was attempting to make a weird 3D spinning pictures of nuclear explosions and bombs which panned/zoomed in and out of the images.

  • Adding a layer to a page created with a template

    Aaaaaaaaaaaaaaaaaaaargh!
    I created a template page. Yer boring L-shaped banner and
    left menus. Added a table in the lower right. Made it editable.
    Created many pages. Wanted one of the pages to have a
    show/hide layer, so I tried to create a layer in the page. When I
    try to insert a layer, I get an error message "Making this change
    would require chaning code that is locked by a template or a
    translator. The change will be discarded."
    Huh? If the area I'm trying to add a layer to is editable,
    then why is it forbidden by the template?
    Any enlightenment gratefully received.
    regards, David, Ottawa

    You have to click in the editable region you just inserted
    (do it in CODE
    view, but NOT between <p> and </p>), and insert
    the layer.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "djfilms9" <[email protected]> wrote in
    message
    news:embd2a$mbv$[email protected]..
    > Osgood,
    >
    > Thanks for you reply. I tried your suggesioton, but till
    get the same
    > error
    > message. I can see the <p></p> in blue, with
    the rest of the snippt in
    > grey, I
    > can insert text or a table OK, but not a layer.
    >
    > Any further ideas?
    >

Maybe you are looking for

  • Project on demand/click to run not working in Project Online

    Do I need to do anything special to allow the click to run functionality in Project Online to work? Or does it not work for Project Online? We have a Project Online trial, but when the users who do not have Project Pro on their desktops, try to selec

  • InfoObject to R/3 Field Mapping

    Does anybody know of a list that shows the standard Business Content InfoObjects and what they typically are mapped to in R/3? The reason is that I want to use the standard InfoObjects wherever possible without creating new ones unnecessarily. As an

  • How to upload image in MIME repository  from bsp application

    Hi, I want to upload Image in MIME repository from my BSP Application. I want to access again or reuse uploaded image later in my BSP application. Can you please help me how to do this? I already go through http://help.sap.com/saphelp_nw2004s/helpdat

  • Inbound PO idoc - orders05 and PORDCR

    Hi I am sending PO from SAP A to SAP B In SAP B i am getting error 51- enter purchase organisation i am using message type PORDCR and idoc type orders05 when i check in we02...there is no field called EKORG...however there is a segment E1EDK14 with q

  • CiscoWorks "Server Not Ready" Admin Web Page

    When trying to login to Admin webpage we received a page stating "Server Not Ready" Please wait..... System is still coming up. You will be redirected to login page soon with an OK button. Clicking button reloads page and seems to have no effect. Loo