ActionScript 3.0 :: FP10 Perspective And Masking
Jul 29, 2009
So I am learning AS3 slowly.First project in it.I am having some troubles. (I know I need to learn to code class based, working on it, familiarizing myself with some of the basics before I change my style completely).I have set up my stage to have four instances of a movieclip named silverScreen0 - silverScreen3.Each of those has a content layer in it which I am dynamically loading an identical swf.I then have a mask I put over each clip so that it only show a specific area.
-First issue comes up that hte fourth mask seems to move/distort on load, as you'll see in the swf.
-Second issue comes up when the loaded swf comes in ... the mask seems to shift if the swf has a motion animation, click the second white circle above chapter1 to see this.
-Third issue comes up when I move the content layer inside of the silverScreen# clip ... the mask seems to move as well. No example of this but if you download the source files you can see it.[code]
View 1 Replies
Similar Posts:
Jul 17, 2009
Anybody notice any issues when resizing windows that are embedded using the new "gpu" wmode? Like a noticeable lag and some scaling issues for about a second before it fixes itself? Its not a big problem but it is a lot less smooth than previously...Edit: I threw together a quick demo so you can have a look. I'm working on a site and it really has to use the new gpu wmode since it improves the performance quite significantly.
View 2 Replies
Jun 25, 2009
Flash files I embed have faulty plugin detection - it does not recognize FP10 as an upgrade from FP9. This is in the knowledgebase, but it does not suggest a solution. "Some websites will ask you to install or update Flash when you already have the Flash 10 plugin installed. This is not a problem with your Mozilla browser or your Flash plugin, but with certain websites that misidentify Flash 10 as Flash 1 due to a faulty detection scheme. Contact the website and ask them to correct the problem or, on Windows, you can try the site in Internet Explorer, since the Flash ActiveX detection may work even though the plugin detection does not."
View 4 Replies
Nov 1, 2009
I'm messing around a bit with the new fp10 drawing api and drawtriangles. i've created a little something i think is kinda of cool, though i can't seem to get the uv-mapping working as i want. since i'm just moving points in z/y direction i don't really have and z-value to calculate the uv with. though the bitmap texture gets distorted. i've tried to calculate a "fake" z-value with x and y, but since my maths skills are terrible i can't really get it to work.
i've thrown together a little sample here below (code obviously needs cleaning up, but i'm gonna worry about that when i've got it working as i want to). in this example z-val will always be 1 and no perspective fixing will be done. so i really need your to figure out how i can take my calculated x and y point and turn them into a "fake" z-point and use that to avoid distortion in the map/texture.
[Code].....
View 1 Replies
Nov 1, 2009
i'm messing around a bit with the new fp10 drawing api and drawtriangles. i've created a little something i think is kinda of cool, though i can't seem to get the uv-mapping working as i want. since i'm just moving points in z/y direction i don't really have and z-value to calculate the uv with. though the bitmap texture gets distorted. i've tried to calculate a "fake" z-value with x and y, but since my maths skills are terrible i can't really get it to work.
i've thrown together a little sample here below (code obviously needs cleaning up, but i'm gonna worry about that when i've got it working as i want to). in this example z-val will always be 1 and no perspective fixing will be done. how i can take my calculated x and y point and turn them into a "fake" z-point and use that to avoid distortion in the map/texture.
[Code]...
View 5 Replies
Sep 20, 2010
I have been using the flashvars from swfobject for a long time to pass info into my swf for specific outcomes. I am just starting to publish everything using flash player 10 and wasnt able to get my variable to be seen by the swf. maybe i was doing something incorrectly with this new file? but i then took code from my older files and they didnt work either... then i published down to flashplayer 9 and it worked perfectly... ???
i am using swfobject 2.2 and my code for passing the flashvar is
// Flash Code:
Code:
var r:int = root.loaderInfo.parameters.varName == null ? 0 : root.loaderInfo.parameters.varName;
[code]....
View 1 Replies
Oct 7, 2011
I can just create a new project, target Flash Player 10.2 and paste this into frame code:
[Code]...
The event never fires off. I look in the reference for StageVideo and I see it's available in Flash Player 10.2. What's up with this? edit: If I target AIR for iOS, this event does fire (I have AIR3.0 overlayed).
View 3 Replies
May 27, 2010
I'm trying to debug an old AS2 project that uses an old version of MDM Zinc and its driving me mad not having a decent debugger.
Especially as I need to debug on several platforms,e.g by Zinc exe works fine in XP but not in Vista.I tried downloading the latest XRay stuff from GoogleCode but it doesn't seem to work as my player is the lastest FP10 I suspect that this could be the result of FP10 sandbox security changes to local connection.
PS. I did look at DeMonster debugger but I can only find an AS3 version
View 3 Replies
Dec 9, 2009
I have run into a small graphics glitch in Flash.It seems to be both in FP9 - Exported via Flash CS3, and FP10 Exported via the Flex 4 beta SDK.The glitch /problem manifests itself as embedded text at a small point size "blooming" under certian conditions.It basically looks like the antialiasing becomes fatter at some level of text brightness. I have made a small test case below. (Obviously) You will need to embed the Arial font in your compiled SWF for the below code to work.[code]You can see an example of the problem by rolling over the graphical element here: url..It's not really an option to change to AntiAliasType.NORMAL as it makes the text way less readable at this point size.
View 1 Replies
Jan 29, 2009
how to convert bytearray of samples from Sound.extract to bytearray of mp3 file? I want to save editied mp3 to user's local disk.
View 0 Replies
Jan 13, 2010
i'm having problems tweening 3d objects using the built in fp10 3d engine. i have a timeline tween that i want to create a tweenlite tween from and then duplicate it for other objects. i am using the bezierthrough plugin as well to tween along a path. i have used the motion editor in the ide to copy all values that change along the path into a tweenlite instance as follows:
[Code]....
View 1 Replies
Oct 6, 2010
We create Flash games which are embedded within third party wrapper SWF files, which are exported for FP9.If I create an FP10 SWF which uses classes specific to FP10 (Pixel Bender classes such as Shader, ShaderData), when I run them in an FP9 wrapper within an FP10 player, an error is thrown VerifyError: Error #1014: Class flash.display::Shader could not be found.I thought this may be something to do with ApplicationDomains - maybe the child SWF was forced into using the global classes from the parent SWF, but assigning a new ApplicationDomain to the child didn't make any difference. Is there any way to get access to these FP10 classes - or does the version of the outermost wrapper SWF always determine what's available to child SWFs? It seems odd that the FP10 classes are not available in a FP10 player.
View 2 Replies
Mar 25, 2011
i have code:
Code:
private function load_image(evt:MouseEvent):void {
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaderComplete)
loader.load(new URLRequest("images.jpg"));
}
[code]...
working good, if i use only one images, but i need load images with local machine and display in flash, how can modify my code?
View 1 Replies
May 19, 2009
When I target flash player 10 in flex builder 3, the index.html template along with some other files (history.js, etc) are removed and no wrapper html page is built.Anyone else experiencing this? I have an ant build script as well, but I was trying to run the built in fb builder.
View 4 Replies
Apr 7, 2011
As in subj. Is it possible to make a video player which will run on FP9 and when FP10 is detected use some of its features as Stage video API or pixel bender shaders?.I've tried to access FP10 classes via getDefinitionByName but it doesn't work
View 2 Replies
Mar 31, 2012
I'm making a simple drag and drop game, but the strangest thing is happening on IE with FP10: the sub-assets of the draggables shift their positions when the parent is dragged quickly.The mouseChildren of the draggables is set to false, and the cacheAsBitmap is set to true. And it functions beautifully on Safari and Chrome. This is client work, so I can't really post a link here without their permission.
View 1 Replies
Mar 8, 2009
navigation center left, the grey boxes.click it and the content area will flip 180.how is it possible to do such FX?is there any general methods to use perspective in flash?
- with bitmaps
- with MCs
View 2 Replies
Jun 1, 2011
I would like to have a MovieClip that has a bit of depth. I can't use rotationX, rotationY or rotationZ because I have to use Flash CS3. The first image is what I have now, a flat movieclip. The second is what I should have.
I already tried using a matrix, but that didn't work. I posed a question about it, and there somebody sugested that I should use a 3D engine to get the result I want.
[Code]...
View 1 Replies
Oct 6, 2003
is there any way of creating the same perspective motion in AS as i've done in the below attachment using tweens?
View 4 Replies
Jul 16, 2007
I've tried in vein to understand displacement maps; I can find nothing on "The Internet" that teaches me what I need to learn. Now I'm looking to all you smart-types to solve my problem for me! All I want to is take an image (a rectangle) and make it look like it's going off into the distance (trapezoid-like), getting smaller from left to right. This doesn't even need to animate, I just need two states: straight-on and trapezoid-like -- think iTunes album art browser minus the bells & whistles. I know this can be accomplished with a displacement map, but I know not how to get 'er done.
View 7 Replies
Feb 6, 2010
how to control the perspective of a image/movieclip with the position of the mouse. I've been looking everywhere but so far no succes.
The effect i'm looking for is exactly like the one on this site:[URL]
View 5 Replies
Oct 12, 2010
Code:[URL].. they have a flash banner where a lot of logos are shown in 3d perspective and keep rotating.its a popular effect on net anybody know where can I find the code online. m no coder. i belive its an xml driven pic gallery widget.
View 2 Replies
Dec 10, 2010
I want to tween a movieclip so it changes from squared to trapezoid. Just imagine a text paragraph distorted like the scrolling text in the beginning of Star Wars movies.It would be easy to make the shape and then distort it, but what I want is to tween from undistorted to distorted and it seems that normal tweening only allows skewing, rotation and resizing.Since a picture is worth a thousand words, this is what I want to do (the dog is not the movieclip I want to distort, just an example):This is easy in Photoshop (CTRL+T and then pick a corner with SHIFT+CTRL+ALT) and also in edition time in Flash, but I want the distortion to happen in execution time so it looks like the movieclip is standing up and then falls back.
View 2 Replies
May 17, 2011
I would like to draw a grid in perspective and draw a circle in in te left bottom corner.But I am not able to get it right.[code]...
View 1 Replies
May 10, 2010
When I put some clips on different part of the scene, and modfify their rotationY I would like see them with the local global point of view. Unfortunately, if one clip on the left of scene and another on the right, the 2 clips won't have the same view. How to do to see them similar?
View 7 Replies
Jul 30, 2011
Okay, there are a few things I want to know how to draw in one-point perspective: a toilet, a shower, a bath; basically I want to know how to draw everything in a bathroom.
View 0 Replies
Oct 30, 2005
its possible to put a image or movieclip in perspective via actionscript? Im want to build some 3D stuff and would like to incorperate images in it, but i havent got a clue on how to do this.
View 2 Replies
Jan 31, 2009
I've noticed there is something in AS3 that allows "shearing or skewing" of an object, but I was wondering if it's possible to do the equivalent of what Photoshop refers to as "transform>>perspective"
View 3 Replies
Jun 24, 2004
This project I am working on needs a top view on a snowstorm. I was thinking I can use code similar to a starfield coming at you, and then modifying it so that the objects start from around you and fall towards the center. (opposite direction). However, when I change the code the way I believe I need to, I get the right thing to happen but not to regenerate. It happens only once, and once they reach the center, they don't recreate around the edges of the screen. Here is the code I am using from a simple starfield tutorial:
_global.ppDist = 700;
_global.speed = 50;
//update function to handle perspective projection and scaling
[code]....
View 3 Replies
Aug 7, 2009
Is there such a thing as taking a screen, copying it to bitmapData and then angling it as if in 3D perspective... in AS2 ? I know AS3 in CS4 can do this, but I am stuck working in AS2. I've used Bitmapdata before, but only for 2D manipulations.
View 2 Replies