ActionScript 2.0 :: [MX] Resize Border To Fit Dynamic Image?

Apr 9, 2004

I have a background with a border that is behind dynamic images. I am trying to resize the background to custom fit each jpg that is loaded. However, I cannot get the width/height from the movieclip the jpgs are loaded into and I can't get the width/height from the jpgs.

Here is what I tried:

setProperty("_root.serve_contents.photo_button.pho to_background_image.subpages.photo_examples_bg", _height, getProperty("examples/photo/event/amcel_medium.jpg", _height));

[Code]....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Add A Visible Border To The Image That Allows To Resize The Image

Mar 19, 2010

i am building an editor which allows you to resize images and to do this (once an image is selected) I add a visible border to the image that allows you to resize the image. so i want to have a function something like,

[Code]....

and i have to call this redrawborder function inside the MOUSE_MOVE listener that controls the resizing (so that i am constantly removing and redrawing the border). constantly removing and redrawing the frame seems very inefficient. is there some property or better why to do this? i want to have, displayobj.scaleChildren = false or something like that

View 1 Replies

ActionScript 2.0 :: Border Around Dynamic Image [MX]?

Mar 26, 2004

My question is related to putting a border around an image. I am dynamically loading images from an xml file and they appear as thumbnails. I want to put a 1 or 2 pixel black border around the image when I load it. The problem that I see is that some of the images are portrait and others, landscape. I hope there is a way to do this in AS? I have searched the forum but nothing.

View 3 Replies

ActionScript 2.0 :: Another Dynamic Image Border

Jul 1, 2004

I have a dynamic border with a loader and buttons and whatnot. It works for the most part, but when the images have not loaded on the persons machine before, there is an occasional glitch preventing it from displaying properly(the border shrinks to nothing, the loading bar goes to aobut 10px, etc.)

[Code]...

View 3 Replies

ActionScript 2.0 :: Border Around Dynamic Image?

Mar 26, 2004

My question is related to putting a border around an image. I am dynamically loading images from an xml file and they appear as thumbnails. I want to put a 1 or 2 pixel black border around the image when I load it. The problem that I see is that some of the images are portrait and others, landscape.

View 3 Replies

ActionScript 2.0 :: Another Dynamic Image Border?

Jul 1, 2004

I have a dynamic border with a loader and buttons and whatnot. It works for the most part, but when the images have not loaded on the persons machine before, there is an occasional glitch preventing it from displaying properly(the border shrinks to nothing, the loading bar goes to aobut 10px, etc.)Here is the gallery thing (only 1 - 11 are uploaded)I assume it's some kind of issue with loading, as in resizing before loading properly or something...but to me the code looks fine. The big problem with this error is it's extremely hard to troubleshoot as i have to upload the SWF, and clear my cache everytime.

View 3 Replies

ActionScript 2.0 :: Resize And Reposition Dynamic Image?

Dec 4, 2006

I'm currently building an application that allows users to "import" uploaded images into the FUI and move them around to place them where they want. I have three seperate sections where they can do this and each section has a different maxWidth and maxHeight... What I'm trying to accomplich is to be able dynamically bring the image in resize it so that it fits within the _root.maxWidth and _root.maxHeight, while constraining the proportions, THEN I need it to be be placed (if needed) within the boundry of the section they are importing the image to...

I'm grabbing the image via the tree component and continuing from there... here is my code.

