Actionscript 2.0 :: Setting The X And Y Of A Swf Loaded Into A Mc?

Mar 17, 2009

I'm using this after my file has preloaded the swf: mcLoader.loadClip("sceneAll_1.swf", holder_mc);

what I want to do is set sceneAll_1.swf inside holder_mc to _x = -500 _y -250 to get it in the center of holder_mc than the default 0,0. I tried the usual technique with attachMovie but it didn't work for this.

View 2 Replies


Similar Posts:


Actionscript 3 :: Setting Size Of Loaded Swf?

Mar 18, 2010

I'm using Loader to load an external swf into my swf and adding that loaded swf to the stage using event.target.content.If i set the width and height of the loaded swf I actually resize the movieclip inside my loaded swf. What I wanna do is change the stage size of the loaded swf.

View 1 Replies

Actionscript 3 :: Setting The Instance Name Of A Loaded Swf?

Mar 4, 2011

I am running a for loop that loads swfs onto the stage. _componentData is an XMLList.

private function loadDevices():void
{
for each (var d:XML in _componentData.device)
{

[Code]....

Inside onDeviceLoadComplete i want to be able to set the instance name of the loaded swf. Can i send extra parameters to the event handler function?

View 2 Replies

ActionScript 3.0 :: Setting Parameters For A Loaded Swf

Jun 6, 2010

I am trying to load an external swf (which, come to find out, does not include the background color of the loaded swf) into a movieclip. It seems to be pretty easy. But the movieclip I am loading it into is smaller than the swf I am loading. Is there a way to specify size parameters? In other words, is there a way to scale the swf down so that it fits into the movieclip?

[Code]....

View 2 Replies

ActionScript 3.0 :: Setting External Loaded SWF Dimension?

May 20, 2010

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.,

[Code]...

View 11 Replies

Actionscript 3 :: Duplicate Loaded *.swf Without Setting A Class Name?

May 16, 2011

I have read this article about abstracting assets from actionscript:But it requires to set the Linkage Class name. How can I get the same result without setting the linkage class name?What I want to do is to cache a loaded asset, and use the cached version every time I request the same URL. A solution is to clone the loaded DisplayObject, but I think it's unnecessary since I only want a new copy.

View 1 Replies

ActionScript 2.0 :: Setting Variables In A Loaded Movie

May 22, 2003

Can anyone tell me how to set variables in a child movie from a parent movie?[code]but it doesn't work!txtChild is a variable in the child.swf movie. (A dynamic text field with instance name "ChildText")

View 1 Replies

ActionScript 3.0 :: Flash Setting Loaded Swf Dimension

May 16, 2010

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 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:
//variable list
var swfList:XMLList; //hold all the zone list from the xml
var totalZone:uint; //total of zone there is in the xml
var myURLLoader:URLLoader = new URLLoader();

[Code]....

View 7 Replies

ActionScript 3.0 :: Setting Tab Index On Button Loaded From Library?

Jan 26, 2009

Is there a way to set the tab index on a button loaded (addChild method) from the library? Granted, you can easily add the tab index to the same button if it's on the stage, but I see no way to add it to the button if it's just chilling in the library..

View 5 Replies

ActionScript 2.0 :: Setting Color From Loaded Variable In Textfile?

Jan 19, 2005

I have a text file that set's some color values I would like to use in my flash movie.bascially its a config file for movieclips rollovers(set's the colors)my textfile reads as follow

Code:
textOut=0x3F6075&baseOut=0xFFFFFF&outLineOut=0xE19C14
My Flash is as follows:

[code].....

View 2 Replies

ActionScript 3.0 :: Change The Current External Photo That Is Being Loaded To Load The Url From A Setting In The Same Xml File?

Mar 5, 2012

I have a gfx which I have created 6 shapes and converted them into simple buttons. I have urls sat inside an xml file. How can I get the buttons to use the urls set from within the xml file?Also how can I change the current external photo that is being loaded to load the url from a setting in the same xml file.

View 9 Replies

ActionScript 3.0 :: Loaded Swf Tell The Parent Loader To Unload Itself After The Loaded Swf Finishes Playing?

Sep 23, 2010

I have a shell swf that is loading a swf. How do you have the loaded swf tell the parent loader to unload itself after the loaded swf finishes playing?

View 4 Replies

Flash :: Loaded Font Doesn't Show Up When Parent Swf Creates TextField In Loaded Child Swf

Jun 14, 2011

Im working on a project that has a main swf file associated with the document class. It loads XML that provides the text content for the project, then it loads a swf that contains a font in its library, then it loads the first of several content module swfs. When the font swf has inited, I'm registering its library font with Font.registerFont(), and using it in a TextFormat object. After everything is done, I can add code to the document class to create a text field on the stage of the main swf and format it successfully with the TextFormat object, but when I try to do the same thing inside the loaded content module swf, the text doesn't show up there at all.

View 1 Replies

ActionScript 3.0 :: Loaded Font Doesn't Show Up / When Parent Swf Creates TextField In Loaded Child Swf

Jun 15, 2011

I'm working on a project that has a main swf file associated with the document class. It loads XML that provides the text content for the project, then it loads a swf that contains a font in its library, then it loads the first of several content module swfs. When the font swf has inited, I'm registering its library font with Font.registerFont(), and using it in a TextFormat object. After everything is done, I can add code to the document class to create a text field on the stage of the main swf and format it successfully with the TextFormat object, but when I try to do the same thing inside the loaded content module swf, the text doesn't show up there at all.

View 7 Replies

ActionScript 2.0 :: Preloading Flashvars - Ensure That All The Content Being Loaded Externally Is Loaded Before The Transition Plays?

Aug 30, 2005

I am in the process of building a site for an Architect... Jamie Fobert Architects (projects) I am useing transitions between the projects and am loading details/text and images externally through flashvars, php and a mySQL database. Within my transitions I have a a preloader on the forst 2 frames the code is as follows (taken from a Voetsjoeba tutorial):

[Code]....

This works pretty well if the content is within the .swf, but when it is loaded externally it doesnt preload it at all. Does anyone know how I can adapt/improve this preloader? or somehow ensure that all the content being loaded externally is loaded before the transition plays?

View 2 Replies

ActionScript 3.0 :: External XML Works Loaded Offline Not Loaded Online?

Apr 15, 2009

Code:
var slideNo:Number;
slideNo = 0;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);

