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


Similar Posts:


ActionScript 1/2 :: Load A Graphic Rather Than A Movie?

Mar 21, 2010

In adobe flash CS3 i am using AS2 and have just made some buttons. I wnat to knwo if i can load a graphic rather than a movie when i play my moveis it pops up with an error //load Graphic Behavior this.loadMovie("H:\Year 12\Web Design\Term 1\5956\Images");//End Behavior it says that this line of code is the problem i cant see anything wrong with it

View 2 Replies

ActionScript 2.0 :: Load A Bitmap/graphic In A Movie Clip Using CS3?

Aug 4, 2009

I am having a problem loading a bitmap/graphic into the place of a movie clip using AS 2.0 on Flash CS3.You see, I am uploading an image into a library, for example, Bitmap1.jpg, and I upload another image to turn into a movie clip, for example, Bitmap2.jpg turns into Symbol 1.I place Symbol 1 onto the screen and I've been trying code after code and I'm not sure how to load Bitmap1.jpg in the place of Symbol 1 using the 'if statement'. I've tried the 'load' functions, but since I've just bought CS3 and I don't have Flash 8, a lot of the functions have changed.Here's an example of my code:

ActionScript Code:
stop();
if(Junior == "Stranger") {
loadMovie("Bitmap1.jpg")
}

Cut to the chase, I'm trying to load "Bitmap1.jpg" or my library name (Bitmap) into the place of Symbol 1 (my MovieClip) when Junior is equal to Stranger, using AS 2.0 on Flash CS3. This code doesn't work on CS3.

View 2 Replies

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

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

IDE :: Add A Movie Clip To A Button Position?

Dec 2, 2009

how do i add a movie clip to a button position? i want a button that, when clicked, slides out to a certain position and stop. kinda like a drawer in a desk.

View 1 Replies

ActionScript 2.0 :: When Change Button 2 Load Movie Settings It Automatically Changes Every Button

Feb 21, 2003

I created a button with some roll over effects added some load movie action to load external movie.swf file, everything works perfect except I need about 12 same buttons but with different loadMovie command I mean to load different swf files. so what I did to make it fast I copied the first button and pasted it 12 times so I made 12 nice buttons, but the problem I have is that when I change button 2 load movie settings it automatically changes every button, so I am a little frustrated,

View 9 Replies

ActionScript 2.0 :: Unload Movie Then Load Another Movie Same Button?

Jun 5, 2004

can I script a buttons to unload a movie clip or swf, then load a different movie?

View 6 Replies

ActionScript 3.0 :: Dynamically Placing Movie Clip At The Angle And Global Position Of A Mouse Click (button) Which Is Constantly Rotating?

Sep 23, 2009

Does anyone know the code for finding the global positioning of  X & Y co-ordinates of a click of a button which is constantly rotating, and then secondly the code for when you click on the button it  displays a movie clip on top of it -(position of x & y when clicked) at the angle that you clicked it  (so underneath the buttons are still rotating so other people can click them where they are)to explain the context, I'm trying to design a mock up of a circular interactive table when someone comes up to it and clicks on one of the buttons that are moving, it reads where the person clicked it and opens up a new box (movie clip) where they clicked it (at the angle) so its not upside down if you are at the topI've included my .fla file which shows the four buttons moving and a little diagramexplaining what I'm trying to do.

View 5 Replies

ActionScript 2.0 :: Take Button Position Half Width Of Own X Position On Stage

Feb 9, 2011

i want to take btn1 position half wwidth of own x position on stage

View 1 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 :: Sets Up Buttons To Load And Unload A Graphic With A Fade In And Out?

Feb 4, 2009

I'm having problems with a function I have that sets up buttons to load and unload a graphic with a fade in and out. Here's the code I'm using