Code:
myTreeDataProvider = new XML();
myTreeDataProvider.ignoreWhite = true;
myTreeDataProvider.load("tree_source.xml");
myTreeDataProvider.onLoad = function() {

[Code]...

View 7 Replies

ActionScript 2.0 :: Dynamic Image Resize + BitmapData Smoothing?

Sep 11, 2007

I'm creating a dynamic image gallery that resizes the images to fit the gallery size, and then smooths them out.I feel like I'm super close to getting it to work perfectly. The image smoothing always works, but the resizing is kind of iffy. The first image displayed will resize just fine, but when you view any others they're all distorted or squashed. What's strange is that I've traced out the resized image dimensions and they're exactly what they should be, but the images are still not resizing correctly.

Here's my code! I only included the parts of it that are really relevant, but let me know if you guys want to see all of it. It's a combination of a few tutorials that I found. I may be able to provide a live example, but it's for work so I'm not sure how the nondisclosure agreement would affect that.

Code:
var thisWidth:Number;
var thisHeight:Number;
var maximumHeight:Number;//height to which movieclip to be resized

[code].....

View 2 Replies

Flex :: SWFLoader Border Resize?

Aug 29, 2010

I have a MainPage, on initialize I am calling a method which would create a SWFLoader object (aka LoginPage) and loads it in the MainPage. When we run the MainPage in 800x500 window, the LoginPage loads in that window size, however when we maximize the window the content of the LoginPage gets resized to 1027X660, but the border remains 800x500, and the remainig area of the window stays blank.

View 1 Replies

ActionScript 2.0 :: Dynamically Resize A Border?

Feb 13, 2004

I am going to make an image gallery that loads jpg's. Around the jpg is going to be a border that resizes depending on the demensions of the image. I want the border to expand so that it encompasses the image, BUT i dont want the width of the border to change. SO, would this work:

Break the border up into 4 MC's (topbar, bottombar, leftbar, rightbar), and have the topbar and bottombar's width resize according to the jpg loaded, aswell as its _y postion change according to the height of the jpg, and have the side bars height resize according to the height of the jpg and its x position change according to the width of the jpg. If it did it right, could this result in a border that resizes depending on the demension of the dynamically loaded jpg, but the actualy width of the boarder all the way around stays the same? I'm thinking that I'm correct, but just wanted to make sure there wasnt any glaring problems before I procceded.

View 1 Replies

ActionScript 2.0 :: Way To Dynamically Resize A Border?

Feb 13, 2004

I am going to make an image gallery that loads jpg's. Around the jpg is going to be a border that resizes depending on the demensions of the image. I want the border to expand so that it encompasses the image, BUT i dont want the width of the border to change. SO, would this work:Break the border up into 4 MC's (topbar, bottombar, leftbar, rightbar), and have the topbar and bottombar's width resize according to the jpg loaded, aswell as its _y postion change according to the height of the jpg, and have the side bars height resize according to the height of the jpg and its x position change according to the width of the jpg. If it did it right, could this result in a border that resizes depending on the demension of the dynamically loaded jpg, but the actualy width of the boarder all the way around stays the same?

View 1 Replies

ActionScript 2.0 :: Gallery Resize Border Loading Swf

Dec 15, 2005

Currently I am using the gallery that has been posted on a link on Kirupa.com where it uses XML and loads in my case .swfs into a border that resizes according to the size of what is loaded. The reason I am using .swfs is because I plan to somehow make it so that the artwork being loaded can be zoomed in on once they are loaded, how I am not sure quite yet. Anyway, I was wondering if anyone could please tell me why that sometimes the .swfs load once or twice and then when clicking on other artwork thumbnails they do not load at all. THis just happens for the swfs and not when I would use the jpegs instead of swfs. The swfs just do not seem to be loading as planned, sometimes one or two load sometimes none. Was wondering if someone knew why this is happening and could please give me some help if possible, maybe pertaining to actionscript?[code]

View 1 Replies

ActionScript 2.0 :: Auto-resize Border With AttachMovie();

Feb 1, 2006

how i can use this script with attachMovie(); . Im trying to create a border that auto resizes when MCs (basically just an image imported into an mc) load. This will be expoted as a projetor then burned onto a CD. I just need them to load from the library.

Heres what i have so far:

space = 10;
photo_mc._alpha = 0;
MovieClip.prototype.loadPhoto = function(photo) {

[Code]....

View 2 Replies

ActionScript 2.0 :: Can't Get A Border To Auto-resize To The MC As MC's Are Load With AttachMovie();

Feb 1, 2006

If i cant get a border to auto resize to the MC as MC's are load with attachMovie(); , can i get a border to animate a resize to a specific ._height, ._width (also with a var speed = #)? Am i just totally F'ing this thing up or what. Heres and example: [URL] i would make a second frame and have the AS for the border load a different value and a new MC.

View 8 Replies

ActionScript 3.0 :: Scale Or Resize The Image By Dragging And Resize Option?

Sep 19, 2011

I am working on image and i like to scale or resize the image by dragging and resize option.same working as "free transform tool" in flash (design part); i need same functionality in application.

View 7 Replies

ActionScript 3.0 :: Add Border/background Image To Display Image?

Jan 12, 2010

I am using this following code to display images using xml.Everything is working fine for me but i have to add background image or border to the displayed image using function BitmapFileMaterial.

using BitmapData or Bitmap Class but same functionality.

[Code]....

View 0 Replies

Handle Image Border

Dec 31, 2009

ActionScript for Handle Image BorderLike this???

View 2 Replies

Css :: Flex 3 Using An Image As A Border

May 13, 2010

I am working on an custom container and I need a border for this container. I have a 15x15 image that I am creating a 9-slice border skin with. The issue that I am having is that the border skin does not appear the way that I had hoped it would.

Here is a ss of the skin in place.

Ideally I should have a transparent box with a 5 pixel border around it.

Here is my current testing code:

CSS Code:

Box
{
borderSkin: Embed(source="15x15.png",
scaleGridLeft="5",

[Code]....

View 1 Replies

ActionScript 2.0 :: No Border On First Image?

Oct 25, 2006

I load my images using XML and tween them + putting a border with this script (not including the xml loading code, dont know if I need to change this?) Everything works fine with doing the same thing with all images. What I want to try to accomplish is putting no border on the first image?

Code:
MovieClip.prototype.loadPic = function(pic) {
this.loadMovie(pArray[pic]);
this._parent.onEnterFrame = function() {

[Code]....

View 1 Replies

ActionScript 2.0 :: XML Gallery Dynamic Border?

Jun 27, 2005

Just thought I'd see if this is possible with the XML Photo Gallery.1. Is it possible to create a dynamic border for the loaded image depending on the size of the image being loaded? 2. Is it possible to move the Y position of the caption text box depending on the height of the loaded image? ie if the image is 200 pixels high, then the text box should be positioned at 220 pixels.The current code I have which loads the images then automatically scrolls through them is:

Code:
delay = 6000;
// -----------------------

[code].....

View 1 Replies

ActionScript 2.0 :: Dynamic Border And Glow?

Feb 12, 2004

Is there a way to set the border of a box to be set in actionscript, as well as set a glow property.I am going to be resizing the box using actionscript so if I have it as an image or in the mc it will be resized and that would be no good.

View 10 Replies

ActionScript 3.0 :: Adding A Border On Image?

Jan 26, 2010

What I want to do is add a border on the image that I load into my scroll bar via XML on the rollover. So when I rollover the image a border appears around it. I created a movie clip of the just the border and I am having trouble getting it to appear on all my images when I rollover them. I am not sure how to fix this. How can I do this?

Code:
scrollBar_mc.visible = false;
var space:int = 10;//space between cells
var w:int = 47;//width of cell

[Code].....

View 7 Replies

Flash :: Set Border On Dynamic Added Object?

Mar 27, 2012

Im adding video windows to a video object inside mxml file

videoMovie = new Video(120,80);

Now would it be possible to apply a rounded border of 2px on this somehow?

I know you can use

<s:controlBarContent>
<s:Label text="cornerRadius:" />
<s:HSlider id="slider"

[Code]....

On regular objects but cannot find out how to do this with dynamically added ones :(

View 1 Replies

ActionScript 2.0 :: Dynamic Border Drawing Code?

May 2, 2006

Anyone know if there is some actionscript that could draw a border around a movieclip?

View 3 Replies

ActionScript 2.0 :: Create A Border To Dynamic MovieClip?

Jul 24, 2008

I need to know that how to create a border to dynamic MovieClip.

I wanted to give a border to thumbnails which is coming through xml

View 1 Replies

ActionScript :: Draw A Border Around A Masked Image?

Jan 20, 2010

I'm trying to write some ActionScript which will accept a mask and an image, then mask the image and put a border around the result (assuming that the mask is always 100% opaque).

For example, if my mask is a poorly drawn star, and my image is a bunch of flowers, I want the result to be a poorly drawn star with flowers inside it and a border around it. Something like this:

View 2 Replies

ActionScript 3.0 :: Apply Border On Image Hover Using Css?

Jul 28, 2010

I have a dynamic textfield that is html formatted and loads text from an XML file. On the XML file I have the following image that contains a link[code]...

How can I add border on image hover using CSS?

View 4 Replies

ActionScript 2.0 :: Resizing - Image Border Tween

Nov 3, 2007

I am trying to make one of those Resizing borders for an image gallery ... Is there an Actionscript 2.0 function that whilst Loading in an external jpeg, Flash can be told the dimensions of the picture it is currently loading > before it has loaded it fully.? ie: getWidth (as a guess). Thus, preparing the size of the border, whilst the image is loading. Or, does it have to initiate that once the jpeg has loaded 100%.

View 3 Replies

ActionScript 3.0 :: Apply Border On Image Rollover Using Css?

Jul 28, 2010

I have a dynamic textfield that is html formatted and loads text from an XML file. On the XML file I have the following image that contains a link:

Code:
<a href="link here"><img src="image.png"/></a>

How can I add border on image hover using CSS?

View 9 Replies

ActionScript 2.0 :: Load Image With Border OnLoad?

Apr 8, 2004

I am going to call this swf file to show a random image in a panel. I want the border to be around the picture when it loads. Here is the code,

Code:
portfolioInfo = new XML();
portfolioInfo.ignoreWhite = true;
timeline = this;

[Code]....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved