ActionScript 2.0 :: Load Movie Into Position?

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


Similar Posts:


Load Movie In X And Y Position?

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

ActionScript 2.0 :: Load Movie When Move To Specific Position

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

ActionScript 2.0 :: Load And Set Position Of A Button / Movie Or Graphic

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

ActionScript 1/2 :: Load Movie Vs. Container Clip Position With Tooltips

Sep 22, 2009

I have a .swf file with tool tips and dynamic colors on movie clips that I want to load into another movie.
 
s_1800.onRollOver = function (){myTooltip.content = "Office #: 1800"+newline+"SF: 0";var colorful = new Color ("_root.s_1800");colorful.setRGB(0xb5282c);myTooltip.showTooltip();}s_1800.onRollOut = function (){myTooltip.hideTooltip();}

[Code]....

View 1 Replies

ActionScript 2.0 :: Load Movie At Correct Size And Altering Position?

Dec 12, 2010

How can i get the file to load at the correct size by using the onloadInit at the moment the file is loading but its loading in the centre. [code]...

View 7 Replies

ActionScript 2.0 :: Mouse X Position To Control Movie Position?

Feb 1, 2006

Basically the x position of the mouse should control the play position of a movie. Do I need something like an event handler (I'm not sure exactly what these do, but I've seen similar scripts that seem to use them).

View 2 Replies

ActionScript 2.0 :: Load A Movie From A Movie But The 2nd Movie Load A Variable?

Feb 25, 2004

i'm having this weird pb i don't understand, could someone help me? i'm driving crazy here..what i do is load a movie from a movie but the 2nd movie load a variable. when i test the 2nd movie, it loads its variable and displays it as wanted, but when i load it from the 1st movie, the 2nd movie loads but seem not to load anymore its variable..

[Code]...

View 11 Replies

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

Actionscript 3.0 :: Load And Position Swf In Movieclip?

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

ActionScript 3.0 :: Load SWF To Specific Y Position?

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

ActionScript 1/2 :: Load An External Swf At A Specific X & Y Position?

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

ActionScript 3.0 :: Load - Resize And Position SWF Into A Blank MC

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

ActionScript 3.0 :: Load External SWF File Position?

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

ActionScript 2.0 :: Using AttachMovie To Load And Position MovieClip

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

ActionScript 2.0 :: XML Load - Layout Position Of Design

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

ActionScript 2.0 :: Thumbnails Change Position On 2nd Load?

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

ActionScript 2.0 :: Load Image Position - Won't End Up In The Right Place

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

ActionScript 3.0 :: Load Movie - The Last Frame Of The Movie Code Execute And Second Movie File Open Up And Start

Dec 3, 2009

I'm currently making an animation which will eventually exceed the 16,000 frame limit (don't ask haha), so, short of making two movies and having to just start up the next one, what is the code for loading a movie? I presume they need to be in the same directory? So basically all I want is on the last frame of the movie the code executes and the second movie file opens up and starts. I guess I'd want the current movie to close, too.

View 1 Replies

ActionScript 2.0 :: Unload/Load Movie Clips In Parent Movie From Buttons In Child Movie?

Feb 12, 2009

I Have 3 Movies:MAIN.SWF, contains loading movie actions for Nav.swf and Home.swf.NAV.SWF, contains navagation menu loaded on Level 2 in Main HOME.SWF, contains slideshow for home page loaded on Level 1 in Main In NAV.SWF, there is a MOVIE CLIP "graphmc", which contains a BUTTON "graphicbtn", When this button is clicked, I'd like the HOME.SWF (which is loaded into Main.swf on Level 1) to fade out and unload, and load and fade in Graphics.SWF in place of it.

View 6 Replies

ActionScript 2.0 :: CS4 : Get An External Swf To Load And POSITION In Main File?

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

ActionScript 2.0 :: Load Mp3's So The Sound.position Property Resets?

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

ActionScript 3.0 :: Load Images Based On Array Position

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

ActionScript 2.0 :: Use The Attachmovie Command To Load And Position A Movieclip?

Aug 10, 2010

Im 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 5 Replies

ActionScript 3.0 :: Load Images Based On Array Position?

Nov 22, 2010

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:
var BitmapDataLeft:stim1 = new stim1(150,150);
var imageLeft:Bitmap = new Bitmap(BitmapDataLeft);

[code]....

View 1 Replies

ActionScript 2.0 :: Set The Movie Position?

Dec 29, 2004

I just like to know how to set the movie position with actionscript?

View 1 Replies

ActionScript 2.0 :: Fix The Position Of The Movie?

Dec 18, 2006

_root.caption.image_mc.loadMovie("essaicomplex.swf "); On each thumbnail gallery, by passing the mouse over a thumb It loads a SWF ( larger picture of the thumbnail) till now it is great. BUT 1 : I can not fix the position of the movie and 2 : the so called "swf-movie" moves together with my mouse. I want it locked. I turn around but do not find.
What do I have to modify ??

View 11 Replies

ActionScript 2.0 :: How To Set Movie Position

Dec 29, 2004

I just like to know how to set the movie position with actionscript?

View 1 Replies

ActionScript 3.0 :: Duplicate A Movie Clip In Original Movie Clip Position?

Aug 30, 2011

I have several movie clips on the stage. They are draggable. I want to be able to drag the movie clip, then when it is dropped, a copy of that movie clip will appear where the first one had been, and the first one will just stay where it is on the screen.

However, I'm running into problems with the syntax.

Here is my current code:

[Code].....

View 14 Replies

ActionScript 2.0 :: How To Position External Movie

Feb 27, 2010

I have downloaded a flash movie from flashkit tutorial and now I want that movie to load in another movie but either its not loading properly or its not positioning properly.

[Code]...

View 1 Replies







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