Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Non-scaled Embedded Swf In Scaled Container?



hey all, i have another strange question that may or may not be possible (im hoping you all know)

i have a table cell in a site im working on that is a set height, but can grow based on percentage horizontally. Id like to have a flash file in the cell that is set to either Exact Fit or No Border.
So far no problem, but heres my wrinkle: id like to have a secondary swf either overlaying that one or embedded in that one that will only scale PROPORTIONALLY (i dont want it to stretch horizontally). what im trying to acheive is a background that is always filled, but with foreground content that is always centers within that space.

is that possible?



ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 11-13-2008, 05:01 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

JPG's Unintentially Scaled In Container Clips
Ok, I searched around, but I couldn't find anyone with the same problem. I hope you guys can help me, because I am confused.

I will try to explain as clearly as I can:I have a main SWF that loads either other SWF's or MC's into a container MC that is the same size as the stage
In order for the registration points to match up all upper left corners are at (0,0)
The stage width is 785px so the info in the far right of the MC to be loaded can't be seen while I am designing them
When I load a JPG into a loaded MC, it comes in very skinny

I don't know why this happens.

Use the attatched file and the one in the first reply (is it possible to attach more than file a post?) in the same directory to see what I mean

EDIT: Hazzah! I figured it out! When you load an image into a MC it "retains the characteristics of the movie clip, such as position, SCALE, rotation, instance name, and color effect. The container clip was scaled down to fit and the JPG was being scaled to same degree!

Sorry, I'm an idiot that it took me this long to remember that.

AS Scaled Shadows
I want to have a page that scales, depending on the button clicked. So far so good, but I would like to have the shadow follow the scale without actually 'scaling'. Same thing for the border.
Because as is actually scaling an mc, the shadow and border get much larger/smaller depending on position.

Any easy suggestions? I've thought of a different mc for each direction, but then there are the corners and getting it to look right.

Here's an example: http://www.constructiondurable.com/
Click on 'Le Projet' and you'll see the part that scales with a correct shadow (unless it's just too fast to notice).


Thanks

Smooth Scaled Jpg
Hello!

Is it possible to smooth scaled dynamically loaded jpg image using AS 1.0?

Scaled Pop-up Window
how would i go about making a pop-up window (no scroll bar, menu, etc...) with a SWF (750 x 700) inside it that is scaled appropriately to the screen resolution of which it is being viewed. i.e. i want the pop-up to fit for multiple resolutions (it is primarily all vector graphics) and if possible, i'd like the button that opens the window to be in flash.

thanks for any suggestions...

MC Positioned By X/Y - But When Scaled X/Y Changes? Help?
I have an MC that is dynamically positioned by XML coordinates that are stored within an XML file.

When a button is clicked, the MC moves to the specified X/Y coordinates (which works fine). When I scale the to 75%, the X/Y coordinates change within the MC and when the button is clicked the MC moves to the wrong position.

How do I accurately update the X/Y coordinates based on the current scale? Im so confused.

Thanks in advance for your help....

Scaled Pop-up Window
how would i go about making a pop-up window (no scroll bar, menu, etc...) with a SWF (750 x 700) inside it that is scaled appropriately to the screen resolution of which it is being viewed. i.e. i want the pop-up to fit for multiple resolutions (it is primarily all vector graphics) and if possible, i'd like the button that opens the window to be in flash.

thanks for any suggestions...

MC Not Stretch When Scaled?
hi
first post and its a question
is their a scale function or class so that when i strech a movieclip (while editing in flash and while running the swf)
that the clips specific contents do not stretch to the clip legnth but they "stick" to the clip edge?
like:

Code:
Xmovieclip._x = _parent._width - Xmovieclip._width;
but Xmovieclip doesnt scale when its parent is scaled.

thanks for any help!

Scaled Pop-up Window
how would i go about making a pop-up window (no scroll bar, menu, etc...) with a SWF (750 x 700) inside it that is scaled appropriately to the screen resolution of which it is being viewed. i.e. i want the pop-up to fit for multiple resolutions (it is primarily all vector graphics) and if possible, i'd like the button that opens the window to be in flash.

