ActionScript 3.0 :: Papervision - Images Doesn't Display At Proper Sizes
Dec 22, 2009
I found a papervision class on the net. When I instantiate it and load xml into the contructor parameters of the class it works fine except that the flipping images doesn't display properly- its masks the middle and cuts off the sides. But when I load images from library into the contructor parameters it displays a different size, almost the size of the original, but not quite -weird.
[Code]...
View 0 Replies
Similar Posts:
Dec 16, 2010
I have one folder called "Gallery" consists of the following 4 Files/Folder. It works fine on my Virtual Machine. I copied the "Gallery" folder to my PC and tried. but it doesn't show any images on my PC. It doesn't throw any error either. It throws an error if the location of images is not correct. What could be the problem? I tried a lot but fail to understand.
Folder "Gallery" contains the following:
1) Images (Folder)
2) Gallery.swf
3) GalleryMain.as
4) Gallery.xml
View 2 Replies
Jan 31, 2009
I recently created a visual quiz app which asks a question and then gives 4 image answers.
The problem that I'm having is that the images don't shrink the image into their quadrants, but rather, zooms in on the top left corner of the image.
Can anyone tell me what I have to change in the following code to make the images display at a set width (so that they fit in the quadrants proportionally).
Here is what the SWF looks like now. As you can see the images become distorted because they are being stretched. What should happen is that the images be displayed at a fixed width and variable height. [URL]
Code:
var dataXML:XML = new XML();
var arrSounds:Array = new Array();
var arrData:Array = new Array();
var rndData:Array = new Array();
[Code]....
View 3 Replies
May 28, 2010
i have created a dialpad kind of application which has a bach button at top which takes u to previous screen, a display text box and buttons. all of them are movieclips.
Now the issue is when i press down button, focus is expected to go from prevBtn->display->oneBtn, but the focus goes like prevBtn->oneBtn. Other thing is that if i press up key after going on the screen, the focus goes like callBtn->zeroBtn->eightBtn->fiveBtn->twoBtn->display->prevBtn.
one more observation is if i take the display down after all the buttons, the behavior is normal and focus goes to display.
View 1 Replies
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
Jul 4, 2011
I'm new to papervision 3d and I created two display objects in basic view.
Here's a part of the code :
...
_stick = new Cube(materials, 50, 5, 500);
_ball = new Sphere(new ColorMaterial(0xfc0000), 80);
In the onRenderTick method, I tried to check whether two objects are hitted
[Code]...
However, stick.hitTestObject always returns false even if the stick really hits the ball as I see in the flash.
View 1 Replies
Aug 2, 2010
I'm loading some pictures using the flickr api. As you know it's possible to load the images in different sizes when adding a param in the url.
My problem: When the size does not exist and I get a "image not availible" picture from flickr instead of my requested image, I want to trace out some kind of feedback so I can load the image in a different size that actually exists.
How can I do this?
I tried to accomplish this with the contentLoaderInfo and .url property in the COMPLETE event, but I just get the requested image url and not the actual loaded image url.
View 1 Replies
Jun 15, 2011
So I'm creating an AS3 doc with a lot of jpegs and pngs. I'm really new to flash and the last swf I made was 5.6mb, way too big from what I read. But I haven't been able to figure out how to avoid this...I can't decrease the images sizes anymore for quality's sake. Can I store the images externally so that only the ones needed for that scene load at that time?
View 9 Replies
Dec 9, 2009
I've built a flash site in which i want to resize a movie to the stage. I do it by keeping the proportion, thus i only resize the width and then i resize the height acordingly to the new width but keeping the proportion. The problem is that my film still looks "pixeled". I found a website on which the stage resizes dinamically with the movie and the background images without either of them losing quality. Till now i knew that resizing images or videos in flash at authoring or runtime produces pixeled results.
This is the website: [URL:]. Can someone tell me how do they do it without losing quality? just make the browser windowed and resize the margins to see the effect.
View 2 Replies
Dec 11, 2008
I've gone through the tutorial on the site, and ive been able to modify the cube code, so it allows me to "flip" a box from one side to the other. It all functions correctly, except that the text that is on one of the faces renders really blurry.Is there something about the camera focus i'm not understanding?
Code: Select allpackage {
import flash.media.*;
import flash.events.*;
[code].....
View 3 Replies
Mar 24, 2011
I am trying to build a portfolio application similar to the used by Whitevoid. I am using Flex 4 and Papervision3D 2. I have everything working except for one issue. When I try to load an external SWF as a material on one of the planes, I can see any native Flex or Flash components in their correct positions, but the papervision objects are not being rendered properly. It looks like the viewport is not being set in the nested swf. I have posted my code for loading the swf below.
private function loadMovie(path:String=""):void
{
loader = new Loader();
request = new URLRequest(path);
[Code]....
Below I have posted two pictures. The first is a shot of the application running by itself. The second is the application as a MovieMaterial on a Plane. You can see how the button created as a spark object in the mxml stays in the correct position, but papervision sphere (which is rotating) is in the wrong location.
View 1 Replies
Jan 22, 2009
I have a flash file sitting inside of a web page in our company domain. There is another server (used to store images) that is part of the domain but is not running any web services (for security reasons). A folder on the images server is however shared in such a way that any site on the web server can display images from the images server as long as the user is plugged into the domain. For example, both I and my boss can pull up a web site on the web server and see all the information, but only he can see the images
because I have Vista Basic and no domain support. This is done via "<img src='\serverNamedirectory.'/>"
That's ok, but on this particular instance I don't want to display the image on the webpage, I want it in a SWF on the page. However the SWF can't seem to load the images even though the page it's sitting in could. I've tried tons of variations of URLRequests and Loaders, most resulting in security errors. Since most of the online discussions about these errors revolve around cross-domain access, I can't seem to find any tech support for our specific situation.
View 2 Replies
Mar 31, 2011
Is there a way using flash you can display images but each one selected randomly from say an array of different images?
View 4 Replies
Sep 28, 2011
I upgraded from an old version to CS5.5 and AS 3.0 and none of my AS works. I can't even do something simple, like display text in a dynamic box. What I'm trying to do:[code]This displays NOTHING. A trace shows the current frame, but I can't get it to display in the box.I also notice that the trace never shows frame 1. I have gotoAndPlay(1); on my last frame.
View 9 Replies
Jul 16, 2009
I have done this quite a bit and have had no problem. Then all of a sudden one of my .swf file is not displaying on the index page.
I have a simple image transition .swf file and have added it to the index page:
<script type="text/javascript">AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve rsion=9,0,28,0','width','588','height','300','title','image_slide','sr c','/flash
[Code]....
I actually have another .swf file that also isn't working but I figured I would tackle one first.
View 8 Replies
Oct 1, 2009
I have an .as file with the following code in:
[Code]....
The Menu.swf unloads, and the test.swf also loads, I know this because the test.swf plays a sound an I can hear the sounds but the test.swf doesn't display on the screen... I get no errors.
View 1 Replies
Aug 22, 2011
I created a scrollpane in as3 and set its source to another object, which contains several rows of icons. The scrollbar in the scrollpane is getting the right length, which means the object was loaded as expected, but the contant is not showing correctly.
I created a Thumbnail class for this file to load and make each individual thumbnail. Here is my code, the red text is where each thumbnail is loaded:
import fl.containers.UILoader;import caurina.transitions.*;import flash.events.Event;import fl.containers.ScrollPane;
var urlRequest:URLRequest = new URLRequest("pics.xml");var urlLoader:URLLoader =
[Code].....
View 7 Replies
Jun 2, 2010
I have this class set up as my document class and I pasted it below.It traces out loaded 100% and that everything is loaded so the functions are triggering.
The problem comes when I upload it anywhere, it won't display any of the loading information or the loading bar, it'll just stay a white screen till the title screen pops up.
ActionScript Code:
package
{
import flash.display.*;
[Code].....
View 4 Replies
May 14, 2010
so apparently with the new update in IE8, it starts up with NO add-ons. Since I cannot program a code to turn on add-ons in a browser, I need to show a message when this occurs. Much like an image has alternative text in the event the image doesn't load...how can I add a message that states:
You are using Internet Explorer 8+ and need to turn on your add-ins like FLASH Player. This site is optimized for Mozilla Firefox or Google Chrome.
View 1 Replies
Oct 4, 2011
I'm trying to write a 3D game in ActionScript 3.0 using the Stage3D API. I've copied the playerglobal.swc in my frameworks/libs/player/11.0 directory, and modified the frameworks/flex-config.xml file by changing the target-player to 11.0.0 and the swf-version to 13.When I compile my ActionScript 3.0 files using mxmlc I set the options -target-player=11.0.0 and -static-link-runtime-shared-libraries=true. Now, I don't get an error at compile time when importing com.adobe.utils.AGALMiniAssembler or flash.display.Stage3D so I assume that there's no problem with that.
I run the compiled SWF file in Opera, and I'm using the latest Flash Player (version 11.0.1.152) which was publicly released today (cheers ;D). There's seems to be no problem with the player because I can play Zombie Tycoon. However, when I play my SWF file the Stage3D doesn't display; but all the other display objects attached to the stage do display.I believe that there's either some problem with my configuration or my code, but I can't pinpoint it. The code I'm using was simply copied from Labs @ Jam3. I believe that there was some problem with the viewport, so I simply replacedI have been searching for a solution all over the web, but I can't seem to locate it.
View 1 Replies
Aug 31, 2010
Im attempting to create a class which cleans all the mess it's done by itself. If i make some instances of this class in an external class, i want the base class remove itself, or in other words, if i linkage this class to any movieclip, i want to remove this movieclip not in the file I created it in, but rather would like it to automatically remove itself if i want it to. I don't know if it's even possible. A simple removeChild(this) isnt working.
View 3 Replies
Feb 17, 2006
Discovered yesterday that the preloader I've been working with (loads external SWFs into levels based on this tutorial) which works fine on a local preview and IE, is having some major issues in Firefox. I thought this was a little bizarre at first but have since discovered that it could be something to do with 4 bytes that IE ignores but Firefox has a problem with. I've been searching for a solution that I can use pretty much constantly since then, and I'm stumped. Here's a link if you want to see it in (in)action: link
In IE, everything is good. Page loads, preloader starts at the bottom of the progress bar and progress is acurate. In Firefox, page loads, external swfs DO preload but progress bar doesn't display. When swfs are 100% loaded, the full progress bar appears with my "click to enter" link. But people will definitely have left the page thinking nothing is happening by then.
[Code]...
View 2 Replies
Feb 1, 2009
I recently created a visual quiz app which asks a question and then gives 4 image answers.The problem that I'm having is that the images don't shrink the image into their quadrants, but rather, zooms in on the top left corner of the image.Can anyone tell me what I have to change in the following code to make the images display at a set width (so that they fit in the quadrants proportionally).Here is what the SWF looks like now. As you can see the images become distorted because they are being stretched. What should happen is that the images be displayed at a fixed width and variable height.
Code:
var dataXML:XML = new XML();
var arrSounds:Array = new Array();
[code].....
View 1 Replies
Mar 26, 2011
I made a swf file and embed it in my website.It displays properly in the mozilla firefox but not in my google chrome.Is this problem related to the browser or the way that I embeded my swf file.
View 1 Replies
Mar 16, 2012
So i think i have fully coded my calculator but it still doesn't seem to be performing the calculations correctly. I can't see where i am going wrong. If i perform a calculation let's say 6*2 it outputs NaN then i straight away + by let's say 5 it outputs NaN again. And it doesn't make the operators display only once, so if i click on '+' twice it will display twice in the display when it is meant to only display once and in one of my functions i cleared the display field so that it would replace the number's when the next operation is performed but it doesn't seem to be doing that. I have been going over the code several times but i can't seem to identify where the problem is coming from.
[Code]...
View 22 Replies
Jan 6, 2010
I have a TextField that has been populated with html text, which includes images using the <img> tag. I don't want to display these images to the user, however when I apply a StyleSheet with the img tag having the display property set to none, it doesn't appear to work.
View 1 Replies
Feb 11, 2010
I am using the Flex Builder 3 debugger almost every day and it's starting to be a real pain that the 'Variables' tab in the 'Flex Debugging' view doesn't show local variables, only 'this' is displayed.
Also I can not add Watch Expressions for local variables.
Am I forgetting something here or is the debugger just very limited?
View 3 Replies
Dec 8, 2009
This one is tough to diagnose. I built an animated jigsaw app that pulls in a dynamic .swf that can be viewed here: [URL] It works perfect in Chrome. Works in FF 3.5.5 until I start reloading. Doesn't even work in IE7. Could be a embed problem in the HTML. Could be something I did in flash. [I can get more into the methods I used] [for those that only see it working or don't see it working] There should be an orange animation of a morphing shape cutout into jigsaw shaped pieces and a start button. When it doesn't load, the animation, nor start button display. And the menu is slightly messed up.
View 2 Replies
May 24, 2011
I have developed a twitter API in Flash Professional CS4. It works fine when it plays in the flash player locally. But when I publish the file and play it in a browser it asks for settings to be modified. Since those were the local settings I have modified them and played the file in browser and it worked fine. when I upload the file to server and embed the swf into a html file and try to play it from the server nothing happens. The API doesn't load the feeds from twitter site. The display is always blank.Possible solutions I have tried.....
added security code in flash
1st method:flash.system.Security.allowDomain("*");
flash.system.Security.loadPolicyFile("");
2nd method:added the crossdomain.xml policy file from twitter website.
3rd method:followed any of the above methods along with changing the "Access network only" in publish settings.
View 1 Replies
Nov 14, 2004
I tried the digital clock tutorial on Kirupa, but it doesn't display the correct time, even the example on the tutorial page is wrong. For example if my cpu clock says 3:00 PM, Saturday, November 13, 2004 the tutorial clock says 15:00 AM, Saturday, December 13, 2004. Could someone show me how to fix this,
View 1 Replies