ActionScript 2.0 :: Centering Different Sizes Jpg's - Gallery

Feb 15, 2006

im making a gallery that load an image in a movie clip when i click in a button. All seems to work perffectly in "local". My problem is when i put my gallery on-line. To me it appears not to get the "width" and the "height" untill the image is fully loaded. In the "AS" have some kind of "checker", but obviously its not working, can someone help this "semi-noob"? here is the link: [URL] Here is what i have in my first and only frame:

[Code]...

View 3 Replies


Similar Posts:


IDE :: Photo Gallery Using XML - Image Sizes

Sep 9, 2009

How can i fix the ImageHolder (Movie Clip size) that holds the images loaded into it. At the moment I have sized the photos to the size I want, but if a photo is not that "Specific" size it will overlap my text next to it... How can I fix the size of this movie clip to show the images without it blowing out my design? I have sized all the images to: 230px x145px If they are not this size the design will not work, I need to fix the window to 230px x145px

View 1 Replies

ActionScript 2.0 :: Xml Photo Gallery - Image Sizes And Quality

Aug 23, 2006

I've been working with the xml photo gallery tutorial on this site, and pretty much have it the way I want, except I am having some serious issues with the image sizes and quality, and cannot figure this one out.. The problem is that when the jpg images are loaded in dynamically they look horrible in quality. I searched and searched for an answer to this and couldn't really find anything that I had already tried... The only thing I could really think of was to rebuild my site at a larger scale and publish with 'match movie' instead of 'percent'.

After all that work... I'm having something very crazy going on, but it should help diagnose the problem.. When I rebuilt the site and re-did the images to match the exact pixels, for some reason now they are super big. I've looked at my code and can't see any scaling going on.. I don't know what is happening, so I'm going to supply all available resources:

[Code]...

View 5 Replies

ActionScript 2.0 :: Centering Xml Gallery Images?

Jul 10, 2005

ive just butchered myself a gallery together which loads different xml documents (with image references in them) into an empty movie clip on the main stage-however- the images are all different sizes, and I cant seem to modify the script so that they will center correctly- i know I need to preload them in order to get the correct size for each image and then reload and display so that the x and y coordinates are correct-im using this script from kirupa's xml gallery tutorial- each different section of the gallery has this script attatched to the button that displays it-but im really stuck as to where to add a loop to ***** the images.- my brain hurtsI

