Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Callign Frames



Hello to everyone and Happy New Year!

I was just wondering how to call some frames.

For example, I have a flash movie with 1,000 frames.

I am trying to create some buttons at the start of the movie
to make it look nicer. All these buttons are at frame 2.
If one "Button 1" is pressed, the action should go to
frame 500, play until frame 700 and will then return
to frame 2 (back to "Button 1").

Is this possible?
I tried combining some actionscript commands but my limited
knowledge did not help me much...
(e.g. I tried to use two "GotoAndPlay" commands inside some
"OnRelease" brackets but without success)

Thanks in Advance!



FlashKit > Flash Help > Flash ActionScript
Posted on: 01-02-2002, 01:47 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Callign FlashVars In PHP
Hi

The following is something I have always wanted to do but never discovered how to accomplish:

I have a flash animated menu with main headings and sub headings. When a heading is clicked, the movie stops on the selected heading....

however....

when using PHP script throughout the pages each page is reloaded and therefore if somebody visits the 'ABOUT US, History' page the menu is then reloaded and states that the current page is is 'Home' when it is infact not.

Please can somebody guide me around this problem and paste some sample code for me to play around with.

Many Thanks

Simon

Callign Php Variable Into A Dynamic Text
HELLO FRIENDS. I WANT TO CALL $thisDate IN A DYNAMIC TEXT FIELD IN FLASH. BUT NO IDEA HOW TO DO IT


PHP Code:



<?php 
    $thisDate= date("F j, Y, h:i a"); 
    echo $thisDate."&"; 
?>





I TRY THIS BUT IS NOT WORKING

Code:

loadVariablesNum("Server_Time.php", 0, "POST");

var myString:String = new String();
myString = "$thisDate=";
_root.content.text = myString;
ANY SUGGEST I APPRECIATE

How To Have Frames In Flash (frames That Are Like HTML Frames)?
hi
Does anyone know how i can have frames (frames that are like html frames) in my movie?
Like say:
I want movie 1 to load into frame 1 of my main movie.
Movie 2 to load into frame 2 of my main movie.
Thanks for your help.
Metal Fusion

Puzzled On Frames Loaded And Total Frames Calculation Issue
The Goal:
I am trying to find out if the last frame of a loaded swf has been completed so I can then unload that swf and replace it with another swf.

The Process:
I have on the main time line a MC called movie1. (The main time line is only one frame long)

In the first frame on the main time line I have the following code:
---- start code ----
loadMovie("test/test_movie.swf", "movie1");
if (_root.movie1.framesloaded=_root.movie1.totalframe s) {
getURL("javascript:alert("Frames Fully Loaded")");
} else {
gotoAndPlay("Scene 1", 1);
getURL("javascript:alert("Frames Not Loaded")");
}

---- end code ----

This code will load and play the movie into the MC and gives me an alert that the "Frames Not Loaded". Thats great because it means I am loading the movie correctly and testing the total frames correctly. But I need to know when the last frame of the loaded swf has played so I can then load another. Even if I take out the else statment in my testing code I still can't get it to tell me when all the frames are loaded.

Any help would be great.

Thanks

Looping Frames X-y For 'z' Amount Of Times Then Proceeding To Frames After Loop
Hi,

I'm relatively new to Flash and have not done much work with the AS. I was hoping someone here could enlighten me on an area which has been stumping me.

I need to know how to loop (for example) frames 1 to 5, 4 times then continue to frame 6 until the last frame, then go back to frame 1, thus re-entering the loop, etc. I do believe it would involve something like this... but then again I'm a newbie to this so... what do I know (which is why I wanna learn)

Frame 1:
i=0

Frame 5:
i=i+1
if (i>4) {
gotoAndPlay(6);
} else if (i<4) {
gotoAndPlay(1);
}


Thanks so much

Looping First 38 Frames 7 Times, Then Playing The Whole 76 Frames And Stopping
Hi Guys, I have a movieclip that the first half has one set of movements, but the second half changes. I want to be able to loop this movieclip (instance on the root), so that it plays the first 38 frames 7 times...i.e., loops 7 times, and the 8th time, it plays the whole clip, then stips...the movie is 76 frames long.

I know it's going to be...make i=1 first time...add 1 to i each time...and if i=7, then play past frame 38...and put a stop(); at the end of the movie, but i don't know how that code would look, if I could please ask for more...basic (ugh...) help...
In other words, how do I write this (pseudocode) in AS:

