ActionScript 3.0 :: Positioning External Flv Files On Stage?

May 21, 2009

i am loading 3 flv files so that the first file plays once and the other two loop afterwards. Now i am interested is it possible to position the flv files on the stage to certain coordinates when they start to play (so for example that the first flv plays as default in the centre, the second flv file plays a little bit right and the third plays a little bit left). This is the code i'm using:

[Code]......

View 9 Replies


Similar Posts:


ActionScript 3.0 :: Use Stage Variables And Function from External loaded Swf Files?

Jul 13, 2010

How can use stage variables and function  from external  loaded swf files.& Can Possible  without using parent.parent fromat, can possible root.format if  possible how .

View 1 Replies

ActionScript 3.0 :: Use Stage Variables And Function from External  Loaded Swf Files?

Jul 13, 2010

How can use stage variables and function from external loaded swf files.& Can Possible without using parent.parent fromat, can possible root.format

View 1 Replies

Flash :: Reference Stage Object In External Actionscript Files?

Oct 14, 2011

I have an external AS3 class file which is loaded up on the first frame of the Flash movie.

How can I reference the stage object in the AS3 file without having to pass it as a parameter?I mean it seems to me like the stage object is in the global realm - or am I incorrect with this assumption?

View 1 Replies

ActionScript 2.0 :: Positioning Mcs On The Stage?

Aug 24, 2011

I'm trying to make some mcs be displayed from alpha 0 to 100, one by one in the stage and in random positions. I've managed to make appear it randomly from alpha 0 to 100 with this code:

Code:
mcs = new Array("mc0", "mc1", "mc2", "mc3", "mc4", "mc5");
mc0._visible = mc1._visible = mc2._visible = mc3._visible =mc4._visible =mc5._visible = false;[code]....

The strange thing is that only some mcs are positioned randomly and others stay in the same position.

View 3 Replies

ActionScript 2.0 :: Positioning Mcs On Stage

Aug 24, 2011

I'm trying to make some mcs appear to alpha 0 to 100, one at one in the stage and in random positions. I've managed to make appear it randomly from alpha 0 to 100 with this code:[code]The strange thing is that only some mcs are positioned randomly and others stay in the same position, but not always the same.

View 1 Replies

Actionscript 3.0 :: Determining Which Mc Is On Stage And Positioning It?

May 19, 2011

