Say that, I have a basic image galery using xml file as image sources. After a time I replace images in xml file by a different image group with higher dimensions. At this point I want my swf file to adopt new height and width values. How can this be done ?I tried but failed In Flash help files, it says as read-only properties for Stage.height and Stage.width, but because I'm not an AS guru I thought that there should be a way t
The issue I'm having is that I have a main "wrapper" 100x100 (but it could be any size) - it's just there to hold and display whatever content, swf, gif, etc we may want to throw into it. As long as the loaded content doesn't have 3D animation like rotationY going on, it displays fine. But when it does, the 3D "anchor" properties (like projectionCenter) of the loaded swf inherit those of the main timeline (i.e. 100x100 (main) vs 728x90 (loaded)). If I change the dimension of the main "wrapper" in Flash IDE to match what's coming in - the 3D behaves fine, but I won't know what the dimensions of the content will be until it comes, so I need a way (if there is one) to dynamically alter the main "wrapper" or root display object through AS. Stuff like "this.width = loader.width" or "stage.width = loader.width" or "root.width = loader.width" etc doesn't work. Flex has the hBox and vBox
I don't know why! I never click the "export for actionscript" and the symbol names in my library are given "Onename" "SomeName", rather than "MovieClip" ...
My swf file opens automatically in my web browser when I double click it. It takes up the entire browser window space. Is there any way I can make it play at the proper dimensions without using html? I want to send this file to other people and I don't want them to have to view it in a web page but when it scales up it doesn't look so good. What can I do?
I am having some kind of issue with the display list? I have a function that goes through various frames of my timeline and then traces all the symbols on the stage.. ActionScript Code: for (var pm = 0; pm < this.numChildren; pm++) { var child = this.getChildAt(pm); trace(child.name) }
What I am noticing is that it will return everything until it runs into a symbol that does not exist on every frame.. as soon as it does encounter a symbol that does not exist on all frames of the main time line it spits out - TypeError: Error #1009: Cannot access a property or method of a null object reference. at 3_Migration_Standard_Nav_v2_fla::MainTimeline/pMovie()
Opened CS5.5 > Chose "Air For Android" which gave me a stage dimension of 480x800 default. I then created my app.
I am using a Droid Bionic and testing my app on it. It will not go to full screen, regardless of how I am holding the Droid. When publishing, I clicked "Full Screen" and Portrait, Landscape, Auto Orientation, etc. I tried all of the publishing options, yet still there is white screen on the eastern and southern side of the screen.
I have a picture on the main screen, and it fits perfectly within the 480x800 dimmensions when playing in Flash. After publishing to an APK file and testing it on Droid, I have that white space as mentioned, as if the stage size grew larger than the picture / app. I also shrank the stage(480x800) dimensions to to (340x600) , but still the same amount of white space. When I move the picture to the right a bit, and publish, it shows the white space on the left hand side of the stage. This can only mean that when I publish, the stage size grows but everything on the stage stays the same.
if i create and swf let say for desktop application and it is full action script without any object in the stage ( movie clip and etcetera is created and placed by action script 3) not even in the library panel ( i mean no manual object that i added to library oanel and linking it to my code by using the linkage ) what would become the width and height of this application?? let just say for example i make a slideshow swf which load it's image by reading a xml file (the url of the image file is in the xml file).i ask this because when i test my swf (stage.width) it return 0.and when i loaded it into another swf i cannot set the loaded swf dimension (i did use event.complete).
Im doing a project of a site in flash/as3.... now im trying to put it on web to see some results...
But when i go to publish... i dont know what options are the best... Like... i put percent 100% in width and height.... and it works fine in height but in width it shows me more then my stage width :/
what should i do...? i can show u what i mean ....[URL] this is the url where im doing some tests....
i'm now working on a project using action script 3 now what i'm trying to make is a Main SWF that load whatever other swf into it the tricky thing is that i used 1 xml document read the external swf source nad it's setting(such as it's x,y position and it's width and height) and i'm having problem setting it's width and height (i mean the loaded swf width and height)[code]
I have problems with the load of an image from a ByteArray, I can't get the image size, witch I need to position the image. Strange thing is that the image is showed to me correctly.
My code is something like this:
ActionScript Code: var data:ByteArray; //Here are saved the raw image data (JPG, PNG, etc) ... var img:Loader = new Loader(); img.loadBytes(data);
I have some 2D arrays. I would like to add a 3rd dimension. How do I add this 3rd dimension?
I don't know if I'm stating this correctly but what I would like to do is have an array that holds a bunch of [thumb.jpg, number, bigpic.jpg]. This way all the values entries are related. So if I wanted to get any of these values I could use the same key value.
I don't know if this makes sense. Plus, do I get the values of the 3rd dimension by using [i][2] in a for-loop? I know that [i][0] gets the 1st dimension and [i][1] gets the 2nd dimension.
So far I've created a canvas size of 1920x1440 (in flash) and before publishing, set my html dimension width and height to 100%.After publishing my project and uploading to a server, it looks something like this:Although it appears fine, the images are being cropped. If you try re-scaling the browser window, the swf doesn't scale.Out of curiosity I tried setting my html scale setting to exact fitas you can see, the swf scales to the size of the browser and re-scales if you resize the browser widow, but its all out of proportion.
I've run into a problem where a significantly large image will not load.I put a ProgressEvent listener on the loader and it shows that the file load completes, but the COMPLETE event never fires.This particular image is a png at 6940 x 4568. At first I assumed it was the file size but I tried a 5k with the same dimensions and this had the same problem.I also read that 2880 is the magic number I should try to stay below, but I tried 2881 x 2881 and it loaded just fine.
I'm sorry, but I wanna change the dimension of the built-in flash player that we get from installing the FMS.. can i do that?I need it to fit my web in the center, and on the left & right side there's bar for ads..anyway, I embed my web with the videoPlayer.swf I got from this folder:"C:Program FilesAdobeFlash Media Server 3.5samplesvideoPlayerswfs"then I checked the source folder and i realized that it's builed with Flex, and I'm not proficient in Flex.After that I tried to decompile the .swf file using sothink swf decompiler and recompile it again, but it gives me error message in Adobe Flash CS3 Professional.
i'll be straight to point,well i'm now working on a project using action script 3 now what i'm trying to make is a Main SWF that load whatever other swf into it the tricky thing is that i used 1 xml document read the external swf source and it's setting(such as it's x,y position and it's width and height) and i'm having problem setting the loaded swf width and height btw it's an desktop application and not a website application.,
I used Loader to load an external swf file, and try to display it in a fixed area, like a fixed dimention sprite object. And I don't know the exact size of the swf file, I just want it to fit the fixed area.
code:
var loader:Loader = new Loader(); loader.load(new URLRequest("some path")); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
I recently decided I was going to feel my way through Flash and learn it on my own, so here I am. But I need some assistance. I am modifying this tutorial for my needs, but unfortunately the dimensions of the pictures I am using aren't the same as the ones here. I thought the code would still function the same way, but alas.. no. Anyway, is there any way to 'universalize' the code or could someone explain which attributes I would have to alter to fit different image dimensions?
Recently i made flash animation in 500x300px, now i need to re-create the same animation in 100x65px, plz tel me how can i decrease the dimension of same animation widout re-creating it in new dimension. is there any codes or tools or plugins?
I've been hurting my brain for 2 days now trying to figure out the following:I have an array called Objects.This array contains 2 fields: dbid (database ID) and children.The children field contains an array with more objects (and so on and so on).
ActionScript Code: Simple example of Object:Array [0]
I have a row of images and need to resize the height of the image to a specific value and then scale the width of the image to maintain the dimensions - so I end up with a row of images all the same height but different widths. I've only ever scaled an image by a scale factor.