i=1
play frames 1-38
i=i+1
if i is less than 8, play frames 1-38
if i is more than 7, play the whole movieclip, all 76 frames


Shawn

How To Repeat A Group Of Frames Without Adding A Million Frames?
Hello,

I have made a small flash intro using Flash MX 2004 Professional. The intro is about 3 seconds long. Here's what I want to do:

I want to add a few frames to the intro where I add things shooting through randomly, and I need these few frames to repeat themselves while keeping the main intro sort of paused in the background... How would I do this? How would I "pause" the background without adding a million frames? And is there some way that I can loop a group of frames? Please respond as "newbish" as possible so I can understand

Thank you!

Copy Frames Paste Frames... File Size.
Sooo I have a bunch of vector art I imported from swift3d and than I want to reverse the animation later on in the project so I copy the frames and than I paste them then I use the reverse frames option.... When I compile it doubles the size when I compile.... I know that maybe I should expect this. But if the symbols are already in the library why doesnt flash just use those symbols again and not increase in size?'

I hope this makes sense thanks in advance

Film Frames To Flash Frames
I want to make some small animations and in order to capture movement and forms 'correctly' I want to use digital video.

I would then turn up the contrast to define the form and shapes and then trace in flash or freehand. Hereby creating a frame by frame animation.

OK that's an idea, how do I do that the best way? (and quick?)

Move All Clips For 30 Frames ? Can't Use "copy Frames" Why ?
Hi
I have a animation with masks, movieclips loads of keyframes...all in all about 25 layers.
How can I insert at the beginning in every layer for example 30 emty frames ?
Another thing:
I tried to make a movieclip out of this animation because I don't want to handle all these layers but it doesn't work. The option "copy frames" is not active. Why ?
Thanks a lot for help.
cheers
Stefan

Replacing Frames With Other Frames
I would like to know if it's possible to replace existing frames with other frames. In my case I have made an animation of a talking guy with text appearing over him, but at some point he stops talking and I forgot to insert the frames where his mouth is closed, so I'm stuck with no text but a mouth that is moving anyway. I would like to replace the sequence of 'moving mouth frames' with a sequence of 'closed mouth' of the same length.

Thanks in advance guys.

FRAMES
I'M DOING A SITE WITH HTML AND I'M USIN FLASH TO MAKE MY BUTTONS. MY QUESTION IS HOW DO YOU WRITE THE ACTION SCRIPT TO TARGET FRAME NAMES.THANKS FOR ANYHELP!!!

.swf's And Frames
Hello.
Here is the question: How does one controll a swf from another swf loaded into another frame in the browser window. wow, I'm even confusing myself with that explanation... If I have a frameset with two frames, and one frame (the Main frame) contains my main movie, while the other frame has a 2nd swf loaded into it at a certain point along the main movie's timeline. Is there a way to control the main movie from this 2nd swf? Sorry if that makes no sence, its been a loooong day. I'm playing around with _parent._root etc, etc, but obviously no success.
Anyhow, thanks for any and all help.

Frames Per Second
Hey Guys,

I was wondering if was possible to have actionscripting to make a MC run faster through the frames, instead of changing the fps..

Any comments welcome..

cheers
mdesign

In Frames
ooo a cow icon!!!!! nice!! i'm in heaven!

ok... i have made a navigation bar in flash for my site and when i put it in the frame it doesnt stretch the project to the users screen. i have a java script on the page that resizes the window to the users screen but screens bigger than 800 width theres black around it.

i've using GoLive 4.x to make my pages and i cant figure out how to tell the frame to resize the .swf file to the users screen. can someone please help!!!

Frames
I have a setup where it simulates a FRAMES type page. imagine a title frame, a menu frame and footer frames with a central viewing place. I desire to make it so I can click on a menu option and have the desired scene appear in the central viewscreen... how can this be done? I can supply an image of what I have already done or even a flash "movie" of it if it helps.. please Respond ASAP (ICQ# 19803425)

I Need Frames
Someone point me to an actual working tutorial, or even a finished product I can download that I can use. I need a frame with a scrollbar on the side. The scrollbar needs to scroll the text inside of the frame, and the text in the frame needs to come from an external source..via a .txt file. Someone help.

I NEED Frames
Someone point me to an actual working tutorial, or even a finished product I can download that I can use. I need a frame with a scrollbar on the side. The scrollbar needs to scroll the text inside of the frame, and the text in the frame needs to come from an external source..via a .txt file. Someone help.

Frames Please Help
hey, i made a document and it has a frame at the top. and when i saved it and loaded it using ftp. i looked at it and it only has the bottom part of the document. the whole top frame is missing! i'm using dreamweaver 3, can u please help?

Frames...
Hi all, I need to know how to load pages in separate frames. Say you had a page, with two frames, a left side that would be the menu, and the right side, that would be the actual page being controlled by the menu. How would you word the action script for the buttons to change that frame? thanks in advance to anyone who can help! :-)