I have a series of movieclips acting as buttons that load different flashvars video srcs onto the stage.When the swf loads --- the first button is added to the stage after a 20 sec Timer completes.As you click through each button, the one just CLICKED is removed and a new button is added in its place.All the buttons are set to dynamically be centered on the stage. However, the function that is positioning them is called BEFORE the first button is on stage, throwing the error (Error #2007: Parameter child must be non-null.)here is the code inside of the windowResize method which positions the buttons.

Code: Select allprivate function onWindowResize(e:Event):void
{
//position hidden buttons[code].....

Even though I've set up a boolean var and set it to true after the first button has been added to the stage -- the method still tries to find the first button and gives me a error saying that it must be non-null.Basically I want to make sure that it doesn't try and position the first button before it has been added to the stage. I'm not sure if encapsulating this method inside of another Timer is a good idea.

View 1 Replies

ActionScript 2.0 :: Y Positioning - Keep Browser At Top Of The Stage

Jul 29, 2008

I have a bottom bar on a site that has he following code: nav_menu.menu_bars._y = 0; But I want it to be at the top of the stage. Sorry for such a noob question, but how do it? I've tried nav_menu.menu_bars._y = -600; but when the browser is resized it obviously moves down the page. Is there a bit of code to keep it at top of the stage?

View 1 Replies

ActionScript 3.0 :: Positioning After Stage Resize?

Aug 25, 2011

coordinates in flash, particularly after resizing the flash player window.I have an mc on stage and draw an ellipse inside that mc. The movie is of size 800 x 600.

Code:
var ellipse:Shape = new Shape();
ellipse.graphics.beginFill(0x6CCDF4, 0.5);
ellipse.graphics.lineStyle(4,0x186B87);

[code]....

If I check the coordinates of that ellipse from it's transform property, I see that the top left is at 400, 300.

Code:
ellipse.transform.pixelBounds.topLeft.x
ellipse.transform.pixelBounds.topLeft.y

This seems fine to me as this position is in relation to the stage, yes? If I convert this to a position local to the container I get values ~0,0.

Code:
var stagePoint:Point = new Point(ellipse.transform.pixelBounds.topLeft.x, ellipse.transform.pixelBounds.topLeft.y);
var localPoint:Point = join.canvas.globalToLocal(stagePoint);

When the flash player window is resized, the coordinates change entirely. Instead of being at 400,300 the transform property indicates that it is at 640, 510. I assume this is because the viewport has changed, but the stageWidth and width properties of the stage do not change.

View 12 Replies

ActionScript 3.0 :: Positioning XML Slideshow Images On Stage

Oct 12, 2009

I have a xml slideshow that is working fine. The problem I am having is all of the images load in at x=0 and y=0. I would like to have the images load at a specific x coodinate and y coordinate on the stage. I have been looking at other code examples to see how to fit this in to mine but I keep breaking it.

Here is my code: 

[Code]....

View 5 Replies

ActionScript 2.0 :: Positioning Buttons Always At The Bottom Of Stage?

Apr 1, 2007

I have a group of 6 buttons which on my stage sit in the center and are 20 pixels from the bottom, I am trying to create a bit of a liquid layout, and the browser is going to be able to resized by the user. I want always for the buttons to stay at the bottom in the center of the browser 20 pixels from the bottom no matter wether it is resized too

View 7 Replies

ActionScript 2.0 :: Buttons And Transitions - Load In External Swf Files Into An Empty Movie Clip On The Main Stage Called Container

Jan 11, 2004

I have a problem with buttons and transitions and it is similar to a problem I had a couple of days ago that I posted and that was sorted out. I have two buttons onstage (they're inside a movie clip) inside the movie, on the button one I have the following

[Code]....

I have similar code on button two and this does indeed make the buttons move into place as required. My problem is this, I need to load in external swf files into an empty movie clip on the main stage called container. These External SWF files have transitions and this is where my problem is. If I place a normal button on the stage it works but not if the button is inside a movie clip and has actions applied as above. The code next is what I have believe should also be placed on the button to make swf transition one load in.

[Code]....

View 4 Replies

Actionscript 3 :: Positioning Nested Movieclips Based On Stage?

Aug 12, 2010

I have multiple nested movieclip in its own different movieclip, and i would like to arrange them accordingly. My idea was to use the localToGlobal function. I can get the position of the MC on stage, but how do I use the function and place the MC based on stage?

cAPos = new Point(objectA.y);
newcAPos = objectA.localToGlobal(cAPos);
cBPos = new Point(objectB.y);
newcBPos = objectB.localToGlobal(cBPos);
objectB.y=objectA.y+objectA.height <-- based on stage

View 1 Replies

ActionScript 3.0 :: Giving Object Random Stage Positioning?

Jul 20, 2010

so i am giving these objects random x and y coordinates on the stage, but i need each object to be spaced apart from each other (lets say 20px) how can i achieve this. I have got the following code:

ActionScript Code:
for(var i:int=0;i<=bubbleNumber;i++){
var bubble:Bubble = new Bubble();

[code].....

View 2 Replies

ActionScript 2.0 :: Positioning Big Image To Absolute Middle Of Stage?

Aug 29, 2006

im trying to achieve a Full Browser Flash and i want my bgimage to remain in the centre of the stage whilst other objects move round it depending on mouse movements but how would i go about centering the bgimage through AS?

View 2 Replies

ActionScript 3.0 :: Positioning External Load Movies

Mar 24, 2011

I have made a flash player that loads in two external flash movies this is all now workign fine with a little extra help, however the problem i have now is that when the movies load in they both show in different places, for example the external movie called new_products loads perfectly in places, for example one of the movies loads into place where i want it to but the second loads in to position starting at the top left.When i add x, y for the loader it affects them both, but they still originate from differnt start positions.[code] URL...

View 5 Replies

ActionScript 2.0 :: {MX} Positioning A Loaded External Movie

May 30, 2003

I have a flash movie that has an internal movie clip, when the various buttons are pressed I want to load a movie in place of this original so I have put this script one of the buttons:

[Code]...

However, the new movie is not positioned in the correct place ie - instead of it being in the same position as the original MC the top left corner is positioned in the middle of the stage.

View 1 Replies

ActionScript 3.0 :: Protect Files (make External Then Unopenable Such As .lib Files)

Jul 19, 2011

I'm working on making a pretty chunky game engine for games I plan on making, but I was wondering if you make external AS files unopenable such as .lib files, so that if I give it to a friend that wants to use it, he/she cannot change my code. Is there anyway to make external AS files unopenable? Also, obfuscation isn't an option for this problem as it only stops the people who hack the finished product, not stopping people who have access to the actual files.

View 2 Replies

ActionScript 2.0 :: External Text Files Wont Load Into External Swf File?

May 28, 2007

Structure: There is 1 main file that loads external SWF files depending on what is clicked on.One of the external SWF files loads its text from external text files. This works fine when viewing the SWF applet on its own. But when viewing as a whole site, the text doesnt appear. Very annoying.I made that particular SWF on my mums computer running Flash MX 2004The flash file itself uses the Scrollbar component from MX.Could someone tell me why the text doesnt load in this scenario? It runs fine on its own, just not as an external SWF.

View 4 Replies

Flash :: Loading / Unloading External SWF Using Buttons From Loaded External Files

Feb 23, 2011

I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:

[Code]....

View 1 Replies

ActionScript 3.0 :: Loading External Swf That Loads Other External Files?

Apr 24, 2010

Lets say I have subgallery.swf file that loads jpeg images. And I have gallery.swf file that loads subgallery.swf.The jpeg images and both swf files are in the same folder.When I test gallery.swf it loads subgallery.swf but subgallery.swf doesn't load images. When testing subgallery.swf alone, it loads jpeg files.Is there any limitation or setting preventing external swfs loading other content?

View 2 Replies

ActionScript 1/2 :: External Class Files Not Updating When "Delete ASO Files" Executed?

May 3, 2009

I've got an external .as file in the same folder as my flash file. In the process of writing the code, whenever I make a change and then test the movie, the flash movie is obviously still looking at the OLD information. I tried using the "Delete ASO Files" on the menu, to no avail.I can' find these ASO files anywhere on mycomputer.Aha! I tried something else. I quit flash,restarted and ran the same script with no changes. It returned the data correctly, but then gave me this unpleasant message:256 levels of recursion were exceeded in one action list.This is probably an infinite loop.Further execution of actions has been disabled in this movie.There are no loops of any kind in the code, which is below.

//This is the Person.as file:
class Person { public var HomName:String = "unknown"; public var HomEmail:String = "unknown"; public var HomPhone:String = "unknown"; public var HomSaveFreq:Number = 0;

[code]......

View 27 Replies

ActionScript 2.0 :: External MC Loaded On Stage - Can Press Buttons That Are On The Stage Through It

Sep 26, 2008

An external swf is loaded using this code...

[Code]...

The problem is that even though this external movie covers the whole stage, My mouse can still "see" buttons that are on the stage, and I can click them. I don't want to be able to click the buttons through my external movie.

View 2 Replies

IDE :: Loading External Swf That Loads Other External Files?

Apr 24, 2010

I have subgallery.swf file that loads jpeg images. And I have gallery.swf file that loads subgallery.swf.The jpeg images and both swf files are in the same folder.When I test gallery.swf it loads subgallery.swf but subgallery.swf doesn't load images. When testing subgallery.swf alone, it loads jpeg files.Is there any security limitation or setting preventing external swfs loading other content?

View 3 Replies

ActionScript 3.0 :: Text Is Loaded From External Text Files And Styled With An External Css File?

Jun 7, 2009

I've managed to piece together a flash website with my limited as3 knowledge. The text is loaded from external text files and styled with an external css file.

It's working perfectly in Firefox and Explorer but it only works SOME of the time in Safari (on my mac).It's hit and miss. Sometimes it styles the text sometimes it doesn't.

[Code]...

View 1 Replies

Professional :: Can't View Jpg N Png Files Imported To Stage

Sep 21, 2010

Why can I see only the above images in the library after importing them to the stage?

View 15 Replies

ActionScript 3.0 :: Buttons Don't Work In Frames/swf Files On Stage?

Mar 20, 2012

I'm making a website and I imported an swf file to library and brought that into the stage.If I click into the swf file and I try to make buttons that change a page it doesn't work, but if I don't double click on the swf file on the stage and do it in the main time line then it works.

View 7 Replies

Paths To External Files (jpg's) From A Swf

Jul 31, 2009

I'm loading external jpgs into a swf movie. This works fine from the swf. The problem is when I embed it in the html. File Structure that I want:

movie.html
FolderB>
ImageFolder>image.jpg
movie.swf  (path to the images is ImageFolder/image.jpg

When I run the movie.swf from within the directory, it runs fine. However, when I embed it in the movie.html it doesn't run. Question: Are paths from the swf relative to the PAGE that the swf is contained in vs the swf itself? Hope that makes sense.

View 5 Replies

Use Fonts In External SWF Files?

Nov 16, 2010

What I would like to do is a flex app, that uses fonts that are available in external swf.[code]...

View 1 Replies

ActionScript 3.0 :: Swf Using External Files?

Oct 11, 2009

Is it possible for flash to use external files? use images managed in a folder in a photo preview animation.

View 1 Replies







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