Resizing media components dynamically

Does anyone know of a way to resize the MediaController
component dynamically based on the size of the stage? When I just
change its height/width properties, it stretches it. Not quite what
I'm looking for.
If I resize it manually by changing the dimensions in the
property inspector, it adjusts nicely. What I want is for the
player to scale, but the buttons and icons to stay the same size.
Thanks in advance.
Sean

Thats how it is designed.
To change the size use copy the styles from the component
template fla file provided with flash. These are open movie clips.
you can edit the size manually and the effect will be reflected in
the embedded components.

Similar Messages

  • How can I create UI components dynamically based on the result of WebService/HttpService call?

    I would like to create child components of the component
    based on a XML which is retrieved by WebService/HttpService call.
    createChildren() is the one to be used to create components
    dynamically. But if I use createChildren() and call a
    WS/HttpService request in createChildren method, I can not get the
    result of WS/HttpService request in createChildren().
    It seems that the result event is processed later after
    createChildren() is completed.
    How can I implement my requirement?
    I would appreciate any pointer or suggestion.
    Best regards
    Masa

    1) Use a List, with a custom itemRenderer
    2) Use a Repeater (Probably easiest)
    3) use Actionscript to addChild() components.
    Tracy

  • Auto-resizing all components

    Is there a method that auto resizes all components on a JFrame when it is maximised for example. I have got a JTable (in a scrollpane) and some other components on a panel. I have sized the frame to be approx 80% of the screen size. When the frame is maximised, the table and the other components retain their original size (understandably so!). Is there a method available that can resize the panel and its components to resize accordingly when the frame is maximised?...I know I can add the componentListener and implement a method in the componentResized() method...but I dont want to duplicate stuff that's already available. Thanx for your help.

    I don't know the specific needs.
    BorderLayout: simple Layout; Components are oriented NORTH, EAST, SOUTH, WEST
    FlowLayout: all components are added after the other
    GridLayout: components are oriented in a grid
    GridBagLayout: complex once
    See the Java Tutorial for more information.

  • Scaling / Resizing Catalyst Components in Builder

    Hi,
    I'm looking at setting up the proper workflow for a large project. We envision multiple developers and multiple designers on the project.
    The major sticking point now is scaling and resizing the components generated by Catalyst once they're in Builder. One would think that once you've skinned, for example, a scrollbar in Catalyst that you could then resize it in Builder to match different layouts.
    However, as I suspect you already know, the sizes do not change at all in Builder.
    We can get into the source code in builder and add in a bunch of width/height = 100% attributes, but these break down at the point that there are Paths defined in the code. The Path elements would need to be re-coded to scale.
    So, I really have two questions:
    1) What exactly does "Convert to Optimized Graphic" do? Will this recreate all Paths to standard shapes that will scale?
    2) Is there a better system coming in the next Beta? If so, can you describe it a bit?
    Thanks a lot,
    Kirk

    This morning I sat down to use catalyst for the first time. I am preparing for a talk at Flash on The Beach in Brighton this year and I was hoping to be able to show how a view build in Catalyst could be injected into an app using Robotlegs.
    I watched http://tv.adobe.com/watch/adc-presents/create-spark-component-skins-using-flash-catalyst and thought that looked cool.
    I also watched http://tv.adobe.com/watch/flash-catalyst-cs5-feature-tour/sending-your-project-to-a-develo per, and saw the component library output looked awesome.
    So I started to build an interface, first by creating a custom button component (much like the first video) and then distributing those buttons in a completely custom button holder component. It is this button holder that would be injected, and in the holder each button would have an id so that references to them could be obtained after injection into the application.
    From the videos above this looked eminently doable and quite a good workflow. Designer design and layout components that get built into a library, and developers use those components in an application without actually recoding the components.
    This sounded great, but imagine my dissapointment when I discovered
    1) A custom component can not be resized in the design view of Catalyst - you have to create another component class with a different size!
    2) A component/skin developed in Catalyst can not even resize when imported into Flash Builder unless you recode it.
    3) You can't name instances of components in the design view.
    So my plan was completely foiled. I mean, surely a button skin/component can not be considered a button skin/component unless it can be resized!
    I like Flex and I think Flex 4 is a big step forward, however I have never met a designer who liked it. Designers cannot effectively layout applications themselves using Flex. In fact where I work they are pushing to prevent ANY future flex development because of the problems with designers not being able to do this (we make and maintain some very highly skinned Flex 3 applications). I am the only front end Flex developer there and anytime I start to develop in Flex it is seen as very awkward and a problem.
    I hoped that Catalyst would solve some of these problems, but it unfortunately fails dismally because of the above problems that I mentioned.
    These three things would go a long way to improving developer design workflow for Flex and Catalyst. Any ideas for if/when this functionality might be included?

  • How to Render Components Dynamically

    Hi All,
    I have a Problem with the valueChangeListeners and selectionListners. I'm trying to render the components dynamically in the listeners by making the rendered attribute '"true" or "false" . But it is not working. when I'm doing the samething in command button action method. I'm getting the result(i.e rendering components to "true" or "false"). But why my code is not working in the listeners.
    Can anyone help me how to render the components partially.
    Thanks in Advance,
    -Satish Dasari

    I tend to agree with Simon's comments regarding programatic usage of the PPR APIs. Fernando, can you post an example so that we can have a look at where you having issues?
    --Ric                                                                                                                                                                                                                                                                                                                                                                           

  • Downloading and installing windows media components for quicktime

    I am relatively new to Mac and haven't really installed much other than Handbrake. I was trying to install windows media components for quicktime or even windows media player for quicktime in order to play .wmv files. However, anytime I click to download something, NOTHING HAPPENS. No download appears, nothing goes to my download stack, nothing installs. Is there something I need to know when attempting to download and install something on my Mac that I may not just know coming over from the dark side of windows?
    any help is appreciated

    Yes, good advise...Flip4Mac is essential for WMV content. Here's a list of other things you might need for the various formats out there.
    VLC
    Real Player
    Perian
    Adobe Flash
    Streamclip

  • How to resize painted components

    Hi All,
    I am working on a simple project called "WhiteBoard" which is veryu similar to MS-Paint. Could anyone please tell me how to resize the components which I have drawn on the panel. Thanks in advance.
    Regards,
    Shankar.

    Cast the Graphics instance passed to the paintComponent() method of your board to a Graphics2D.
    Then use the scale(double sx, double sy) method of the Graphics2D instance to zoom
    your board in or out.
    IMPORTANT NOTE: If you use a mouse listener on the board, you'll have to convert the mouse
    coordinates according to the zoom factor.

  • Panini "Wireframe & Media" components

    Hello everyone,
    Somehow  I can't get the new panini "wireframe & media" components to work  in my projects. Dragging the "flex" components onto the artboard works  just fine, but dragging the new wireframe components onto the artboard  doesn't do anything, as if it isn't a permitted action.
    I'm using a freshly downloaded Mac OS X version of Flash Catalyst Panini and have already tried reinstalling
    anyone have a clue what might be going wrong?
    regards,
    Peter Peerdeman

    go check out my blog ;)
    I have 3 tutorials on how to create an mp3 player interface
    with the complete code behind it.

  • How can I avoid running out of memory when creating components dynamically

    Hello everyone,
    Recently, I am planning to design a web application. It will be used by all middle school teachers in a region to make examination papers and it must contain the following main functions.
    1)Generate test questions dynamically. For instance, a teacher who logs on the web application will only see a select one menu and a Next Quiz button. The former is used for determining the number of options for the current multiple/single choice question. The later is dedicated to creating appropriate input text elements according to the selected option number. That is to say, if the teacher selects 4 in the menu and presses the Next Quiz button, 5 input text form elements will appear. The first one is for the question to be asked such as "1.What is the biggest planet in the solar system?", the others are optional answers like a)Uranus. b) Saturn. c)Jupiter. d)Earch. Each answer stands for an input text elements. When the teacher fills in the fourth answer, another select one menu and Next Quiz button will emerge on the fly just under this answer, allowing the teacher to make the second question. The same thing repeats for the following questions.
    2)Undo and Redo. Whenever a teacher wants to roll back or redo what he has done, just press the Undo or[i] Redo button. In the previous example, if the teacher selects the third answer and presses the Delete button to drop this answer, it will delete both the literal string content[i] and the input text element, changing the answer d to c automatically. After that, he decides to get back the original answer c, Jupiter, he can just click the Undo button as if he hadn�ft made the deleting operation.
    3)Save the unfinished working in the client side. If a teacher has done half of his work, he can choose to press the Save button to store what he has done in his computer. The reason for doing so is simply to alleviate the burden of the server. Although all finished test papers must be saved in a database on the server, sometimes the unfinished papers could be dropped forever or could form the ultimate testing papers after several months. So if these papers keep in the server, it will waste the server computer�fs room. Next time the teacher can press the Restore button on the page to get the previously stored part of the test paper from his own computer and continue to finish the whole paper.
    4)Allow at least 1,000 teachers to make test papers at the same time. The maximum question number per examination paper is 60.
    Here are my two rough solutions,
    A.Using JSF.
    B.Using JavaScript and plain JSP[b] without JSF.
    The comparison of the two solutions:
    1)Both schemas can implement the first and the second requirements. In JSF page I could add a standard panelGird tag and use its binding attribute. In the backing bean, the method specified by the binding attribute is responsible for generating HtmlInput objects and adding them to the HtmlPanelGird object on the fly. Every HtmlInput object is corresponding to a question subject or an optional answer. The method is called by an actionListener, which is registered in the Next Quiz commandButton, triggering by the clicking on this button in the client side. Using JSF can also be prone to managing the HtmlInput objects, e.g. panelGird.getChildren().add(HtmlInput) and panelGird.getChildren().remove(HtmlInput) respond to the undoing operation of deleting an optional answer and the redoing operation of the deleting action respectively. I know JavaScript can also achieve these goals. It could be more complex since I don�ft know well about JavaScript.
    2)I can not find a way to meet the third demand right now. I am eager to know your suggestion.
    3)Using JSF, I think, can�ft allow 1,000 teachers to do their own papers at the same time. Because in this scenario, suppose each questionnaire having 60 questions and 4 answers per question, there will be approximately 300,000 HtmlInput objects (1,000X60X(4+1)) creating on the server side. The server must run out of memory undoubtedly. To make things better, we can use a custom component which can be rendered as a whole question including its all optional answers. That is to say, a new custom component on the server side stands for a whole question on the client side. Even so, about 60,000(1,000X60) this type of custom components will be created progressively and dynamically, plus other UISelectOne and UICommand objects, it also can�ft afford for most servers. Do I have to use JavaScript to avoid occupying the server's memory in this way? If so, I have to go back and use JavaScript and plain JSP without JSF.
    Thank you in advance!
    Best Regards, Ailsa
    2007/5/4

    Thank you for your quick response, BalusC. I really appreciate your answer.
    Yes, you are right. If I manually code the same amount of those components in the JSF pages instead of generating them dynamically, the server will still run out of memory. That is to say, JSF pages might not accommodate a great deal of concurrent visiting. If I upgrade the server to just allow 1,000 teachers making their own test papers at the same time, but when over 2,000 students take the same questionnaire simultaneously, the server will need another upgrading. So I have to do what you have told me, using JS+DOM instead of upgrading the server endlessly.
    Best Regards, Ailsa

  • Palm TX & media components

    Greetings All,
    I have a Palm TX (love it!!).  When I open the Palm Destop software on my PC in order to hot synch I receive the following message box:
    Some components required for playing & editing video clips are not installed.  Please install Windows Media Player/DirectX and Apple QuickTime from the Additional Software section of the Desktop Software CD.
    Inserting the CD gives me options to install either program, but clicking takes me out to the download center website where it lists all the available downloads.  I'm not skilled at this enough to know which one(s) to choose.  All I want is to be able to eliminate the message and listen/watch, etc. media on my Palm TX.  I can load on photos with no problem, but have not yet been able to transfer music to my Palm, which makes me cranky.  I know this should be as easy as putting on my socks, but after many, many attempts I've been unsuccessful.
    If anyone would like to educate me on this issue I would be very grateful.  I am running the Palm Desktop software on Windows Vista, if it makes a difference.  Thank you all.  Respectully,
    Old School User

    Hello and welcome to the forums;
    If the error message is asking for Windows Media Player and/or Apple QuickTime, you can also download these programs from their respective developer's websites. Unfortunately I am unable to verify download links, however a www.google.com search for either program should lead you in the right direction.
    Hope this helps,
    TreoAide

  • Media Encoder Dynamic Link error 5027 :: 12  ????

    While trying to send a file to media encoder from after effects in order to render in a file format not located within ae i was given an error message that my adobe media encoder was not installed 5027 :: 12 dynamic link server failed . When i launch media encoder by itself it launches fine. Any help appreciated

    open ame and add your file to the ame queue.

  • Adobe Media Encoder Dynamic Link Server NOT CONNECTING to Premiere Pro

    I have Media Encoder CS5, as part of the Creative Suite 5. My programs say that I have no updates to install, so everything is up to date.
    I am having an issue with the dynamic link server.
    Here's what has happened thus far.
    Recently when I have tried to encode a project sequence from Adobe Premiere Pro it DOES NOT work. This is the first time that has happened.
    I repeated the process and again, it still happened, unable to connect to the Dynamic Link.
    The Error messages that I was getting was "could not read from source. Check if it has been moved or been deleted"
    Once, I received this, I went to check to see if all files were linked properly, and they were. Everything was rendered and all was good in the timeline and the project itself.
    Yet, again, the error message appeared.
    Then I tested a previous project that I knew had been exported and worked through Adobe to Media Encoder. And all the files were linked properly and yet again received the error message I wrote above.
    Then I thought the Dynamic Link itself wasn't working properly, so I tested importing an Adobe After Effects Comp into a Premiere Timeline and it DID WORK.
    Then I went and tested if a video file of an already exported project would be able to sync to Media Encoder. And this WORKED.
    I then went to add the file directly from Media Encoder and when I went to add a sequence from a saved Premeire File, it would take about 5 minutes "Connecting to Dynamic Link Server", to then state, "Connecting to Dynamic Link Server Failed"
    My question is, how do I fix the dynamic link between Media Encoder and Premiere? Because, additionally, importing and After Effects Sequence works with Media Encoder.

    I've been searching/troubleshooting for days, none of the firewall, new shortcuts in folder, antivirus, you name it I tried it even wiped my system which seemed to work at first..
    What did it for me in the end was I had Dxtory (a software recorder, for recording gameplay) running on startup, and somehow it interfered with only Premiere projects in Media Encoder, I could still import AE projects go figure.
    Check all the programs you have running or use sometimes, if they have some sort of hook into other programs/deal with video/codecs this could be your problem too!
    Thanks to everyone trying to solve this problem!
    -JonOfAllGames

  • Flash Media Server dynamic Livestreaming

    I have FMS 3.5 installed, everything is running. I want to have a livestream from a camera that is dynamic and will change according to the bandwith of the viewer. What settings do I need to choose in Flash Media Encoder, FMS and in the Player to make this possible? If I start the encoder with 3 videostreams and a %i parameter I get 3 different streams, but I can only put one of these in a player and not all. What do I need to do?

    In essence each client does a bandwidth test as it connects and the chooses the most suitable stream for that connection. This is described in the docs that came with the server...look here;
    http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773d5 6e-7fea.html

  • How to resize the components in a JFrame when the JFrame Resizes?

    Hi all,
    i have some problems with my app. I have set the JFrame resizable and that works fine for the JFrame but not for the components in the JFrame.
    So my question is how can i set the components in a JFrame to resize automatically when the JFrame resizes?
    Here are the important things from my code,...if you need more, just let me know, its my first post in a forum .
    Its a JFrame with a JTabbedPane and on the Tabs are Panels with buttons and Tables.
    Thank you in advance!
    public class MainMonitor extends JFrame {
    public MainMonitor() {
              super();
              initialize();
              setVisible(true);
         private void initialize() {
              this.setSize(1145, 785);
              this.setIconImage(Toolkit.getDefaultToolkit().getImage("Images/c.gif"));
              this.setContentPane(getJContentPane());
              this.setTitle("Company Manager");
              this.setResizable(true);
              this.setLocationRelativeTo(null);
         private JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new JPanel();
                   jContentPane.setLayout(null);
                   jContentPane.setOpaque(true);
                   jContentPane.add(getJTabbedPane(), null);
                   jContentPane.add(getJPanel11(), null);
              return jContentPane;
         private JTabbedPane getJTabbedPane() {
              if (jTabbedPane == null) {
                   jTabbedPane = new JTabbedPane();
                   jTabbedPane.setLocation(new Point(6, 69));
                   jTabbedPane.setSize(new Dimension(1120, 684));
                   jTabbedPane.addTab("P", null, getJPanel(), null);
                   jTabbedPane.addTab("K", null, getJPanel1(), null);
                   jTabbedPane.addTab("B", null, getJPanel2(), null);
              return jTabbedPane;
         

    Giasaste wrote:
    Thanks a lot, i didnt knew that the Layout Manager is a must.It's not a must, but it is the way to allow your app to be resized nicely and makes it much easier to maintain and enhance your program. Imagine creating a complex gui then later decide that you want another radiobutton and to remove a jlabel / jtextfield pair. with layout managers a chore becomes easy.

  • Cannot resize media window

    The media window cannot be resized. If you can resize the arrange window why can't you make the media window bigger? I'm using 2 24" screens and need to have the audio bin bigger.
    When browsing, most audio files characters are long and do not fit in the column view nor is it effecient in list view. You need to be able to browse and audition files quickly, including having AUTOPLAY!!!

    Hello van:
    Try trashing the preference file (com.apple.finder.plist) and restarting and see if that helps.
    Barry

Maybe you are looking for

  • Best Mini Display to DVI adapter for 2011 17" MBP w/no blocked ports!

    I am looking to get a Mini Display to DVI adapter for my 2011 17" MBP. +(Preferably it would even be one with a 6' cord.)+ It is not clear which one I should buy. Apple's (adapter only, no cord), is $30, while I can see others for far less on Amazon.

  • Stock report for a specific date.

    Hi Gurus, Can any one please tell me if there is any option is SAP by which i can get the stock status for a particular day. I mean if i want to check what was the stock report on last week some day, is there an option in SAP to do that. This report

  • GNOME: Application Menu loses entries

    Hi there, When editing an entry in the Applications menu (say, changing the icon), the entry disappears. Custom application launchers aren't listed in the Applications menu, either, not even after restarting the panel or quitting / logging in GNOME 2

  • Java Editor bug ??

    Is anyone aware that you can do the following in the code editor int myInt = 10; myint.toString(); it won't compile but the code insight appears when typing myInt. and it's treated as an object.

  • Connecting two WRT54G wireless routers - how to configure

    Hi All, I have two WRT54G wireless routers. One is currently providing wireless access for several users at a local law firm. I need to connect a second wireless router for a user who works for another company in the same office. The second wireless