ActionScript 3.0 :: Load A SWF And Put On Frame 2 / Possible?
Oct 24, 2009i know you can Load a SWF.but is there a way to say,go to Frame 2,(which is blank) and put the SWF there.(and change the Stage X and Y to that SWF's X and Y?)
View 1 Repliesi know you can Load a SWF.but is there a way to say,go to Frame 2,(which is blank) and put the SWF there.(and change the Stage X and Y to that SWF's X and Y?)
View 1 RepliesI 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'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 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'm using loadMovie() to load external swf's and then send the swf to a specific frame, depending on the button that is pressed.
Code:
on(release){
_root.mc_mainloader.loadMovie("Main.swf")
_root.mc_mainloader.gotoAndPlay("fadeup");
}
Unfortunately it ignores the second line, which appears to be because the movie hasn't loaded by time it gets to the next line. As a work-around I made an interval to check for the movieclip width to be more than 0 and then run a function that chooses the desired frame, but this is very unreliable. Is there a simple way to load the clip and wait until it is finished, then immediately choose a frame on load?
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 am making a flash project and I want to load an xml(or txt) file into the frame.I do it but because the text of the xml/txt file is at greek it can't show it.I tried character emedding but nothing happens. If a write the text at english it shows it ,but I want to avoid that case. Can I make it?
View 1 RepliesMy website has hundreds of flash graphs that are all being updated automatically via web services and external xml. My boss wants to publish a book now and the publisher needs the graphs in vector format. My problem is that the flash graphs first load data, then draw the charts dynamically.
Is there any solution to export the SWF after it has loaded my data and preserve the dynamically generated graph? Some graphs have a drill down feature that is only accessible after there is user interaction. These sub-graphs are important to capture in that moment.
Screen shots are not vectors, so they will not work.
I basically need to find a way to export a swf frame after its done loading.
i have a web page with 2 frames : leftFrame and mainFrame. The left frame is my menu with flash buttons - home, about, news and contact.
What i want is this : when the user hits the "contact" button, i want contact.html to load in mainFrame.i've been at it for 2 days,, searching help, tutorials, sites, everything
i've got the beggining of the script :
this.onMouseDown = function() {
getURL(contact.html target="mainFrame");
}
Is there a way to 'select' (so the flickering cursor appears) an input box when you load the frame?
View 1 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.
What was simple is now documented by 15 pages of chicken scratchesI have searched through the docs and am just lostWhat I want to do was simple enough in AS2: onClipEvent (EnterFrame)_root.gotoAndPlay("2");But can't be done now. It doesn't work as a frame action either without the onClipEvent. All I want to do is go from the last frame of the timeline to frame 2 and skip the preloader. How the heck do I do that in AS3? I've searched online and cannot find the method, and perhaps search terms don't work. Anything I can find applies to AS2.
View 12 Repliesi have a button load_swf that does that:
swf_path="sample.swf"
load_swf.onRelease = function() {
loadListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number,
[code]....
I was just wondering if it is possible to just load the first frame of a video in AS3, so I can use it as a screenshot/preview type of thing?
View 1 RepliesI 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 RepliesSo this is only the first or second time I've posted to a message board because usually all my questions are answered somewhere in the forums, but I am stumped on what I thought would be a relatively easy problem. I am trying to make an HTML button load a specific frame of a swf that is on the same page. This is the javascript function that I put in the page header:
<script language=JavaScript>
<!--
function showme(FrameNumber){
[code]........
I got a mc wich contains a stop(1) and a textfield in frame(10) and stop(10).Outside in the root I got a btn that contains:loadtext to the text frame and play the mc. -->
_root.mc.play()It dont work ! But if I move the textfield to frame(1) it works - STRANGE!
Why is that? and what do I do?
I'm trying to monitor the currentframe of a movie so that when it goes to a specific frame, its loads the corresponding a picture out of an array dynamically using XML.
I think I have most of that loading part sorted out, the issue i think comes when i am looping code on the movieclip. I'm trying to set it up in such a way that if the currentframe remains the same, that it does nothing...this is so that it does not repeatedly load the same image over and over if the frame does not change.
I only want an image to load if the current frame has changed. I realise an example is in order so i posted the .fla and the .xml files in a zip file.
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 work with flash 2.0 in CS3 When I click a button I want to load an swf in a higher level of a "main" swf and jump to a certain frame of the "main" swf. Is that possible? In a nutshell, I want to bring in an swf in a higher level that play a fade to white animation, which then hits a stop motion on a blank frame at the end, then the timeline of the main swf should go to a frame where a transition fades white to a new section of the flash website. Or the timeline could jump right away. Either way I need a goToAndPlay action to work with a loadMovie action simultaneously on a button click. For some reason these two actions seem to cancel each other out.
View 1 RepliesI need to load a movie to particular frame [url]...
View 1 RepliesIs there a way that when the flash movie starts it loads into a random frame everytime. As well as a button that would do the same thing.
View 12 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 wanna be able to load both variables from an external .txt file, and a external .swf file at the same time. now the problem is i need the .swf to only open if the movie is at frame 15. here is my current code:
on (press) {
loadVariablesNum ("test.txt", 0);
}[code].....
This is for a website with seven frames (one page per frame)
I can load the gallery .swf in background but I only want it to show up on frame 7 (gallery button). Then if the user goes anywhere else (eg. home button - frame 1) the loaded gallery .swf disappears.
I can load it and make it invisible, and can make it visible on frame 7 but then it's visible when you navigate anywhere else.
This is the load code on entering frame 1:
stop();
//make gallery invisible in this frame
stage.addEventListener(Event.ENTER_FRAME, invisible);
function invisible (event:Event):void
[Code].....
I have a couple banners that randomly load everytime I play the SWF but I need
them to random load like every 3 seconds when the swf is playing
What do I have to add to my code to achieve that, here is what I have.
gotoAndPlay(Math.round(Math.random() * 5)+1);
I have been put in charge of building a website for my company as kind of a side job - so I downloaded a nifty looking template that I thought would be pretty cool to use.
The template consisted of a flash animation that was on top of a bunch of data, clicking the links in the flash animation however would load up another .html and would reply the intro of the flash _every_ _single_ _time_