Frames
im trying to have my flash menu(which is in the left frame) open a webpage(in the right frame) but i dont know what action script to put in it... i have tired other ways to do it but it opens it up in another window...can anyone help me???

Frames
ok, in my movie, i go from page to page by using the gotoandstop thing, from frame to frame, and i have a link inside of a movie clip, and how do i tell it to leave that movie clip, and go to a frame outside of that movie clip? i tried putting that page in a new scene, and other things, PLEASE HELP!!!!!

Get Url And Frames
if i wanted to link to main.html and the frame target, what would i fill in the geturl area

main.html target="main"



????

Due SOON Get Url's In Frames. HELP
Ok you can check my website ( http://www.lanceg.myip.org ) for a better example but here's the basics. I have a left and a right frame. I have a flash navagation swf in the left frame that I need to change the html file/page in the right frame. I know how to use the Get url to change the parent site thing. But to make sure I get what I need plz assume studity. So flash in the left frame needs to change the html page in the right frame.
Thx in advance

Frames?
is there a way i can make a frame last throughout the whole scene like a background? I used tween motion but thats kinda wierd.

Frames Per Second
hey.. how.. so my question is.. how do you make you can see the fps in a dynamic textfield.. or some other textfield.. please reply as fast as you can because i need it tommorow

Frames Per Second
Hi,

Are there any guidelines or reccomendations for what you can use as frames per second in flash movies?

Are there any resources on the net that have explored this issue?

I'm curious if slower computers can handle higher frame rates in flash. (nothing really high, but 24 fps or so)

-thurston

Over And Hit Frames?
I'm obviously new at this, but I am going through a tutorial on how to make pop up menus. It say that you make a button (which I hope I did right) and add over and hit frames. I can't figure out how to due this and/or what it means. It's it that important to have those or what. If anyone could help me out if would be a big help. Thanks in advance.

Getting Away From Too Much Frames
I want my mc to travel from a certain distance on my stage. I know i can simply use motion tweening. But i want it to move slowly and this would cost me a lot of frames in my timeline.Im using 12 fps for this movie. I tried tweening my mc, and it took me 400 frames for my desired speed, well.. almost. What if i want it a li'l slower...another frames? Is there a way to do it in actionscript? im using FLA 5

THNX in advance!

FRAMES PER SECOND PLEASE HELP
HOW DO I MODIFY THE FRAME PER SCEOND IT SEPERATE MC'S SO THAT THE WHOLE MOVIE DOESN'T CHANGE FROM 12FPS????

Frames Over And Over Again
In my mainmovie I have between frame 100 and 110 another movie that is playing when I call this movie.
Sometimes must this movie (between 100 and 110)play twice and sometimes maybe seven times.
What actionscript must u uses so that the movie loops two,three, four, five ,six or seven times between frame 100 and 110

Ron


http://www.grumpie.nl
Dutch slotmachines

Frames
in flash, how do I load html frames? My flash is in one frame, and when I click a button, I want it to load a frame on another part of the page.

thanks

Frames Per Second - Please Help
I created a shape morph where I have text morphing into an image. The movie is set at 12 fps but the animation appears to be starting at 12 fps and switching to 1 fps on the second frame. The rest of the animation gradually increases to 2 fps (1.1, 1.2, etc). The animation is obviously too slow and choppy this way. I am not sure how to change this. Can someone help?

Frames Per Second
hello,

does anyone know where i can get a mc that will tell me how many frames per second my movie is running at.
i got one from colin moock ages ago but can't find it on his site anymore, thank you

cheers howard

Fps (frames Per Second)
The default is 12.
I prefer 21.
Which fps setting do you use?

Help With Frames
hi! i have a movie with a button, which, when pressed, should go to a specific frame of a second movie (pages.swf). i use this code on the button:

on (release) {
_root.MC = "page two";
loadMovieNum("pages.swf", 1);
}

and on the first frame of the second movie. i have this:
if (_root.MC == "page two") {
gotoAndStop(10);
}
else if (_root.MC == "pg3") {
gotoAndStop(20);
}

for some reason, it always goes to frame 1. why? any help would be great!

Frames
help!! i'm making a webpage and the nav bar is flash. the index.html is set up as 2 frames. the top frame has the nav bar and the bottom frame is for the content. what do i need to add to the get url command to make it to where the urls that the buttons in the nav bar get load in the bottom frame? ie.. press about button, about page loads below the nav bar (in second frame) the bottom frame is named main.html thanx in advance.

Shaggy

Frames Per Second
Is there any way to change the fps in the middle of a scene? I've started on a movie, but realized that I need more fps to create some cool effects. I could change it and then extend every single animation so that it runs at correct speed but that would take alot of patience and time, which I don't want to waste. =)

