Professional :: Finding Picture Size?
Feb 23, 2010
i think i highlighted the relevant code. The pictures get loaded when movie starts i think.if i could just get a example of the code i might be able to figure the rest out
heres code:
The radius of the sphere, 'rad'. You can change it if you wish especially if you use thumbnails of a different size than our thumbnails.
var rad:Number=380;
The position of 'board'that will be defined later.'board' is the main container containing the sphere and the black background that reponds to mouse actions.
var posX:Number=stage.stageWidth/2;
var posY:Number=stage.stageHeight/2;
The size of thumbnails. Change the values to reflect the size of your images.[code].....
View 1 Replies
Similar Posts:
Feb 23, 2011
I make use of a bitmap picture, size 1920 x 1080, as my stage background. That image never moves ... well I may add mask to it later on, I'm not sure yet.
Nonetheless, since it is static, is it a good idea to cache it as bitmap? is it only for vector artworks?
View 1 Replies
Jan 5, 2005
I have just been to a really nice website that has some really nice use of Flash on it.... I'm totally wowed by the resizing picture effect though? When each picture loads the loading frame resizes to the new picture size.
View 3 Replies
Jan 5, 2005
I'm totally wowed by the resizing picture effect though? When each picture loads the loading frame resizes to the new picture size.It must be some sort of actionscripting but how is it done?
View 3 Replies
Aug 17, 2009
So, I have a dynamic text box, which, naturally, being dynamic, changes. What I would like to figure out is how to tell when the changing text is larger than the textbox holding it. Of course, just because it is a certain number of characters long doesn't mean it will be larger than the textbox holding it. Twenty of the letter "w" is larger than twenty of the letter "i" So, is there a way to tell if the textbox isn't large enough to hold its text?
View 5 Replies
Aug 4, 2009
I'm just trying to find the size of a array I created. I know how to find the size of the swf and movieclips with getBytesTotal but that doesn't seem to work for arrays. anyone know of a method to find this or some built in function. I searched google and other search engines but only find the getBytesTotal command for use with MCs.
View 3 Replies
Jul 27, 2009
how to find the file size in the swf header. I am looking at the swf file format spec v10 pdf and it says that "The FileLength field is the total length of the SWF file, including the header. If this is an uncompressed SWF file (FWS signature), the FileLength field should exactly match the file size. If this is a compressed SWF file (CWS signature), the FileLength field indicates the total length of the file after decompression, and thus generally does not match the file size. Having the uncompressed size available can make the decompression process more efficient."
If I were to look at the hex value of a swf what would I look for to find the file size?
[Code].....
View 3 Replies
Jan 19, 2009
I have a flash app that is 1000 wide 800 height.When i open it in a webpage or full screen it things obviously get bigger but also i see more to the left and right of the screen and up and down.
Is there a way to find out the new size? as i want things to float to the very edge of the screen so i can perform a wrap around function making them appear on the other side of the screen.
View 0 Replies
Aug 31, 2006
how I can find the original stage size of an SWF that has been loaded into a parent clip via MovieClipLoader? In the child clip, there are a number of elements that extend beyond its stage, so when I check the _width and _height properties, then they include the stage overlap.
I tried using mc.getBounds(), but it doesn't seem to give me what I'm after.
View 3 Replies
Dec 18, 2009
How do I determine the pixel size of the stage or viewing area defined in Flash CS4? Isn't it just stage.width and stage.height?
Okay now the long version:
I'm working on a script in AS3 and Flash CS4, and I'm doing some art by code.
I wanted to make a progress bar for a preloader, so I made a Preloader MovieClip and on that movieclip I drew a white rectangle, and I told it to appear at stage.width / 3 and stage.height /3. It drew it at the top corner instead, and after a lot of experimentation, and reading the ActionScript 3.0 Language and Components Reference I found that a display object's width and height are defined by their contents, and you can't manually alter them to be bigger. So I figured that I could make an invisible rectangle the size of the stage in the background of the preloader MovieClip and that would make it the size of the stage, but I realized that I would still be stuck manually setting the stage size to match what I wrote in ActionScript. Untill the MovieClip containing the Preloader was added as a child object to the stage, which would then set the stage.width and stage.height to match those of the contents.
Now that I talk about it, I suppose I'm looking for the size of the perspective or viewing window, rather than the stage. The stage can be larger or smaller than the viewing window in Flash, can't it? But the perspective of the window is finite, unless you change it.
The thing is I'm sure I've polled this information to position an object at the center of the viewing area before, but I can't for the life of me remember how. So, that's what I'm asking; how do I find the dimensions of the viewing area, so that I can either position an object at the middle, or create an object the size of the viewing area, by code?
View 5 Replies
Jun 17, 2010
I'm working on an A.S 2 document that loads chunks of text from an xml file and places them in different dynamic text boxes. The amount of text in each section differs but each one has to appear one after the other regardless of the size.At the minute I'm trying to position the second one beneath the first by making its y value 10 + the height of the first one. however the height that i keep getting is the original one and not the re-sized one.
Africadetails.autoSize = true;
Africaname.autoSize = true;
Africadetails._y = (Africaname._y) + (Africaname._height) + (10);
AfricaURL._y = (Africadetails._y) + (Africadetails._height) + (10);
View 1 Replies
Jun 17, 2010
I'm working on an A.S 2 that loads chunks of text from an xml file and places them in different dynamic text boxes. The amount of text in each section differs but each one has to appear one after the other regardless of the size. At the minute I'm trying to position the second one beneath the first by making its y value 10 + the height of the first one. however the height that i keep getting is the original one and not the re-sized one.
My code is
Africadetails.autoSize = true;
Africaname.autoSize = true;
Africadetails._y = (Africaname._y) + (Africaname._height) + (10);
AfricaURL._y = (Africadetails._y) + (Africadetails._height) + (10);
View 1 Replies
Jul 19, 2003
I need to establish size of picture (*.jpg) loaded in swf file. I used this script for load the picture:
_root.createEmptyMovieClip(picture, 9876);
loadMovie(obrazok.jpg, 9876);
trace(picture._width);
but traced number is always 0 however the real size of picture is 256 x 192. How should I change the script for it works?
View 9 Replies
Oct 3, 2005
I want a frame to transform into the size of the next picture. It's hard to explain so here is an example. goto: [URL] and click on furniture for example. Check out the pictures and se how the black frame change size. Does anyone know a tutorial for this operation?
View 2 Replies
Apr 3, 2009
I want to create a website with a background that will auto-resize according to the stage size using AS3.But what i need to know before I do it is: What is the right resolution for the background picture?I want people with resolution starting from 1024x768 to view the website correctly and I also want people with 24'' monitors to view the background with good quality so I guess the image needs a high resolution. I started with 1936x1288 but when I resize the stage to fullscreen the bottom of the image gets cut off.
View 6 Replies
Apr 22, 2002
I want to make a picture gallery and use buttons that move you from picture to picture and backwards, but I don't want to tell button 1 to go to frame 2 and button 2 to got to frame 3 and so on (I hope you know what I mean)Can I use on button on a separate layer with the same action set? I tried something like that, but it didn't work:
on (release) {
thisframe =+1
}
[code]........
but it didn't work. I'm kind of new to any action script other than gotAndPlay, easy functions and all that.
View 2 Replies
Jan 25, 2011
How to save images a landscape picture and portrait size in FP10, there are ways?
View 13 Replies
Jun 13, 2007
Users can write a text, modify it (in type, color and size) and choose a picture (which is loaded through a XML-file) for an e-card, then send it to whomever they want. But when they have made the modifications, how do I save the card, and then store it in a database?
View 3 Replies
Jun 8, 2010
I am trying to build a flash that auto-adjust its size to the browser window size, while leaving the content of the flash itself top-centered in the screen.I have found this solution [URL].. on How to keep centered stuff in this exact case so i am pretty confident i will be able to adjust that script to do what i want.
Now my problem is that if i put my content inside the movie-clip (centerrectangle) with all the animation require, link and other stuff, the movieclip (center rectangle ) never have the exact same center, thus making the script go wild trying to always adjust the location to the variable size of the movie clip.
[Code]...
View 9 Replies
Feb 11, 2011
I am studying CS5 but I can't find help files or tutorials... is everything online now? Where should I go for help?
View 3 Replies
May 24, 2010
I am in the process of updating all of my symbols in a project I am working on, and found that some of the objects are set to temporary paths, I guess I had just imported from the clipboard, as opposed to importing an actual saved file.
Anyway, there is one particular graphic object that, according to my library, is in use in 1 place in my project, but I can't for the life of me find where that is. Is there any way to locate instances of objects in the library? Or am I going to have to go through my entire project, piece by piece?
View 3 Replies
Jun 30, 2010
I'm trying to write a plug-in for Flash CS5 that will display the "instances path" for a selected object. I'm trying to work with JSFL.I manged to get all selected objects using fl.getDocumentDOM().selection. I iterate over the array I get and look at the objects. I am able to get each of the objects' name. What I need to do is construct the "path" to that object (e.g., scene.scene.instance4.myText). Can anyone think of a way to do that? Is there a way to get the object that contains a certain object?
View 5 Replies
Oct 7, 2010
I am trying to find a snippet of code for my website.I am building a website using Serif Webplus X4. I am also creating 2-4 animation shorts to play as an introduction to the website that I created with Toom Boom Studio 5. I would like to have one of them randomly play at the beginning of the website so that every time someone logs on to our website, a different one plays. My question is that someone said that if I go to Adobe that I could get a snippet of code to make these 2-4 animation shorts play randomly.
View 3 Replies
May 5, 2010
Is there a site for submitting defects for CS5?Code hinting/completion for optional params in custom classes does not function, and seeing as it does every where else, such as the built in classes, I imagine it's a defect. For me this feature is huge, can't wait to see it working.
View 3 Replies
May 10, 2010
if I take a square, turn into a Movie Clip, addjust the Perspective Angle, and the Vanishing Points. Then I rotate the square along the x axis so that the square is now a plane laying on the z axis. How do I get the length of the Movie Clip? I need to know when a plane starts and ends on the z axis. I also need to get the width.
View 13 Replies
Mar 10, 2011
Making simple player to allow viewing on website.Adding flv file to create a published player.Works fine after publishing on local system as long as the flv is located in the same directory as the swf player.When copying to a website, it seems the player does not know how to find the video file.
View 1 Replies
Aug 12, 2010
I understand that I can see the usage count of a Library item easily. I have been assigned a task to edit someone else's Flash movie (I have been provided .fla source).The movies is extremely complex and I need to replace some images. How can I find out on which layer/frame does a Library Item appear on a Flash movie??
View 4 Replies
Oct 6, 2010
I want to find out how to find objects on stage in order to change their names, using actionscript in run commands.
View 2 Replies
Feb 3, 2012
The first Picture show my original program. Example: From Picture 2, i drag a fish and drop into the trolley. In Picture 3, i want the fish appear in the belt again. So the user can drag the fish again. Problem: The fish will not appear in the belt.
[Code]....
View 9 Replies
May 27, 2010
I am trying to use the new unCaughtErrorEvent, as explained here: [URL] When testing the event I run across two problems:
1 - when testing the movie from the flash IDE, the uncaught error is indeed caught and handled (as in the example) BUT the original
error still gets thrown! For example, when loading an XML file that does not exist: - first the uncaughterror event gets called. (good!) - then I get an unhandled event error (ioErrorEvent for not finding the xml file). Isn't the whole point of catching uncaught errors that you can catch ALL these errors? This way it seems rather useless to me.
2 - when testing the uncaughterror handler from a html page, the debugger gives an entirely new error: VerifyError: Error #1014: Class flash.events::UncaughtErrorEvent could not be found. So for now, I'm truly baffled as to what UncaughtErrorEvent is supposed to do and why it doesn't work
View 4 Replies