Action Script :: Open Swf File At Specific Frame?
Apr 25, 2010
I have a main website witch has a photo gallery, in an album for example I have 5 photos in thumbnail mode, I created an independent slide show in SWF called genova.swf where I have inside the 5 high res. photos found as thumbnail in the main website, and I used the following script to call it :
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
function onLoadInit(mc:MovieClip) {
mc.close_btn.onRelease = function() {
[Code]....
I would like to have an action script that permits me to click on a thumbnail and to load the genova.swf to a specific frame, that way if the user need to see immediately photo #3 without having to cycle through photo #1 and #2
he would click on the thumbnail photo #3 in the main website and the genova.swf will popup at image 3 from the slideshow.
View 2 Replies
Similar Posts:
May 26, 2010
I would like to open a separate swf file from with in flash, but by default, it opens the swf in a browser. I would like this file to open in a stand alone player not in the browser.How can I achive this? Right now I'm using the getURL() action. Is there a separate function for opening a file at a specified filepath?
View 1 Replies
Oct 25, 2011
I have a .swf file. From there I use a MovieClip witch is associated with a class. The information is inside of a separate .as file. On Runtime i create several instances of this object. This all works. Now I would like to let functions inside of th .as file give access to variables set in the action layer on frame 1 where i handle the code that is associated with the .swf file. Or the other way around. Is there a way to manage this communication?
View 2 Replies
Dec 12, 2011
Background: I have a project where i need to create multiple objects that consume the same base calss from an external .as file. each of the individual fla files that consume the base class need to pass a variable to the base class so the class can return information specific to the fla.
My question is,if i have an external class path set up, how do i get a variable on the first frame of the movie to be visible to the base class && how do i call upon its value from within the class.
View 2 Replies
Oct 2, 2006
Code:
_root.navigationMC.onPress = function() {
startPreload("blue.swf");
}
If I wanted to change an action from a button click to a frame-based action, what do I use instead of onPress? The hints from the AS editor are all click-based.
View 1 Replies
May 30, 2009
I'm trying to reference a specific frame inside a MC in my .swf file from an .as file.What I want is to capture the current frame of the movie clip for the .as file. It's for the purpose of points when you shoot each plane. It's an easy trick of frame 1's plane would be worth 100 points, frame 2's plane 200 points, etc.I thought I'd write a line like this in my collision detection section of my .as file.
Code:
planePoints = currentFrame * 100;
The only problem is, of course, it grabs the current frame of the main .swf timeline that my flash file uses, and not the movieclip that's being called to produce the planes.So I thought I'd be able to specify a path to the movie clip (in this case it's called Airplane in the MC's linkage properties)
Code:
planePoints = Airplane.currentFrame * 100;
Then, of course, it freaks out and says that 'access of possibly undefined property currentFrame through a reference with static type Class.'
I still get confused with AS3 and the way items are handled vs AS2. I've lost track of how many times I type _root.
View 2 Replies
Oct 19, 2011
Ive created a banner ad in AS 1.0-2.0. The ad can only loop 4 times then it must stop. The following code does this at frame 170. The timeline is 170 frames in length, and this code is keyframed on an actions layer on frame 170 - however, I'd like the final stopped flash swf file to occur at frame 155. I can't just put this code on frame 155 - it skips a whole section of animation (from frames 155 to 170) that I want to keep in the loops.
loop = loop + 1
if (loop < 4) {
this.gotoAndPlay(2);
} else {
this.stop();
}
View 3 Replies
Jan 15, 2006
How do I link from one specific frame in one swf file to another specific frame in another swf file?It should be something like...
on(release){_root.gotoAndStop(8)}
...but where I want to get linked to another file in frame 8.Do I just simply rewrite _root to something else?
View 6 Replies
Jun 19, 2007
My problem is :
A.swf : 5 frame (ie, page1, page2, page3, page4, page5)
B.swf : 2 frame (ie, page6, page7)
When click on back button in the page6(B.swf), wish to jump back to page5(A.swf) instead of page1 as normally
Script using :
back_btn.onRelease = function() {
loadMovie("A.swf",0);
};
B.swf jump to A.swf, but go to frame 5 instead of frame 1 in A.swf.
What should i do for the script to achieve what i mentioned above?
View 5 Replies
Nov 7, 2007
The title of my main file is "Gabriel96.fla". Inside this file I have a movie clip called "home movie". Inside this movie clip i have a button called "Symbol 32". Once this button gets clicked, I'd like it to go to frame "joe" which is inside a movie clip called "porrtfolio", which inside a separate file called "portfolio55.swf".
View 4 Replies
Aug 26, 2009
I have many buttons in a few movie files, i need to select a few of these buttons and store them in an array so i use....
var twocolourbuttons:Array = ["mybutton1", "mybutton23", "mybutton34"];
I then need to show a movie file if the button that has been clicked on is in the array. so something like...
if e.target.name is in the array show the movie twocolor.visible = true;
i then need to go to a certain frame of the movie, depending upon where the button is found in the array. So if the button is at position three of the array, i need to jump to keyframe 3 of my movie.
View 1 Replies
Jul 14, 2009
i want to load and play a swf file form a specific frame number
So when a swf finishes i want to load another swf file from frame number 6430.
Is it possible or not
View 3 Replies
Apr 28, 2010
Anyone knows if there's a way of calling an specific frame or movieclip from a loaded xml file? I have some xml text loaded to my flash site and i want to have a link in this text that when clicked loads a comment form that is in a different frame in the timeline. I've been looking and googling and i havent found any solution to this.
View 1 Replies
Nov 6, 2007
I have a movie clip within file A.fla. This movie has buttons. Each of the buttons should go to their respective frame within a movie clip from a separate file.
View 4 Replies
Nov 28, 2009
when a external swf file gets loaded into main swf file, i need to detect while playing external file reach to end so that i can unload that file and move to another frame on root of main file. I am not getting how to identify external swf play reach to end so that i can unload swf and jump to root specific frame of main swf.
View 1 Replies
Mar 31, 2006
i need to change the colour of a graphic in a specific movie in a specific frame. if i have a movie clip instance-named "sidetext" thats 15 frames long, and i want a graphic in the movie, called "letterp" to change to one of four colours that i want it to randomly at frame 10 and stay that colour uintil frame 15, how can i do this?
View 2 Replies
Sep 15, 2010
how do i export specific frames not all frame. ex: if flash has 1 to 200 frames. here i want to export 51 to 150 frames as a movie. if there is any command or plugin to export movie like this.
View 0 Replies
Dec 3, 2009
I have been doing really well figuring everything out up until now.[code]How it stands, what is this link pointing to? Can I make it target a specific frame in a specific movie clip?And if someone would be so kind and explain what this is saying in 3rd grader terms.
View 3 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
Sep 27, 2011
I'm new to actions script. I creating a presentation in which I'm loading external FLV movie files. I have a Navigation menu to go to the different chapters (every chapter is a FLV movie File)This is what I need, when a FLV movie finish I need some action in the frame to take me to next frame where I have the next FLV chapter.if is any help I upload a sample FLA with some FLV for reference.
View 9 Replies
Sep 27, 2011
I creating a presentation in which I'm loading external FLV movie files. I have a Navigation menu to go to the different chapters (every chapter is a FLV movie File) what I need? = when a FLV movie finish I need some action in the frame to take me to next frame where I have the next FLV chapter.I upload a sample FLA with some FLV for reference.
View 4 Replies
May 24, 2009
I wrote this code that loads and unloads object to the screen. But have small issue. When i press the CityButton it loads the object... i dont want the villageButton or anything to be selectable until the CityButton is pressed again which causes the loaded city object to be removed.
/*//this is the button events for each name*/
cityButton.addEventListener(MouseEvent.CLICK, clickHandler);
villageButton.addEventListener(MouseEvent.CLICK, clickHandler2);
[code].....
View 1 Replies
Sep 1, 2010
I'm trying to get the following movieclip smallbutton to link to frame 5 on movieclip cont.The way the timeline is built is as so:content_mc > cont > (more mcs) > smallbuttonThis seems to be an issue from every answer I've tried so far since the movieclip "cont" is not being called in the main timeline; first there's content_mc and then comes cont.How would I go about getting the movieclip "smallbutton" to link to the 5th frame of movieclip "cont"?This is for AS 2.0So far I'm at:on (release) { _root.gotoAndPlay("cont"); _root.smallbutton.gotoAndPlay(5);
View 7 Replies
Nov 6, 2006
1. I make a simple movie (call it movieClip) first frame has stop(); action, second frame has label playMovie, last frame has action gotoAndPlay(2); (so that movie not stop anymore2. Now I place movieClip on stage3. Question... what is code to make movieClip play frame label playMovie?
I already try to put many different type action in frame one of stage
this.movieClip.gotoAndPlay("2"); //NOT WORK
this.movieClip.gotoAndPlay(2); //NOT WORK
[code].....
View 7 Replies
Nov 25, 2011
I'm instructed to develop a project in such a way that it is available for iOS, Android and Blackberry OS platform all at once. A herculean task!! indeed... I am searching for all the possible development platforms for this assignment. I came across Flex 4.5.1 and the initial thoughts are really positive. Somewhere in SO I read that flex applications suffer from code bloating problem. I dont want such solution; infact memory is an important concern for me. I want to know which one of the following is the optimum approach:
Developing using OS specific SDK i.e. xCode for iPhone, Andriod SDK for Android.
Developing using Flex builder and ignore code bloating.
Using Flash Builder and developing application in ActionScript.
View 4 Replies
May 11, 2004
There is any way, any cody or anything that can make an action or function take place when a sound reaches a specific second?? For example I have a sound file, when it reaches the 15 second, I want the _root.play(); action to be executed
View 1 Replies
May 11, 2004
There is any way, any cody or anything that can make an action or function take place when a sound reaches a specific second??For exampleI have a sound file, when it reaches the 15 second, I want the _root.play(); action to be executed
View 1 Replies
Apr 22, 2003
I am creating a movie, and need to create alink to open a web page. My movie exists in a folder ("Flash") and I need to move up a level(out of that folder), and into another folder, (HTML) where the page I need to open resides. What would the path name need to be ie: ..HTML/default.html?
View 5 Replies
May 20, 2010
I'm using Flex's Advanced Datagrid for a project and need inline comments, in a similar style to Excel spreadsheet comments.A little visual indicator should indicate if a field is associated with a comment, and on clicking on the element should open or trigger an action for displaying that particular comment.
View 1 Replies
Aug 8, 2010
I have created a flash website and I would like to create links to specific frames of an external swf in another html page. I have researched flashvar a little bit and I have also been told that I am going to need to do some dynamic coding.
View 1 Replies