[code]....

View 3 Replies

Actionscript 3.0 :: Loaded Sound Doesn't Stop / When A New One Is Loaded

May 8, 2009

I have three btns on stage, clicking on each one i want them to load an external mp3.The problem is the previous loaded sound doesn't stop when a new one is loaded so I have all sounds playing at the same time

View 3 Replies

ActionScript 3.0 :: Kill Button On A Loaded Swf That Removes Itself (loaded Swf)?

Jan 21, 2009

I have a swf loading another swf. The loaded swf has a button (mc) whose purpose is to unload (kill) itself (the swf).

View 3 Replies

ActionScript 3.0 :: Flash Loaded SWF Plays Before Fully Loaded?

Dec 16, 2010

very annoying bug.. I load a SWF and monitor the loading progress using

Code:
_swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onSwfLoaded);
_swfLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onSwfProgress);

[code].....

View 2 Replies

ActionScript 3.0 :: Loaded Stylsheet For Loaded Xml Not Recognized

Feb 8, 2010

The following code loads correctly the xml file but not the stylesheet. Do I have to change the ordrer of some chunks of this code? (ta = textarea movieclip; in the css I only have, for the test, spectacle>item>title {font-size:40;})

[Code]....

View 18 Replies

ActionScript 3.0 :: Remove The Previous Loaded .swf Before The Next One Is Loaded?

Feb 15, 2011

I'm loading an external .swf files for my site.

