Image expand resizing issue

http://www.kowalskidesign.com/source/normalFlash.html
Hello,
I'm having problems resizing the expanded view. This is when you click on a thumb and the image enlarges with a description.
I've tried changing lines 204-205 (highlighted in bold in code below)
'// extends mask producing fully visible image' changing:-
width: (2 * MWIDTH),  to width: 550    and the same with the height but i get mixed results.
If anyone could give me some pointers it would be very much appreciated.
The link is above. Here is the code:-
// Grid Expandable Gallery
// (C)RimV - www.mymedia-art.com - [email protected]
// FLASH LIB
import flash.geom.*;
import flash.display.BitmapData;
import flash.filters.DropShadowFilter;
// FUSE KIT
import com.mosesSupposes.fuse.*;
import com.mosesSupposes.fusefx.*;
import com.endologik.fusefx.*;
// DYNAMIC REGISTRATION
import com.darronschall.DynamicRegistration;
//______________________________________________ PARAMETERS
// Gallery characteristic
var strokeThickness:Number = 2;
var rows:Number = 4;
var columns:Number = 5;
var bWidth:Number = 700;
var bHeight:Number = 500;
var speed:Number = 0.5;
var layerAlpha:Number = 70;
// Roll over / roll out effec
var Effect:Array = ["None", "brightness", "photo flash", "grayscale"];
var effectID:Number = 2;
// data path
var styleSheet:String = "css/styles.css";
var xmlPath:String = "normalFlash.xml";
//______________________________________________ VARIABLES
// Gallery dimension
var SWIDTH:Number;
var SHEIGHT:Number;
var MWIDTH:Number;
var MHEIGHT:Number;
var nWidth:Number;
var nHeight:Number;
var TOTAL:Number;
// Movieclip dimension
var maskContainer:MovieClip = new MovieClip();
var layer:MovieClip = new MovieClip();
var current:MovieClip = new MovieClip();
var descriptionClip:MovieClip = new MovieClip();
var preloader:Array = new Array();
var maskArray:Array = new Array();
var image:Array = new Array();
var position:Array = new Array();
var captionClip:MovieClip = new MovieClip();
// misc
var xmlData:XML = new XML();
var link:Array = new Array();
var description:Array = new Array();
var caption:Array = new Array();
var count:Number = 0;
var firstLoaded:Boolean = true;
var mWidth:Number;
var mHeight:Number;
var dX, dY:Number;
//______________________________________________ MAIN
initGallery();
function initGallery():Void
// Initialize ZigoEngine
ZigoEngine.register(PennerEasing, FuseItem, FuseFMP);
FuseFX.register(ColorFX);
ZigoEngine.OUTPUT_LEVEL = 0;
// hide display clip
display._visible = false;
// Global reference
_global.base = this;
// Gallery dimension
SWIDTH = Stage.width;
SHEIGHT = Stage.height;
base = this;
// stage resize listener
Stage.scaleMode = "noScale";
    Stage.align = "TL";