Code:
//DOMESTIC FLIGHT PATH SET UP FUNCTION
function setupDomPath (city:String, pathArray:Array){
var city = "d_"+city+"_mc";

[Code]...

View 3 Replies

Flash :: Load Symbol Of Type Graphic From Library With Actionscript 3?

May 31, 2010

Inside Flash, I have a symbol with type graphic in my library and I want to add it to stage using Actionscript 3. Is this possible?

Flash does not let me set any Linkage Properties for Graphic symbols.

How do I draw stuff in Flash and be able to create multiple instances of that stuff at run time without using MovieClip?

View 2 Replies

ActionScript 3.0 :: Load Movie With Button

Feb 11, 2009

I am a designer and very basic in terms of actionscripting.how to LOAD A MOVIE (swf, image) with button. AS2 is no sweat indeed but with new AS3 I can't find even one answer to my questions so far. Can you also attach fla.

View 4 Replies

ActionScript 2.0 :: Button Load New XML Into Movie?

Oct 16, 2005

I wondered if there was a way to have a few buttons load different xml docs into a single frame. Basically, I've got an image gallery, and I'd like to click a button and have a new xml doc load in and replace the existing. I know I could do this by just putting each gallery section on a frame, placing a load command on each frame for each xml doc, but I wondered how to do this on just one frame?

View 1 Replies

ActionScript 3.0 :: Vector Graphic MC Button

Mar 17, 2011

I have drawn a few buttons in Illustrator CS4 and copied them into Flash (AS3 document). Everything as far as button functionality is working fine, (rollovers, clicks and whatnot), my problem is (hopefully) quite simple to fix, I just can't find how to do so! When I hover over the buttons, the solid parts of the vector (the parts with fill colour) are selectable, however the parts with transparent fills are not (e.g. the space between two letters, or the negative space of an 'O'). What I want is for it to be selectable as if it was a box shape, but keep the transparencies there.I don't know if the problem is resolved in Illustrator or Flash, if anyone knows please reply! I've tried a few things in Illustrator already, such as drawing transparent bounding boxes around the graphics, however the same problem persists.

View 5 Replies

ActionScript 2.0 :: MX Function Button And Load Movie?

May 31, 2009

i have a button that is using the following code:

// button names
b1.button.text_txt.text="link1";
b2.button.text_txt.text="link2";

[code].....

View 4 Replies

ActionScript 2.0 :: Load/unload Movie With Same Button?

Aug 30, 2010

I'm using CS3 with Action Script 2.

I have a button that loads an outside .swf into a blank container. That works fine, however, I want to use the same button to unload that movie. Basically I want it to work as a toggle button.

View 10 Replies

Load A Movie Clip When A Button Is Clicked?

Nov 1, 2009

Im trying to load a movie clip when a button is clicked
 
heres the actionscript im using
 
on (release) {    this._parent.loadMovie("Video.swf", "holder", 1);    holder._x = 611;    holder._y = -92;}
 
i want the swf to load into the holder MC, instead its loading the video.swf file and replacing the original swf

View 1 Replies

ActionScript 2.0 :: Load Movie From Button To Another Location?

Aug 5, 2009

If you click on one of the images of the employees I would like it to load another movie into the location above where the image of the bird is. The swf with the employee photos is a series of buttons within a movie clip within another.

View 0 Replies

ActionScript 2.0 :: Load Movie Clip Without Button?

Apr 29, 2011

Code:
if(ilk.text!="pirates"){
loadmovie("",_root.pirate_mc);

[Code].....

i have a textbox. i want to load the movie clip without button. How i can do that?

View 1 Replies

ActionScript 2.0 :: Click On Button And Have A Different Movie Load?

Jun 22, 2004

I'm using a test file so I can see how a full website is going to work. I've got 5 layers:Background, title, menu, main contents, Actions.I have an empty movieclip that I call "contents-main". And it is placed in the proper location.On Frame 1 of the Actions panel, I have loadMovie("760-250-main.swf", "contents-main"); This works fine and loads the movie into the empty clip.On the menu layer, I have a button. What I want to do is click on that button and havea different movie load into the movieclip called "contents-main". I have tried everything on the tutorials that I can find and nothing will work.I also tried putting different variations and also putting the unloadMovie before loadMovie statement.

View 2 Replies

ActionScript 2.0 :: Click A Button And Load Another Movie?

Sep 23, 2004

every 8 seconds it shows a different item When I click a button and load another movie, and return.the delay between the newsitems is not 8 sec anymore.

When I do the same, it's even faster.

clearInterval(newTickerId);
newTickerId = setInterval(myHome.newsTicker,3000);

View 8 Replies

ActionScript 3.0 :: Unload Movie Then Load New One With Same Button?

Mar 30, 2011

I've gone fully gray trying to learn how to do something in AS3 that was routine in AS2: Unloading (if something's already there) something from a movie clip then loading something in the same clip, all with the same button. Here's the code I'm using, er, attempting to use now. These are for two buttons out of a set of 9. All I'm trying to do is the simple: look to see if there's something in the clip "hovercap", and if so, remove it completely;, then load a new movie. (If there ISN'T something in "hovercap", I want to load a new movie anyway.

invisible_mvp1800c.addEventListener(MouseEvent.MOU SE_DOWN, loadImage); {
function loadImage(url:String):void {
if(imageLoader != null && contains(imageLoader)){
removeChild(imageLoader);
[Code] .....
Clearly, I'm still learning things in AS 3.

View 14 Replies

Different Between Movie Clip And Graphic In Flash?

Dec 23, 2009

I want to know all differents betweent Movie Clip and Graphic & Also I want to know when I use graphic or Movie Clip

View 14 Replies

IDE :: Serialize A Movie Clip Or Graphic?

Feb 9, 2010

Is it possible to serialize (or equivalent) a Flash movie clip object or graphic object? I'm trying to find out if it's possible to send such an object via XMLSocket.send.

View 3 Replies

ActionScript 2.0 :: F8 - Button To Make Graphic Appear In Frame

Jan 18, 2009

I'm fine with on(release) to take to a new frame etc but this is my situation.

Imagine a Windows PC. You click the Start Button, it makes the start menu appear, no matter what folder/window/software you have open. Now liken it to a flash movie. Interactive, to make a button to make a set of graphics appear in a set place on the frame.

View 2 Replies







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