So, can I change the fps with some kind of action script or anything? It would help alot.

And one more thing, what fps value do you recommend for let's say an animated movie?

[][][.][][][] (these Are Frames)
is it possible to make the word loading to appear dynamically (in text field of course) whenever something is loading into the main movie?

or do i have to especify?

if so, how do i make it?

rather than scared i'm stressed!!!

Frames
Hello,

I have piece of code here:

lugar = "a";
z = 0;
stop();
this.swapDepths(1);
_root.boton1.lugar = "aboutus.html";
_root.boton2.lugar = "services.html";
_root.boton3.lugar = "contactus.html";
_root.boton4.lugar = "news.html";
_root.boton5.lugar = "register.html";
_root.boton6.lugar = "login.html";


I need to have the urls point to a particular frame on the index.

For instance, the frame name is "middlemain". I need each of the cooresponding addresses above to put the address in the middlemain frame. How do I do this?

You can check out the menu bar at http://www.tuskcom.com and click on the menu item "Contact" then when it finishes opening the box, click on "ok" at the top right hand part of the balck box that opened when you clicked on contact.

Please help, must finish and I am tired of it opening in the same frame as the menu.

Frames Help
Ok, this may seem easy, I know.. my brain is just not working right now. Anyways, I have made a simple menu in Flash.. basically, I want to have it sit in a top frame. Now.. how can I get the buttons on this menu to manipulate the frame pages. Simple question I think

Frames
Is it possible to have a outside source such as a message board in a flash movie. I have not seen any. For example, I am designing a flash movie and I already have a message board on another url. Is there a way to have that message board show a on keyframe in a flash movie? Kinda like in HTML you have frames and in one frame you have one page and in the other frame you have another page? Thanks all.

Key Frames
I have a 100 key frames in a file, just key frames, no tweening as it came out of 3d max. I need to change the colours of the components, but do i have to go into every key frame individually to do it, or is there a short cut? A 100 frames is a lot to do manually!!

Would be most grateful.

Anna

Frames
I have one question. I am very new at this. I was wondering... I want to change the FPS (frames per second) rate. I know how to change the main one but I want to have some lightning flash in and have stuff scroll in under it. But I dont want it to scroll in as fast as the lightning does. Is this possible??

Thanks

You'll Need Frames
Flash is not able to load other sites insied of itself.
At least every one told me it can't be done. You'll have to use frames in html. Have your flash nav bar in the top frame and html or other swf movie in center/or bottom frame.

On how to make frame check out javascript.com/ or follow link to other communities dealing with HTML.

Patrick

The Frames Behind Up Over Down Hit 5 6 7 8
the frames behind up over down hit 5 6 7 8 ... <= what can i do with them?


thanx for all kind of help (even if u send me more brain to manage it, would be nice :-))

Nav And Frames Plz Help
Well i made this nav bar that i imported into dreamweaver, i put it in a frame in the top right and i want the buttons to load there stuff in the "mainframe". In flash i tried setting actionscripts to the button "on (release) {
getURL(links.html).mainframe;
}" thats for the links button. When i put it into DW and setup the frames and make a page for links,home, ect and then test it in browser nothing happens when i click the buttons on the nav. Can anyone help? plz

Frames Per Second
Is there a way to change your farmes per second but that the length of ur movie (in seconds) stays the same ... So for example your sound doesnt have to be replaced at the correct places ...

Can you pls answer me asap

Also if u think its not possible :s

Frames
how do i get movie clips/variables/ect to only effect the frame its on?

Copyright © 2005-08 www.BigResource.com, All rights reserved