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
Similar Posts:
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
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
Sep 21, 2009
Basically once my animation loads I want to pull in an external SWF at a specific frame, basically like the "home page" swf that will display first. Underneath that I will have "About Us, Contact, etc..." and those will each load an external SWF into my movie clip. My movieclip right now is called mcHolder. Here is the code I am currently using for the buttons:
Code:
//About Us Button
function test2(evt:Event):void{
[code].....
View 1 Replies
Apr 1, 2010
How can I refer to an MC that is at a specific position (using frame label) to start playing based on a current event?
View 6 Replies
Sep 21, 2010
What is the most efficient way to insert one Vector into another at specific position?
For example:
var aa:Vector.<int> = Vector.<int>([1, 2, 3]);
var bb:Vector.<int> = Vector.<int>([9, 8, 7]);
This doesn't seems to work:
bb.splice(1, 0, aa);
The result is [9, 0, 8, 7].
View 2 Replies
Nov 1, 2006
I have searched the forum and could not find anything specific, so if you do, please show me the link. Let me set some theoretic environment for the question. let's take a circle that is like an anolog clock but only has 8 numbers; 12 o'clock, somewhere around 1:30, 3 o'clock, 4:30, 6, and so on.
I want to have each number, a button, and when clicked will rotate to the top of the circle.NOTE this is a static image, so the numbers will upside down, etc...the do not need to stay rightside up, as they will rotate with the circle image.
Every time a number is clicked, it will rotate the circle until that number is at the top, and can move either left or right depending on which number is clicked. I thought of doing this in design time, but there are many combinations, and it would be too weighty.
I do not know how to rotate it in actionscript and then have it stop at a certain position, which I assume I could plan out in degrees, and possibly use flags to tell which had been clicked in which position,
View 3 Replies
May 10, 2011
Right now I'm working on a website that has movie clips that I want to tween back and forth across the stage when a button is pressed.
Here's the idea:
When 2_btn is pressed, I want 1_mc, 2_mc, and 3_mc to move from right to left and then stop when 2_mc is positioned on the stage, stop moving and play
Then if 3_btn is pressed I want all three to be animated from right to left until 3_mc is positioned on the stage, stop moving and play
Then if 1_btn is pressed I want all three to move from right to left until 1_mc is positioned on the stage, then stop moving and play
Basically I have no idea how to accomplish this, or how to word it into Google.
What I have right now, which obviously isn't accomplishing what I want is:
Tween from left to right across the timeline, and then using a gotoAndPlay, and then stop(); on the frame..
View 2 Replies
Jan 15, 2009
I'm doing a flash menu for a site and am stuck with a bit of action script. Below is a link to the swf file. http:[url].........What I am after is for the white bar to follow the mouse when you are over the flash file y axis only (this works on the file), then when you take your mouse away from the file it returns to a specific position.The action I have so far is attached bellow.
onClipEvent (load) {
_y = 20;
speed = 3;[code]...
View 4 Replies
May 16, 2011
I have a textBox and I am using it as a mail address input field where the user can type in several addresses, a bit same as in hotmail. Each address is rendered into a clickable button. Thus upon double-clicking on a specific address I want the item to be editable. After having edited the address when the user taps enter, the item is added to the list of mail adds.I am adding it using the code below:
flowBox.addChildAt( myItem, myindex);
However addChildAt seems to add the item as the last item in the list. But I want it to add the item the position where it was originally. Say the item was at position 2 in the mail list, after editing adn tapping enter, it should add at position 2 itself and not at the end of the list.
View 2 Replies
Jun 6, 2010
I have a text document which is several pages long and will use scrolling capabilities. This text document will be contained in an external swf. There will be 6 buttons on the main timeline which will all load the external swf with the text document but I would like the text to autoscroll to a specific postion/part of document that relates to that topic/button. Also, i would like the scrollbar to move in relation to position/part of document in case the user stays in the external swf and reads and scrolls through the document. Is this possible? I have searched for a tutorial on this but have found nothing. I have tried different things but nothing has worked.
View 0 Replies
May 16, 2011
I have a textBox and I am using it as a mail address input field where the user can type in several addresses, a bit same as in hotmail. Each address is rendered into a clickable button. Thus upon double-clicking on a specific address I want the item to be editable. After having edited the address when the user taps enter, the item is added to the list of mail adds.I am adding it using the code below:flowBox.addChildAt( myItem, myindex);However addChildAt seems to add the item as the last item in the list. But I want it to add the item the position where it was originally. Say the item was at position 2 in the mail list, after editing adn tapping enter,
View 2 Replies
Jun 2, 2011
I am creating an exercise to teach the meaning of the word "take". I want draggable objects (MC's) which will automatically snap to a different position when they are dragged a little way.
This is the code I am trying (not mine I'm afraid). I have it on the same frame as the MC in "Actions - movie clip". The MC is draggable but doesn't snap.[code]...
View 3 Replies
Jul 14, 2011
how to make one object move to a specific point with animation in Actionscript ( not MXML code ) ? ( Flex 4.5 )
View 4 Replies
May 1, 2009
it's possible to script an external preloader's empty movie clip to be of a specific size and position on the main stage? here's the script i've got for the preloader so far:
var my_pb:mx.controls.ProgressBar;
my_pb.mode = "manual";
this.createEmptyMovieClip("Portfolio", 999);
var my_mcl:MovieClipLoader = new MovieClipLoader();
[code]....
View 2 Replies
Jul 6, 2009
Can I load a swf to a specific keyframe on browser refresh or if sent to another page on the site?Each page will have the same .swf header and I'd like to highlight or animate the header based on the new html page selected.
View 1 Replies
Apr 18, 2012
I have a guestion about preloaders. Every preloader that is available on the web loads the entire .SWF.But I want the preloader to load a specific mc. So that the .SWF will run as soon as that specific mc is loaded.
in addition: Is it possible to have an mc in the .SWF that will only load when the user pushes a button?
View 2 Replies
Jun 20, 2010
I have an input text box, and a data.txt file containing data:[code]And I want, when i input 32, to display in two dynamic text boxes: "Ana" and "L". hope there is an easy way without using php and complex databases.
View 1 Replies
Dec 11, 2009
I am new to working with code and flash...I want to load a swf and go to a specific frame, what code do I use.
View 1 Replies
Aug 28, 2010
I have created a dynamic textfield which loads several text nodes from an xml file by using a for loop. How can I set each text node to load a specific swf? Does the eventListener need to be applied on the whole textfield or is it possible to add it depending on which xml text node is clicked?
View 6 Replies
Oct 8, 2010
I'm trying to load an SWF file into antother SWF file.But I dont have a lot of experince with flash!I want the SWF file to load in the top right corner!
View 3 Replies
Jan 11, 2007
Is there a way to use an loadMovieNum code at the beginning of a frame and make it load at a specific x and y coordinate? When I use this code it doesn't work...
[AS]
loadMovieNum("bodyline.swf", 5);
this._x = 43.3;
this._y=130;
[/AS]
It changes the coordinates of the main background image, not the position of the movie it just loaded. I tried something like this....
[AS]
loadMovieNum("bodyline.swf", 5);
"bodyline.swf"._x = 43.3;
"bodyline.swf"._y=130;
[/AS]
View 3 Replies
Jan 19, 2010
Firstly can I apologise if I'm asking something completely obvious... it driving me crazy.
I have an swf called "branding.swf" which has a movieclip (movie_mc) and a button (save_btn)
Once you press save_btn it loads another swf "summary.swf" which also has a movieclip "form_mc". Within "form_mc" there is another movieclip "loader_mc" and some dynamic text fields.
All this happens within a standalone exe "main.exe" and is loaded into "clips_mc)
Is it possible (surely it must be) to take the contents of movie_mc and display it within "loader_mc".
Basically, I want to do a loadMovie but instead of calling "branding.swf" I want it to only load "movie_mc" which is within "branding_swf"
View 1 Replies
Aug 4, 2010
I have a gallery set up with three primary images. Clicking a primary image brings up it's specific subset of alternate views for the product.
I've managed to get the loading and placement down as I need it, but the images are not loading in the correct order. I've tried several solutions, the current one is that an array of each Sub Image is processed in order. It looks kinda of sloppy but image 1 loads, and when image 1 is complete, image 2 loads. After each image loads, it is put into another array. This array is used to resize and place the files. However when I do so, instead of the placement order being
item[0]
item[1]
item[2]
item[3]
item[4]
it keeps ending up like this:
item[4]
item[2]
item[1]
item[3]
item[0]
Here is the relevant code. When the following function starts with sArray, the items are confirmed to be in order.
Code:
function loadSubs(e:MouseEvent):void//LOAD SUBD
{
clearGallery();
[Code]....
View 14 Replies
Sep 15, 2009
I am loading an external swf into the mc 'image' using: image.loadMovieNum("portfolio/100_design/1.swf", 1);
Every time a new image loads, I want it to load the level above, ie: image.loadMovieNum("portfolio/100_design/1.swf", 2); Is there a way this can be done dynamically. For example, "current level + 1"
View 5 Replies
Sep 17, 2009
In my photo gallery, I have an array of images that load sequentially using 'next' / 'prev' buttons. The code fades out the current swf, recognises when the new external swf has fully loaded, then fades in:
this.pathToPics = "portfolio/100_design/";
this.pArray = ["1.swf", "2.swf", "3.swf", "4.swf"];
this.fadeSpeed = 40;
[code]......
View 7 Replies
Oct 24, 2011
How can I load movie(1.swf) into the current file and make it go play the specific cue point (of the child's file)?
[Code]...
View 1 Replies
Oct 24, 2011
I would like to load the "1.swf" to the "hub.swf"(ROOT MOVIE) and have it gotoAndPlay(2) using AS2.[code]...
View 2 Replies
Oct 28, 2011
I'm still begginer. I have to load images in specific movieclip, because they're loading over all the other layers. What should I do?I made a simple slideshow by tutorialI guess it would be better that I show all the code not specific parts:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
[code].....
View 9 Replies
Jun 22, 2010
import flash.net.URLLoader;
import fl.video.*;
import flash.utils.getTimer;
fk.autoPlay = false;
// Parametreleri yukluyoruz.
var myLoaderInfo=new Object();
[Code] .....
I have a video. First it loads. Then it starts from time that I want to. Also it stops from time i want to. But I want to load my video only from start time to stop time. How can I do this or which method can I use?
View 1 Replies