ActionScript 2.0 :: Load An External Jpg In Frame 2 With A Command In Frame 1?
Mar 31, 2004load an external jpg in frame 2 with a command in frame 1? Very important to my project to get at least a yes or no.
View 4 Repliesload an external jpg in frame 2 with a command in frame 1? Very important to my project to get at least a yes or no.
View 4 RepliesI have a movie clip with a stop command on frame 1 and a stop command on frame 20.I'm trying to have two separate buttons that tell the MC (onRollOver) to play forward or to play backwards.
The actionscript on button #1-
PHP Code:
on(rollOver){ gotoAndPlay(_currentframe +1);}
The actionscript on button #2-
[Code]...
In this bit of code is there anyway to adjust the gotoAndPlay Command to play from frame 114 to frame 200. Are there any commands that will do this. I want it to play from frame 114 to frame 200 when a button is pressed.
[Code]...
I have a question about loading external data. When I had all my actionscript export to frame one, it would slow down the preloader and not show up until it was far into the progress bar animation. So I moved everything to frame 2. The problem with that is now my menus which are populated from an xml file are not there when the site starts to play. How can I get my xml data to load on frame one, but leave the .as fils to load in frame 2?
View 6 RepliesI have an empty swf (container) where my external swfs get loaded and unloaded. I have two swfs - Activity 1 and Activity 2 (each contain an activity to complete on several frames).
The user is able to click back from activity 2 to activity 1, but they get to the beginning of the activity instead of where they were last (last frame on swf). I would like to be able to click the back button and go the last frame on the swf being loaded.
So, how do I load an external swf and then go to the last frame in it? But I don't want this to happen everytime I go to activity 1. Only when you click the back button from activity 2.
I want to make a preloader what can i use for anything in the page. The problem is that if i write the load movie action, all frame will be loaded.is it possible to load just a frame of an external.swf?
View 1 RepliesI got these swf, that i am trying to load other swfs with, so far I have it so the swf are kinda preload, loading on a container off the stage and then advancing to a new frame, my problem is with this code it just stays on frame one for some reason.
This is on frame one
Code:
bytes=container.getBytesLoaded()+this.getBytesLoaded()
total=container.getBytesTotal()+this.getBytesTotal()
_root.createEmptyMovieClip("container",1)
container.loadMovie("01.swf")
container._x = -500 ;
container._y = -1000;
if (bytes == total) {
_root.gotoAndPlay(3)
}
And this is on frame two
Code:
gotoAndPlay(1)
Why it's staying on frame one instead of advancing after the swf is loaded?
i want to make an presentation,, for which.. at frame i click a button on frame 9 it goes to frame 10 and plays.. like my script on frame 10 is below
this.createEmptyMovieClip("coalzoom",5);
coalzoom._x = 80;
coalzoom._y = 60;
coalzoom.onEnterFrame = spaceLoad;
function spaceLoad()
[Code]....
and when i click another button to go frame 1 from the same page at 10,, placed beside the loading external swf ,, it goes,, but the loaded external swf file is not going ,, or the external file not cleaning,, not removing. here is the CS3 flash sources,, and outputs [URL]
i would like to load the "1.swf" to the "hub.swf"(ROOT MOVIE) and have it gotoAndPlay(2) using AS2.he thing is I can't put the gotoAndPlay(2) on the first frame of 1.swf.
hub.swf >>
_root.btn1.onRelease = function() {
loadMovieNum("1.swf",0);
[code]......
I want to be able to change the frame in output.swf from within another flash, how do i make this possible?[code]...
View 3 Repliesthats it is there a way to take all the code in a frame and save it to a .AS file and import that .AS file into the frame where the code originally was?
View 4 Replieshey there I posted several strings before and no response
I want to load a specific frame of external.swf into a main.swf
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 RepliesI 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 RepliesI have an application swf that loads a big external swf with all GUI components/assets (skin) in it.I want to display a progress bar during loading of the external asset swf file but the images for the progress bar are also included in the external swf file.Is it possible to load only a portion of the external swf before loading the rest. The idea is to load the progress bar images from the external swf, then construct the progress bar and than load the rest of the swf. I was thinking to put it on different frames. Frame 1 containing the progress bar graphics and frame 2 the rest of the assets.
View 3 RepliesI am loading an external movie with buttons... I would like the loaded movie to goto a specific frame. This is the code to load the new movie
Code:
on (release) {
loadMovie("movies/1.swf", "display");
}
I did search (external swf frame) but nothing came up with what I needed
Is it possible to load an external swf movie and make it go to a specific frame to play or stop.[code]...
View 4 RepliesI'm trying to access a specific frame label in an externally loaded swf. I have the external swf loading, but I'm not sure how to access the specific frame label after release. This is an example of the code on my external swf timeline:
[Code]....
I have a button on the main timeline. When clicking it, I would like to move the main timeline to a frame label called "history" and load and play a movie clip called "slideshow1".
I have the "gotoAndPlay" code working properly but can't seem to get the external swf "slideshow1" to load and play.[code]...
im trying to do is load an external swf file into a "base" file but play a certain frame number or label in the external file.I have a file called base.swf file which is level0In base.swf i have nothing but 1 frame with the following AS code:loadMovie("top.swf", 2);This works fine and loads and plays top.swf, but how can i load top.swf and play a certain frame label or number as soon as its loaded. Ive tried the following which does work but i hope it kinda explains what i want to do.
loadMovieNum("top.swf", 2);
tellTarget (_level2) {
gotoAndPlay("MyFrameLabel");
[code].....
I'm building a flash application where the user can play multiple 30 sec .flv movies (one at a time) in slowmotion by pressing or holding down the left and right arrows keys.The user can hold/press "keypress right" to move to the next (key)frame and "keypress left" to move to the previous (key)frame in the .flv files.I have tested embeeding one .flv movie to the stage and it's working fine.But since I will be using many flv's I want to load the .flv's dynamiclly (on button clicks) using netstream or FLVPlayer. Would it be possible to step beetween keyframes in the same way if the .flv's are loaded dynamiclly? Or, must I embeed each .flv file into separate swf's and then dynamiclly load the swf's to my main stage?
View 1 RepliesI am using Flash CS3, Actionscript 2.
I need to load an external movie file into the root of my main movie, so it replaces the main movie, and when it loads, it loads at a specific frame (or label)of that newly loaded movie.
Explanation: My main movie, lets call it "Main.swf", has a button which is part of a drop down (tree) list. When you click on the button, I want to load my second movie called "bearings.swf", and to immediately go to frame #2 of the "bearings.swf" movie.
I am making a flash site where one of my pages loads an external swf. In this external swf I have sub pages with links. My problem is when I visit a page from this external swf, and then go to a page from my main website (clicking my main time line buttons) and then go back to the page with the external swf i was previously on, the page would go to the last page i was on, instead of refreshing it back to the main frame of the external swf.
I made a small, simple example of what I am experiencing on the site I'm working on.
[Code]...
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 RepliesIn preloading a movie, I need to listen to the load progress of an external FLV that resides on the next frame-- the grandChild of a movieClip on the stage.This is the actionScript of the mentioned grandChild:
Code:
import fl.video.*;
function onFLVComplete(event:VideoEvent):void {
event.target.play();[code]....
Now, if I understand it correctly all I have to do is listen to (making sure my child mapping is correct) this loader....correct? I have the following in on the first frame throwing a 'reference to null object or property' error:
Code:
container.main.myVid.loaderInfo.addEventListener (ProgressEvent.PROGRESS, onProgress);
container.main.myVid.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
How do you make it so you can make a frame load on a frame?
View 5 RepliesI am using the below code on a button to load another movie, graphic.swf is there a way i can get it to load a particular frame, i.e frame 150 of graphic.swf rather then start at frame 0.
on (release) {
//load Movie Behavior
if(this == Number(this)){
loadMovieNum("graphic.swf",this);
[code]...
I have a movieclip to dynamically load swf's. Some of my swf's are slideshows and contain jpgs that are quite large. Therefore I do not want to wait till the end of a complete load to show the swf. Say, if i want to show picture 3 (at frame 3), i'd like to show it as soon as the frame is loaded. However, I also need to rezie the swf to fit my mc's fixed size. Resize only works after all bytes of the swf are loaded I believe.
View 1 RepliesI'm building a flash application where the user can play multiple 30 sec .flv movies (one at a time) in slowmotion by pressing or holding down the left and right arrows keys. The user can hold/press "keypress right" to move to the next frame and "keypress left" to move to the previous frame in the .flv files.
I have tested embeeding one .flv movie to the stage and it's working fine.
But since I will be using many flv's I want to load the .flv's dynamiclly (on button clicks) using netstream or FLVPlayer. Would it be possible to step beetween frames in the same way if the .flv's are loaded dynamiclly?
Or, must I embeed each .flv file into separate swf's and then dynamiclly load the swf's to my main stage?
I'm having an issue with some pictures and a gotoAndStop on frame one command. I have pictures on my website that appear when clicked on, and I've placed a simple close button in the top left corner of the picture that simply tells flash to go back to frame 1 (gotoAndStop(1)). However, it seems that in Internet Explorer (not in FF) when the close button is clicked it goes back to frame one but it leaves part of picture still displayed although it seems to dissapear in segments when rolled over with the mouse. Here is the website where this is occurring: [URL]. Btw, I'm using the flash eff component, but the problem seemed to still occur after i removed all flash eff instances.
View 2 Replies