Flash :: Load Swf File At (X,Y) Position?
Feb 12, 2011
I have the listed code to load swf file to the stage using action script 3 and I want to modify it to place the swf in (X,Y) place.what I should add to the code to have the swf file placed in the specify position.
var swfLoader:Loader = new Loader();
stage.addChild(swfLoader);
ar gURL:URLRequest = new URLRequest("test.swf");
[code].....
View 1 Replies
Similar Posts:
May 18, 2010
I want to load that SWF file in the center of the screen.
I got "loader(the variable that loads external SWF file)" and I don't know how to assign the X and Y position of that loader in the center of the screen.
here is my code.....
ActionScript Code:
var myStage:Stage = this.stage;
myStage.scaleMode = StageScaleMode.NO_SCALE;
myStage.align = StageAlign.TOP_LEFT;
[Code]....
View 0 Replies
Apr 14, 2010
I'm trying to get a swf file to play in a main swf file. I can get it to play, but it always appears in the top left corner. I've tried several different methods to position it but every one of them either doesn't work or won't play the file.Here's what I'm using right now.
Actionscript Code:
stop();loadMovieNum("circles.swf", 1);var xset = 381;var yset = 179;
The swf plays just fine, but it won't take the coordinates.I also need to get it to stop when I go back and the command
Actionscript Code:
unloadMovieNum(circles.swf);
doesn't work.A tutor in my class showed me a method to place the swf into a box on the main stage without doing a lot of scripting, just putting in some file-name and size/position references, but he's not available right now to ask how he got that started.
View 5 Replies
Sep 12, 2009
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
View 15 Replies
Mar 17, 2012
I am making sure that my site displays properly on different screen resolutions. Everything is fine except the flash; it is located in the perfect position in 1024 wide resolution but not for wider screens. How can I get it to show in the same place?[code]
View 1 Replies
Oct 28, 2005
I want to have a footer at the bottom of my website with information about me, and a place to link to my friends. I want to set the position to the absolute bottom of the browser no matter how big the screen size is and have a background that repeats on the x axis to fit the page. I've been looking into Listeners to do this, but its new territory that i'm not 100% with. If someone could in the right direction, or show me an example that would be great!
View 1 Replies
Dec 12, 2009
I have battling for weeks over how to put a flash file on my frontpage. I want to know where to put the flass file.below is the script for the index.php of my page
[code]...
View 1 Replies
Nov 20, 2009
All I'm trying to do is load an external .swf file into a precise location on the stage of my existing Flash file. I've spent an hour and a half on this site search and found nothing. What do I add to my loadMovie command to place the file at specific x,y coordinates?
View 3 Replies
Dec 13, 2010
I would like to run a .swf file into an existing flash file, but the dimension size of the .swf file is too big. I am a beginner to flash and not sure of the steps to execute this. Would anyone be willing to walk me through the steps to import the code?
View 1 Replies
Dec 2, 2009
I'm trying to load an xml file from via http into my flash 8 file. Locally it works fine but when on the server it fails. I assume this has to do the flash security sandbox. How do I get around this. I own the servers so is there some sort of fix that I upload to allow the swf to receive the data?
View 1 Replies
Feb 26, 2007
I am trying to load a txt file into flash by putting the url in an xml file. The XML file is structured like this:
HTML Code:
<pic>
<image>pictures/AW0001.jpg</image>
<description>text/AW0001.txt</description>
</pic>
Now I load it into arrays in flash: image[0] and description[0]. The images is displayed the way I want to, the thing is I want to pass on the url that is in description[0] to a loadMovie or something like that. If i say desc_txt.text = description[0]; it will just show AW0001.txt in flash. I've also tried this with load and loadVars but I can't figure it out.
View 1 Replies
Oct 11, 2011
I have a an unobtrusive flash video looping in the background of a website, it is not essential to navigation - it is purely cosmetic.The flash video loops every 30 seconds.As this video is on all pages, it jumps back to the start when a new page is loaded.Is there an actionscript / javascript way to get it to remember the position it got to on the old page so it can start there on the new page?I do know that this can be accomplished by loading the flash movie in a frame as well as by having the subsequent pages load the contents in AJAX but I was hoping not to go down this route.I have seen other people ask the question and allude to the solution but they only posted that they got it to work without saying how.
View 1 Replies
Feb 3, 2012
I have simple image gallery, where images are placed one next to another and the mask is revealing only one of them. Now I want to tween position of the images, but when I do that the mask is "traveling" alongside with the images..
View 4 Replies
Nov 12, 2007
So I'm trying my hands on some full browser flash and after reading a couple of tuts I wrote this
Code:
#include "mc_tween2.as"
Stage.scaleMode = "noScale";
stageListener = new Object();[code]...
The trace's are because it didn't work like I thought it would.Etc the middle movieclip didn't center itself but rather positioned itself seemingly how it pleased so I traced its x position and the var stageXcenter position and like suspected it shows different values.
View 2 Replies
Mar 2, 2005
I'm trying to load a jpg file that is outside my flash SWF file and I've tried this code:loadMovieNum("1.jpg", 1);
View 5 Replies
Oct 8, 2011
I'm trying to load a swf file within another swf file and then load different swf files from buttons.This is the code I'm using, but I can't get any of the swf files to load.
var Xpos:Number = 0;
var Ypos:Number = 0;
var swf:MovieClip;[code]...........
View 0 Replies
Apr 28, 2009
I have a Flash movie with a movieclip inside called main (main has been dragged into the stage).In main at certain frame I have[code]...
Which loads teletipo.swf but in a x=0 and y=0 position. As I need it in a x=320 and y=165 position I've done[code]...
View 2 Replies
Mar 22, 2010
I have the following AS3 code and I can't seem to figure out how to either connect it to a movie clip on stage or position it using X & Y.
Code: Select allvar thisRequest:URLRequest = new URLRequest("preview.swf");
var thisLoader:Loader = new Loader();
thisLoader.load(thisRequest);
stage.addChild(thisLoader);
I thought I could just add the following but it doesn't do anything
Code: Select allLoader.x=47
Loader.y=7
View 2 Replies
Jun 25, 2009
I have a SWF loading in right now, however it loads to the stages x:0 and y:0. Here's my code:
function craDone(e:Event):void {
trace("LOAD");
TweenLite.to (portfolioBucket_mc, 0.5, {x:-831, alpha:0, ease:Back.easeIn});
addChild(l);
}
How do I tell it to load to a certain Y position. The x doesn't really matter because x:0 is good.
View 1 Replies
Nov 22, 2004
i created an empty movie clip called 'iranmc' and i want to load a swf file into 'iranmc'. So, on 'iranmc', i applied this script
onClipEvent (load) {
loadMovieNum("iran.swf", "iranmc");
}
However, problem is..when previewed,it doesn't play in iranmc, but it pops up an Internet Explorer browser and plays the video in there.
[URL]
View 2 Replies
Sep 26, 2009
I am trying to load an external swf at a specific x& y pos. from a button. This is the code I am using :
on (release) {gotoAndPlay(4);loadMovie("gallery.swf",1); xpos="7", ypos="119";
}
The movie loads fine if I remove xpos="7", ypos="119";How do I get it to load at that specific position?
View 3 Replies
Oct 6, 2009
I've honestly tried to look everywhere and have no clue how to do this. PLus i've tried for hours and still have no success! As the post thread title states, I have a swf file and i want to import anothe swf file into a blank movie clip. Can it be % wise? And can the image's width be set to say 100 and the height be automatic? Also, what about the x and y positioning? also, I do not need or want a progress bar.
View 4 Replies
Aug 10, 2010
I'm triyng to use the attachmovie command to load and position a movieclip. It doesn't show anything when playing movie. I'm using Flash MX.
_root.attachMovie("Symbol", "mcp", 0);
_root.mcp._x = 100;
_root.mcp._y = 100;
View 7 Replies
Dec 22, 2005
The flash e reading from a XML file and all the works (portfolio company) are divided in 4 parts (multimedia, design, 3d animation and pos-production). In the beginning of the site I have all that 4 options (4 buttons), but no matter is my choice this is always loading in first place de multimedia content. Why? E.g. If I click the button design, goes to the layout position of design but the content is the multimedia one. Each area as a different layout position. Here goes the ActionScript code that I'm using to populate the content:
[AS]
var boxes:Array = new Array();
//Defines space between movieClips thumbnails
var gridx:Number = 32;
var gridy:Number = 32;
var isto = this;
function resetBoxes():Void {
[Code] ......
View 3 Replies
Mar 15, 2007
I'm building an XML based gallery, and I used the kirupa tutorials for that (both of them).but I wanted a grid look for the thumbnails and I found this great post by ikim just for that:So I managed to suit the code to my gallery and everything is going good.but there is one problem:when I press the button that loads the XML (WITH THE THUMBS), they load like they supposed to:but when I press again on the button, they load like this:and stays like this.. Why is that?here is the complete code I use to load the images and thumbnails:
Code:
function loadXML(loaded) {
if (loaded) {
[code].....
View 2 Replies
Feb 22, 2011
I'm trying to load an image with the following code but sometimes the image wont end up in the right place.
[Code]...
View 1 Replies
Oct 17, 2006
Basically I have an XML file that contains the paths of a few mp3 files. I have a Play button that plays them and a Next button that plays the next song on the list. These buttons work fine. I actually even am able to obtain and manipulate the songs position using the mySong.position property in order to display the songs position in the form of minutes and seconds.My problem is that when you click Next to go to the next song, the mySong.position property does not reset back to zero, like it should. So if you are 12 seconds into a song and you click NEXT, the next song starts to play fine, but the display keeps counting up from 12 seconds. I realized the .position property is read-only, so I cannot change it. If this is the case, then how does it ever reset, what causes it to reset?
I am loading the songs via the loadSound() method. Which means my only code on the Next button (other than to update some other displays) is:Code:mySound.loadSound("file.mp3", true);I do not need to use mySound.stop() to stop the previous sound, or even mySound.start() to start the new sound playing, it starts automatically. I tried using those commands and got the exact same results, the position property still did not reset.Am i missing something? I sure hope its painfully obvious and I just overlooked something simple cuz im getting a headache
View 9 Replies
Nov 15, 2009
I'm working on this scroll from tweener [URL]. I've made a button that lets me reach the position I want on the scroll
Code:
this.bout.onRelease = function() {
this._parent.gotoPosition(4);
};
Now I'd like to load a movie when I move to this or that position. Maybe with if?
Code:
this.bout.onRelease = function() {
this._parent.gotoPosition(4);
if (_root.Position=4) {
loadMovieNum("test.swf", 1);
}};
but this doesn't work (it loads the movie alright but not because of the position).
View 1 Replies
Aug 6, 2010
How do I load ant set the position of a button, movie or graphic with actionscript only. Let's say I have an image that I want to display at a certain position with a certain size.
View 5 Replies
Apr 12, 2010
I've searched for ages on this and I can't see how it's done, I've got a set of images in my library and each one has been "exported for actionscript" with class names of stim1, stim2...stim12. Now, I have a bit of actionscript code that creates instances of these classes and will load the stimuli to the stage:
[CODE]...
View 1 Replies