Resize flash movie.

Hi friends,
               Actually my doubt concerns with resizing a flash movie when a browser resizes. The flash movie is a slide show. In flash I have scripted to resize the image using onResize event. Also it's working finely when opening on flash CS3. But when I opened the same on a browser and resizes the browser, the flash component is not resizing. Can I use any javascipt function for this purpose. If so can anyone describe, how it could be. Because I don't have any idea on javascript.
Thanks and Regards,

I generally put the whole slide/page into a movie clip and use this code on resize to center it. In your case I would use the same code but inside the listener fire a function call where you'll resize each item?
//===========================================================
//        size listener
//===========================================================
pageSizeListener = new Object();
pageSizeListener.onResize = function() {
mainPage._x = Stage.width / 2;
//pageMC._y = Stage.height / 2;
mainBackground._x = Stage.width / 2;
Stage.addListener(pageSizeListener);
pageSizeListener.onResize();

Similar Messages

  • Resizing Flash Movie to Size of Site

    I am developing a html Web site with a flash intro
    and need help because I am learning all over again, not having done
    it in 3 years.
    The screen is to start out white and fade to silver, which I
    did quite nicely after many frustrating moments of relearning and
    conditioning and realized it was quite simple. The movie is 600x400
    and I developed the site at 1028x768 with my html layer for the
    site at: <div id="Layer1" style="position:absolute; left:125px;
    top:7px; width:686px; height:623px; z-index:1">. The flash movie
    layer is: <div id="Layer1" style="position:absolute; left:128px;
    top:-68px; width:602px; height:424px; z-index:1"> which I
    changed to the html one and it did not work.
    Then I went back to Flash and tried to change the movie size.
    Well that was a trip. The stage is somehow off center to the right
    and when I used the hand to move it, it did not work
    Anyway, what I am trying to do is start the page off with a
    white background full screen and have the flash movie start out as
    white with a black dot and then fade to silver until the dot turns
    into the logo. The flash movie does this, but I can't figure out
    how to put it on the first page so when viewed the user will only
    see the movie and not the movie with a white background. Also can't
    figure what glitched when I was playing with it to get the stage
    off centered.
    If you want to see the movie, I can show you and please no
    jokes because the item my friend is selling is a bit different but
    highly used
    Thank you in advance...StarShine

    Am I missing something or your long story has nothing to do
    with "Resizing Flash Movie to Size of Site"?
    If you want your flash file to be displayed full
    size in browser window try setting the "width" and "height"
    parameters in "object" and "embed" tag to "100%".

  • Resize flash movie while maintaining aspect ratio?

    Hey all,
    We have created an extremely content heavy .swf file (1900 x
    1400) for a presentation that runs full screen on a monitor at a
    screen resolution of 1900 x 1400. I think that was the
    resolution... I've been away from the project for a while and I
    can't remember. anyways....
    now we need to shrink the .swf down to a more reasonable size
    so that we can make a cd rom out of it. Probably needs to be shrunk
    to about 800 x 600. Is there an easy way to shrink the .swf in
    flash from 1900 x 1400 to 800 x 600 while maintaining aspect ratio
    and keeping all items on stage?
    I sure hope so! I'd hate to have to recreate the entire
    thing! It was a HUUUGE project with a ton of content.
    Thanks in advance for any help or suggestions!!!!

    Hey all.... I am just now working on this project.
    I've created my .fla file and I'm trying to load a .swf into
    an empty movie clip. It didn't scale down like I want it to and it
    was still appearing as the normal size file. So I added the
    container._height = 500; and container._width = 800; When I added
    the width and height the .swf inside the empty mc container
    disappeared!!!!! Any idea why???
    Here is my code:
    stop();
    this.createEmptyMovieClip("container",
    this.getNextHighestDepth());
    loadMovie("hlhuntyears.swf", container);
    container._width = 800;
    container._height = 500;
    container._x = 0;
    container._y = 0;
    I export it as an .exe since its going to be a cd rom and
    when I double click the .exe to run it I get a blank screen. But
    when I take out height and width it shows up but not to the correct
    scale. The original file (hlhuntyears.swf) is 1440 x 900 and when I
    run the .exe I can only see a tiny piece of it. Can anybody help??
    please??

  • Dont know how resize  flash movie in vertical

    I have more reach application, in simplify my problem looks so:
    How do it? With JavaScript? or exists decision in ActionScript 3?

    No the movie take up whole space of window, then i need change size of swf and scroll appear in window , not in swf.
    Wish be that

  • Resizable Flash in iWeb

    Hi,
    Is it possible to make the flash resizable in iWeb?
    I published a resizable flash movie into a folder. It works fine when I preview it in the flashmovie.html. But then I embedded it into iWeb using the html snippet and it does not resize.
    Please help. Thanks!

    A Google search for "code to embed flash" found this: http://www.google.com/search?client=safari&rls=en&q=codeto+embed+flashcontent&ie=UTF-8&oe=UTF-8

  • How to have Flash movie resize with rest of webpage

    Hi,
    I ran a search for this but couldn't find anything. Is there code I can write into my webpage (using dreamweaver) that will make my flash movie get larger along with the rest of my webpage when the viewer zooms their internet explorer 8 browser? Here's a link to an example. Looks fine when page is viewed at 100% but above that everything zooms except the movie.
    www.empowerments.net/canary.html
    Thanks for your help,
    James

    Thanks again for your time but it seems we're not on the same page (pun intended!).
    I do appreciate you trying to help me and I understand how easy it is to misread the question perameters.
    When your reply said "The Zoom does create a white space because it "zooms" the background image and text only.
    The Flash content isn't set to zoom with it apparently"
    it actually just stated what I said was the problem in my original post.
    I've already said the flash content looks fine at 100% and is only a problem when zoomed in by the internet explorer browser.
    The help I'm looking for is maybe a tip on some html code (like rescale = true or something) that I can write into the web page (via Dreamweaver) that tells the flash content to scale up with the rest of the page when zoomed.
    Does anyone else have any suggestions?
    Thanks again for your time and willingness, Mac=Win=Me!
    James

  • Flash Movie export with Keynote

    Hi, I am using Keynote this time mainly to make a Flash movie for a website. However, when I export the movie to SWF format,the file is quite large (About 9mb) too large for use online.
    Does anyone know, is there a way to reduce this filesize? I looked to see if it is possible to make the canvas smaller than 800x600, as I only really need it to be about 500x400. Didn't see a place to make it smaller than 800x600.
    Any reccomendations would be great, thanks.

    There is a program that reduces flash file sizes
    http://www.eltima.com/products/flash-optimizer-mac/
    It compresses the file size, not sure if it resizes the dimensions

  • Resizable Flash in html

    Nowadays, I'm trying to make a website based on Flash. I
    chose a site,
    http://www.lissongallery.com/#/artists/peter-joseph/,
    as a model. I'm wondering which action scripter supports resizable
    and shows fixed stages when I resize my own browser. When size of
    browser is increased than specific size, Flash movie is showed
    entirely according to the browser. On the other hand, it is
    displayed partly when browser's size is decreased than specific
    size.
    All I know is scaleMode of Stage class supports this
    function, but it is not exactly samething like the site above.
    Could somebody helps and tell me how to or some
    advice??

    Hi
    This thread may be of interest to you - http://forums.adobe.com/thread/611304?tstart=30.
    PZ

  • Flash movie dreamweaver 8 import.

    Hi. I made a flash logo for my website. I import the flash
    movie in dreamweaver 8 and resize it (actually 923 width and 119
    height). The problem is that there is a blank rectangle above and
    under the flash logo-obviously the blank flash stage. In flash i
    made the logo in the centre of the stage. How can i delete the
    blank spaces of the stage and keep my logo and import it to
    dreamweaver 8?

    telonios wrote:
    > Hi. I made a flash logo for my website. I import the
    flash movie in dreamweaver
    > 8 and resize it (actually 923 width and 119 height). The
    problem is that there
    > is a blank rectangle above and under the flash
    logo-obviously the blank flash
    > stage. In flash i made the logo in the centre of the
    stage. How can i delete
    > the blank spaces of the stage and keep my logo and
    import it to dreamweaver 8?
    The movie has to be design with scaling in mind to maintain
    ratios.
    Scale it in flash and export the 1:1 size so you don't need
    to do it in DW
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Resizing a movie loaded with loadMovie()

    I'm looking to resize a movie that was loaded with
    loadMovie() into a movie clip. Once it's finished playing I want it
    to reduce down in size. Any ideas?
    loadMovie("test.swf",main_Movie);
    main_Movie is the empty movie clip, its a simple rectangle
    that is 550 x 400 so it fills the whole stage.
    Any ideas, or if you need more info please let me know.
    Rob

    Rob-
    You can scale movie clips by a percentage or resize by
    directly manipulating the width and height values.
    main_Movie._xscale = 50; //scale width by 50%
    -or-
    main_Movie._width = 20; //set width to 20 pixels
    For more information check:
    http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001570.html
    I hope that helps.
    Sean

  • AW/Flash Movie not playing with Skin

    We inserted flash movie files (developed in Captivate-saved
    as flash 6 with a skin) using the insert flash movie menu option in
    AW7.02. We inserted the skin and it also pulls the captivate movie.
    We published using 1 button publishing. Our self-executables work
    fine. However on the web the skin appears but the movie does not
    play. If we imsert the movie alone, it plays but doesn't have the
    play/pause/stop/slide bar controls that the skin provides. Any
    suggestions?

    > We inserted flash movie files (developed in
    Captivate-saved as flash 6
    > with a
    > skin) using the insert flash movie menu option in
    AW7.02. We inserted the
    > skin
    > and it also pulls the captivate movie. We published
    using 1 button
    > publishing.
    > Our self-executables work fine. However on the web the
    skin appears but
    > the
    > movie does not play. If we imsert the movie alone, it
    plays but doesn't
    > have
    > the play/pause/stop/slide bar controls that the skin
    provides. Any
    > suggestions?
    >
    I had a similar problem a few months ago. I asked one of the
    Captivate
    engineers. Here's his response.
    ===================
    Open the skin Editor (Project -> Skin...) From the
    'Borders' Tab, Deselect
    'Show Borders'.
    Doing the above two steps will result in only one output file
    which will
    include the playbar. However, it will overlap some part of
    the content.
    To use old (Captivate 1 style) playback controls, do the
    following:
    Open the Skin Editor and from the 'Skin' Drop down combo box,
    select 'BMP
    Playbars'.
    If you wish that your playback control should not overlap the
    content and
    still output is one file, then do the following.
    Turn off the borders (as explained above).
    From Project menu, open 'Resize Project'
    In the 'Resize project' dialog, Increase only the height by
    20 pixels.
    In the group below (left hand side, 'if new size is lager'),
    select 'Keep
    project the same size and fill bg with color' and selct a
    color.
    Select the position of project as top center.
    Do not rescale any objects
    In the above way, your output will only be one file and still
    will include
    the playback controls and the playback controls will not
    overlap the
    content.
    =================
    Steve
    EuroTAAC eLearning 2007
    http://www.eurotaac.com
    Adobe Community Expert: Authorware, Flash Mobile and Devices
    My blog -
    http://stevehoward.blogspot.com/

  • How do i make an image pause in a flash movie clip

    Please can someone help me. I am trying to find out how to pause or stop an image in a basic flash movie clip,  after it has entered from one side and before it exits the other side.
    I have been trying to work it out myself for three days but no joy. I am practicing  for a test with a training agency which gave me a disk to use but nowhere in it does it say how this is done. I am also having a lot of difficulty making stop start buttons work with this movie clip. I am using a trial cs5.5 version of Flash which expires in 7 days so i need to know this soon. I am up to speed on most of the features, its just this one thing that has me stumped. A lot of the tutorials or examples  i have found on the net are very long winded and hard to follow exactly. Could someone let me know, step by step the sequence i should follow after i have created an object  and made it go from one side of the stage to the other.

    Hi
    Thank you for getting back to me. Yes i am using a timeline tween. I have an image on my stage which moves in from one side and out the other side. I am trying to stop or pause the image. The effect i will be asked to reproduce in my exam will be something very much like the banner on the website http://www,iactweb.com. If you go to this website you will see images arrive on the banner and pause before exiting the other side. I am fairly up to speed on all the aspects of getting this effect but i have forgotten what i learned during the course on how stop or pause the images. I am using the trial cs5.5 version of flash . Thanks again for getting back to me.

  • Passing multiple session values from cold fusion into a flash movie

    Hello all,
    I know that to pass multiple variables into a flash movie
    you could use the embed tag like this(with the & between each
    variable):
    <embed
    flashvars="variable1=value1&variable2=value2"
    ></embed>
    Now to pass a single session variable from coldfusion in i
    did the following; which worked:
    <embed
    src="ASdb.swf"
    FlashVars="UserName=<cfoutput>#session.userName#</cfoutput>"
    width="550" height="400" autostart="true">
    </embed>
    Note that i had to use the cfoutput tags to get the value
    stored in the variables. Now; i tried to do the same thing for two
    session variables and the second one does not get read in. Here was
    my code:
    <embed src="ASdb.swf"
    FlashVars="UserName=<cfoutput>#session.userName#</cfoutput>&testTypeID=<cfoutput>#session .testTypeID#</cfoutput>"
    width="550" height="400" autostart="true">
    </embed>
    Can someone please tell me what I am doing wrong? Thank you
    very much in advance.

    Hold on there was a little error: My final code that did not
    work was the following:
    <embed src="ASdb.swf"
    FlashVars="UserName=<cfoutput>#session.userName#</cfoutput>&testTypeID
    =<cfoutput>#session.testTypeID#</cfoutput>"
    width="550" height="400" autostart="true">
    </embed>

  • Flash movies with play button don't work

    I have the 'simple' problem that everytime I see a "play" button on a web page with flash content, clicking on it won't start the movie.  However, e.g. YouTube movies work fine. So it seems it's just movies that do not start automatically after clicking on a link.
    Also, checking the flash player e.g. at the Adobe site (http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html), tells me in a flash box I have the latest flash player installed, and I see the  flash movie 'flash player is running on your system' with the red ball rolling in it.
    I have the same problem for both google Chrome and for IE.
    I still have an old Dell Inspiron 6000 notebook with Win XP (latest updates) and ATI mobility Radeon X300 graphics chip, for which I also installed the latest available drivers.
    Experimenting with Flash Player settings was unsuccessful so far (e.g. no hardware acceleration, clearing all internet data in the Flash Player global settings tool).
    My desktop (also with Win XP and with the same browsers and Flash Players/Flash Plugins installed works fine...).
    I also know that it worked at an earlier time with this NB...
    I managed to run the movie with a Linux Live CD but that is not what I want to do every time...
    Any idea is highly appreciated.....

    Hi BalusC, i have saved the datamodel (a ArrayList) in SessionBean. It can't be null. The rows of table display correct. I don't understand, why functions buttons with ObjectArrayDataProvider, but not with ObjectListDataProvider?
    I found a page with same problem: http://forum.java.sun.com/thread.jspa?threadID=549675&tstart=30

  • How can I remove the thin black border of Flash movie when viewed in a browser?

    There is a thin border at the top and left margins of my Flash movie when the .html is viewed in a browser. How can it be removed?
    Here's the movie.
    One solution suggests replacing some code, but the code they suggest replacing doesn't even exist in my html file.
    I have found questions similar to mine being asked all over different forums, but their solutions either don't work, or like the above, don't really apply. For such a common problem, finding the solution is getting a little frustrating.
    I'm using Flash CS3 on a Windows PC rrunning XP professional.

    Okay, I found the answer. It turns out that when I made the buttons in Flash (so the movie would have clickable links), the default stroke color was set to black. Change it to white and the outline is gone.
    As for appearing only on the top and left of the movie - for some reason the bottom and right is being cropped a bit when it's placed in to the html page. But that's a topic for a different discussion.

Maybe you are looking for

  • How to set up triangle business in purchase order and intrastat

    Hi all, my question is, how to set up the supplier when they instructs another supplier in an different country with delivery. I can change the UID in the Goods Receipt but intrastat ignores this. thank you Gerhard Edited by: Rui Pereira on Jan 19, 2

  • MATSHITA DVD-R UJ-835E 2X--REQUEST FIX HERE!! 2

    The entire point of this argument is that the 8x Superdrives are not burning at 8x, or even anywhere near 8x. Even if it was only rated as an "up to 8x" drive, averaging a 4x burn on one kind of media and 2x burns on the rest is completely unacceptab

  • IPhone 4 not turning on...just stopped working and shut down

    Cannot get the phone to switch on...has this happened to anyone and what do you think the problem is?

  • Workforce Business Rule

    Hi All, Transfer BR is not updating the Action. (2= Transfer out and 3=Transfer in) Var SavedAction=0; FIX ([Scenario], [Version], [Employees], [FromDepartment], [Year], [Division],"BegBalance",Jan:Dec) "Action" IF ("Fiscal TP-Index" == [Month]->"Fis

  • How to reduce physical reads - very interesting issue

    HI, Every week i generate a statspack report which will give me top20 buffer gets queries and top 20 physical reads query.When i start reducing physical reads by placing the heavy accessed table in buffer i will get the same query in top 20 higher bu