Scaling Objects With OnCuePoint Function?

Oct 23, 2009

I'm working on a project in which I'm using a background movie playing in a Movie Object and on top of that I'm showing texts and images sort of like they are in the movie itself. The way I did this is by making the movie in After Effects and giving every frame in the movie the required position, alpha and scale parameters for each object in the flash movie.

[Code]...

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Using OnCuePoint To GetURL?

Jan 15, 2008

I have a intro for a website using a FLV. I set two cue points ("start","end"). What I am trying to do seems very simple (when I started,LOL), at the end of the FLV have it go to another web page using the "end" cue point. Here is what I have:

[Code]...

View 1 Replies

Actionscript 3.0 :: Change Dynamic Text With OnCuepoint?

May 25, 2009

I need to change some dynamic text when the video file encounters certain cue points. So far I've been able to do checks on the name of the cue point and trace text when a cue point is encountered. I've added a text object manually and I've given it the instance name "cuepoint_text". I thought i could then do something like this (pseudocode):

[Code]....

View 1 Replies

ActionScript 2.0 :: Drawing Objects And Scaling

Nov 5, 2006

I have a vector drawing object inside a parent movieclip.The drawing object is acting as a semi-transparent frame for and image on another layer. the problem is when I scale the parent movieclip the thickness of the drawing object is changing.I know that you can turn off scaling for lines and rectangles, but is there a way to do the equivalent for a vector drawing object?

View 2 Replies

AS3 :: Flash - Control Scaling Of Objects During Fullscreen?

Aug 12, 2011

I have flash ui built over the chromeless youtube player right now and I'm wondering if there is anyway to set certain sprites within the stage to not scale on fullscreen without having to do inverted scaling.

Edit: I use FlashDevelop as my IDE and building this purely in as3

View 1 Replies

ActionScript 3.0 :: External SWF Scaling To Objects Outside Of Stage?

Dec 24, 2009

I have an swf in which objects go outside the boundaries of the stage (but are properly masked). Whenever I externally load this swf into a container it scales down to fit in the objects located off stage. EX:I have tried removing the objects outside the boundaries and the stage does not shrink the image. The container is the same dimensions as the external swf.