thanks for any suggestions...

Scaled Text....
If I scalled a text how can I make it like it was, with the original size of the font that it has.

Blurring A Scaled MC?
I'm doing a 'zoom-in' style interface but when I try to apply a blur filter to anything scaled over around 450% it won't play ball, won't blur.

Anyone else come across this problem, or better yet, found a solution?

Dragging Scaled Mc Kills Cpu..
I have a movieclip that i am scaling and through some script. That mc is also draggable. But as soon as i start scaling it by changing the _width and _height, the CPU starts to peg.....Is there a better way to scale or is that just how FLASH handles things?

Thanks

FULL Screen CD Rom But NOT Scaled?
Is it possible to have a full screen projector running, and using the Full Screen command make it full screen. I want it to have a background BUT I do not want it to scale the movie! I want to keep the graphics and layout at 100% but I would need it to make the rest of the screen filled up.. Does this make any sense or am i really not explaining it correctly.. sorry bout that. if you need more clarification on what I am talking about please respond with a post.. Thanks

Charlie

Problem With Scaled Flash
Hi,

I have a problem with a site where the flash movie is scaled (my client wants it that way...). When I open it in Netscape 4.7 (Mac) it is really a mini - does not behave as I want it to. If anybody can I would be very glad...:

http://www.colorexpert.de

thanks a lot in advance.

Uwe

Center A Scaled Image
I have a mc that contains a mc that have a picture that i want yo scale and center.

This fx does the job of finding the new xy coordinat

private function centerOfClip():Void
{

centerOfClipX = _width/2+_x;
centerOfClipY = _height/2+_y;

centerOfImageX = maskCenterX+myImage_mc._x;
centerOfImageY = maskCenterY+myImage_mc._y;

newImageCenterX = centerOfImageX-centerOfClipX;
newImageCenterY = centerOfImageY-centerOfClipY;


}

where centerOfClipx,y is where I click on my picture and the point I want to be in the center of the stage.

maskeCenter is the center of the stage.


myImage is the picture i want to scale etc.


This works fine until a scale of 200 procent.

When I go further, - it's not precise anymore.


What's wrong??

Kind regards


Godowsky

Jagged Vector When Scaled Really Big?
Hi,

I am having trouble with the vector image quality. I have a flash movie which has many small movie clips scaled really big (like 1500%) playing at the same time. The thing is that when I export it as swf file the vector images are all jagged and the they seem to lose all the curveness. The movie is very simple, with no scripting, just simple linear animation.

Does this ever happen to you guys?? Is there anyway to work around this? Is this caused by lack of RAM? I am using Dell with 512MB RAM and 2.7ghz, and 62MB of video card....

Any suggestion, help will be highly appreciated. Thanks!!

m

Fullscreen But Non-scaled Movieclips?
Hi everyone,

i'm trying to get an effect in flash for the web where my swf in my html page is sitting centrally, but still has elements coming in at the edge of the page as parts of the site, please refer to the source of the following site -

www.bowwowlondon.com

The source html defies my first assumption that the butterflies on the intro page were in a seperate swf. But it also states that the swf is set to display with 100% width & height which is confusing me.

Also take a look at the main part of the site, it has elements coming in from the edge of the page. Its like some parts of the swf scale but others dont, anyone know whats going on there? i'm really curious and would like to build something similar!


any help / advice most welcome!


Thanks


Will

Antialiasing Of Scaled Jpg Images
hello folks,

I'm quite sure you've seen this question before but I've searched for quite a while now and no hints found.

My problem is like found in the attachment. I am using an imported jpg, and I have to tween it. To the left is a screenshot from the flash interface, the image is scaled for 75 percent or something. To the right is the same shot in the actual movie (well.. same image, same scaling factor) and the antialiasing looks horrible. (I enlarged some text for your convenience).

Any clues on how to fix this? I want the same as in the flash interface.

I am using flash 8 but not since yesterday, I had the problem in MX too.

thanks!

[Help] Moving A Scaled Movieclip...
I have an movieclip which is scaled to 200% using the _xscale and _yscale properties. If an object WITHIN that movieclip is moved right 10pixels, will it appear to have moved 20 pixels?

Preventing Text From Being Scaled
how can i prevent text being scaled when scaling a movieclip using tween class. i know it's possible cuz i managed to do it before except i forgot what i did.

Gaps Appear When Rotated Or Scaled
If I have a Sprite containing two Bitmaps precisely side by side along the X axis, a 1-pixel gap will appear when the Sprite has certain scaleX or rotation values. Is there a way to eliminate this gap?

I have tried the various values for Bitmap.pixelSnapping property to no avail.

I am developing for Flash Player 10.

Gaps When Scaled Or Rotated
If I have a Sprite containing two Bitmaps precisely side by side along the X axis, a 1-pixel gap will appear when the Sprite has certain scaleX or rotation values. Is there a way to eliminate this gap?

I have tried the various values for Bitmap.pixelSnapping property to no avail.

I am developing for Flash Player 10.

Scaled Movie Mystery
Check out this nice looking Flash portfolio site:

http://www.thanea.com/ars/

If you look at the HTML source you can see that its made up of one SWF scaled to 100% of the window size. Yet there is no messy / blurry anti-aliasing on any of the screen elements. Further more, when you re-size the window the various elements of the Flash movie seem to move as if they were absolutely positioned CSS elements rather than things inside a Flash movie ... how on earth is this done? Does anyone know??

Fullscreen But Non-scaled Movieclips?
Hi everyone,

i'm trying to get an effect in flash for the web where my swf in my html page is sitting centrally, but still has elements coming in at the edge of the page as parts of the site, please refer to the source of the following site -

www.bowwowlondon.com

The source html defies my first assumption that the butterflies on the intro page were in a seperate swf. But it also states that the swf is set to display with 100% width & height which is confusing me.

Also take a look at the main part of the site, it has elements coming in from the edge of the page. Its like some parts of the swf scale but others dont, anyone know whats going on there? i'm really curious and would like to build something similar!


any help / advice most welcome!


Thanks


Will

[Flash8]Scaled Movement
Right now Im moving 4 objects from left to right and I want them to increase the size everytime they move. The problem is as the objects move and increase, they getting cramped at each other making it harder to click (well maybe not now.. but i can imagine if i put more objects later).

How to adjust the space between them objects? Can someone please help me with this problem?

My MC With Rounded Rects Looks Bad When Scaled
Hi - I have a movie clip that looks totally different when scaled. I used the 9-slicing guidelines, but am somewhat at a loss to figure out why it's appearing so differently.

Here are two pictures of the clip zoomed in...



Any ideas?

Dynamic Scaled Images
Hi,

Is it possible to dynamically scale a jpeg that has been loaded into a movieclip as the movieclip is scaled?

For example I have a thumbnail sized movieclip at say 20% of its full size, I need to load a jpeg into this then scale it to 20% to fit and then when this movieclip is clicked both the clip and jpeg scale up to 100% and then back when another is clicked etc...

If it can be done how so?

Cheers!

Text In CreateText Gets Cut Off On Top When Scaled
When I create a text field dynamically an populate it, everything looks nice. When I scale the parent clip of that dynamic text field, the top part of the text field seems to "scale" more than the actually text leaving the top of the text cut off. Capital letters like "F" look awkward.

I have tried dynamic leading, but to no avail. Does anyone have ANY suggestions at all to resolve this? I HAVE to scale the clip that contains the text field instead of each text field individually, for more reasons than I care to go into

Any help would be GREATLY appreciated.


Code:
clip.tx2.backgroundColor = 0xBFBFBF;
clip.tx2.background = true;
clip.tx2.embedFonts = true;
clip.tx2.antiAliasType = "advanced";
clip.tx2.text = "I'M a PIRATE";
clip.tx2.setTextFormat(myStyle);
p.s. (the text does have autoSize etc, this happens across multiple movies with different fonts, so it is a behavior of flash once scaled to a certain point, just trying to jerry rig it to work better)

