Fade In And Out Link To Frame Label
Hello, I have some movie clips on the stage controlled by buttons. What I wish to do is when you click on a link and navigate to that frame I want it to fade in. I have that working great. I have built it through the time line instead of code.
Now the problem I am having is, when the user clicks on a link the movie clip goes right to the frame. Instead of fading out and then proceeding to the proper frame label.
For example. Someone clicks on "home" the play head goes to the frame plays the fade in and then the movie clip. Now the user clicks on "Links" I want home to fade out and then proceed to links. Which is easy if there is only one other link. But when I have 5 links and they could be activated in any order, I don't know what to do.
Its kind of like I need to have something that says play next and then go to link clicked.
Curious if someone can point me in the right direction.
Thanks in advance.
Kevin
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 10-07-2008, 08:23 PM
View Complete Forum Thread with Replies
Sponsored Links:
Link Url To Frame Label
I have been searching on here, and elsewhere, for some help on this topic: I want to send out an email that will contain links to different sections of my site (frame labels), which is done in flash. I gather that I need to use flashvars, but I don't know how to use that function. Is there a good tutorial out there which explains how to do this? Thanks for any help!
View Replies !
View Related
Link From HTML To Frame Label
Hi
Does anyone know, how to link from a HTML file to a frame label in a flash movie? And worse, the movie, is in a movie too.
For better understanding: in flash the path woul look like this:
_level0.movie1.movie2("label");
thanks for help!
URGENT..........
View Replies !
View Related
How Link Frame To A Movieclip Label?
ppl i'm getting sick...
i have in a scene and the main timeline right..and in the first frame i've got a stop and a movieclip(a rotative menu with labels) .. and the rest is things with buttons... and i just want is that a button(in the main timeline) when press is going to a frame label INSIDE the MovieClip (to a label inside MC's timeline)!! and i'm going crazy!!
help me please!!
View Replies !
View Related
Using Frame Label As Variable For Url Link
wondering if any one can help i'm trying to make one button link to a certain url depending on the frame label
so on frame label AL001 the button should open a new window and go to url :http//:www.allways-forktrucks.co.uk/AL001
and so on for AL002, AL003 etc
there are two layers to the file the front layer which is different with each frame and the bg layer which is basically 1 long frame which has the button on so there is only one button
any help will be greatly appreciated
Thanks Mat
View Replies !
View Related
Dynamic Text To Link To Frame/label
I am doing a faq page.
I have the questions in the dynamic text box on the left.
When a question is clicked, I would like the answer to appear in the right box.
This is what I need to do.
I need to be able to have (or part of) the dynamic text clickable. Either on its own or with an invisible button. So that I can then link the click to a frame or lable.
How can I make dynamic text do this?
Thanks
Trev
View Replies !
View Related
Link Text To Frame Label Without Button?
is there a way to link text, not to an URLl, but to a frame label?
i want to attatch :
on (release) {
_parent._parent.gotoAndStop("frame_label");
}
to a word in a scrollable dynamic text field without making it a button.
Cos if i make it a button, i have to go through it a zillion times. (i want to link quite a few words)
is there a way to do this (you know, just like html...)
View Replies !
View Related
Directing To Specific Frame / Label From An Outside Link?
I have a slide show style SWF setup with various graphics for a photographer client of mine. He has requested that people be able to send a link to a friend to go straight to a specific image (in this case frame/label). Any suggestions on how I could do this without having to make an enourmous amount of extra pages for people to direct link to? If this doesn't make sense to you, please let me know and I will try to clarify it. Thanks for your help in advance!
View Replies !
View Related
LINK Dynamic Text To A Frame Label?¬¬ HELP
Hey guys!
is there a way to link text, not to an URLl, but to a frame label?
i want to attatch :
on (release) {
_parent._parent.gotoAndStop("frame_label");
}
to a word in a scrollable dynamic text field without making it a button. (And you cant scroll buttons in a dyn text feild anyway...)
Cos if i make it a button, i have to go through it a zillion times. (i want to link quite a few words)
this is a good start:
http://www.flashperfection.com/tutor...MX--73823.html
but again, i want to link frame label, not URL
is there a way to do this (you know, just like html...)
View Replies !
View Related
HTML Link To Specific Frame Label?
I know this sounds confusing but it's really a simple question. You can follow my site to better understand. www.u-stu.com
If you click on "Films" a submenu appears. I want all of these submenu buttons to link to (u-stu.com/films.html) but each go to a specific frame label in the .swf located within u-stu.com/films.html.
For example:
www.u-stu.com/films("equipment" frame label within .swf)
or
www.u-stu.com/films("tips and tricks" frame label within .swf)
View Replies !
View Related
Jumping To Frame Label Before Playing Desired Frame Label.
Hi, I'm new to flash as of a couple months ago. I made a project and I have a frame label that is an outro for the frame label(s) before it. I want this outro to play when the user clicks a button on my menu. Right now, when the button is pressed, it jumps directly to that frame label. Is there a way I can make a specific outro (that will change depending on the current frame label) to play before the frame label that the button calls on plays? This is probably confusing.
this is the actionscript i have so far, which is simply calling on the right frame label:
}
this.btn_home.onRelease = function(){
gotoAndPlay("home");
}
what i want to do is tell it to figure out which label its currently on, then play the outro label, then go to "home" and play that. is this possible? thanks.
View Replies !
View Related
Advancing From Frame Label To Frame Label Using Time Variables
I need to understand how i can advance from a frame labeled "menu" to another frame labeled "submenu", using seconds.
For example, "menu" is on frame# 1 and "submenu" is on frame# 20. I want a 15 second interval between each frame label without making it really big in frames.
I want to make my demo to be simple to edit if I have to give people a longer time to view each slide.
View Replies !
View Related
Link To Label In Timeline AND Label In Movie Clip
help i'm confused...
ive got a big movie clip on the stage
[its a map which might help u imagine it...]
i have a navigation
which links to various points [labels in the timeline] of the movie clip
as it moves around the stage...
can i also link to various labels within the movie clip at the same time
from the same button
if this doesnt make sense
please ask me to explain it differently
rather than just ignore me
thanku
View Replies !
View Related
Buttons Within A Movie To Link To A Frame Label In Another Movie
hi there got a bit prob guys here is the site im working on
http://www.brownsville.org.uk/graph.../bone/index.htm
if you look at the site you will see the scrolling nav bar at the bottom which is its own movie within the my main movie i need to create a links in this scrolling nav bar to frame labels within the main movie anyone got any idea how to do this? thanks in advance!!
View Replies !
View Related
GotoAndPlay A Frame Label Where The Frame Label Is A Variable
gotoAndPlay a frame label where the frame label is a variable
I found a cool dynamic menu that works off of arrays and have been able to modify/customize the array. Once you click on the button it sets a variable name the variable is “_root.select”
I would like to the root time line to gotoAndPlay a frame label that I have that would be the variable name
Lets say in my array I have the following
Jim
Dave
Sally
Karen
And the user selects Dave the variable “_root.select” would be Dave
I would then like the root timeline to gotoAndPlay the frame label Dave
This would fall under the Function below
nc.onRelease = function() {
// Function to get submenu actions needs to go here
var my_str:String = new String(this);
_root.select = my_str.slice(18);
_root.gotoAndPlay (what goes here)
Any Help would be appreciated
Mark
View Replies !
View Related
Flash Button To Take Movie Clip To The Next Frame Label Instead Of The Next Frame
I am trying to figure out how to create a button to take a movie clip to the next Frame Label instead of just to the next Frame. I have a slide show that I am working on with a fade effect from picture to picture. When I just use the nextFrame script it will literally take you from frame to frame on the fade in. Is there a script that will allow you to go to the next (or previous) Frame Label from where the movie was stopped?
Any help is greatly appreciated!
View Replies !
View Related
Can't Target A Frame Label Or Frame Number Within Movie Clip
Hi guys,
Can't for the life of me figure out why this is not working:
if (_currentframe==82) {
homefade_mc.gotoAndPlay("fadeup");
design_mc.gotoAndPlay("design_fade"); - this one is fine
}
- the first gotoAndPlay should be going to the homefade mc and then going to the "fadeup" frame label and play from that, but instead it does nothing. Any clues?
Chris
View Replies !
View Related
IfFrameloaded() Depreciated How To Get Frame Number From Frame Label
ifFrameLoaded() has been depreciated in Flash 5, leaving me with using _framesLoaded which gives me no way to verify a frame label is loaded as far as I can tell.
I thought there was a way to get a frame number from a frame label but I can't find it. How would you determine if a frame label is loaded (not the whole movie, but the just up to the frame label).
The reason I have to do this is that I have large animations that are changing a lot during production and thus the frame numbers are changing. I need to determine if a frame label is loaded (not the entire movie).
Thanks for the help!
View Replies !
View Related
Using A Tween To Fade In A Label Component
I created a Label component that dynamicaly checks the date and displays it as text. Sadly I have tried to put it into a Movie Clip to animate the button to fade it. No matter what I try by putting movie clip in movie clip the component is always visible after publishing. Even though, working on the FLA stage it will fade in and out... what the heck is going on... anyone know?
View Replies !
View Related
How To Obtain Frame Number From Frame Label?
Hi Guys
Does anyone know how I can find out what the frame number is of frame which has a label at runtime using actionscript?
I don't think I can use _currentFrame as I need to find out the frame number prior to actually moving the player head to that location.
for example:
say you want to goto a frame labelled "bananas"
How can I find out what the frame number is of the bananas frame?
Cheers!
View Replies !
View Related
[F8] GotoAndStop Does Not Go To Correct Frame, According To Frame Label
I'm having trouble getting gotoAndStop to go to the correct frame. I've labeled frame 5 as "FIRST", frame 10 as "SECOND", and frame 15 as "THIRD".
Then I put the following code on frame 1, which I labeled "HOME", if it matters.
//var myFrame:String = "FIRST";
var myFrame:String = "SECOND";
//var myFrame:String = "THIRD";
trace(myFrame);
this.gotoAndStop(myFrame);
trace(this._currentframe);
stop();Letting myFrame = "SECOND" sends the playhead to frame 9, but it should be 10. When myFrame = "THIRD", the playhead stays at frame 1, while it should go to 15. Only "FIRST" goes to its correct frame, 5. Note that if I change the frame that is labeled "SECOND" from frame 10 to frame 9, then the playhead goes to frame 8.
I thought that this would be a really simple thing to do, but I'm getting quirky results.
Everything is on the root level and there are no movieclips or scenes involved.
Any help would be greatly appreciated. Thanks, guys.
View Replies !
View Related
[F8] GotoAndStop Does Not Go To Correct Frame, According To Frame Label
I'm having trouble getting gotoAndStop to go to the correct frame. I've labeled frame 5 as "FIRST", frame 10 as "SECOND", and frame 15 as "THIRD".
Then I put the following code on frame 1, which I labeled "HOME", if it matters.
//var myFrame:String = "FIRST";
var myFrame:String = "SECOND";
//var myFrame:String = "THIRD";
trace(myFrame);
this.gotoAndStop(myFrame);
trace(this._currentframe);
stop();Letting myFrame = "SECOND" sends the playhead to frame 9, but it should be 10. When myFrame = "THIRD", the playhead stays at frame 1, while it should go to 15. Only "FIRST" goes to its correct frame, 5. Note that if I change the frame that is labeled "SECOND" from frame 10 to frame 9, then the playhead goes to frame 8.
I thought that this would be a really simple thing to do, but I'm getting quirky results.
Everything is on the root level and there are no movieclips or scenes involved.
Any help would be greatly appreciated. Thanks, guys.
View Replies !
View Related
Finding Frame Number Of Frame Label With AS
is it possible to find the frame number of frame label with AS
what I am trying to do is ...
if a button is rolled over, the timeline jumps to a label - which plays a set of 3D rendered frames to 'raise' and element, once a user rolls out of the 'button' area the button is meant to 'lower' - which can be done by simply playing backwards to the previous label.
any clues?
cheers actionscript heads!
Paul
View Replies !
View Related
How To Obtain Frame Number From Frame Label?
Hi Guys
Does anyone know how I can find out what the frame number is of frame which has a label at runtime using actionscript?
I don't think I can use _currentFrame as I need to find out the frame number prior to actually moving the player head to that location.
for example:
say you want to goto a frame labelled "bananas"
How can I find out what the frame number is of the bananas frame?
Cheers!
View Replies !
View Related
Actionscript To Fade In/fade Out Picture Depending On Frame?
I've searched the board but I can't figure out the answer to my question. I just want to fade in/out a movieclip. I can do this with tweens, but I'm really interested in how this would be done with actionscript.
How could I make it so that the fade in occurs with frames 1-15, stops, and then starting with 16 fades out?
I do have some code that will import a picture into a movieclip and fade it in, but I'm not sure how to alter the code so that the pic fades out on frame 16. The code below is fairly detailed... I would not mind a basic solution!!
Thanks for your help!
PHP Code:
init = function () {
this.myContainer = this.createEmptyMovieClip("cont", 1);
cont._x = 0;
cont._y = 130;
this.myContainer._alpha = 0;
this.myContainer.loadMovie("picture.jpg");
this.preloadJpg();
};
preloadJpg = function() {
this.onEnterFrame = function() {
if (this.myContainer.getBytesLoaded()>100 && this.myContainer.getBytesLoaded()>=this.myContainer.getBytesTotal()) {
this.fadePicIn();
}
};
};
fadePicIn = function() {
if(this.myContainer._alpha < 100){
this.myContainer._alpha += 10;
} else {
this.onEnterFrame = undefined;
}
}
this.init();
View Replies !
View Related
Alpha Fade Image, Wait, Fade Out, Next Frame
Greeting,
After three hous of review I have now looked at so many scripts (here and elsewhere) of fading in/out that I am more confused instead of less confused, which seems odd I know.
Here is what I have and what I want to do. I am using MX.
I have twenty images, one one each frame of a movie clip, placed around the stage. I want the imges placed instead of loaded so that I can control where they appear on the stage. I would like each image to fade in, stay on the stage for 4 seconds, fade out, and then go to the next frame (and repeat with the image located on that frame). Does anybody have any scripts that already do this. I am a beginner and I am not that famaliar with action scripting. I think what I need to do is use an onEnterFrame, with an alpha fade in, some type of delay/counting script, and then a fade-out, and go to the next frame.
I know that you all have thousands of things you could be doing instead of helping me, so please know that I appreciate it.
View Replies !
View Related
How To Link To Certain Label From HTML
Im making a html site
my navigation bar is entirely flash based.
the site is pretty extensive (many pages) and i want each html page to load the same flash navigation on top
but i want each html page to also tell flash to start at a specific label or frame.
this is so i can make one flash file with all the navigation and not seperate flash files for each page or category
i have Flash MX and MX 2004 pro
im hopig there is a new feature in 2004 pro that will make this easy to impliment.
ive searched this message board and havent found a surefire way to get this to work.
please help me out
View Replies !
View Related
Link To A Label In A Popup Window
if i've got this:
on (release) { getURL("javascript:NewWindow=window.open('popup/imagination.swf','newWin','width=400,height=400,le ft=0,top=0,toolbar=0,location=0,scrollbars=No,stat us=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
can i link to a specific label in 'imagination.swf'
thanku
View Replies !
View Related
Link To Flash Label From Html.. How? Please Help
Im making a html site
my navigation bar is entirely flash based.
the site is pretty extensive (many pages) and i want each html page to load the same flash navigation on top
but i want each html page to also tell flash to start at a specific label or frame.
this is so i can make one flash file with all the navigation and not seperate flash files for each page or category
i have Flash MX and MX 2004 pro
im hopig there is a new feature in 2004 pro that will make this easy to impliment.
ive searched this message board and havent found a surefire way to get this to work.
please help me out
View Replies !
View Related
Random Image With Label And Link
I saw this posted on another forum, but i'm completely lost in the AS.
anyone want to help me out a bit or develop a test file. once i see it, i figure it out. just how i learn.
any help would be great.
thanks.
Attached Code:
// set alignment frame visibility
frame._visible = false;
// set var for movie clip depth
depthVar = 1
// path to folder containing images
folder = "img_bin/"
trace("folder set " + folder);
// function to postition picture on stage
function position() {
// set vars for positioning
stageWidth = 540;
stageHeight = 420;
imgW = imgHolder._width;
imgH = imgHolder._height;
trace("Imgage dimensions: " + imgW + " + " + imgH);
// center horizontally
posX = stageWidth/2 - imgW/2;
imgHolder._x = posX;
// if landscape, center vertically
if (imgW > imgH) {
posY = stageHeight/2 - imgH/2;
imgHolder._y = posY;
};
trace("positioning done");
};
//load vars from data.txt file
myLV = new LoadVars();
myLV.load("data.txt");
// select one at random, and then run displayF function
myLV.onLoad = function() {
trace("vars loaded :" + myLV);
for (ivar=1; ivar<100; ivar++) {
if (!this["img"+ivar]) {
displayF(Math.ceil(Math.random()*(ivar-1)));
break;
}
}
};
// create text field for preload counter
//_root.createTextField("ldTxt",depthVar, 0, 0, 10, 30);
//depthVar++;
// setup company1 logo as preload indicator
logo._xscale = 0;
logo._yscale = 0;
// function to load and display image
// create clip for image
function displayF(i) {
trace("'i' = " +i);
rclip = _root.createEmptyMovieClip("imgHolder", depthVar);
depthVar++;
rclip._x=0;
rclip._y=0;
rclip._alpha = 0;
// load jpeg
pathToImage = folder + myLV["img"+i];
trace("Path to image is: " + pathToImage);
rclip.loadMovie(folder + myLV["img"+i]);
trace("movie load set " + rclip);
preloadI = setInterval(preloadF, 50, i);
}
// preload
function preloadF(i) {
trace("preloadF function started");
loaded = imgHolder.getBytesLoaded();
total = imgHolder.getBytesTotal();
percent = imgHolder.getBytesLoaded() / imgHolder.getBytesTotal() * 100;
trace("bytes loaded: " + loaded + " / " + total + " (" + Math.round(percent) + "%)");
// write progress to loader text field
//ldTxt.text = loaded;
//ldTxt.autoSize = "left";
// scale logo according to percent loaded
logo._xscale = percent + 5;
logo._yscale = percent + 5;
// fade out logo
if (percent > 70) {
alpha = (Math.abs(percent - 100) * (percent / 10) / 2);
logo._alpha = alpha;
trace("Logo alpha: " + logo._alpha);
};
// check if loaded
if (loaded>0 && loaded>=total && alpha == 0) {
trace("image loaded");
// if loaded stop preloader
clearInterval(preloadI);
// create hyperlink button on image
//imgHolder.onPress = function() {
//getURL(myLV["link"+i]);
//};
// call position function
position();
// now that it is loaded and positioned, start timer to fade it in
goTimer(fadeIn,20);
//create text field for label
_root.createTextField("tf", depthVar, 0, imgHolder._y+imgH+1, 10, 30);
depthVar++;
tf.autoSize = "center";
tf.selectable = false;
tf.embedFonts = false;
// define text format
var tFmt:TextFormat = new TextFormat();
tFmt.font = "Arial,Helvetica,_sans";
tFmt.color = 0x999999;
//tFmt.bold = true;
tFmt.size = 12;
// position text field
tf._x = imgHolder._x+imgW/2-tf._width/2;
// populate text field with text
txtPrefix = "Photography u00A9 "
tf.text = txtPrefix + myLV["label"+i];
// apply text format
tf.setTextFormat(tFmt);
};
};
// fade in image function
function fadeIn() {
if (imgHolder._alpha < 100) {
imgHolder._alpha = imgHolder._alpha+10;
updateAfterEvent();
} else {
clearInterval(int1);
trace("fade in complete");
}
};
// timer that calls a function (pass function name & interval)
function goTimer(f,t) {
int1 = setInterval(f,t);
trace("goTimer function triggered");
};
Text file reads:
&img1=1.jpg&label1=Jean Francios Campos&link1=
&img2=2.jpg&label2=Jean Francios Campos&link2=
&img3=3.jpg&label3=Simon Lekias&link3=
&img4=4.jpg&label4=Simon Lekias&link4=
&img5=5.jpg&label5=Jonathan Bookallil&link5=
&img6=6.jpg&label6=Jonathan Bookallil&link6=
View Replies !
View Related
Setting Label Link To Playlist.xml
Hi All,
I have a mp3 player includes pictures.
And this player will read a playlist.xml, which include the author's name and song's name.
How can I set that when I move the mouse to the picture, it will show me the title of the mp3 and the author's name? (the label)
Thank you.
View Replies !
View Related
Frame Label, Instead Of Frame Number
gotoAndStop (random(5)+11);
The above actionscript means to go to frame11,12,13,14,15
randomly and stop.
I want to use frame label as the starting point of the random frame because frame number11 is easily changable.
For example, after I put a frame label "ABC",
I have tried the next scripts. However, they don't work.
gotoAndStop (random(5)+"ABC");
gotoAndStop ("random(5)+ABC");
Would you help me? please.
Thanks in Advance
View Replies !
View Related
Property For Seeing What Frame A Frame Label Is At
is there any property that can tell me what frame a frame label is set to. In other words, I have a movieclip that wants to 'wait until the frame head hits a certain frame in a different movieclip in the timeline. I know I can do a while(instance._currentframe != 10), but I want to generalize it and replace the frame number 10 with a variable that would be set by referencing the label to get the frame #.
TIA
View Replies !
View Related
Frame Label Vs. Frame Number
if i have a button with the following action, page01 being the frame label, my button does nothing.
on (release) {
gotoAndPlay(page01);
}
if i have this action, 24 being the frame number for page01, it works.
on (release) {
gotoAndPlay(24);
}
i'd rather not use the frame numbers. do i have the syntax wrong for the labels?
thanks!
View Replies !
View Related
Direct Link To Anchored Label Frames?
I'm wondering if I can link directly to various anchored/labelled/keyframes in one .swf from an external .swf?
Basically, I've got a homepage that has 7 links. I'd like to have one subpage.swf that has the navigation for all 7 links as well as the background for them, but at each of the 7 anchored keyframes I'd load in another movie with that section's content in a layer above the bg/nav that controls the subsection links...
Any help and direction/instruction would be greatly appreciated!
Thanks
View Replies !
View Related
Dynamic Text & Link To Label In Flashmovie
Hi,
Problem I have:
I have a dynamic textbox. Some words in there I want to link to a label/frame in the same flashmovie instead of an url. Is this possible?
I tried to replace them by buttons and placed them on top of the dynamic text, to simulate the same, but that is not very pro i think so. Certainly not the way to do it, coz I experienced location problems.
thx
Shivl
View Replies !
View Related
Dynamic Text & Link To Label In Flashmovie
Hi,
Problem I have:
I have a dynamic textbox. Some words in there I want to link to a label/frame in the same flashmovie instead of an url. Is this possible?
I tried to replace them by buttons and placed them on top of the dynamic text, to simulate the same, but that is not very pro i think so. Certainly not the way to do it, coz I experienced location problems.
thx
Shivl
View Replies !
View Related
Html Link Calling A Label Within A Flash Movie?
I have a flash movie with 7 images lined up on seperate keyframes
on the timeline.
Is it possible to go to each of these images frames with a
button link from a .html page, in turn loading a different image
for each of my html buttons,(links).
I think I seen someone do it by calling variables from a .txt file.
Thanks,
L.
View Replies !
View Related
|