Actionscript 3 :: Prevent A Loader From Changing Apps Position And Size?
Nov 15, 2010
I load an SWF using a simple loader but it changes the main applications x/y position and size.Which loader do I use to load an swf that will maintain the position size of my app?
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.INIT, function handleInit(event:Event):void{
var UIDesigner:UIComponent = new UIComponent();
[code]......
View 3 Replies
Similar Posts:
Oct 6, 2009
I have a button symbol on my stage that I want to change size depending on where the mouse is on stage. ie: the y position of the mouse will make the x and y scale change (the symbol should get smaller as the mouse moves up the page and larger as it moves down - as if it is getting closer or further away).
View 1 Replies
Mar 17, 2011
Is there a way I can exclude apps from the "Open With menu?
Finder mistakenly lists all standalone Flash apps I've built as possible choices when opening a SWF.
View 1 Replies
Aug 29, 2010
I have created a simple SWF-loader in ActionScript 3.0. It loads an SWF from a server and then plays it. While downloading, it displays the "loading" screen.Its main defect is that it can load only one Flash application - the one which it is compiled for. Let's say it's named test1.swf.Is there any way to make the loader support more than one Flash app (for example test2.swf and test3.swf)? I mean by passing external parameters to it and not by creating another loader. Is using Javascript the only way to do it? I don't want my loader to require the Javascript support.
View 1 Replies
Aug 14, 2009
Recommend for the stage size (in px of course) for a swf, if I were going to create a Facebook app (using the FBML's canvas)?
View 3 Replies
Nov 19, 2009
I added a Menu_mc on my stage. Initially, this should be at the center of the stage and when I click on it, it will tween on the upper left corner of the browser. However, when I resize the browser, the Menu_mc goes back to the center of the screen.
I have tried separating a different actionscript file where it is specifically for initialization of the object and another one for resizing. And then when I call it on my main AS file it goes like this:
Code:
// Add the symbols to stage
var Menu_mc = new Menu_MC();
addChild(Menu_mc);
[code]...
But it seems futile.
View 6 Replies
Nov 8, 2010
I've run into a new problem, this time with positioning. I've narrowed down the line that's causing it--"block.y = block.y + block.height;" in SetOfBlocks.shiftDown. When I take it out, no problem. But with it in, instead of just dropping each block down by a block height, the affected blocks sometimes move up, and also often move about randomly within the X axis--although their new positions always keep them lined up with the 'grid', which is to say, within multiples of the block height and widths.
[Code]...
View 3 Replies
Jan 17, 2009
I am preloading a .swf file using the Loader class (myLoader) and a ProgressBar (pb). When the progress is complete i would like to press the button (es_btn) to enter the site(make the externatl .swf visible). Currently, what it does is, the external file is loading and starts playing in the background before I press the "enter site" button, before I call addChild(myLoader);. How do I stop the external file from autoplay -ing and make it play only when I press the "enter site" button?
here is the code:
PHP Code:
stop();
import fl.controls.ProgressBar;
import fl.controls.ProgressBarMode;
es_btn.visible = false;
[Code]....
View 1 Replies
Mar 1, 2010
I have following problem:
Code:
title_txt = new TextInput( );
title_txt.setSize( 100, 20 );
[code]....
View 4 Replies
Feb 10, 2012
Due to screen density of iPhone, image assets are developed larger. So, when specifying the icons and images to Flex components takes this form.
<s:ViewNavigator id="tab1" label="Tab1 width="100%" height="100%" firstView="views.Tab1">
<s:icon>
<s:MultiDPIBitmapSource source160dpi="@Embed('assets/tabIcon.png')"/>
</s:icon>
</s:ViewNavigator>
Flex of course renders this correctly and adjusts the size to what it should be. However, when I load images myself, they appear blown up as they would appear double in size. This is how I use it when overriding the tab bar.
[Code]...
View 1 Replies
Apr 6, 2011
I have three images and I want change the images size based on the scene size (default size is 1024x768). After each image has completely loaded I call bindableUtils.setter to set width/height when scene size changes but I don't know how to make a pointer or something like that. I'm using a public var img, but it only works with the last complete image.
Here is my code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
[code].......
View 2 Replies
Mar 30, 2010
I'm working on a slideshow where I'm calling in photos from an xml file. How do I tell AS to resize the stage according to photo dimensions? Would I need to list the dimensions in the xml file? If so, how would I pull that into the fla file with AS?
View 6 Replies
Feb 11, 2010
I have a MovieClip that is just a 100x100 circle with a stroke but no fill. When I change this to 200x200 using as3 the stroke size doubles. How can I increase the diameter of the circle without changing the stroke size?
View 7 Replies
Jul 18, 2011
I have a project which has a background which is a swf that is scalable with the browser.However I do not want anything in the parent SWF to scale and want to position it in the top left of the browser regardless of size. how to do this in AS3 Currently it seems that the parent SWF is scaling everything as a result of a child swf on the stage.
View 7 Replies
Mar 24, 2009
I've seen a site a while back that as you went through it it would change the url without reloading the page/swf. I want to know how do you build a Flash banner and buttons and as they the movie plays or they click on buttons have it change the url and the html text but leave the swf playing? Can this be achieved without too much hassle or will it require advanced coding?
View 2 Replies
Jun 27, 2010
I have a flex editable datagrid mx:DataGrid and when I press TAB key, it changes to another cell when I am editing a cell.
I don't want it to change to another cell when I press TAB. How can I stop this behavior?
View 1 Replies
Mar 16, 2011
I have a tree in Flex Application and one of the items is selected.
When a user clicks another item, I would like to make a check and possibly prevent the change of selection.
I tried catching click event and calling stopPropagation, and also itemClick with stopPropogation but both do not prevent selectedItem from changing.[code]...
View 2 Replies
Sep 29, 2011
I have two SWFs: a Loader SWF, and a Loaded SWF. I need to add the Loaded SWF to the display hierarchy, but I don't want to give it free access to the stage. It may, for instance, attempt to change the scaleMode, and I don't want that to happen. What are some good methods for restricting loaded content's access to the stage? I may, for instance, want to allow it to access the stageWidth and stageHeight, but not the scaleMode or align.
Additional Constraints. I can't change anything about the Loaded SWF. Both SWFs are in the local-with-file-system sandbox. These SWFs are both Flash Player 10, ActionScript 3, made in Flash Professional. Not AIR, not Flex. I'd love to be able to implement a proxy class or a getter to somehow intercept calls to the stage, but I don't believe there is any way to.
I don't believe, for example, that you can subclass the Stage class and use that subclass in place of the normal Stage object referenced by the stage property in all MovieClips. The stage property is read-only, so it can't be cross-scripted by the Loader to point to something different.
View 2 Replies
Jul 30, 2009
I have a movieclip that I want to rollover to begin animation. I don't want the "finger" pointer so people aren't inclined to click it. i want to keep the default cursor.
How can this be achieved?
View 2 Replies
Apr 12, 2012
I seem to be having problems with rectangles moving from their assigned positions when all I want to do is decrease their width.A game I'm working on simulates an explosive with a fuse. The fuse decreases in size as a clock counts down to 0.I think the problem has to do with local coordinates vs. global coords, but I'm not sure how to rectify the problem. Here is some code:
//fuse
_fuse = new Sprite();
_fuse.graphics.beginFill(0x000000);[code]........
Nowhere in my code does the x position of the fuse change.Aside from this one issue, the rect functions exactly how I want it to.
View 1 Replies
Apr 18, 2010
if it's possible to prevent a textfield from auto-scrolling on highlight when it's height is smaller than it's autoSize height. selectable = false is not an option, and the smaller height is a requirement, can't make it proper height and then mask it.
View 4 Replies
Apr 12, 2010
I am using a flash swf from the website[url]...where it allows me to upload images via an xml file to the flash movie. However the flash movie is changing the mouse cursor to hand-cursor when passing the mouse on it, and also it is allowing users to click on the movie, while I wanted to leave the mouse cursor to remain as an arrow, and prevent users from clicking on it, I tried the following code, whereby I used another flash movie to call the dewslider swf, but in IE it is not working, although in firefox it is ok..[code]...
View 4 Replies
Oct 4, 2006
back with another question
I have a row of thumbnails with a simple rollover effect.( I load a swf for each thumbnail preview)
with the following code from the kirupa tuto.
on (rollOver) {
loadMovie ("mesimages/im1.swf", "dropzone");
}
it works fine BUT : my swfs are appearing in a crazy position even if I created an mc as indicated in the tuto..
Do have I to settle my self the position of my previews in the code ?
Thanks thanks thanks
View 2 Replies
Nov 29, 2008
By default settings, when given a bad URL is given (either 404, server not found, etc.), flash.display.Loader stops trying to load an image and contentLoaderInfo throws IOErrorEvent.IO_ERROR after approx. 20 seconds. Is it possible to change the socket timeout or read timeout so that it throws an exception in, say, 5
seconds?
View 1 Replies
Aug 12, 2010
i've been having issues with my embedded image so i found this really cool script that does what I need. problem is it only loads one script and i don't know a lot about Classes and i'm not sure how to convert it so it loads multiple scripts?
[Code]....
View 2 Replies
Oct 4, 2006
Here is the thing : on rollover on thumbnails ( buttons)its preview has to appear on the top of it.My corrected code works fine exepted that my swf don't load in a good way..they load at 60 kms from the thumbnail...and in a distorted size!I don't get it.I turn the thing in all ways but it is getting worth...What is my mistake?Code for each button ( thumb)
on (rollOver) {
_root.caption._visible = 1;
_root.caption.image_mc.loadMovie("images.swf");
[code].....
View 1 Replies
Feb 20, 2010
I created a simple transparent app for Adobe AIR in Flash. It has not chrome, so now I need to make it draggable. How could this be done?
View 1 Replies
Sep 18, 2009
In AS3 / CS4 I'm trying to programmatically create a bunch of rectangular objects, let's call them 'cards', that will contain an image and a colored background and eventually some other elements like text. I want to create alot of these cards and move them around inside of a larger panel (also a Sprite) of sorts. I can successfully create colored rectangles in my cards and place the cards where I want in the panel, but whenever I try to add an image to a card, I can't seem to position the image inside the card's coordinate space, it ends up being placed inside the larger panel's coordinate space instead, even though I'm adding the image/loader as a child of the card. I thought maybe it had something to do with having to wait until the image loading was complete, so I added the listener as a test but that didn't work. Here's the code:
[Code]...
View 1 Replies
Dec 26, 2011
since my main swf file has accettable size is it wirth a loader?
here is what I see with a loader on
Frame # Frame BytesTotal Bytes Scene------- ---------- ----------- ----- 154751 54751 Loader (AS 3.0 Classes Export Frame)2 35699 90450 Scene 1
View 1 Replies
Mar 23, 2010
i'm attempting to position a textfield to the bottom left of an image that is added to the display list from the Loader() class. i don't know how to access the width/height information of the image.
var dragSprite:Sprite = new Sprite();
this.addChild(dragSprite);
var imageLoader:Loader = new Loader();
imageLoader.load(new URLRequest("picture.jpg"));
[code]....
within the displayPic function, i could assign the evt.target.content.height and evt.target.content.width to variables that i could use to position the text field?
View 1 Replies