Gif In Mx Remains Vector When Scaled
hi,

i have a screenshot of an excel sheet that i've saved as a gif and imported in to flash mx. the problem i am having is when i scale the image (i.e. _xscale = _yscale = 50) , the text remains sharp and pretty much unreadable. I would like the scaled image to stay somewhat readable and anti-aliased when scaled down.

any suggestions?

thanks,
james

Importing Images Being Scaled Down.
Hi, I have been haveing some issues with Flash MX on a Mac in latest version of OSX. When importing images (apple R) images (.jpg) are being scaled down to 57.6 %.
I have tried new documents, but same result.
Anyone ever have the same issue?
Thanks Tom

Scaled Movie Mystery
Check out this nice looking Flash portfolio site:

http://www.thanea.com/ars/

If you look at the HTML source you can see that its made up of one SWF scaled to 100% of the window size. Yet there is no messy / blurry anti-aliasing on any of the screen elements. Further more, when you re-size the window the various elements of the Flash movie seem to move as if they were absolutely positioned CSS elements rather than things inside a Flash movie ... how on earth is this done? Does anyone know??

Jpegs Jagged When Scaled
Whenever I scale an image up or down, I get a jagged look along the hard edges. This also happens if I rotate the image. I tried having 'allow smoothing' turned on, but that doesn't help. Also, I used pngs and still get the problem. Does anyone know how to get around this?

Thanks

Loading Jpegs..can They Be Scaled?
The premise for my webpage is that you are presented with an image (the background) then you press a button to zoom in on the content.
when you zoom in (200%) there is a menu with buttons etc. now i want to push a button and load an image into an empty mc. problem is when the image is loaded it is really grainy.

What I thought of was saving the image as 2x as big as i need it (say 200x200) and then loading it at 50% (100x100) so when you are zoomed in on the menu you perceive the image at the scale i intend without losing clarity. can i do this? and how?

The other thought i had was that my entire movie starts at 50% scale and zooms in to 100% but i don't want to do that cuz thats a LOT of work to redo

any ideas?

Can I Use LoadMovie Scaled To Fit An Area?
I've been lurking for about a week now, looking at how things work here. Looks terrific.

I finally got the time to dig in and read Penner's book some, and have a lot to do to fit it into my understanding, but it's starting to mak sense.

I'm altering an ecard application I found a tutorial on so that it will do the handywork for a good many cards, and I'd like to load the .swfs for each card in the preview phase. Many of the cards are as much as 700px wide, while the ecard application fits in a 450px wide area on my page.

Is there a way to scale the swf when loading it through loadMovie?

Non-scaling Area In A Scaled Movie...
I'm experimenting trying to create a part of a movie that doesn't scale within a movie that does scale.

Approach:
1. Get the browser window height and width from javascript with FSCommand.
2. Scale part of the movie according the the initial movie width/height v. the browser window width/height (My Flash movie is set to fill the browser window).

You can see a test of this approach here: http://www.ddc2000.com/testing/fs_scaleMov.htm

Problem: This works, but only on Windows-IE.

Does anyone know a better way to do this? If there was a way to get the true width/height of a movie regardless of browser scaling...

I understand the Mac-IE and NS6 are lost causes for fsCommand, but I can't seem to get it to work on Win/Mac-NS4.7 either.

I've verified that Mac/Win-NS4.7 can do fsCommand but I haven't been able to use the 'SetVariable' method on NS at all.

Any help is greatly appreciated. Thanks.
[Edited by OverEasy on 10-04-2001 at 12:56 PM]

Fitting Browser Window, Yet Scaled
What I want to do is have the swf resize as large as the browser window without scrolling, yet scaled. 100% stretches objects and I have silhouettes of people that I don't want to get fatter and thinner, so I need my movie have the same proportions, but be as big as it can be.

SWF File To Be Scaled Automatically To Fit Window
Hi,
using Flash 5, how is it possible to have a SWF-file automatically scale to match the current size of the window it's been loaded in?
Thanks,
CrabKey

Resetting The Percentage Of A Scaled Object To 100%
Let's say I place a vector object and it's too big, so I scale it down to 75%. How do I get Flash to think this new size is the object's actual size, and show 100% instead of 75% at that size?

Flash Map Buttons To Work With Scaled Map And More
Hello all this is actually my second first post....the username i had before would not work anymore.....i could not sign on??? it would ask for my username and password and then it would thank me for logging on and then it would go back to the sign in page....and i couldnt get by it...anyway some of you helped me before and i greatly appreciate it.... but i have a few more issues and i think they are minor... thanks for your help

Questions
1. I have created a main map frame as well as a overview map frame(upper left corner).... currently if the user clicks and drags a box within the main map frame the coordinates of that box will become the extent of the main frame as and the overview map will update in order to show the focus of the main frame in relation to the entire map.... the user may also pan the main frame by click and dragging the box within the ovmap frame ... I have also included a slider movie clip to allow the user to easily snap back to the full extent or zoom in further...(right side of the main frame)... these functions work perfectly and I am happy with them but here is my question
If you look in the lower left hand corner you will see my info box containing the initials as well as the title of all of the buildings on campus.... these are each buttons to which i want to allow the user to click on and the map will update and zoom itself to that particular building..... at first i just used seperate frames within the main map frame and called them by the on(Release) command... this did work but now that i have the zoom and pan feature it will not work with that..... If you click on the "AD - Admissions House" (first in the list) you will see that the map will zoom to that building but the main frame now considers that to be the full extent of the map and you cannot zoom back out...... as well the overview map doesnot update itself to show the new focus..... I guess what im asking is is there a way to make the buttons call a certain x,y coordinate of the main map so that it will actually be all on one frame yet it will still zoom to the location clicked..... that way the slider, and overview map will still remain in unison with the main frame. Sorry i trying to explain it as best as I can

2. Anyone know a way in Flash to use ScaleDependentRenderers... In other words i want the name of the buildings to appear when the map is zoomed into a certain extent ... Currently the max zoom of the map frame is 700 say i want the text to appear at 400 anyone help me with that....

and finally
3. the list i have in the lower left corner is the infobox and as i stated before each text is a button, how can i make it so that the button is active when the cursor is within the buttons bounding box rather than the way it is (only when the cursor is right over the text itself) it is hard to click on the text exactly and it is very annoying to try and get over the text just right....

Thank you very much in advance for your help..... im sorry to throw all these questions at you like this hope ive explained myself well enough for you to understand what i want to do....

I have just begun to read colin moock's ActionScript for Flash MX so im hoping when im done i will be able to return the favors to others....
Thanks again

here is the link to the test site http://www.students.salisbury.edu/~jw08193/sumap.swf

and ive also attached the fla

Fomenworker

Stretched, Shrunked And Unproperly Scaled
Hi there guys and gals
Have a look at the zip file I attached it contains 7 flash files with their swf files. If you open "main" you'll see that it "external loads" the other 6 movies.

My question is simple. I've made the other 6 swf's a specific size but when the main movie loads them, some get stretched, some get resized and I'd really like it if they didn't resize.

Can anyone help?

Image Better Quality When Slightly Scaled ....
I was hoping someone with extensive esperience with working with images could give their expert opinion on a strange result i'm gettin when importing images into flash.

I am not compressing the image further within flash ( 'use imported jpeg data' is ticked in jpeg properties).

for some reason flash seperates the colours of the jpeg in a crude fashion. if the image is redused slightly say scaled to 98% the image greatly improves. if you want to see the result hit the link below.

http://www.turnoffthe.tv/experimental/strip/image.html

the bottom image is the image at 100% scale ( saved in photoshop w/ highest quality settings) above it is the scaled image. I would just use the scaled image except the images (lots of them) are loaded in thru actionscript and if scaled, slows down the animtion massively.

Anyone have any advice...? it's really important that this looks really crisp.

Thanks for the input

Change Bg Colour Of A Scaled Window
I'm creating a screensaver in flash and have used the code:

fscommand("allowscale","false");

to fix the content so it doesn't pixelate the bitmaps when scaled. This leaves a white border around the fixed screensaver. How do you change the colour of this border? It isn't the document background so I can't simply use a piece of code to change the bgcolor.

Any ideas?

Thanks

How To Stop A Flash Movie From Being Scaled
Hi!

I'm trying to prevent people from resizing the window when they play the projector file on the CD. If this isn't possible how can I prevent the contents of what is outside the stage being seen? It'll look really unprofessional if someone resizes the window and they're seeing the stuff moving on and off the stage!

Thanks in advance,

Philip

How To AUTORUN *.swf File From CD In Fullscreen (but Not Scaled)
Hi
I have this job interview tomorrow and I have my flash portfolio ready, and I would like to know if it is possible for me to burn the *.swf file into the cd and when I get there, the manwoman simply inserts the cd and it autoruns the file and starts the presentation and site. Doing this I would like it to be fullscreened and not scaled (obviously).
I would like it to be just like when you preview the site and then click on FULLSCREEN and then 100%. It looks amazing but can I make that happen automaticaly?
thanks in advance,
Tiago

GetPixel() From A Scaled Movie Clip?
hi there,

I would like to know the way of getting the RGB value of a pixel in a scaled movie clip.

Here is my code:


Code:
clip._xscale = clip._yscale = 60;

var bounds:Object = clip.getBounds(_root);
var img:BitmapData = new BitmapData(clip._width, clip._height, true, 0);
var mat:Matrix = clip.transform.concatenatedMatrix;
mat.tx -= bounds.xMin;
mat.ty -= bounds.yMin;
img.draw(clip, mat, new ColorTransform(1, 1, 1, 1, 255, 255, 255, 255));

var p:Number = img.getPixel(Math.round(clip._xmouse - clip.getRect().xMin), Math.round(clip._ymouse - clip.getRect().yMin));


So the p is wrong... should I add the scale transformation for the above matrix? and how?
Thanks a lot.

Scaled Scrolling Of Text In Flash MX?
Hi everyone, ok I found this awesome site and I'm trying to figure out how the artist created the scrolling list to the right of the picture box. When you mouse over the list, the words are scaled to a percentage. I'm thinking he used the HScroll command, but I believe that can only be used for a text box. These are seperate buttons. Here's the link, its a really amazing site, any input on how he achieved this would be a lot of help.

http://www.tenbyten.org/10x10.html

THX

Bitmap Show Off In 100% Scaled Flash
Hello.
My problem is that i have a swf scaled 100% from the html code but when that swf loads into a targeted movie clip a swf with
a bitmap image (in this case a png high quality smooth breaked ) the image shows off rather messy.
I know the about the resolution dependency of bitmaps in flash but still is there any other solution not to show images so messy in 100% scaled stage?

Thanks Chryssa

Images Not Being Scaled To Specified Size On Load...?
Hello.

I am using the loader component to dynamically load images (I am developing in the "Flash Form Application" mode).

When the application loads, the images often times appear in their original size. This happens randomly - sometimes they are scaled to the size I specify, but sometimes they load at their original size.

How do I ensure that the images are scaled 'EVERYTIME'?

I am not that advanced, so if you could provide a code sample, I would be most thankful.

Thanks.

Images Not Being Scaled To Specified Size On Load...?
Hello.

I am using the loader component to dynamically load images (I am developing in the "Flash Form Application" mode).

When the application loads, the images often times appear in their original size, and not scaled to specified size. This happens randomly - sometimes they are scaled to the size I specify, but sometimes they load at their original size.

How do I ensure that the images are scaled 'EVERYTIME'?

I am not that advanced, so if you could provide a code sample, I would be most thankful.

Loading Swfs Into A Scaled Movie?
ok.... Check out http://www.hi-res.net ... in the source the flash movie is scaled... however they must have loaded another swf in for the nav ect... "they dont scale" how is this done... I've been racking my brain for the last few days and cant seem to find any resources out there to help me... any help would be appriciated...

Copyright © 2005-08 www.BigResource.com, All rights reserved