var stageResize:Object = new Object();
Stage.addListener(stageResize);
stageResize.onResize = onStageResize;
// start building gallery
buildGallery();
dX = -(Stage.width - bWidth) * .5;
dY = -(Stage.height - bHeight) * .5;
function onStageResize():Void
base._x = (Stage.width - bWidth) * .5 + dX;
base._y = (Stage.height - bHeight) * .5 + dY;
function buildGallery():Void
// Load XML
loadXML();
// Load StyleSheet
loadStyleSheet();
// Load XML
function loadXML():Void
xmlData.ignoreWhite = true;
xmlData.onLoad = loadData;
xmlData.load(xmlPath);
// Load image and save data
function loadData(loaded:Boolean):Void
if (loaded)
var data:Array = xmlData.firstChild.firstChild.childNodes;
TOTAL = data.length;
createMaskContainer();
for (var i:Number = 0; i < TOTAL; i++)
var dat:Array = data[i].childNodes;
caption[i] = dat[1].attributes.content;
description[i] = dat[2].firstChild.nodeValue;
link[i] = dat[3].attributes.src;
// Image data
image[i] = new MovieClip();
position[i] = new Object();
loadImage(dat[0].attributes.src, i);
// Load image
function loadImage(src:String, index:Number):Void
image[index] = this.createEmptyMovieClip("image" + index, index + 1000);
// create movie clip loader listener
var mylistener:Object = new Object();
// update progress
mylistener.onLoadProgress = function(image:MovieClip, byteLoaded:Number, byteTotal:Number):Void
var num:Number = Math.round(byteLoaded / byteTotal * 100);
_global.base.preloader[index].percent.text = num;
// Load completed initialize data
mylistener.onLoadInit = function(target:MovieClip):Void
// remove preloader
preloader[index].removeMovieClip();
//set up necessary component and calculate data
// Setting center registration
DynamicRegistration.initialize(target);
target.setRegistration(target._width / 2, target._height / 2);
var r:Number = Math.floor(index / columns);
var c:Number = index % columns;
var deltaX:Number = (SWIDTH - bWidth) / 2;
var detalY:Number = (SHEIGHT - bHeight) / 2;
cover[index]._x = target._x2 = position[index].x = (c + 1) * strokeThickness + c * mWidth + mWidth / 2 + deltaX;
cover[index]._y = target._y2 = position[index].y = (r + 1) * strokeThickness + r * mHeight + mHeight / 2 + detalY;
target.xmin = target._x2 - (target._width - mWidth) / 2;
target.xmax = target._x2 + (target._width - mWidth) / 2;
target.ymin = target._y2 - (target._height - mHeight) / 2;
target.ymax = target._y2 + (target._height - mHeight) / 2;
target.index = index;
target.xk = speed;
target.yk = speed;
target.release = false;
target.oX = target._x2;
target.oY = target._y2;
target.setMask(maskArray[index]);
maskArray[index].tWidth = (target._width) / (bWidth / MWIDTH);
maskArray[index].tHeight = (target._height) / (bHeight / MHEIGHT);
// Apply effect
switch (Effect[effectID])
case "brightness": ZigoEngine.doTween(target, ColorFX.BRIGHTNESS, -70, 0);
break;
case "grayscale": ZigoEngine.doTween(target, ColorFX.SATURATION, -100, 0);
break;
// Setup interactive
target.onRelease = function():Void
// unhide image + move to center
if (!this.release)
delete this.onEnterFrame;
this.release = true;
current = this;
var index:Number = this.index;
// extends mask producing fully visible image
ZigoEngine.doTween({ target:maskArray[index],
width: (2 * MWIDTH),
height: (2 * MHEIGHT),
ease:"easeInQuint",
time:1,
func:function():Void
// display description
descriptionClip._visible = true;
descriptionClip.swapDepths(current._parent.getNextHighestDepth());
descriptionClip.content.htmlText = description[current.index];
descriptionClip.content._width = current._width - 5;
descriptionClip.back._height  = descriptionClip.content._height + 10;
descriptionClip.back._width = descriptionClip.content._width + 5;
descriptionClip._x = current._x;
descriptionClip._y = current._y + current._height - descriptionClip._height;
ZigoEngine.doTween({ target:descriptionClip,
alpha:100
// Disable effect
switch (Effect[effectID])
case "brightness": ZigoEngine.doTween(this, ColorFX.BRIGHTNESS, 0, 1);
break;
case "grayscale": ZigoEngine.doTween(this, ColorFX.SATURATION, 0, 2);
break;
// move to center
var centerX:Number = (SWIDTH - current._width) / 2;
var centerY:Number = (SHEIGHT - current._height) / 2;
ZigoEngine.doTween({ target:current,
x:centerX,
y:centerY,
ease:"easeOutQuint"
// display cover layer
var depth = this._parent.getNextHighestDepth();
layer.swapDepths(depth);
layer._visible = true;
ZigoEngine.doTween({ target:layer,
start_alpha:0,
alpha:layerAlpha
this.swapDepths(depth + 1);
// hide caption
ZigoEngine.doTween({ target:captionClip,
alpha:0,
func:function():Void
captionClip._visible = false;
else
// turn back to original position
ZigoEngine.doTween({ target:descriptionClip,
alpha:0,
func:function():Void
descriptionClip._visible = false;
ZigoEngine.doTween({ target:this,
_x2:this.oX,
_y2:this.oY,
func:function():Void
current.release = false;
ZigoEngine.doTween({ target:maskArray[this.index],
width: nWidth,
height: nHeight
ZigoEngine.doTween({ target:layer,
alpha:0,
func:function():Void
layer._visible = false;
// Enable effect
switch (Effect[effectID])
case "brightness": ZigoEngine.doTween(this, ColorFX.BRIGHTNESS, -70, 1);
break;
case "grayscale": ZigoEngine.doTween(this, ColorFX.SATURATION, -100, 2);
break;
// animate
target.onRollOver = function()
// animate image
if (!this.release)
this.onEnterFrame = function():Void
this._x2 += this.xk;
this._y2 += this.yk;
if (this._x2 >= this.xmax || this._x2 <= this.xmin) this.xk =- this.xk;
if (this._y2 >= this.ymax || this._y2 <= this.ymin) this.yk =- this.yk;
// effect
switch (Effect[effectID])
case "brightness": ZigoEngine.doTween(this, ColorFX.BRIGHTNESS, 50, 1);
break;
case "grayscale": ZigoEngine.doTween(this, ColorFX.SATURATION, 0, 2);
break;
case "photo flash": ZigoEngine.doTween(this, [ColorFX.BRIGHTNESS,ColorFX.CONTRAST],[100,100], 0);
ZigoEngine.doTween(this,[ColorFX.BRIGHTNESS,ColorFX.CONTRAST],[0,0], 2);
break;
// Show caption
captionClip.swapDepths(_global.base.getNextHighestDepth());
captionClip.captionText.text = caption[this.index];
captionClip._visible = true;
ZigoEngine.doTween({ target:captionClip,
x:_xmouse + 10,
y:_ymouse - 10,
start_alpha:0,
alpha:100
// disable
target.onRollOut = function():Void
delete this.onEnterFrame;
if (!this.release)
// effect
switch (Effect[effectID])
case "brightness": ZigoEngine.doTween(this, ColorFX.BRIGHTNESS, -70, 1);
break;
case "grayscale": ZigoEngine.doTween(this, ColorFX.SATURATION, -100, 2);
break;
// hide caption
ZigoEngine.doTween({ target:captionClip,
alpha:0,
func:function():Void
captionClip._visible = false;
// Fade in image
ZigoEngine.doTween({ target:target,
start_alpha:0,
alpha:100,
time:3
// Movie Clip Loader
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(mylistener);
loader.loadClip(src, image[index]);
function createMaskContainer():Void
// Mask container
maskContainer = this.createEmptyMovieClip("maskContainer", 100000);
// Cover layer
layer = this.attachMovie("layer", "layer", 200000);
layer._width = SWIDTH;
layer._height = SHEIGHT;
layer._x = SWIDTH / 2;
layer._y = SHEIGHT / 2;
layer._alpha = layerAlpha;
layer.useHandCursor = false;
layer.onRelease = function():Void { };
layer._visible = false;
// attach mask clip and place in proper position
var k:Number = 0;
for (var i:Number = 0; i < rows; i++)
for (var j:Number = 0; j < columns; j++)
maskArray[k] = new MovieClip();
maskArray[k] = maskContainer.attachMovie("mask", "mask" + k, k);
maskArray[k]._x = (j + 1) * strokeThickness + j * 50 + 25;
maskArray[k]._y = (i + 1) * strokeThickness + i * 50 + 25;
k++;
DynamicRegistration.initialize(maskContainer);
maskContainer.setRegistration(maskContainer._width / 2, maskContainer._height / 2);
maskContainer._x2 = SWIDTH / 2;
maskContainer._y2 = SHEIGHT / 2;
MWIDTH = maskContainer._width;
MHEIGHT = maskContainer._height;
maskContainer._visible = false;
var deltaX:Number = bWidth / MWIDTH;
var deltaY:Number = bHeight / MHEIGHT;
maskContainer._xscale2 = deltaX * 100;
maskContainer._yscale2 = deltaY * 100;
nWidth = 50 + strokeThickness * (deltaX - 1) / deltaX;
nHeight = 50 + strokeThickness * (deltaY - 1) / deltaY;
mWidth = nWidth * deltaX;
mHeight = nHeight * deltaY;
for (var i:Number = 0; i < TOTAL; i++)
maskArray[i]._width = nWidth;
maskArray[i]._height = nHeight;
// attach preloader
preloader[i] = this.attachMovie("preloader", "preloader" + i, i + 8000);
preloader[i]._x = (maskArray[i]._x / MWIDTH) * (maskContainer._width) + maskContainer._x;
preloader[i]._y = (maskArray[i]._y / MHEIGHT) * (maskContainer._height) + maskContainer._y;
// Attach caption
captionClip = this.attachMovie("caption", "captionClip", 99999);
captionClip._visible = false;
function stopMoving():Void
for (var i:Number = 0; i < TOTAL; i++) delete image[i].onEnterFrame;
function loadStyleSheet():Void
// Attach Description Clip
descriptionClip = this.attachMovie("description", "descriptionClip", 300000);
descriptionClip.content.autoSize = true;
descriptionClip._visible = false;
descriptionClip._alpha = 0;
var myStyle:TextField.StyleSheet = new TextField.StyleSheet;
myStyle.load(styleSheet);
myStyle.onLoad = function(loaded:Boolean):Void
if (loaded)
_global.base.descriptionClip.content.styleSheet = this;
target.onEnterFrame = function():Void
this._x2 += this.xk;
this._y2 += this.yk;
if (this._x2 >= this.xmax || this._x2 <= this.xmin) this.xk =- this.xk;
if (this._y2 >= this.ymax || this._y2 <= this.ymin) this.yk =- this.yk;

Thanks, for your reply..
I've corrected it.. Its works as expected in Firefox and Chrome, problem with IE alone
My question is changing doctype declaration is alone enough for upgrading HTML 4 to 5?
Previously, i've used is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
now i changed to <!DOCTYPE html>

Similar Messages

  • Footer image not resizing in printed documentation

    RH11
    Does anyone know why an image inserted into a footer master page is not automatically resizing to the width of the printed page when applied to a print layout and output to Word? If you insert an image into the body of a topic or a master page and generate printed documentation, the image automatically resizes.
    I'm trying to insert a high-res footer image (300 dpi) into my footer so that it appears on every page, but at the moment it's being embedded at full-size.
    Thanks
    Jonathan

    Firstly, your better off using liststyles than paragraph list styles, I screwed around a long time before I had to set everything to liststyles rather than paragraph ones. So dont worry about that.
    The first issue, of not seeing the style - it is there, if you open the Styles tab on screen (click in a topic to get the cursor, then Format > Styles), not just the dropdown like youve shown youll see a list of all your styles, almost, it will show paragraph styles, click the drop-down and select All available styles, this will display your list styles as well!
    Im not sure about the style settings, I have the same text setting applied in my list style as I use for my 'normal' text. Though I think you can select the text in a list and apply a paragraph style to it....i just tried and it worked, but to be on the safe side you might want to set the text formatting in the list style css too..
    mine looks like this
    li.NumberList {
        font-family: Helvetica, sans-serif;
        font-size: 10pt;
        color: #524C45;
        list-style: decimal;
        margin-bottom: 6pt;
        margin-top: 6pt;
    As for printed formats not indenting lists, this is an issue. So far I have found no way around it because you cannot map a  list styles in RH to a list style in Word. This has also created errors for line spacing and indents - and  I found the indents are severly messed up when using list styles in snippets. Everytime I create printed documentation I have to manually fix it, a pain but it doesnt take too long....you could use macros etc to speed it all up for you.
    Submit a Wish Form.
    Hope it helps.
    Nick

  • When I try and print an "Approach Plate, or Departure" from ForeFlight to my Epson Stylus NX430 using AirPrint the image is resized. How can I print without it resizing. I want to have the plate print in the original size so I can use it.

    When I try and print an "Approach Plate, or Departure" from ForeFlight to my Epson Stylus NX430 using AirPrint the image is resized. How can I print without it resizing. I want to have the plate print in the original size so I can use it. Is this an Apple, Epson, or Foreflight Issue? I just purchased the printer so I can return it and get a different model or brand. I spoke to Epson and the suggestions given did not resolve the issue. I have cut the paper down to the size of the plate roughly 5.5x8 and it still try's to print at 8.5x11. I have also requested help through ForeFlights Tech help but have yet to receive an answer.
    Please help!

    It varies based on what you ordered and whether it is in stock or has to be assenbled and shipped from China. Your email conformation should give an estimate of when the items are expected to be shipped or available for pick up if you are having it sent to a local Apple Store.

  • Expanding box issue I.E. 6

    Hi, Can anyone tell me how to fix expanding box issues in I.E. 6. When viewed in I.E. 6 The text in my main content area expands causing the box to expand and jump down to the bottom of the page. Does anyone have a hack for this? Thanks
    My link is http://www.innervisionfilms.tv
    My CSS code for the page is
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Welcome to Innervision Films Royalty Free Stock Footage, post production, motion graphics and photography gallery</title>
    <style type="text/css">
    <!--
    a:hover {
        color: #FFFFFF;
        text-decoration: underline;
    body  {
        background: #666666;
        margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
        padding: 0;
        text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
        color: #000000;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 100%;
    .twoColFixRtHdr #container {
        width: 780px;
        margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
        border: 1px solid #66CCFF;
        text-align: left; /* this overrides the text-align: center on the body element. */
        background-color: #000000;
    .twoColFixRtHdr #header {
        padding: 0 0px 0 0px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
        background-color: #000000;
        font-size: 1px;
    .twoColFixRtHdr #header h1 {
        margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
        padding: 0px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    .twoColFixRtHdr #sidebar1 {
        float: right; /* since this element is floated, a width must be given */
        width: 250px;
        background-color: #000000;
        font-family: Verdana;
        font-size: 1px;
        color: #66CCFF;
        background-image: none;
        padding-top: 0px;
        padding-right: 10px;
        padding-bottom: 10px;
        padding-left: 10px;
        border-top-width: 1px;
        border-right-width: 0px;
        border-bottom-width: 1px;
        border-left-width: 1px;
        border-top-style: none;
        border-right-style: none;
        border-bottom-style: none;
        border-left-style: none;
        border-top-color: #66CCFF;
        border-right-color: #66CCFF;
        border-bottom-color: #66CCFF;
        border-left-color: #66CCFF;
    .twoColFixRtHdr #mainContent {
        background-color: #000000;
        font-family: Verdana;
        font-size: 11px;
        color: #66CCFF;
        margin-top: 0;
        margin-right: 250px;
        margin-bottom: 0;
        margin-left: 0;
        padding-top: 0px;
        padding-right: 0px;
        padding-bottom: 20px;
        padding-left: 15px;
    .twoColFixRtHdr #footer {
        padding-top: 0;
        padding-right: 0px;
        padding-bottom: 0;
        padding-left: 0px;
        background-color: #000000;
    .twoColFixRtHdr #footer p {
        margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
        padding: 0px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
        float: right;
        margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
        float: left;
        margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
        clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    -->
    </style>
    <!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .twoColFixRtHdr #sidebar1 { width: 220px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixRtHdr #sidebar1 { padding-top: 0px; }
    .twoColFixRtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->

    Johns right, I would not worry too much about IE6 but if it is a necessity a couple of minor css amends will get it working in that browser.
    Add to your .twoColFixRtHdr #mainContent css
    float: right;
    width: 494;
    And then comment out /* */ the below also in the .twoColFixRtHdr #mainContent css
    /* margin-right: 250px; */

  • Need table background image to resize

    I'm working in DW MX. I have a subtle background image in a
    nested table on my page. The pages will vary in height due to the
    amount of content on each. I would like the background image to
    resize vertically as the table expands vertically. I also don't
    want the image to repeat. I'd be happy with a straight HTML or CSS
    solution. Any advice?

    Ain't gonna happen. There's just no way....
    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
    ==================
    "jefflamonica" <[email protected]> wrote in
    message
    news:fe0t8v$4e3$[email protected]..
    >I agree with you on UGLY. But that's not really what I'm
    trying to do --
    > especially fixed position. I just want to make sure if
    someone resizes the
    > text
    > on the screen, thus expanding the cell and the table
    vertically, that the
    > background image will resize as well. You can see the
    page at
    >
    http://www.monsoondigital.com/client/brotherton/index.html
    >
    > I'm also trying to fix that blasted one- or two-pixel
    problem with the
    > right
    > vertical line.
    >
    > Jeff
    >

  • Please help-Trying to compress to Mpeg-2 for Convention, also resizing issues

    Hello,
    I just recently finished making an AMV in Adobe Premiere 5.5, and I am having trouble trying to figure out how to compress it into an Mpeg-2 source for a competition/convention.
    I also have these massive black borders on the side of my video that I know is probably due to improper resizing on my part, and although I have tried to remedy this with a new avisynth script of the exported uncompressed AVI (before compressing to MPEG-2), whenever I try to run the avisynth script in either VirtualDubMod or TMPGEnc (the converting program recommended by: http://www.animemusicvideos.org/guides/mpegforcons/) it crashes, although the original video does work.
    This is the avisynth script I have created for the post-video:
    FFVideoSource("C:\Users\Freeman\Desktop\Fight the Power.avi")
    FFCopyrightInfringement("C:\Users\Freeman\Desktop\Fight the Power.avi")
    AssumeFPS("23.976")
    SSRC(48000)
    LanczosResize(720,352)
    AddBorders(0,64,0,64)
    per the recommendations from the guide listed below
    I do not know if the resizing I have set up in the new avisynth script will fix my resizing issues, and I would like to improve that as much as possible, so if someone could clarify for me, that would be greatly appreciated.
    You may also notice some audio issues throughout the video, however on further playback this never appears to happen in the same place. I believe this is caused by poor audio quality, and I have a friend of mine working on setting up a lossless source that I will try to recompress with the video before friday, however if someone else might know what is causing this, any advice would be greatly appreciated.
    Here is the current MPEG-2 I have, however for obvious reasons, I do not consider it acceptable as of yet:
    http://www.megaupload.com/?d=IIKYWRXF
    The original export from Premiere is Microsoft AVI Uncompressed, and then attempted to convert to MPEG-2 (I tried multiple settings, they all have the same sizing issues), and as I said before, no matter what I try to do with the avisynth script, it crashes.
    I have even tried taking out every line from the new avisynth script except for the first two detailing the location of the video and audio, however this does nothing, it still crashes.
    I had to convert all my original source avisynth scripts to AVI files (that are massive, as I am editing from 52 episodes of Fullmetal Alchemist: Brotherhood), and so editing the original scripts is impossible at this point, because to my knowledge, that would mean I would have to reconvert them all to AVI, which took over 16 hours, and then that would probably make me have to re-edit this entire video (which if you look at it, based on length and how much work I've put into it: is impossible, especially given the time constraints).
    So anything that I can do to fix this will have to be done to the export from Premiere, unless there is a way to work with the AVI's that I made from the avisynth scripts.
    The source is primarily 16:9 DVD (Fullmetal Alchemist) and very few parts from a 4:3 DVD (Naruto). (You can recognize these parts in the video, it is whenever someone is rowing in a boat during the lyrics "Row Row")
    The avisynth script for all the fullmetal alchemist DVD's is as follows:
    mpeg2source("F:\DVD RIPS\Music Video Rips\Brotherhood\Disc 1 (1-7)\MainMovie\FMA_BROTHERHOOD_P1_D1\FMAB 1-7.d2v", cpu=4)
    ConvertToYV12()
    Spline36Resize(848,480)
    #TTempSmooth()
    FastLineDarkenMod()
    LSFmod(strength=120)
    LUTDeRainbow()
    And the avisynth script for the one Naruto DVD is as follows:
    mpeg2source("F:\DVD RIPS\Music Video Rips\Random\Row Row\MainMovie\ROW ROW\VTS_01_1.d2v")
    TFM()
    TDecimate()
    Spline36Resize(848,636)
    Crop(0,78, 0,-78)
    These recommendations came from what I could figure out from:
    http://www.animemusicvideos.org/guides/avtech31/
    If anyone is curious, the song is "Libera me from Hell", and it is 44100 from what I could tell when I ran it in WINAMP (I converted it from mp3 to wav through WINAMP, if there is a better way that I am unaware of, please let me know).
    I know this is extremely long, and thank you anyone who has taken their time to look through it, it is greatly appreciated.
    The deadline for this is friday (5/20/11), so I need help with this ASAP and thanks,
    Dexter

    Dexter,
    Those "black borders," if they are visible in the Program Monitor, are most likely due to a mis-match between the Source Files and the Sequence Preset.
    If they are only showing up upon Export, then there is likely a mis-match between your Sequence and your Export, and could be either with the Aspect Ratio, or if using non-square pixels, the PAR (Pixel Aspect Ratio).
    I'll defer any commens on AVISynth to the experts here.
    Good luck,
    Hunt

  • Orgchart export to image: special characters issue

    Hello,
    Using Orgchart Accelerated 2.01.
    We have an issue when exporting to image.  The issue happens when org unit name or attributes contains some special characters like é or ë (common in French).  In the jpg export, these characters are being replaced by some square characters.  In the preview and in the application, everything is displaying just fine.
    This doesn't happen for ppt export (pdf export still not functionning)
    Thanks,
    Laurent

    HI Laurent,
    This is quite unusual. As far as I am aware the OrgChart Accelerated solution only supports English at present. However, you should raise an OSS message via Service Marketplace as I would expect it to export these characters okay.
    Many thanks,
    Luke

  • How do i create a gallery page that you can click on an image, expand it and move left or right to see more images?

    How do i create a gallery page that you can click on an image, expand it and move left or right to see more images?

    You may use slideshow widgets to achieve this. For more details : Adobe Muse Help | Working with Slideshow widgets

  • Show image quality as like original image after resize in as3.

    Hi Guys,
    I am working on a Action Script3 project and i am showing images after resizing. I am using Bitmap and BitmapData manipulation for this but not getting image quality as like original image.  Please guide and help me with code that how can i do this.
    Thanks & regards
    Rangrajan

    How are you resizing? Normally, you would draw the original bitmap data into the new bitmap data, using a matrix to resize. To smooth scale, you need to use the smoothing option of the draw method. Here's a little sample that takes a library image and scales it to 500x500, using smoothing:
    var orig:BitmapData = new baseMap(); //library image
    var res:BitmapData = new BitmapData(500,500);
    var m:Matrix = new Matrix();
    m.scale(res.width / orig.width, res.height / orig.height);
    res.draw(orig, m, null, null, null, true);
    var c:Bitmap = new Bitmap(res);
    addChild(c);
    toggle the true to false in the draw, to see the difference...

  • Random Image PHP Scipt Issue

    I am using a
    PHP random image
    script on a site in which I have 2 different images on each
    templated page (random images throgh a site). The two images call
    to 2 different folders with the random image script in them (to get
    2 distinct images). Thus, 2 different random images. My issue is
    that it seems that most browsers at some point do not call for a
    new image but use what was there in the last page as it is the same
    name:
    http://ansano.com/asl/images/random/top/random_image.php
    or
    http://ansano.com/asl/images/random/bottom/random_image.php
    Any idea of how to force a browser to call the PHP script? Or
    how to change it so it works site wide?
    Thanks!!

    I've now been sitting looking for this for a while. I don't seem to be able to get it to work.
    Do I need to host to a folder first and then to the FTP server after?
    I don't seen to be able to find the new page (TEST PAGE) in the folder I used to publish the site to before I went online. Tried searching for it in finder but I don't get any results on (TESTPAGEfiles).
    I can see what you are talking bout I only publish to a local folder but I want to publish via the FTP option in iWeb.
    Thank you very much for helping me

  • Placing images without resize?

    When I put some images into a psd via placement instead of copy/paste, the images are resized, often by a lot. It appears that different resolutions is the reason.
    Image sizes are retained in copy/paste, but placement is faster, so I'm wondering if it's possible to retain image sizes via placement without tweaking the resolutions.
    Disabling "Resize Image During Place" doesn't help. Neither does changing the W and H values to 100% during placement, as it appears that the images were already resized so that 100% of the placed images are still way off of the original image sizes.
    Thanks!

    As Wade said, I don't think this is any bug. sounds mor like you are using some sort of hyper-sensitive input device (or misconfigured one) that causes accidental selection and move of existing work.
    Mylenium

  • Something is wrong with Firefox's image auto resize

    In forums, when I post an image, it's seems to be doing an incorrect image auto resize, for the image is still large to be fit in the websites' pages, and when I CTRL+Scroll, the browser makes a proper resize though making the letters and numbers smaller.

    Resizing images automatically only works if you open an image in a tab and there is only that image to be shown. In all other cases it is the website that determines how large an image is displayed.<br />
    If you post an image on a forum and the forum doesn't resize the image automatically then use an upload host that automatically generates a thumbnail that you can show and that opens the full sized image if you click the thumbnail.

  • Flash image expands out of container only on Safari browser

    I have this test page where flash image expands out of the container only on Safari browser, everything else works fine (I.E,Chrome,Mozilla,Opera) http://itmjobs.ro/lidl/eu.html . I have tried to insert flash image into a table, the same thing happent. I have tried to change iframe size to very small 10/10 just for test, I don't know how but only Safari it brings full size whatever I do.
    Can anyone help to fix this problem ? Thank you
    alfateam

    You may not like my answer but don't use Flash.  Most web designers gave up on it long ago because the world's most popular web devices (iPhone, iPad, iTouch, Android, etc..) don't support Flash and never will.
    If you want to reach a wider audience with fewer problems, use an image map and jQuery maphighlight script. 
    http://alt-web.com/DEMOS/jQuery-maphighlight.shtml
    Nancy O.

  • Video Image gets resized

    I am trying to develop a chat application which has the webcam feature. I am using JMF for this purpose. I am creating this as an applet. The first time when the page loads and the user clicks the start button to start the video, the webcam starts and the video is displayed in a small area of the applet.
    The problem is that, if the user clicks on any other buttons on the applet, the image gets resized. It scales itself in the horizontal direction. I have no clue as to why is this happeneing. I have tried using GridBagLayout, but still the problem persists.
    Any help in this matter will be highly appreciated.
    Regards,
    Sharad

    This is the code which I am using. The start button is to start the video. After the video is started, clicking on the next button will resize the video. The next button loads another image on to the applet. The Image is on the left side and the video is being displayed on the right side. Clicking on the next button calls the class PresentControl.java.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.border.*;
    import java.net.*;
    import java.awt.image.*;
    import java.io.*;
    import java.util.*;
    Description : Online presentation client main applet
    public class ClientOnPres extends JApplet {
         private Container contentPane;
    private JToolBar tb;      // Toolbar
    private JButton closeBtn,descBtn,plistBtn;// general button
    private JButton attBtn, smediaBtn,qmediaBtn,nextBtn,prevBtn; //presenter control button
    private JRadioButton[] pntButtons;               // indicator shape type
    private JButton drawBtn, delBtn, submitBtn; //
    private JPanel bodyPane, leftPane, midPane,leftMidPane,rightPane;
    private JTextArea chatOutText;      // display chat data
    private JTextField chatInText;      // entering chat data
    private JScrollPane jpChat;      // chat textbox scrolling
    private JLabel pageLbl, subjectLbl, nameLbl; // # of page, subject, presenter name
    private JLabel matrLbl, prterImage; // display presentation material
                                                                     // display presenter video image
    private String SERVER_IP_ADDRESS = ""; //IP address of the server
    private static final int SERVER_PORT = ; //port number
    private Socket clientSocket;
    private long requestStamp;
    private long responseStamp;
    private PresentControl pcontrol;
    private ThumbnailHandler thumbHandle;
    private ArrayList imgList;
    private Vector imageVector;
    private ObjectInputStream ois;
    private ObjectOutputStream oos;
    private Component thisFrame;
    private ArrayList iparray;
    private TransMedia tm;
    private ReceiveMedia ar;
    private int casttype;
    private String senderip;
    private String requestIp;
    private String username;
    private String userid;
    private boolean isHost = false;
    private int presentId;
    private String presentTopic;
    private String presentPresenter;
    private String presentDesc;
    private static final String MULTICAST_IP = "228.11.12.13";
    private static final int VIDEO_PORT = 31000;
    private static final int AUDIO_PORT = 32000;
    private static final int VIDEO_PORT_HOST = 31010;
    private static final int AUDIO_PORT_HOST = 32010;
    private static final int MULTICAST_TTL = 255;
    private boolean transOk = false;
    private boolean readyToStart = false;
    Object dataSync = new Object();
    public ClientOnPres() {
    getRootPane().putClientProperty("defeatSystemEventQueueCheck",
    Boolean.TRUE);
    public void init() {
              contentPane = getContentPane();
              iparray = new ArrayList();
              requestIp = getParameter("requestIp");     
              username = getParameter("username");
              userid = getParameter("userid");
              presentId = Integer.parseInt(getParameter("presentId"));
              //---- Toolbar
              tb = new JToolBar();     
              closeBtn = new JButton("Close");
              closeBtn.setMargin(new Insets(0,5,0,5));
              descBtn = new JButton("Description");
              descBtn.setMargin(new Insets(0,5,0,5));
              plistBtn = new JButton("Participant List");
              plistBtn.setMargin(new Insets(0,5,0,5));
    Dimension dm = new Dimension(10, 0);     
              tb.add(closeBtn);
              tb.addSeparator(dm);          
              tb.add(descBtn);
              tb.addSeparator(dm);          
              tb.add(plistBtn);
    contentPane.setLayout(new BorderLayout());          
    contentPane.add(tb, BorderLayout.NORTH);
    //------ body panel
    bodyPane = new JPanel();
    leftPane = new JPanel();
    midPane = new JPanel();
    rightPane = new JPanel();
    bodyPane.setLayout(new BorderLayout());
              bodyPane.setBorder(BorderFactory.createEtchedBorder());     
    bodyPane.add(leftPane, BorderLayout.WEST);
    bodyPane.add(midPane, BorderLayout.CENTER);
    bodyPane.add(rightPane, BorderLayout.EAST);
    contentPane.add(bodyPane, BorderLayout.CENTER);
    //------ left pane : thumbnail panel
    JPanel leftTopPane = new JPanel();
    JLabel label1 = new JLabel("Preview");
    leftTopPane.add(label1);
    leftMidPane = new JPanel();
    leftMidPane.setPreferredSize(new Dimension(80,350));
    leftMidPane.setLayout(new FlowLayout());
    leftPane.setLayout(new BorderLayout());
    leftPane.add(leftTopPane, BorderLayout.NORTH);
    leftPane.add(leftMidPane, BorderLayout.CENTER);
              leftPane.setBorder(BorderFactory.createLoweredBevelBorder());
    //--- main Panel
    midPane.setLayout(new BorderLayout());
    //--- top Panel
    JPanel topPane = new JPanel();
    JPanel firPane = new JPanel();
    JPanel secPane = new JPanel();
    JLabel label10 = new JLabel("Presentation Control : ");
              drawBtn = new JButton("Draw");
              drawBtn.setMargin(new Insets(0,5,0,5));
              delBtn = new JButton("Delete");
              delBtn.setMargin(new Insets(0,5,0,5));
              submitBtn = new JButton("Submit");
              submitBtn.setMargin(new Insets(0,5,0,5));
              attBtn = new JButton("Attention");
              attBtn.setMargin(new Insets(0,5,0,5));
              smediaBtn = new JButton("Start");
              smediaBtn.setMargin(new Insets(0,5,0,5));
              qmediaBtn = new JButton("Stop ");
              qmediaBtn.setMargin(new Insets(0,5,0,5));
              nextBtn = new JButton("Next ");
              nextBtn.setMargin(new Insets(0,5,0,5));
              prevBtn = new JButton("Prev ");
              prevBtn.setMargin(new Insets(0,5,0,5));
              firPane.add(label10);
              firPane.add(drawBtn);
              firPane.add(delBtn);
              firPane.add(submitBtn);
              firPane.add(attBtn);
              JSeparator jsp1 = new JSeparator(JSeparator.VERTICAL);
              jsp1.setPreferredSize(new Dimension(30, 20));
              firPane.add(jsp1);     
              firPane.add(nextBtn);
              firPane.add(prevBtn);
              JSeparator jsp2 = new JSeparator(JSeparator.VERTICAL);
              jsp2.setPreferredSize(new Dimension(30, 20));
    topPane.setLayout(new BorderLayout());
              topPane.add(firPane,BorderLayout.WEST);
              topPane.add(secPane,BorderLayout.CENTER);
              topPane.setBorder(BorderFactory.createLoweredBevelBorder());
              //--- middle panel
              JPanel subPane = new JPanel();
    JPanel abovePane = new JPanel();
    JPanel abovePane1 = new JPanel();
    JPanel abovePane2 = new JPanel();
    JPanel belowPane = new JPanel();
    JLabel label2 = new JLabel("Subject : ");
    JLabel label3 = new JLabel("Page :");
              pageLbl = new JLabel();
              subjectLbl = new JLabel();
              matrLbl = new JLabel();
    abovePane1.add(label2);
    abovePane1.add(subjectLbl);
    abovePane2.add(label3);
    abovePane2.add(pageLbl);
    abovePane.setLayout(new BorderLayout());
    abovePane.add(abovePane1, BorderLayout.WEST);
    abovePane.add(abovePane2, BorderLayout.EAST);
              abovePane.setBorder(BorderFactory.createEtchedBorder());
              belowPane.setLayout(new BorderLayout());
              belowPane.add(matrLbl, BorderLayout.CENTER);
              subPane.setLayout(new BorderLayout());
              subPane.add(topPane, BorderLayout.NORTH);
              subPane.add(abovePane, BorderLayout.CENTER);
              midPane.add(subPane, BorderLayout.NORTH);
    midPane.add(belowPane, BorderLayout.CENTER);
              //---- right side panel
    JPanel rightTopPane = new JPanel();     
    JPanel rightMiddlePane = new JPanel();
    JPanel rightBelowPane = new JPanel();
              JLabel label4 = new JLabel("Presenter : ");
              JLabel nameLbl = new JLabel("Hwan K. Chung");
    JPanel rightAbovePane = new JPanel();
    JPanel rightButtonPane = new JPanel();     
    rightButtonPane.setBorder(BorderFactory.createLoweredBevelBorder());
              chatInText = new JTextField(14);
    chatOutText = new JTextArea(15,13);
    chatOutText.setLineWrap(true);
    chatOutText.setEditable(false);
    chatOutText.setBorder(BorderFactory.createLoweredBevelBorder());
              rightButtonPane.add(smediaBtn);
              rightButtonPane.add(qmediaBtn);
              rightAbovePane.add(label4);
              rightAbovePane.add(nameLbl);
              rightAbovePane.setBorder(BorderFactory.createEtchedBorder());
              rightTopPane.setLayout(new BorderLayout());
              rightTopPane.add(rightButtonPane,BorderLayout.NORTH);
              rightTopPane.add(rightAbovePane,BorderLayout.CENTER);     
              rightMiddlePane.setBorder(BorderFactory.createEtchedBorder());
              jpChat = new JScrollPane(chatOutText);
              rightBelowPane.add(jpChat);
              rightBelowPane.add(chatInText);
              TitledBorder border = new TitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
              "Chatting Box",
                                       TitledBorder.LEFT,
                                       TitledBorder.CENTER);
              rightBelowPane.setBorder(border);
              rightBelowPane.setPreferredSize(new Dimension(150,350));
              rightPane.setLayout(new BorderLayout());
              rightPane.add(rightTopPane,BorderLayout.NORTH);     
    //          rightPane.add(rightMiddlePane,BorderLayout.CENTER);     
              rightPane.add(rightBelowPane,BorderLayout.SOUTH);     
    //--- get frame object for thumbnail image transfer the popup window
    thisFrame = getParent();
         smediaBtn.addActionListener(new ActionListener() {
                   String result = null;
                   public void actionPerformed (ActionEvent em) {
              try{
              long requestStamp = System.currentTimeMillis();
              oos.writeLong(requestStamp);
              oos.flush();
              oos.writeInt(11);                // request start
                        oos.flush();
              oos.writeUTF(requestIp); // sender IP in this case
                        oos.flush();
                        } catch (IOException ie) {
                             System.err.println("System error, Send data :11 " + ie);
                        long then = System.currentTimeMillis();
                        long waitingPeriod = 30000; // wait for a maximum of 30 secs.
                        try {
                        synchronized (dataSync) {
                             while (!readyToStart &&
                                       System.currentTimeMillis() - then < waitingPeriod) {
                             if (!readyToStart)
                                       System.err.println(" - Waiting for ready to start...");
                             dataSync.wait(1000);
                        } catch (Exception e) { System.err.println("Error in waiting ..start"); }
         try {
              long requestStamp = System.currentTimeMillis();     
              oos.writeLong(requestStamp);
              oos.flush();
              oos.writeInt(13);                // request start
                        oos.flush();
                        } catch (IOException ie) {
                             System.err.println("System error, Send data :13 " + ie);
                        try {
                             if (casttype == 2)
                             tm = new TransMedia(MULTICAST_IP,casttype,iparray);
                             else
                                  tm = new TransMedia(senderip,casttype,iparray);
                        } catch (Exception ee) {
                             System.err.println("Video sending error, construction() : " + ee);
                        try {
                             result = tm.start();
                        } catch (Exception ee) {
                             System.err.println("Video sending error, start : " + ee);
                        if (result != null)
                             System.err.println("Error2 : " + result);
                        else {
                             System.err.println("Trans Ok");
                             transOk = true;
         qmediaBtn.addActionListener(new ActionListener() {
                   public void actionPerformed (ActionEvent em) {
                        try {
                             tm.stop();
                        } catch (Exception ee) {
                             System.err.println("Video sending error, stop : " + ee);
              ///// sending chat data          
    chatInText.addActionListener(new ActionListener() {    // input text
    public void actionPerformed(ActionEvent e) {
         try {
    long requestStamp = System.currentTimeMillis();
    oos.writeLong(requestStamp);
    oos.flush();
    oos.writeInt(21);
    oos.flush();
                        oos.writeUTF(username);
                        oos.flush();
    oos.writeUTF(chatInText.getText() + "\n");
    oos.flush();
    chatInText.setText("");
    } catch(IOException ioe) {
    System.out.println("Outstream writer err in chatting: " + ioe.getMessage()); }
    while (!(thisFrame instanceof Frame))
         thisFrame =((Component)thisFrame).getParent();
    public void start() {
    try {
    clientSocket = new Socket(SERVER_IP_ADDRESS, SERVER_PORT);
    ois = new ObjectInputStream(clientSocket.getInputStream());
    oos = new ObjectOutputStream(clientSocket.getOutputStream());
    long requestStamp = System.currentTimeMillis();
    oos.writeLong(requestStamp);
    oos.flush();
    oos.writeInt(1);           // send request for initial data
              oos.flush();
    oos.writeUTF(requestIp); // send participant data
              oos.flush();
    oos.writeUTF(username); // send participant name
              oos.flush();
                   thumbHandle = new ThumbnailHandler(this,
    contentPane,
    thisFrame,
    leftMidPane);
              pcontrol = new PresentControl(pageLbl,subjectLbl,
              matrLbl,
              nextBtn,prevBtn,
              ois,oos);
    new ResponseManager().start();
         } catch (Exception e) {
              System.err.println("RRManager Error : " + e);
              e.printStackTrace();
    //--- Client accessing class
    class ResponseManager extends Thread {
         private long prevStamp = 0;
         private int prevActType = 0;
         private int actType;
    public void run() {
    try {
         long curStamp;
    while(true) {
    curStamp = ois.readLong();
    actType = ois.readInt();
         if (curStamp > prevStamp || actType != prevActType) {
         switch (actType) {
         case 2:
         receiveInitData();
         break;
         case 4:
         pcontrol.receiveSlidePage();
         break;
         case 12:
              iparray = (ArrayList) ois.readObject();
                   casttype = ois.readInt();
                   senderip = ois.readUTF();
                   readyToStart = true;
         break;           
         case 14:
                                  System.out.println("Session type and sender ip : " + senderip + " " + casttype);
                                       if (senderip.equals(requestIp)) {
                                            long then = System.currentTimeMillis();
                                            while (!transOk && System.currentTimeMillis() - then < 30000) {
                                            if (!transOk) {
                                                      System.err.println(" Waiting for transmit...");
                                                 Thread.sleep(1000);
                                       if (casttype == 2)
                                            ar = new ReceiveMedia(MULTICAST_IP,VIDEO_PORT,AUDIO_PORT,MULTICAST_TTL);
                                       else {
                                            if (senderip.equals(requestIp))
                                                 //Play for sender himself
                                                 ar = new ReceiveMedia(senderip,VIDEO_PORT_HOST,AUDIO_PORT_HOST,MULTICAST_TTL);
                                            else
                                                 ar = new ReceiveMedia(senderip,VIDEO_PORT,AUDIO_PORT,MULTICAST_TTL);
                                       rightPane.add(ar,BorderLayout.CENTER);
                                       rightPane.validate();
                                       rightPane.repaint();
              if (ar.initialize())
                        ar.start();
         break;
         // receive chat data
         case 22:
    try {
         String inData = ois.readUTF();
    chatOutText.append(inData);
    chatOutText.setCaretPosition(chatOutText.getDocument().getLength());
    chatOutText.scrollRectToVisible(chatOutText.modelToView(
                                                      chatOutText.getDocument().getLength()));
                             } catch (Exception e) { e.printStackTrace(); }
         break;           
         default:
         System.out.println("Action type err!");
    prevStamp = curStamp;
    prevActType = actType;
    } catch (Exception e) {
         System.out.println("Response Manager Error : " + e);
                        e.printStackTrace();      
    } // end try
    } // end run
         ///// receive initial data and load thumbnail images
         private void receiveInitData() {
                   try {
                   presentTopic = ois.readUTF();
                   presentPresenter = ois.readUTF();
                   presentDesc = ois.readUTF();
                        imgList = (ArrayList) ois.readObject();
              } catch (Exception e) {
              System.out.println("Error in ReceiveInitData : " + e);
                   if (presentPresenter.equals(userid))
                        isHost = true;
                   if (!isHost) {
                        attBtn.setEnabled(false);
                        smediaBtn.setEnabled(false);
                        qmediaBtn.setEnabled(false);
                        nextBtn.setEnabled(false);
                        prevBtn.setEnabled(false);
                        drawBtn.setEnabled(false);
                        delBtn.setEnabled(false);
                        submitBtn.setEnabled(false);
                        midPane.validate();
                        rightPane.validate();
                   thumbHandle.receiveImages(imgList,presentId);
                   imageVector = thumbHandle.getImageVector();     
    pcontrol.firstLoading(imageVector);                               
    } // end class
    /********************************* Present Control **********************/
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.util.Vector;
    import javax.swing.*;
    public class PresentControl {
    private int SCALE_WIDTH = 560;
    private int SCALE_HEIGHT = 450;
    private JLabel pageLbl;
    private JLabel subjectLbl;
    private JLabel matrLbl;
    private JButton nextBtn;
    private JButton prevBtn;
    private Vector imgVec;
    private static int currentSlide;
    private ObjectInputStream ois;
    private ObjectOutputStream oos;
    public PresentControl(JLabel pageLbl,
                   JLabel subjectLbl,
                   JLabel matrLbl,
                   JButton nextBtn,
                   JButton prevBtn,
                   ObjectInputStream ois,
                   ObjectOutputStream oos) {
         this.pageLbl = pageLbl;
         this.subjectLbl = subjectLbl;
         this.matrLbl = matrLbl;
         this.nextBtn = nextBtn;
         this.prevBtn = prevBtn;
         this.ois = ois;
         this.oos = oos;
    public void firstLoading(Vector vec) {
         imgVec = vec;
              Image first = (Image)imgVec.elementAt(0);
              matrLbl.setIcon(new ImageIcon(adjustImage(first)));
              pageLbl.setText("1");
              subjectLbl.setText("1");
              currentSlide = 1;
              ReqButtonListener reqlistener = new ReqButtonListener();
              nextBtn.addActionListener(reqlistener);
              prevBtn.addActionListener(reqlistener);
    private Image adjustImage(Image org) {       
    return org.getScaledInstance(SCALE_WIDTH, SCALE_HEIGHT,
         Image.SCALE_FAST);
    class ReqButtonListener implements ActionListener {
    public void actionPerformed(ActionEvent evt) {
         Object source = evt.getSource();
         int sendSlide = 0;
         long timeStamp = System.currentTimeMillis();
              if (source == nextBtn) {
    sendSlide = currentSlide + 1;
    else if (source == prevBtn) {
    sendSlide = currentSlide - 1;
    try {
    oos.writeLong(timeStamp);
    oos.flush();
    oos.writeInt(3); // send request
    oos.flush();
    oos.writeInt(sendSlide);
                        oos.flush();
    } catch (IOException ioe) {
    JOptionPane.showMessageDialog(null, ioe.getMessage());
    }//try
    public void receiveSlidePage() {
              int slideNumber = 1;
         try {
         slideNumber = ois.readInt();
    } catch (Exception e) {
         JOptionPane.showMessageDialog(null, e.toString());
              if (slideNumber < 1)
              slideNumber = 1;
              else if (slideNumber > imgVec.size())
              slideNumber = 1;
              Image img = (Image)imgVec.elementAt(slideNumber - 1);
              this.matrLbl.setIcon(new ImageIcon(adjustImage(img)));
              this.pageLbl.setText(String.valueOf(slideNumber));
              currentSlide = slideNumber;

  • Has the wallpaper resizing issue been fixed for iOS7?

    When I upgraded to iOS7, I immediatley downgraded back to iOS6 because I was unable to resize my wallpaper picture and I didn't care for the new look. Does anyone know if the resizing issue has been fixed???

    You mean for the Lock Screen, how it won't let you shrink it?
    No, that issue still exists in 7.0.3.

Maybe you are looking for

  • Display in browser blob files (.doc, .pdf...) stored in the Database

    Hi, I want to display blob file from de DB to the browser, but when I click on the link of the document I want to open, nothing append. If I check the length of the file it is correct. I tried to write it in a directory to see what appends. I can onl

  • OO ABAP in WF

    Hi, While going thro' documentation, came across terms like "Local  persistent object reference" Incase of OO ABAP scenario for workflow. Wanted to concept about LPOR usage and what exactly is it? Thanks in advance, Akshay

  • Installing WLS 6.0 on HP-UX

    Hi, Is there a way to install Weblogic Server 6.0 on HP-UX 10.20 (which patches should I use ?), or must I really upgrade the OS to 11 ? Thanks. Benjamin

  • How do I change the font size and line height (so font will fit) in my inbox?

    In order to make the information containing the source and subject of my incoming e-mails (from Netzero) easier to read, I would like to make the font larger. However, when doing so, the line heights stay the same and the information on each line is

  • How can I fix my disabled account?

    When I go to purchase a new song on itunes, a pop up says my account has been disabled.  I've changed my password a few times, but no luck. HELP!