Code:
function open_puzzle(openSWF:String)
{
//Load SWF
container = new MovieClip();

[code]....

View 1 Replies

Flash :: Scaling Drawing Objects Inside Movieclip?

Apr 12, 2011

So I've got problem with some drawing objects inside movieclip in my flash file... Setting width and height of flash to match browser's w&h got my movie clip to get correct values, but unfortunately drawing objects inside of it are not scaled as movieclip. Those object are just random stripes that got some tween on it acting as somekind of preloader... All graphics are pulled from ai file, so no AS was used to manipulate them, just pure tweening in design mode...So if my stage w & h are lets say 720 x 50, graphics inside movieclip are 1600 x 900 which match my monitor's resolution.

View 1 Replies

ActionScript 3.0 :: Outside Stage And Objects Proportional Scaling To 100% With Resizing Capabilities?

Feb 23, 2011

i am looking for class or something to proportional outside scaling of stage and all included objects (internal or external).I know SWFfit and LiquidStage. I have got many problems with integrating SFWfit to my code (resizing is not affected to included objects). LiquidStage seems to be ok but it`s not freeware . I am looking for free possibilities to do it.I am trying to connect that with GAIA framework.

View 3 Replies

Professional :: Compensate For Display Objects Jumping When Screen Scaling

Nov 28, 2011

I am building an application that is to run at 2 difference stage sizes. 960x640 and 1024x768 (for those paying attention, you may note that those are the high res settings for the iPhone and iPad2)The app was designed and build to run on a stage of 960x640 and when running at this size, there are no problems.When the app loads in the 1024x768 window, it "strechs" the stage to fill the window, but keeps the aspect ratio. Everything looks good and the application runs without any problems expect for one thing.Sometimes, display objects on the stage "jitter" when moving or animating. I have discovered that this is because the stage is "scaling" the x and y values, and is not pixel snapping the objects on the screen, even though the x and y values of the display object are indeed whole numbers.A prime example of this is I have 2 bitmapData images. bmData_s and bmData_h. bmData_s is 192x388 in size.bmData_h is created from a copy of bmData_s with a glow filter stroke on it, resulting in a image that is 198x394 (6 pixels bigger due to a 3 pixel stroke)I place it on the screen using the following code:[code]
 
Now, when the app runs on the iPhone which is a 960x640 screen size, or on the PC which is using a window of similiar size, the image doesn't appear to move at all the "stroke" appears and disappears exactly as it is suppose to However, when I run it in a window that is 1024x768, the _h image appears to "jump" one pixel up.I have encountered many other similiar things that only occure when the stage is scaled. There is a spot in the app where I am animating a bitmap by manipulating it's scrollrect x and width (have it's do a wipe in from right to left like a peice of paper unrolling on a table) and due to the scaling, the right edge of the image jumps left and right 1 pixel but on 960x640 screens, it looks perfect.Does anyone know how I can compensate for this effect so that this jumping doesn't occur when the stage is stretched to fit the window it's running in?

View 2 Replies

ActionScript 3.0 :: Scaling Bunch Of Point Objects Relative To Center Stage

Jan 8, 2012

All though I can scale down the size of my objects and can shift them to their correct positions when scaling. I cannot shift them to the correct relative positions, relative to the screen centre.

Code:
level=1; //starting scale level
public function scaleOut(level:int) // scale to a level 1-4{
for (var r = 0; r < Main.ballArray.length; ++r){
// scale radius
Main.ballArray[r].bRadius *= (oldLevel / level);
[Code] .....

View 8 Replies

ActionScript 3.0 :: Adding A Scaling Function

May 19, 2011

I have this actionscript program that explodes a bitmap as you run the cursor through it. What i want to be able to achieve is as the bitmap particles move to the bottom left of the screen, i want them to grow in size, and as they move to the top right i want them to get smaller and so look like a 3D effect. I am having no luck with assigning scale variables to the bitmap particles.

View 1 Replies

ActionScript 2.0 :: Scaling Navigation With Hide Function?

Jul 17, 2008

i took a look at many menus and treid to find the right one for me. I think I've found it: http:[url]...at the bottom, theres a menu that scales in relation to the mouse position. an when you roll over it comes up. the selected item is shown also when it's closed again. how to realize this. I only worked some times withe the laco tweening class but how can i build up that really cool menu?

View 4 Replies

ActionScript 2.0 :: Scaling MovieClips Using Loadmovie Function

Jan 20, 2005

I am loading some thumbnails (jpgs) into some movieclips using loadmovie. Easy enough. I want to scale the movieclip to increase the size of the thumbnail on rollover. The problem is when I use loadmovie and load the external JPG it sets the the JPGs default registration point to (0,0) and when I scale the thumbnail it scales from the top left corner. I would like it to scale from the center. This is the code I am using:

onClipEvent (load) {
var thumb = "thumbtest.jpg";
loadMovie(thumb, thumb_loader);
thumb_loader._yscale = 70;
thumb_loader._xscale = 70;
} on (rollOver) {
thumb_loader._yscale = 100;
thumb_loader._xscale = 100;
} on (rollOut) {
thumb_loader._yscale = 70;
thumb_loader._xscale = 70;
}

Is there anyway to change the registration point so it scales from the center and not the top left?

View 1 Replies

Actionscript 3 :: Centering Objects On Stage And Auto-Scaling With Stage Resize

Oct 19, 2011

I'm writing a web based flash app that's written entirely in AS3. I have objects on the screen as part of a GUI. I would like the user to be able to resize the window, or make it full screen. I would like everything to auto-scale with the resize, but also remain in the same relative position on the stage.

View 1 Replies

ActionScript 3.0 :: Flash MovieClip / Bitmap X,y, Width,height After Scaling For CopyPixels Function?

May 18, 2010

I have a 50x50 fixed rectangle in the center of the stage. I am using this rectangle as a "hit area" to copy pixels of a bitmap that is draged by the user to line up an area of the image he/she would like to crop.I have preview of the hit area displayed while the bm is being dragged which works well. However, once the bitmap is scaled using the slider component the preview area no longer reflects what is in the hit area.

Code below:

function mouseDownHandler(e:MouseEvent):void
{
// Contraint #8 - Define drag bounds[code].....

View 1 Replies

ActionScript 2.0 :: No Resize/scaling A Movie Clip On The Scaling Stage?

Mar 11, 2008

I've search through all the threads with "scaling" and "resizing" and can't find the solution.

Basically I have a GUI element on a gallery that I don't want to scale, while the rest of the page is free to resize/scale.

I think I need to add a listener of some sort to the stage, but I'm not sure how to do this.

View 2 Replies

ActionScript 3.0 :: Scaling Button Background Without Scaling Text?

Feb 23, 2009

I'm building some navigation that extends all the way from left to right across my SWF. When the window resizes, I'd like the nav buttons to get wider but not have the text on the buttons get wider.

The buttons themselves are rectangles with a vertical gradient and a stroke around the outside. I'm using 9-slice scaling so the stroke doesn't scale, but the middle (gradient) gets wider or narrower.What'd be great is to be able to select an object or layer and say "don't scale, even if the rest of this movie clip scales". Is there a way to do that, or will I have to do it via actionscript?

View 1 Replies

ActionScript 3.0 :: Scaling Movieclip Not Scaling But Repeating?

May 20, 2010

i have a diagonal movieclip that I am trying to scale along with the background video. The background video scales perfect, I am attaching the diagonal movieclip (br in the code as bottomright) with addChild
Instead of scaling with the window, it seems to repeat such as the image is displaying. this is the main section of the code that is doing the scaling
 
var br:mc_bottomright = new mc_bottomright();
addChild(br);
//proportional scale
if ((stage.stageWidth / stage.stageHeight)> (owidth/oheight))

[code]....

View 4 Replies

ActionScript 3.0 :: Scaling A Movieclip Without Scaling Its Contents

Apr 10, 2009

I am trying to achieve an effect of scaling a movie clip on click...very similar to [URL] When the user clicks on See, Hear, Play and Shop boxes, the boxes expand. I have created a box movieclip that has a bar on top. This bar is a movie clip inside the box movieclip. When i try to scale the main box movieclip, the internal bar movie clip scales as well. How to stop this?

View 2 Replies

ActionScript 2.0 :: Non Scaling In Scaling Part

Apr 18, 2004

really sorry to bring this one up again. I've managed to create quite good working gallery. What I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1

View 14 Replies

ActionScript 2.0 :: Non Scaling In Scaling Part?

Apr 18, 2004

What I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1

View 13 Replies

ActionScript 2.0 :: Same Function On Multiple Objects?

Apr 28, 2009

I am building a scrolling image bar, so I've created code that works perfect on one object. However, I need this code to apply to multiple objects at once so that they will move left and right and resize independently from each other (to give this sort of 3d revolving look). Other boxes will be to left and right of the current black box. Code is below as well as link.

Code:
function mousetracker(object){
boxstartx=object._x;
boxstartwidth=object._width;

[code]....

View 1 Replies

ActionScript 3.0 :: Function Works On Some Objects But Not Others?

Jun 10, 2011

And I don't know how to use the debugger in Actionscript. This is my code. It's in a class called GeoPiece and is being activated when a movieclip of instance GeoPiece is dragged over a movieclip of instance GeoPuzzle. lastObjOver is a place holder and is an instance of GeoPuzzle.

I want the mc from GeoPuzzle to highlight (goto frame "Over") when it is touched over and unhighlight (goto frame lock or out) when untouched. The script works perfectly - unless the GeoPuzzle piece was already locked. For some reason, it then sets itself to null and I can't figure out why.

ETA: The touchevent its responding to is a TOUCH_MOVE attached to the GeoPiece.

[Code]...

View 8 Replies

ActionScript 2.0 :: Using HitTest Function With Several Objects?

Apr 16, 2007

I want to make a hitTest functions that detects if a object is hitting any of several objects. Is there a way to do this? I thought I could do this with a array and for loop. But I think that will use to much CPU when this is loaded every frame. Is there any other way?

View 1 Replies

ActionScript 3.0 :: Dynamically Access Objects From With In A Function?

Dec 17, 2010

I'd like to be able to dynamically access objects from with in a function. In javascript I might say something like window[objectName] and assign it to a temp var or call a method from it. How can I do this in AS3?

Use case:I have a currentReport var that holds the name of the currently active report. When a new report is called I want to unload the current report then load the new one and finally set the currentReport var to the new value.

View 3 Replies

ActionScript 3.0 :: Assigning Same Function To Multiple Objects

Mar 8, 2011

I have 4 mc on my stage which i want to tween to a specific size (400x400) on MOUSE_OVER. I would like to assign each mc the same function to achieve this. I have half achieved this with the code below, however when I MOUSE_OVER one of the mc, the stage also resizes. I would like to avoid using XML if possible.

This is my code.
Select allmc1.addEventListener(MouseEvent.MOUSE_OVER, thumbOver);
mc1.addEventListener(MouseEvent.MOUSE_OUT, thumbOut);
mc2.addEventListener(MouseEvent.MOUSE_OVER, thumbOver);
mc2.addEventListener(MouseEvent.MOUSE_OUT, thumbOut);
mc3.addEventListener(MouseEvent.MOUSE_OVER, thumbOver);
mc3.addEventListener(MouseEvent.MOUSE_OUT, thumbOut);
[Code] .....

View 4 Replies

ActionScript 2.0 :: Function Not Recognizing Array Objects

Dec 7, 2006

I have made an array with three mc's I have on the stage. They run through a tween, but when the onMotionFinished function is called the array information is not parsed. Why ?

[Code]...

View 5 Replies

ActionScript 3.0 :: Using Objects When Accessing A Public Function?

May 4, 2009

I have (may be a simple solution needed) a problem with a class I've wrote. I've wrote a class named Navigation [URL] and in there I make all the buttons for the navigation. Next to that I have a Ipage class [URL] and in there I have all the pages stored. When I click on a button, the Navigation Class is called and tries to access the public function ChangePage in the Ipage class. In the ChangePage function I trace if the function is called and the trace comes back. So it works... BUT if I want to access another object it's not working. I can't even set sprites on visible = false.

View 7 Replies

ActionScript 3.0 :: Returning Multiple Objects From Function?

Jun 22, 2010

I have a function that returns an object full of data pulled when an XML file gets parsed. But I also need to use an array object with additional data. That array also gets built in the same function. Is there a way to return both? I am trying to get both the "Obj" and "SlideTime[idx]" data to use as globals.[code]

View 4 Replies

ActionScript 2.0 :: [fmx] Generic Function To Move Objects?

May 14, 2004

Alright so... I really don't know the best way to approach this. I had a LOT of code that I thought could be generalized into a function. I don't know how to explian it... here is the code:i attached it...I know it's a lot of code... I just... I don't know what to do with it anymore! When it was in a bunch of small functions, it worked (sort of) just seemed reallly messy and annoyed me.Oh btw its causing the hero to jsut go to 0,0 and then a hit symbol appears there, and then nothing happens, the hit doesnt even dissappear.

View 7 Replies







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