ActionScript Code:
function whattoload( eye:Number){
var ld:Loader = new Loader()[code]............

This works perfect for loading the said .swf and displaying it on my flash program. However I have a next button which When clicked I want it to increment so that It picks a new swift from the array.

ActionScript Code:
var swiftI:Number = 0;
var maxI:Number = 3;[code]...........

This also works well for my desired effects. However I need to remove the previous loaded .swf before the next one is loaded. How do I do this?When I try to use removeChild(ld); It doesn't work.

View 9 Replies

ActionScript 2.0 :: Externally Loaded Swf Does Not Stay Loaded?

Feb 16, 2006

I am loading an externally loaded swf that uses a mask to transition in. When the user clicks a different button I am doing a gotoAndPlay that goes to a mask that "unloads" the content (it doesnt actually unload the info is just outside of the mask area. As soon As I jump to that section the movie is no longer loaded and just shows the container clip that I had created for it. The Container Clip is never changed and is the same throughout the whole process. The only thing that changes is the mask animation.I have tried both loadClip and loadMovie but no luck on keeping the clip loaded.

EDIT - I have narrowed it down. When I change the mask movieclip the movie unloads for some reason. Is there a way I can keep it loaded?

View 2 Replies

ActionScript 2.0 :: Keep Loaded Movieclip Over Other Loaded Movieclips?

Jul 5, 2007

I'm loading an external swf that is a button to close other loaded movies. I want it to stay above all the other movies at all times so that the user has a way to close them and go back to the main stage. There are buttons on the stage that load external movies and the close button movie loads automatically. All of the movies load in fine but once I load in a movie from a dynamically created movieclip button on the stage, it covers up the close button movie.The following code is where I dynamically load movies from the dynamic movieclip buttons and then after that is where I load in the external swf for the close button.

//Dynamically assign external movies to load from
//the dynamic buttons
for (j=1; j<holderArray.length; j++) {

[code]...

View 1 Replies

ActionScript 3.0 :: Loaded Swfs Not Working When Loaded Through Xml?

Jun 10, 2010

I have a "photo" gallery that loads numerous SWFs through xml, one by one on click. All works fine. All my SWF work fine stand alone. But when I load them into the player, many swf dont work properly.in example, I have textinput textfields in many of the swfs, which work fine on their own but not when loaded into the player. Then I have a word search game that works fine when alone, not when in player. I can see there is something as my mouse cursor changes into the "button finger", but nothing visual.

All drag and drop assigments work fine etc. I have no idea whats up. I have receantly switched to as3 and in as2 there was _lockroot declaration that solved similar problems, but now in as3 (where it supposedly should be automatic) it doesnt work. As it seems that it cannot recognise it own stage value, or selection_focus when loadedinside another swf through xml.Using cs4, as3.

View 4 Replies

ActionScript 3.0 :: Aligning An Image That Was Loaded By A Loaded Swf

Jul 28, 2011

I have my main swf (swf1), that loads another swf(swf2). At some point, swf2 loads an external image. What's the best way for swf1 to align the loaded image from swf2??

View 2 Replies

IDE :: Setting Up The Packages?

Apr 11, 2009

I want to set them up with packages but tried before and failed.At the moment, I've made a folder,

C:/flash/mbl

In there, I have all my classes that I want to reuse. what do I do next? I'm using Flash CS3, would also be useful to know how to do the same in Flex Builder 3.

View 6 Replies

ActionScript 3.0 :: Preload Multiple - Load And Display The Percentage Loaded Of Total Bytes And Bytes Loaded Of All The Files

Jul 13, 2009

What I'm trying to do is get the total bytes of all the files I want to load and display the percentage loaded of total bytes and bytes loaded of all the files. Its a slideshow so i want all the files loaded and then it will play. I've looked at bulk-loader but it wasn't what I needed. The image are loaded from an xml file. I think I would need to create an Array and then find out the total bytes but I don't know how to reference the loader in the progress.

[Code]....

View 2 Replies

ActionScript 2.0 :: SetMask() For .swf Loaded In Mc - (loaded)?

Nov 29, 2006

I've read about 15 threads on this topic, my apologies for another, but am still stuck. I have loaded a .swf into a mc, placed it, scaled it and it works fine. Now I need to mask it with setMask(). I read that the .swf must be fully loaded to mask it and am having trouble with this part. I tried 'onLoaded' and a couple of other ways with no success. Here's my code:

[Code]...

View 6 Replies

ActionScript 3.0 :: Going To A Loaded Frame In A Loaded Swf

Mar 16, 2009

I've been successful to load a external swf using the loader. Lesson_mc is a movieclip I have on stage that I am loading the external swf. I have some masking that is there, that is why the movieclip. myLoader is a Load object. I can find the swf loaded using the debugger and see the currentLabel and Frame but when I try to get the information it sends a DisplayObject error. I have a Menu in the Main Window that controld the navigation. Getting to the frame on the first click works but trying to go to a frame within the same sef does not. Any thoughts?

myRequest = new URLRequest("overview09.swf");
myLoader = new Loader();
myLoader.load(myRequest);

[Code].....

View 11 Replies

ActionScript 2.0 :: Setting An Opacity To An Flv?

Jul 11, 2009

not sure if this is technically "actionscript"but i didn't know wher eelse to post iti need to place an flv on top of a background image, and i want to set the flv to have an opacity of like 30%-

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved