Making stretching banner on AS 2.0

Dear friends, please help to solve the problem.
I have created a stretching banner based on action script 2.0 (100% x90px), on one of the layers added gif button (imported), which is located on the right side of the banner. It is essential that the button does not move when stretching a banner. I would be grateful for any help!
Stage.scaleMode = "noScale";
Stage.align = "LT";
var obResize:Object = new Object();
Stage.addListener(obResize);
obResize.onResize = function() {Resize()};
function Resize(){
    //stretching the background
    Fon_mc._width=Stage.width;
    //center the clip
    imggg2._x=Stage.width/2;
Resize();

Something like the following might work... using your code and assuming "btnName" as the instance name of the button (name it however you wish)...
Stage.scaleMode = "noScale";
Stage.align = "LT";
var btnDistanceFromCenter:Number =  btnName._x - Stage.width/2; // establish the distance from center
var obResize:Object = new Object();
Stage.addListener(obResize);
obResize.onResize = function() {Resize()};
function Resize(){
    //stretching the background
    Fon_mc._width=Stage.width;
    //center the clip
    imggg2._x=Stage.width/2;
    btnName._x = Stage.width/2 + btnDistanceFromCenter; // move the button to be the same distance from the center
Resize();

Similar Messages

  • MAKING A BANNER IN PAGES 08 ??? OR RECOMMEND OTHER SOFTWARE

    does anyone have any idea if I can make a banner (8/12 x 36") using continous feed paper in my printer? I have the trial verison of Pages '08 which came with my new iMac. (I am a mac newbie) For years I easily made printed banners (using up to 5 sheets of cont. feed paper) using MS Publisher.
    Thanks in advance.

    Actually, I am still searching for an answer. i would like to know whether anyone is ware of banner creation software for the Mac...and whether there is a template (that I can't seem to locvate) in Pages '08. I poste din two places, because I was unclear about where to post! (Frankly, I still am unsure, so please suggest a different more apprpropriate location, if you wish)
    Thanks

  • Making a banner ad

    Its been a few years since I graduated and wasn't working in the field, but now it looks like I'm back in it after a lot of advanced webpages have came out.
    I'm trying to get a rotating banner to show other pages have to offer in the website with a clickable link to the website(basically an advertising banner for the webpages within the site itself)  But I can not seem to figure out how to do it without using java, as I don't want people to have to allow it to be used by clicking a top add.
    I want it to be on a rotating schedule and there maybe up to 30-40 different images and links over time, but just need a hand to get started.  I've looked at a lot of sites but still can not find anthing suitable.

    If you really don't want to rely on javascript (not Java which is completely different) then you will need to use server side scripting. Search the web for rotating banner script for tons of code.

  • Making a printed BANNER using cont. feed banner PAPER

    does anyone have any idea if I can make a banner (8/12 x 36") using continous feed paper in my printer? I have the trial verison of Pages '08 which came with my new iMac. (I am a mac newbie) For years I easily made printed banners (using up to 5 sheets of cont. feed paper) using MS Publisher.
    Thanks in advance.

    Yes, I have tried Google, and the Apple.com downloads section, but to no avail as yet.
    The Canon printer seems terrific and is a step up from an older HP all-in-one machine....however...i miss the easy HP banner printing dialog boxes...(HP sells banner paper that is perforated and made for this purpose as you probably know) and it is just so easy on a PC. I hope to be able to say the same thing about my new Mac soon.
    I did try changing the paper size in Pages, FOLLOWING YOUR INSTRUCTIONS TO USE INSPECTOR...but must have done something wrong because I was not able to actually SEE on on my screem (and thus create) an ACTUAL banner for printing.
    I will keep trying. Thanks for the suggestions. My banner making days may be on hold for now (others will be more disappointed about this than me!)
    MANY thanks.
    If anhyone reading is aware of Banner-Creation software for making actual BANNER PRINTS on an inkjet...please share ! Google searches ususally result in software for WEB-banner creation ..something quite different !

  • Make a portion of my banner stop?

    I am currently making a banner ad. Within this there is a note about an event that happens at a certain date.
    Is it possible to make this note play until that date, and then stop playing while the rest goes on?

    If you don't know how to look things up in the Flash help documentation, I don't expect I will be able to do much to make things clearer within a reasonable effort.  You should try searching Google using search terms like "Flash compare dates" and see what other have done.  Here is one result from that search that would be the bulk of a valid approach for you...
    http://snippets.dzone.com/posts/show/4735

  • Flash Banner to URL

    Hi i'm making a banner which consists in 3 images (one at a time)
    each image have a duration of 10 seconds and then the other image is shown.
    (1st img ...10secs...--->2nd img ...10secs...--->3rdimg...10secs...--->1st img AND SO ON
    for this I lower the frame rate to 10fps and left 100 frames between each image
    - Is there a code or something to do this without so many frames? (I'm using AS 3.0)
    - I also want it to pause if the mouse is over and to resume playing when its out
    - and finally I want  each image to send me to a different URL if i click them
       ex: if I click img1 send me to www.url1.com / if I click img2 send me to www.url2.com/ and if I click img3 send me to www.url3.com
    Hope someone can help
    THANKS
    P.S.: Im using Flash CS4 & AS 3.0

    You may use a timer:
    place on one banner into each frame. If you have 3 banner you must have a 3 keyframes with 1 banner into if.
    set this code into the time line
    stop();
    var timer: Timer = new Timer( 10000, 0 );
    timer.addEventListener( TimerEvent.TIMER, ontmr );
    function ontmr( evt: TimerEvent ):void
    if ( currentFrame < totalFrames )
      gotoAndStop( currentFrame + 1 );
    else
      gotoAndStop( 0 );
    timer.start();
    To make it a link - into clip of every banner set this:
    buttonMode = true;
    useHandCursor = true
    addEventListener( MouseEvent.CLICK, onClick );
    function onClick( evnt)
    navigateToURL( new URLRequest( "http://www.google.com" ), "_self" );

  • Scripting the Login Banner

    I'm not sure if this question is in the right place, so feel free to advise or move it :)
    I'm changing some configurations on a bunch of routers (a LOT) so I've written some expect scripts. Its all kicked off by a script that reads an IP address from a file, and passes it to an expect script that logs on to the router who's address it is, then opens a third file which consists of a series of plain-language IOS commands. The commands are issued to the router and the config is done. Nothing clever here, its been done a few times before. However, I'm trying to write a Login Warning banner. The banner command goes across OK, the first line of the banner goes across, then the script hangs. I *think* its because after each line within the "banner" config, there is an "empty" newline, nothing to trigger the expect script driving the commands, so it sits there waiting for something that never comes.
    I've tried making the banner command a single line with "\n" separating it into the format I want, that doesn't work. I also tried with 0x0a (ascii newline) but that didn't work either.
    has anybody done this successfully, and where am I going wrong?
    Thanks
    Jim

    OK, I fixed it. Expect is waiting for the # prompt before it provides the next line. If you end each line of the banner with a #, it works, even though the C/R and # are round the wrong way. It may not be the most tidy programming but it works

  • Trouble getting banner rotator control buttons to line up. Please help!

    Hi guys,
    I had some help making a banner rotator and it all works fine but I can't get the control buttons to line up with each other properly.
    You can check my example by clicking here.
    Basically the left and right control arrows should align with the lights. Does anyone know how I can get them to line up?
    Thank you,
    S

    Spindrift wrote:
    I tried what you said and it kind of worked but I more want to bring the <ul> up to the level of the arrows, rather than giving the arrows a top margin to bring them down, if that makes sense. I want the black box to be a thin strip.
    Any other ideas?
    Add margin: 0; to your 'banner-rotation ul' css selector (as shown below)
    .banner-rotation ul {
        float: left;
        padding: 1px 0 0;
        width: 148px;
    height:11px;
    margin: 0;

  • Movie clip stops playing for no reason

    I am making a banner that has multiple movie clips sharing the same area, creating different rainbow effects when different areas (invisible buttons) are moused over.
    First of all I couldn't figure out if there was a way to have one invisible button over the whole area that changed to a different colored effect with each mouse over (first mouse over the black and whites would change to reds, second would change it to blues, third would change it to browns, etc.). Since I couldn't figure this out I settled on creating three buttons covering a third of the banner each, so when the mouse passes over one button it changes to reds, over another button it changes to blues, over the third it changes to browns.
    The effects are movie clips where each frame has another stripe changing color so it goes in a wave effect from one to the next, and then goes back to white and black in the same manner.  The first frame of each movie clip I had to turn into a nested movie clip so I could turn the alpha to 0, since I was going to have these color effect movie clips on top of one another in the main timeline on different layers, and so you could see the effect even if that color layer wasn't on top. I used the same nested movie clip with zero alpha for the first frame of each color effect clip (reds movie clip, blues movie clip, etc), so I dont' know if that's an issue.
    Anyway, it seemed to work fine for a while, but after working on it for a while longer (and not getting any further since I removed most of the changes I made), now when I test the movie the mouse over does not seem to work correctly. It works fine, seemingly, for the first time I mouse over each button, but in order to have it work again I have to mouse over the button twice, and then it will pause randomly during a part of the clip and I have to move my mouse back over for the movie clip to continue.
    I can't tell if this is because of the overlapping movie clips, or because my buttons are messed up, or if my actionscript is messed up, or if the timeline has to be longer, or what. Currently the timeline is 55 frames, the same as each movie clip.
    I put a movieclip_instance.stop(); command in the first frame of the main timeline, is there a better way to do this? Should I put the stop command in the movie clip itself?
    Here is a section of my AS in the main timeline, this is my first time programming ever, in any language, and trying to learn from the internet is more difficult than I thought it would be.
    redmovie.stop();
    red_btn.addEventListener(MouseEvent.ROLL_OVER, playRed);
    function playRed(event:MouseEvent):void
              redmovie.play();

    I am not sure of what the problem is, so I don't know if this will help or not.  One thing I might suggest is that you use gotoAndPlay(1) instead of play().  That way, if your movieclip is in the middle of playing it won't continue but will start from the beginning.
    You could use one button to have the different movieclips play in sequence if you prefer that.  You would just need to have some form of counter that keeps track of which is the next to play. Somethin like...
    var mcCounter:uint = 0; // start at 0 since an array is being used to identify which movieclip to play
    var mcs:Array = new Array(redmovie, bluemovie, brownmovie);
    only_btn.addEventListener(MouseEvent.ROLL_OVER, playMC);
    function playMC(event:MouseEvent):void
             mcs[mcCounter].play();                  // tell the current mc to play
             mcCounter += 1;                            // increment for the next mc
             if(mcCounter == 3) mcCounter = 0;  // reset the counter if it exceeds the array

  • Need Help Putting a Flash Widget into an Image Being Exported into HTML

    Hi, I'm making a banner for the top of my band's MySpace. I only got into making layouts and such because we didn't want to spend the money on hiring a professional, so I'm kind of new to this and I don't know if anyone can help but what I'm trying to do is put a flash widget (for Twitter) into an image on Photoshop which I will then export into html. Can I do this on Photoshop or do I need to do it on another program. Any help would be appreciated, thanks!

    No, this requires you to learn HTML and create the proper embedding code and page layout.
    Mylenium

  • Bar on left of my movie

    Im making a banner for a website, and it works perfectyl,
    except when I export it, it plays with a small vertical bar on the
    left side of the movie. It appears almost as the background image
    is too small, but its not. It displays fine on the stage. Any
    ideas?
    Here is the movie...
    http://filosofizer.net/flash/Banner.swf
    Thanks,
    Jake

    If you click on the link, and watch the movie, the movie
    should be flush with the left side of the page...but its not, there
    is that small gap that appears. I cannot figure out where it comes
    from, becuase it does not show up when i edit the movie, only when
    i test / publish it. If the link does not properly show you what I
    am talking about, go to www.filosofizer.net and look at the banner
    after it stops playing. It is not flush with the left side of the
    page.
    Thanks

  • Opening parts of a movie in a layer outside the stage

    Hi all,
    I hope I'm on the right forum here.
    I’m making a banner with a stage that is 220px x 600px and that has to be  put in a sidebar, next to the content of the website. In the banner i want  to include a slider that opens text fields on certain points. Those text layers  have to open on top of the content of the website (outside of the 220x600-stage)
    Can  anyone tell me where I might find information on how to do this? (If it is  possible at all)
    Thanks in advance.

    If you have content that you need displaying off to the side, then you need to make the stage large enough to include that content.

  • Flicker when tweening

    Hi! I'm making a banner in flash, and are moving some simple objects around.
    I mainy use vector squares, but when I tween them (classic tween) in a slow motion, the shape starts to "flicker" or "lag". Why is this?
    I think there has to be something with the calculations Flash is doing, but why can't it make the animation smooth?
    Is there any way to make Flash calculate more presicely, or make it stop flicker (without actioncript)?

    I use a Mac Pro, 2 x 3.2 GHz Quad-Core Intel Xeon with 8gb DDR2 RAM, so I don't think it's the computer...
    And my framerate is set to 24fps, and that should really be enough... It not lag as usual. It's almost as if the timeline sometimes jums a frame back or something. The shape jumps back and forth some pixels... I tried to adjust my fps to a really high level, but the flickering is still there.

  • Image stacking (z-index) flex 3.5

    Hi
    This is probably a really simple question, well I hope so, but I cant figure out how to have an image over top of another.
    The senario is Im making a banner. I want the left image to be layered over top of the right image.
    Thanks for any advice.

    So now I am using the following, but the images are not being positioned left and right. One completely obsurecs the other (on the left) and there is nothing on the right.
    What am I doing wrong?
    <mx:ViewStack id="viewstack1" >
    <mx:Canvas label="View 1" width="100%" height="100%">
    <mx:Image id="rightImg" source="
    com/esri/solutions/flexviewer/assets/images/bgTopRight.png" maintainAspectRatio="
    true" horizontalAlign="
    right" verticalAlign="
    top" visible="
    true" includeInLayout="
    true" autoLoad="true" />
    <mx:Image id="imgLogo" source="
    com/esri/solutions/flexviewer/assets/images/Commission-Eurostat-GISCO-gradient.png" maintainAspectRatio="
    true" horizontalAlign="
    left" verticalAlign="
    top" visible="
    true" includeInLayout="
    true" autoLoad="true" />
    </mx:Canvas>
    </mx:ViewStack>

  • Help with linked files/ compound paths please

    Hi - I am working with an illustrator file from another designer which has a compound path with linked files - when you link a new file the image is automatically resized and clipped to the path.  I am able to edit it but i want to make my own from scratch and can't figure it out. I'm working with Illustrator CS6. Any help greatly appreciated. Thanks

    Hi Steve - thanks for the reply - my question was a bit vague as I wasn't entirely sure what I was working with but I think your point about the new linked image scaling to the same size as the existing file has helped me understand it a bit more.  What I want to know how to do is to make an entirely new file with a clipping mask that I then link an image to.  I made a file with a clipping mask on the page and then chose file>place but the image I import is not being clipped (I ticked the link option when importing it) I see it working with the existing file I'm working with but I need to know how to make a new one myself.
    If this makes it clearer here's what I want to do ...
    I am making a banner, I have 3 flat jpegs of t-shirts that I want to place on the banner without their white background.  I made a clipping mask the same shape as the outline of the t-shirt and now I want to import the jpeg so it is a linked file and is clipped by the clipping mask and so I can use it in future to import different t-shirt image in without scaling and clipping them each time.
    REally appreciate your help, thanks.

Maybe you are looking for