.swf resolution control

hi all,
I need to know how can i keep the .swf aspect ratio constant
on different screen resolution i.e on PC's , TV's etc.
Stage.onResize="noScale"
in html width=100% height=100%
apart from these. can anyone help or is there any code in
AS2.0. Please Help
thanks and regards
gm

hi ,
i'm trying to run a swf file from a swing application .
can you please send me soem sample swing app , so that i can use that .
thanks for the help in advance .
regards ,
sekhar

Similar Messages

  • Hiding SWF Sound Control & Spanning Loop Across Site Pages

    Hi All,
    New here and first post with two questions:
    Is it possible to hide the play/stop SWF sound control on a
    page? I have one on a page and the client doesn't want it visible
    on the page. They want the music loop to always play. I have looked
    and can't find a way to set its property to
    "invisible" or anything like that.
    Second question, related somewhat to the first. They want the
    loop to play across all pages on a site and not be interrupted or
    restarted on page changes (which would happen if I embedded on
    every page). Is that possible? Just a thought...could I put it in a
    CSS sheet that applies to the entire site? Doubt it...but thought
    it would be a desireable goal ;)

    I seem to have the same problem. The sound would play in some programs, would not in others, and in all of them when I stop playing, it would repeat the last half second endlessly. Could anybody shed some light on this problem?
    in dmesg:
    AC'97 1 does not respond - RESET
    AC'97 1 access is not valid [0xffffffff], removing mixer.
    ali mixer 1 creating error.
    and in errors.log:
    May 13 09:14:22 aconarch ali15x3_smbus 0000:00:06.0: ALI15X3_smb region uninitialized - upgrade BIOS or use force_addr=0xaddr
    May 13 09:14:22 aconarch ali15x3_smbus 0000:00:06.0: ALI15X3 not detected, module not inserted.
    May 13 09:14:22 aconarch AC'97 1 access is not valid [0xffffffff], removing mixer.
    May 13 09:14:22 aconarch ali mixer 1 creating error.
    EDIT: 'lsmod | grep snd'
    snd_seq_oss 29056 0
    snd_seq_midi_event 6528 1 snd_seq_oss
    snd_seq 46800 4 snd_seq_oss,snd_seq_midi_event
    snd_seq_device 6796 2 snd_seq_oss,snd_seq
    snd_pcm_oss 38816 0
    snd_mixer_oss 14336 1 snd_pcm_oss
    snd_ali5451 19212 1
    snd_ac97_codec 95396 1 snd_ali5451
    ac97_bus 2432 1 snd_ac97_codec
    snd_pcm 68484 3 snd_pcm_oss,snd_ali5451,snd_ac97_codec
    snd_timer 19076 2 snd_seq,snd_pcm
    snd 44388 11 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_ali5451,snd_ac97_codec,snd_pcm,snd_timer
    soundcore 6496 1 snd
    snd_page_alloc 7816 1 snd_pcm
    Last edited by bender02 (2007-05-13 15:41:04)

  • Load an SWF and control

    Hi,
    I want to know if you can load an SWF into another SWF and
    control it for example:
    load SWF b into SWF a and control SWF b from SWF a
    is this possible because I want to be able to trigger a
    particular mc or frame in SWF b but do it from SWF a?
    Cheers
    Scott
    Text
    Text

    yes and yes: wait until loading is complete and then
    reference the target movieclip or _level of your loadMovie(),
    loadMovieNum() or loadClip() method.

  • Swf playback controls not working correctly

    Hello all -
    When I publish the Captivate project that contains a swf file
    and an audio file everything plays well until I use the controls.
    Stop/pause works fine,but when I use rewind or ff etc the swf file
    will not rewind nor start over.
    Any help would be appreciated
    Thanks
    Rick

    Uninstalling Glimmerblocker fixed the problem of Safari being able to access all web sites.  One of the other many procedures I did must have solved the issue of the apps not launching.

  • Load internal SWF and control other SWF

    I have 96 questions with radio button responses that control
    movie clips. They are all in the same swf but I want to separate
    the questions and put them in a draggable, scalable movie clip so
    that the user could move the question box as convenient. Most of
    the ActionScript is associated with the MCs, responding to a radio
    button listener object. The two SWFs must advance from frame to
    frame synchronously.
    Here is what I did:
    1. Split the original FLA into 2 pieces, a MC FLA and a
    Question FLA
    2. Renamed rbListener as _global variable in MC FLA
    3. Used this code in the MC FLA:
    this.createEmptyMovieClip("loadQuestions_mc",
    this.getNextHighestDepth());
    loadQuestions_mc._height = 400;
    loadQuestions_mc._width = 600;
    loadQuestions_mc.onPress = function():Void {
    this.startDrag();
    loadQuestions_mc.onRelease = function():Void {
    this.stopDrag();
    loadQuestions_mc.createEmptyMovieClip("containQuestions_mc",
    this.getNextHighestDepth());
    loadMovie("mccolor4_SplitBottom.swf", containQuestions_mc);
    4. Used this code in the first frame of Questions FLA:
    function specifyListeningTargets () {
    i = cellNumber;
    eval("QA" + i).addEventListener("click", rbListener);
    eval("QB" + i).addEventListener("click", rbListener);
    eval("QC" + i).addEventListener("click", rbListener);
    // Button pops up at x:400, y:600, What is 10? Depth?;
    clicking button advances to next frame.
    function popupNav () {
    i = cellNumber
    if (((eval("QA" + i).selection.data) > 0),
    ((eval("QB" + i).selection.data) > 0),
    ((eval("QC" + i).selection.data) > 0)) {
    this.createClassObject(mx.controls.Button, "popupNext_btn",
    10, {label:"Go To Next Questions"});
    popupNext_btn._width = 20;
    popupNext_btn.move(250, 375);
    function popupClicked() {
    this.nextFrame();
    _parent.nextFrame();
    popupNext_btn.addEventListener("click", popupClicked);
    5. Used this code in each frame of the Questions Fla:
    stop();
    cellNumber = 1;
    popupNext_btn._visible = false;
    popupNav ();
    specifyListeningTargets();
    Text

    yes and yes: wait until loading is complete and then
    reference the target movieclip or _level of your loadMovie(),
    loadMovieNum() or loadClip() method.

  • Batch process video to swf with controls??

    Hi,
    I have hundreds of QT videos that I need converted to .swf
    video WITH control bar and a watermark logo.
    I can batch process them to .flv using the Media Encoder, but
    I need them to be .swf in order to use them in Director 2004MX.
    Plus, I don't see where I can add a watermark using Media Encoder.
    I have CS3 and CS4 Master Collections so I assume there's got
    to be SOME way to do this batch processing.
    I did a few sample tests in Flash, bringing in the .flv file,
    attaching one of the prebuilt skins, adding a layer for the logo
    watermark, then exporting to swf. It works beautifully in my
    Director project. But to do this process 500 times would take
    forever.
    Any advice on how to batch to .swf video with control bar and
    watermark would be greatly appreciated.
    Thanks.
    -Karen

    Thank you Heathrowe I appreciate it.
    I guess as far as using the hotspot slicer in Fireworks, if I
    export to an SWF it doesnt make that a clickable section in the SWF
    file. Oh well. Would be a nice feature in the next version of
    Fireworks.

  • Simple swf movie control

    I am still getting used to scripting from within Flex. I have
    a very simple flash movie that indicates a value from 0 to 100% -
    one frame for each percent. I want to embed that movie into a Flex
    application and control the swf's position in the timeline from
    within the Flex application.
    I know that I cannot just use:
    "SWF.gotoAndStop(currentFrame)" or
    "MovieClip(SWF.content).gotoAndStop(currentFrame)" ...
    but I would like to find a simple solution - if one exists. I
    do not want to create 101 separate swf files and change the source
    every time I need to change the frame.

    You can communicate with a loaded SWF through the
    SWFLoader.content property. This gives you access to any public
    members of the swf.
    If you implement a public method, like setPos(iPercent:int),
    you should be able to call that method thropugh the content
    property.
    Note that there are timing issues wotking with content in a
    loaded SWF. SWFLoader has to be complete, and you need to listen
    for the Application.complete event before interacting with the swf.
    If you have difficulty with this, I have an example on
    www.cflex.net. Search for swfloader.
    Tracy

  • How do you build SWF play controls?

    Hi sorry for the post I know this is probably a well covered topic, but I've been googling all day and everything I find is linked to using buttons with an imported flv; which is not what I want.
    I actually am working on 2 different senerios.  the first I have a new video that is all keyframe and AS based but I need a way to control it.  I've placed a graphic on the timeline then built an invisible button over it the graphic is just a basic play button with a gradient. can some one help me with the code to get the invisible button to play/pause the video from the 2nd key frame? Also I'll need to add a stop button.
    I used the code
    play_bttn.onRelease = function(){
    _root.play();
    on earlier videos I've made but I can't figure out/remember how I got it to work, I'm just getting statement must appear within on handlers errors with this new video.
    The second issue I'm having is different. I have a SWF that is already built and I need to control it, so I'm importing the video to the stage with AS code
    stage.loadMovie("medialocation/movie.swf");
    which is working fine, now I need to create buttons to control it. Shouldn't the code be the same for both files? They are similar, where everything is being controlled after you export the swf's
    I have no flv's, avi's or mov's involved just 100% flash
    Thank you

    The error message you're getting is indicating (to me) that you are trying to place that code on the button.  The code you show for the button goes in the timeline, not on the button.  As for the other bit, yes, as long as your swf file is a timeline based animation, then similar code as what you use for the video should be appropriate.

  • Loading external swfs and controlling their actionscript

    I'm in need of some tutorials/examples for loading external
    swfs placed in empty movie clips using loadmovie into the main
    movie.
    I have actionscript and alot of interactive features within
    these loaded swf files and I'm having a heck of a time figuring out
    how to code and path the AS from them to work in the main timeline.
    I'm also open to using loadMovieNum and working with levels
    if it might be easier, however I'd like to keep this as simple as
    possible.
    PLEASE ANY HELP!!!????

    I am by no means an expert however it is my understanding
    that if you have a loaded swf within your main application and you
    wish to control features on the main timeline you need to use the
    _root function.
    Without knowing exactly what type of controlling you need
    it's hard to explain in great detail.

  • Swf video controls

    I have a swf video file that I put on a page on my website. I
    was wondering how I would assign play and stop buttons to it,
    instead of having the movie autoplay and loop.
    I am a newbie, so sorry if this is obvious.

    crjhunter wrote:
    > I have a swf video file that I put on a page on my
    website. I was wondering how
    > I would assign play and stop buttons to it, instead of
    having the movie
    > autoplay and loop.
    >
    > I am a newbie, so sorry if this is obvious.
    Well, SWF video is timeline based video so using basic
    play(); stop(); action
    targeting the main timeline will do just fine. Tho, if you
    are loading it in leve
    or movie clip holder than adjust the action accordingly.
    If MC Holder:
    mcHolder.stop(); mcHolder.play();
    if in level3 (example):
    _level3.stop(); _level3.play();
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • How a SWF Child can control a Parent's function/variable ?

    For instance, in the below code a parent can control a SWF
    child’s function “alert ()”.
    But how a SWF child can control parent’s function
    “ReceivingChildMsg()” ?

    Hi clbeech
    I simplified the code to simply get the swf child controlling
    its parent variable tp ( textfield ) and its content.
    I used your suggestion (parent.ReceivingChildMsg( ) and
    root.ReceivingChildMsg( )) but I get an error message:
    quote:
    “1061: Call to a possibly undefined method
    ReceivingChildMsg through a reference with static type
    flash.display:DisplayObjectContainer.”
    Here is the code:
    package
    import flash.display.MovieClip;
    import flash.text.*;
    import flash.events.*;
    import flash.display.SimpleButton;
    public class Child extends MovieClip
    public function Child():void
    btn.addEventListener(MouseEvent.CLICK,clickHandler);
    public function clickHandler(event:MouseEvent):void
    //root.ReceivingChildMsg( "Received Child Message");
    parent.ReceivingChildMsg( "Received Child Message");
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    package
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.display.LoaderInfo;
    import flash.display.Sprite;
    import flash.text.*;
    import flash.display.SimpleButton;
    public class Parent extends MovieClip
    private var loader:Loader;
    public function Parent():void
    loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    onLoadComplete);
    loader.load(new URLRequest('Child.swf'));
    private function onLoadComplete(e:Event):void
    var loaderInfo:LoaderInfo = e.target as LoaderInfo;
    addChild(e.target.content);
    var swf:Object = loaderInfo.content;
    swf.x = 75;
    swf.y = 50;
    public function ReceivingChildMsg(msg:String):void
    // tp textfield object is created directly in flash
    tp.text = msg;

  • HELP PLEASE: .swf Controls take over in Powerpoint Slideshow

    Hi,
    I have a .swf embedded within an Powerpoint slideshow. When I
    use the controls I've set within the .swf file (pause, play, replay
    animation) I no longer can use the Powerpoint slideshow mode
    controls (forward or backward to next slide). If I don't touch the
    controls within the .swf, letting the .swf animation play through,
    the Powerpoint slideshow controls work fine.
    Can anyone offer any workarounds that may enable me to use
    the .swf file controls while in Powerpoint slideshow mode, yet not
    loose the ability to advance to the next slide (using the arrow
    keys) in Powerpoint?
    Thanks!!

    Hi Michael,
    I'm  not an expert however if I understand the links correctly, it's saying that you are missing the .webm extension for apache which is server side. I'm not a dev geek so I really can't dive into it with any type of authority.
    I viewed it with IE and I got "invalid source". Which means the files maybe corrupted, something is just slightly off in your coding, or you need to add that .webm extension (which I have no idea how to do). It seems highly unlikey that your server is not set up for this though >
    For some reason this doesn't seem right to me. If the files are .mp4, ogg and vp8 then what is the reference to shockwave?
    <embed src="Laser.swf" type="application/x-shockwave-flash" width="650" height="400" />
    Try this link: http://www.htmlgoodies.com/html5/client/how-to-embed-video-using-html5.html#fbid=96yfRXf_d N9
    Give that technique a shot and see how it goes.
    Hopefully somebody with more technical expertise will put in their "two cents".
    Good luck.
    Ed

  • Can't load swf into editable region

    Am using DW CS4 in W7 64.
    Have designed an html site with one page that has a swf to control dynamic content with php.
    All the pages are created based on one template and al is fine until I try to place the flash file in the editable area of the html page. It seems that no swf files can me placed in this or any other editable area of the page.
    When the swf is put in the follwoing error comes up "While executing object Tag in Flash htm, a JavaScript error occurred"
    Any one else had this issue? More to the point anyone found a work around?

    Cevema wrote:
    To test the theory, as I had previously loaded CS4 onto my old XP pro machine, following a fresh install of XP Pro, and as Dreamweaver had never been started on the is machine before, I then created a brand new page from the template and tried to load in a swf file, but got the same error message. For a fresh install this couldn't be a corrupt file. A friend also tried this on his machine and had the same result.
    I don't normally use either templates or SWFs, but I have just done a quick test in Dreamweaver CS4 on Windows Vista 32-bit. Dreamweaver inserted the SWF into an editable region without demur. It's definitely not a Dreamweaver bug.
    Did your friend use the same template?
    Since a JavaScript error is being generated, I suspect you have invalid code somewhere in your template, or perhaps you have given more than one element the same ID. Validate your page with the W3C validator (http://validator.w3.org/), and eliminate any errors it finds.

  • Missing controls (skin) on playback

    When trying to play back a Flash video from my root
    directory, the skin controls are missing. I do have the flv, swf,
    skin and .js files all in one subdirectory (example:
    /av/Hill_Hearn_Bonnie.swf, and the html in the root directory. The
    original html was transferred from my computer to the server. I
    have tried going all the way back to the flv file and making
    another swf without any luck. In fact then the movie doesn't play.
    In the current file the movie does play perfectly, but no controls.
    I'd sure appreciate any insights on the topic. Here's the url to my
    html file:
    http://www.authorlink.com/interview_templ_video.html
    Additional question: Does the .js have to reside int he same
    directory, and can the skin and .js files be common to several
    files in the same directory. Sorry, I'm a newbie.

    Here's how I solved my problem. I hope this will help other
    beginners and hopefully someone will give me feedback if this is a
    good and/or correct way to go about this. I certainly don't want to
    give out bad info...
    File/New/flash document
    Import file to stage
    Opens window: select video
    I selected a file on my computer
    progressive streaming
    clearoverplayseekmute.swf
    Finish
    Control
    Enable simple buttons
    Enable simple frame actions (Though I'm not quite sure what
    that does)
    Publish settings
    Publish
    I uploaded the .swf, the .html and the .flv
    Now it has settings for start/stop and mute. I still haven't
    gotten it to go back to the beginning when it finishes and to get
    it to go to full screen but I'm very encouraged.
    Best,
    Jay in Paris

  • Accessing events from externally loaded swf file

    hello,
    I have an swf file developed in flash 8. After loading that
    file into SWF Loader control in flex builder 3, how can we access
    the controls and events present in that particular file ?

    "surya_dhul" <[email protected]> wrote in
    message
    news:gg84e2$slm$[email protected]..
    > hello,
    > I have an swf file developed in flash 8. After loading
    > that
    > file into SWF Loader control in flex builder 3, how can
    we access the
    > controls
    > and events present in that particular file ?
    I think you'll need to use localConnection.

Maybe you are looking for

  • Login row in my header, when not logged in

    I wish to use the feature that some site use where the login box is show in the header or some other place on the page while they are not logged in and when they do login the box is not show anymore. i wish to have this as an extra table row in my he

  • How do i go back to my original iphone if i restored it from a backup?i

    I just downloaded the new itunes 10. I plugged in my iphone and began to set it up. When i got the the page set up your iphone i clicked on restore from the backup "My Iphone" last updated 1.26.11. SO LONG AGO. What I want here is to set it up as a n

  • How to arrange objects in a spiral

    Hello all! I urgently need your help. I would like to create a logo, where I arrange several objects in a spiral. You can see an example here on this homepage: http://www.ongus.at/ Here there are several sqares arranged in a spiral regularly transfor

  • Why won't websites I visit stay the way I set them up when I use Firefox?

    As an example: When I go to MSNBC I set the number of articles for different subjects and they revert to default every time I open firefox. This does not happen with IE. Another is I have to log in to get to my hotmail & Gmail account every time I re

  • OBIEE 11g as a service in windows

    Here are the steps to configure OBIEE 11g as windows service. Admin server and bi server needs to be configured as service. Create boot.properties files with weblogic admin username and password in security folder. Here are the changes I made to make