on (release) {
function loadXML(loaded) {
if (loaded) {

[code].....

View 8 Replies

Flash :: Professional - Centering Xml Gallery Picture

Sep 17, 2010

I have a website that I would like to make a little improvement. The website is functioning quite well except one little small thing. The xml gallery image is not centering. At the moment it is aligned to the top left corner. I would like to center all images no matter what size they are, but I don't know where to find the action script that centers the content in XML. Here is the website, so you can see what I am talking about: [URL] how to make a pop up window that you can see the image even larger and go up and down to see the details?

View 7 Replies

ActionScript 2.0 :: Photo Gallery - Centering Images?

Apr 26, 2007

i have both vertical and horizontal pictures... The horizontal pictures work great! But what code and where would I add it if I wanted to tell Flash to center the vertical photos in the large gallery.

View 1 Replies

ActionScript 2.0 :: Centering Pics In Kirupa Photo Gallery Using XML And Flash

Mar 24, 2006

I am using the kirupa xml foto gallery and I am loading different sized images... if they would load nicely centered the problem is solved... (not to stage width/height..!!) The movieclip "picture" has to load the images centered from its own registration point so that it can be placed anywhere on the stage.... now its loads the images from aka left top...

[Code]....

View 14 Replies

ActionScript 2.0 :: Centering Image In The Xml Image Gallery?

Jan 30, 2007

did the tutorial on this site for an xml image gallery - it worked great... My question would be is there a way to accomodate for multiple image sizes that would allow the image displayed to be centered?

View 1 Replies

Background .jpg In Different Browser Sizes?

May 12, 2009

I'm building a flash website. I want the background to be a .jpg photograph which fills the entire area outside the browser. I understand that it is possible to scale background to fit different sized computers, but I don't understand how that doesn't distort the image when viewed on a widescreen computer. Is there some way tocreate a site that shows a portion of the image on a 800 x 600 monitor, a little more of the image on a 1024 x 768 monitor and even more a 1650 x 1050 monitor.

View 1 Replies

ActionScript 2.0 :: Getting The Byte Sizes?

Mar 1, 2007

if i am using sound/music in a flash movie and i would like to create an instance for it then play it in actionscript, how would i go about getting the size of that sound file?Here is the code i used, btw the sound file has a linkage name of 'tune'

Code:
musik = new Sound(this);
musik.attachSound("tune");
musik.start();
varsize = musik.getBytesTotal();

A dynamic text field is placed in the doc to show the value of varsize but when the movie loads, it shows as undefined!

View 4 Replies

ActionScript 3.0 :: Creating A List With Different Row Sizes?

Dec 3, 2008

I'm new to AS 3.0 and CS4 and I've been getting up to speedon all of it. I've used the List component before with my owCellRenderer. I now need to create a list with different rowheights. The List component is great and does everything that Iwant but it requires all rows to be the same height.I'm unsure of where to go. Creating my own class seems like alot of work. The TileList and Grid components don't allow differentsized (and dynamically changing) row heights either. Is there somebase class (SelectableList? BaseScrollPane?) that I should extendor do I need to just bite the bullet and write it all from scratch?

I need each row to have it's own height and interaction witha row could change the height of the row. The main use is a list ofdata. If the user clicks in an item, it turns the display intosomething they can edit (which will need more height)I really like that AS 3.0 is much more consistent of aprogramming language than previous MX versions that I've used.We're doing a lot of AS/Flash/AIR work with it and it's turninginto a wonderful environment...

View 1 Replies

Resizing Flash Swf's To Fit Screen Sizes?

Jun 19, 2009

I would like to know how to resize flash to fit in browser/monitor sizes. This site http:[url]....is a perfect example. Notice how it opens with no scroll and fits to a window that matches your screen size.

View 1 Replies

Professional :: Transition Between Two Different Sizes Of The Same Image?

Apr 20, 2010

Im currently working on a project where I have a 92x92 pixel image that needs to tween into a 711x300 pixel image.  The images are the same but cropped to these sizes via photoshop, imported into flash, then converted to graphic symbols.  I want to have the 92x92 image tween into the 711x300 image.
 
I say tween, but the two tweens aren't working correctly, I can't seem to find a "crop" like function in flash that will let me adjust the large image for when its supposed to be small, then have it tween between the two sizes as i need them to.

View 2 Replies

Professional :: Can't Obtain The Stage's Sizes?

Oct 14, 2010

Situation:I've got 2 swf files,1 is a preloader which loads the 2nd swf file, my site.Both of them, if started separately,work correctly.Problem:when I put the files together,linking the site's swf to the preloader,I get a  null element error and the site loads no correctly.What I've understood :The preloader is ok, because I can remove the error message working on the site's swf AS code.In the preloader's code I have some lines to center its animation on the stage, I do that like this:

import flash.display.Stage;
var myStage:Stage = this.stage;

then using myStage.stageWidth and myStage.stageHeight I calculate the clip position

Also on the site's code I do the same to center a movieclip using exactly the same code, but it doesn't work and I've found that the problem is the myStage variable, not because it has the same name as the variable on the other file (I've tried to name it myFrame).It looks that on the site's swf the myStage variable can't be assigned and then results to be null.

Question: How can I obtain the stage's height and width since var myStage:Stage = this. stage; doesn't work?

View 11 Replies

Actionscript :: Duplicate MovieClip From XML, One Each Other, With Different Sizes?

Jun 9, 2011

i have this script and i want to know how to duplicate the movieclips, one each other. This scrip works fine with images with same width, but when the sizes its diferent, dont work.

var dados:XML = new XML();
dados.ignoreWhite = true;
dados.load("xml/15anos.xml");

[Code].....

View 1 Replies

ActionScript 2.0 :: Object That Changes Sizes Dynamically

Dec 9, 2009

I have an object that changes sizes dynamically but I want to keep it centred, I recall seeing a piece of code somewhere but I can't seem to locate it now, basically what the code did was use some getBound or math function to figure out how wide the object was, how tall it was and the figure out where the centre would be and then center it... i have a function an onstage resize function but i need to know how to keep this object in the middle of the stage.

View 0 Replies

Actionscript 3.0 :: Banner Ad File Sizes?

Mar 12, 2009

What is a reasonable file size for a Flash wide skyscraper ad? I know the IAB is a max initial load of 40k for standard ad's, but what about Flash? Either I'm losing my mind or my client is for them wanting something under 30KB. I've used AS3 for almost all animation, I even killed all animation and I still can't get it under 30KB. Is there some kind of compression secret that I'm missing?I've compressed the images before import.I've reduced quality of the images inside Flash as much as possible without killing quality

View 4 Replies

IDE :: CS4 SWF File Sizes Different On External Drive

Jan 3, 2011

I'm running Flash CS4/AS 2.0 on Mac OS X. I keep my work files on a flash drive. One of these FLA files is a parent (container) movie that, when compiled, results in a SWF that is 6,983 bytes.

I saved a copy of the FLA source file to the Desktop, recompiled, and the SWF size was only 1,773 bytes (much better, since the movie only has a static preloader and some ActionScript).

I'm guessing this is because Flash has to copy some default class information(?) to compile the movie because the source file and Flash CS4 are on different drives.

Do I need to copy the class files to the external drive and map to that path in Preferences?

View 1 Replies

ActionScript 3.0 :: Fit Many Display Objects Of Different Sizes Within A Boundary?

Aug 22, 2009

I am currently working on an AS3 where I need to fit many differently sized display objects within a rectangular boundary without them overlapping. If you take a look at this link, [URL]and take note of how the speech bubbles are able to align themselves in the swf without overlapping, this is pretty much exactly what I hope to achieve.

View 2 Replies

ActionScript 3.0 :: Scrollbar And Loaded Content Of Various Sizes?

Jun 5, 2009

I'm working on a project that uses a loader to load up a swf, then display the loader in an area using a mask and a scrollbar to scroll through the content. The content in this project will change regularly, including the dimensions of the swf file (vertical dimension only, I'm not worried about horizontal scrollbars with this question).The problem I'm running into is I can't figure out a proper formula to get the scrollbar to position the content at it's bottom when the scrollbar is at the bottom  What I have now is close, but not exact. If you scoll to the bottom, the bottom of the content would scroll up too high, leaving an empty 'blank' space where the content should be. I have an if statement checking for this currently, but this creates a 'dead zone' at the bottom of the scroll bar where the content is already at the bottom, and the scroll bar can continue to scroll down a bit.oes anyone know what I'm doing wrong here in the math to get a good scrolling going, regardless of the size of the content loaded by the loader?Here is what I have so far:

package {  import flash.display.MovieClip; import flash.net.URLRequest;  import flash.events.*; import flash.display.Loader;  import fl.controls.UIScrollBar; import fl.controls.ScrollBar; import

[code].....

View 1 Replies

ActionScript 3.0 :: Attached Mcs From Library Are Totally Different Sizes

Apr 10, 2010

Attached mcs from library are totally different sizes.I'm attaching them for my gane but they are totally different sizes. If I scale them that doesn't help because then the big ones become too small.If I fix their size and width some look ridiculous.Is there anything I can do?

View 2 Replies

Maintain One Application For Multiple Screen Sizes?

Apr 16, 2010

We are working on digital photo frame(DPF) project where we need to run DPF on 3 different resolutions, i.e., 800x480, 1024x600 and 1024x768. Is it possible to maintain only one .fla file for all resolutions? How can we go for it? We will be publishing it for flashlite 3 and using AS2. The application runs on a processor of 800MHz.... and total available memory is 128MB..

View 8 Replies

Professional :: Flash Frame Sizes In YouTube?

Jul 18, 2010

I'm back in video after a decade long absence and I'm completely new to YouTube because I've been living on a continent that rarely even has Internet.  I've got some old footage I need to put on YouTube, but YouTube's specs are a bit contradictory at times.Starting from the get go, I have several questions and I hope you can point me in the right direction.  It sounds like an FLV file is what I should go for, so I'll base my questions on that.  Don't hesitate to answer between the lines.  And don't hesitate to tell me to change tracks.

The most clear export I can make from my old Avid editing program is an uncompressed QuickTime movie.  I can't find anything in the YouTube specs about QuickTime moives.  They don't say they're good.  They don't say they're bad.  Can I convert to an FLV file and upload to YouTube with good results? When I export non-HD material from my editing program, what frame size do I export?When I convert to an FLV file, what size do I re-size to?  Or does YouTube resize whatever I send to them to the right size?When I convert to an FLV file, what's a reasonable bitrate for video?  How about audio?Or do I even need to bother with the above?  In one YouTube information sheet, it sounded like I could just upload a plain old MPEG2 file and YouTube would go from there.  Correct or not?What's the benefit of an alpha channel?  It seems like the files get smaller, but I can't get them to play at all after I've ticked alpha.I'm using Avid Xpress Pro 4.3 and have access to both AVS and TMPG 3 for MPEG conversion.  I'm using CS3 from Adobe.

View 7 Replies

Professional :: Different Font Sizes In The Same Dynamic Text Box?

Oct 22, 2010

I have a dynamic text box with a paragraph of information. I would like to make certain key words a larger font size for emphasis. An example would look like this: The ever-changing landscape of the business world demands knowledgeable and skilled managers. We have been educating students about management best practices for more than a century to help them succeed in the corporate world. Whether you are looking for an online business degree to get your career started in sales, human resources, accounting, or some other area of the business world, we have the online business degree you need. Is it possible to change the font size for just some of the text inside a dynamic text box to be changed like this? I cannot get it to work properly. The reason I have it as dynamic is because it needs a scrollbar.

View 1 Replies

Professional :: Creating Different Document Sizes For Different Scenes

Dec 20, 2010

is it possible to create different document sizes for different scenes in Flash?

View 1 Replies

Professional :: Create A Banner In Various Large Sizes?

Sep 30, 2011

I have brush off my Flash skills. Usualy I work in FW but now I have to create a banner in various large sizes but with very limited file size so I turn to Flash. My animation needs are very modest: moving ease in/out, rotate back forth and maybe a fade. Have any of you guys have some tips&trix for getting as much (simple) animation with keeping a small file size? Or point me to some tutorials?

View 6 Replies

Professional :: Video Quality & Render Sizes

Dec 9, 2011

I am new to Flash CS5 and I am working on a Flash animation project. I drew everything in Illustrator CS5 and imported these drawings in Flash to do the animation. I have different scenes & exported them all as separate movie clips. I was thinking of using Final Cut Pro to make the final movie, but the video quality is not good & its pixelated.and whats the most suitable render width & height for tv screening ?

View 2 Replies

ActionScript 3.0 :: 2 Different Font Sizes, Same Text Field?

Dec 28, 2009

I was wondering if it is possible to have two different font sizes applied to differrent text within the same dynamic text field using AS3?

I am trying to read data from a XML file and display it in one dynamic text field with a header, with a larger font size, and paragraph text, with a slightly smaller font size.

I am using Flash Player 10 which I understand has some great new text features?

View 2 Replies

ActionScript 3.0 :: Inconsistent SWF File Sizes When Publishing

Jul 1, 2010

I'm having an issue regarding the file size of the .swf file whenever I publish my flash game. Whenever I publish my flash, I get a .swf file that ranges from 2MB (with lots of run-time errors) to 6MB (no errors). This is completely inconsistent, and I get a different size .swf every time I publish. The run-time errors I get when I unluckily publish a .swf that is below 6MB are:
Error #1034: Type Coercion failed
#2022: Class x must inherit from y and
#1009: cannot access a property or method from null reference.
This inconsistent problem started emerging after I turned each .as file in my game into it's own class. Sometimes it works fine. Other times it blows up.

View 6 Replies

ActionScript 2.0 :: Flash Background Different Sizes For Different Pages?

Aug 14, 2010

i am building a website in flash 8 and was wondering if it is possible to make different background sizes for different pages.I know how to change the template size, but when, for instance i change page 3's background (because it is a bigger page) all the other pages' background change to that size.

View 1 Replies







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