Calling Mcs From Frame
Hello again. In my undying attempt to use the simplest things in 2004, I have run across another oddity. I have 5 movieClips (named b1,b2,b3 etc) that I want to tell to play() one at a time with actionscript. So I write a simple getTimer thing with a trace that worked fine. But the movieClips would not play(). So, I took out all the code and put in this:
Code: b1.play(); ...Nothin. So I tried:
Code: _root.b1.play(); ...Nothin. So I put in in a movieClip (load) just off the stage...works. Why won't it play from the frame? Should I start putting my code in movieClips?? What the???
Happy Holidays.
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 12-13-2004, 05:35 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Calling A Function To Activate In A Frame W/out Going To That Frame
Hello,
I know this is a rather strange issue but I'm trying to print data built from a function in a specific frame w/out actually going to the frame.
I can easily print data from a frame w/out being in that frame but I need to call a function to build the data in that frame before it's printed.
Is this possible?
Thanks,
Clem C
Calling A Function To Activate In A Frame W/out Going To That Frame
Hello,
I know this is a rather strange issue but I'm trying to print data built from a function in a specific frame w/out actually going to the frame.
I can easily print data from a frame w/out being in that frame but I need to call a function to build the data in that frame before it's printed.
Is this possible?
Thanks,
Clem C
Calling A Function To Activate In A Frame W/out Going To That Frame
Hello,
I know this is a rather strange issue but I'm trying to print data built from a function in a specific frame w/out actually going to the frame.
I can easily print data from a frame w/out being in that frame but I need to call a function to build the data in that frame before it's printed.
Is this possible?
Thanks,
Clem C
Calling JS In A Frame
hi, im need to create a popups for my site, and at the moment I use a smartclip with a button which holds this script:
on (release) {
getURL ("javascript:window.open('" add url add "','" add winName add "','width=" add winW add ",height=" add winH add ",top='+((screen.height/2)-(" add winH/2 add "))+',left='+((screen.width/2)-(" add winW/2 add "))+',toolbar=" add tools add ",scrollbars=" add scroll add ",resizable=" add resize add ",menubar=" add menu add ",status=" add status add ",directories=" add directory add ",location=" add location add "'); void(0);");
}
- which creates a popup in the centr of the screen -
i use this so i dont have to create JS functions in the page that the movie holds ( because i cant be arsed ).
The above code works fine, except when the movie is in a frame. ( after the click, the frame just turns into an error page -not intended- )Why? are there any other simple methods (ones where script in the html file isnt needed) which opens a JAVASCRIPT window (so it can be killed whithout an error message) that can be used?
Calling A Frame
from a button, why isnt it working? i used normal and expert mode, on normal mode, the code it gave me was this:
onClipEvent (load) {
gotoAndPlay(36);
}
and it didnt work, and then i tried gueesing it, so i made this:
on (release) {
gotoAndPlay(38);
}
but what happens when i run a HTML preview with both forms is that my computer freezes..
please help, what am i doing wrong?
Calling The Same Frame More Than Once
I have a button that on release goes to another timeline on frame 151. This timeline runs its course from the frame 151 and everyone is happy.
later, i have a different button on another timeline to call the same frame (151) but it fails to initialise. no more happy.
this frame 151, it has a stop on it. the first time it is called it works, the second occasion no. why ?
the fix i worked out is to instead call the frame ahead of 151 the second time round. the timeline then goes into action. but this isnt ideal. do i have to set this "second visit" to a frame ahead ? or do i do something at the end of the first 151 call (maybe when the timeline holding the 151 frame ends, should i make it return to 151 and wait for the next call ?)
hope i made myself clear.
thanks.
Calling Up A Url At A Frame, Help
hello, i am in dire need of help, many of you probably will think that this is a totally easy fix, but i'm just now coming off of actionscript 2 and ac3 is totally foreign to me, but i figured its time to start learning.
anyhow, i was wondering how to make the .swf call up a url (with a target) once a certain frame plays, instead of having to click a button.
if anyone has any advice or examples, i'd be so thankful.
Calling Up A Frame
Hi is it possible to call up a frame with diferent swf's?
example main movie index1 now I have another movie index3.
in index3 theres a button, now with that button I want to call a frame from index1 so that when you press the button you end up in index1 on a certain frame.is this possible? thanks
Calling Up A Frame
Hi is it possible to call up a frame with diferent swf's?
example main movie index1 now I have another movie index3.
in index3 theres a button, now with that button I want to call a frame from index1 so that when you press the button you end up in index1 on a certain frame.is this possible? thanks
Calling Mcs From Frame
Hello again.
In my undying attempt to use the simplest things in 2004, I have run across another oddity.
I have 5 movieClips (named b1,b2,b3 etc) that I want to tell to play() one at a time with actionscript. So I write a simple getTimer thing with a trace that worked fine. But the movieClips would not play(). So, I took out all the code and put in this:
Code:
b1.play();
...Nothin. So I tried:
Code:
_root.b1.play();
...Nothin. So I put in in a movieClip (load) just off the stage...works. Why won't it play from the frame? Should I start putting my code in movieClips?? What the???
Happy Holidays.
Calling Up A Frame
Hi is it possible to call up a frame with diferent swf's?
example main movie index1 now I have another movie index3.
in index3 theres a button, now with that button I want to call a frame from index1 so that when you press the button you end up in index1 on a certain frame.is this possible? thanks
Calling A Labled Frame.
hie guys .. mebbe this is a small prob for u .. but then right now im breaking my head with it since 2 hrs..please gimme a quick reply on it.
I have a movie clip(1stclip) on main screen.. inside which i got a animation .. which is running for sometime and when it finishes i wanna call a frame within another movie clip (2ndclip) on the main screen.
now .. how to do it..
well i tried was at the end i had call action
call ("_root.bomsequ.framelable")
....bomsequ is the instance name of 2nd clip..
i donno how to path it onto a framelable ...tell me that
im familiar with action scripting.. but not really sure about the path part with frame lables.. and im working on flash 5 .. please help me out sooooon...
Calling A Swf To A Specific Frame?
Please please please help us.
Is it possible in ver5.0 to call up a .swf in an html page, and make it go to a specific frame?
Basically, the swf controls a java slideshow, then it triggers a change in page where the swf is no longer present, then another change in html page calls the .swf back, but at the frame where it left off, not at the default beginning.
Hope that makes sense?
Cheers Tom
Calling Frame Label
Hi all,
I am running into a problem which I can't find an answer on the web and hope someone here would help me out. Any help is greatly appreciated!!
the way i setup my structure is that:
1. in pageA.html contain a swf called menu.swf with frame labels "menuAA" "menuBB" and "menuCC"
2. pageB.html contain clickme.swf with a button when clicked it will goto pageA.html
Here is my question, is it possible to make it when a user click on the button in pageB.html. he/she will be taken to pageA.html and the playhead will goto frame label "menuCC" instead of loading and page and play from the beginning??
I hope this is clear for you to understand and again any help would be greatly appreciated. Thank you.
shchein
Frame Labels And Calling Them
At the begining of two scenes i have labels for the first frame. Scene one is "pagea" and scene two is "pageb"
Now I have buttons later in the first scene that say
Code:
on (release) {
pagetoo = "pageb"
play();}
and later I have
Code:
gotoAndPlay(pagetoo);
that works.
then on the second scene
it has buttons that say
Code:
on (release) {
pagetoo = "pagea"
play();}
and later I have
Code:
gotoAndPlay(pagetoo);
but somehow it loads the second scene?
I'm totally confused.
Calling Variable To Set A Frame Of An Mc
I have a variable declared in my object tag...
now I want that variable to be called to make an mc (button) gotoAndStop on a frame.
How is this done? I seem to have a glitch
Thx
Calling A Labeled Frame In Another .swf
I have 2 .swf files on an html page.
One .swf(1) is a menu with buttons. I'd like those buttons to control the other .swf(2) to gotoandplay labeled frames.
I tried using MC.gotoandplay("frame1") but I that's not working...I think b/c .swf(2) isn't a MovieClip.
Can I call a frame with GetURL?
Any suggestions?
thanks.
Calling A Button On Frame 2?
Driving me crazy. Been looking for this for 2 hours now.
I have a button,
Code:
_root.MainMovie_mc.innerMovie_mc.button_mc
That is on frame 2 of a movie. I want to attach an onRelease action to it, but I can't figure out how. I figured its something like:
Code:
_root.MainMovie_mc.innerMovie_mc.frame(2).button_mc
or give the frame a label and add the label name to the path:
Code:
_root.MainMovie_mc.innerMovie_mc.frameTwo.button_mc
or something, but can't find it to save my life.
This is a button inside a contact form movie, and what I did was, I added a frame to the beginning of the movie, and now buttons are just borked. My button actions are all in an .as file, but putting the actions on the buttons or not makes no difference. If I take that frame out, everything is beautiful again.
This would be the end result on one of the buttons:
Code:
_root.MainMovie_mc.innerMovie_mc.button_mc.onRelease = function(){
trace("Got Back Button!");
_root.MainMovie_mc.innerMovie_mc.gotoAndStop(1);
}
Please help. I thought finding the syntax for this would be pretty easy, but I guess not.
**EDIT
Up to this point I've done a trace on the button with, and without the new frame:
Code:
trace(_root.MainMovie_mc.innerMovie_mc.button_mc);
and with the new frame at the beginning, the trace comes up blank. Take the frame out, and it traces _level0.MainMovie_mc.innerMovie_mc.button_mc.
I'm going nuts. There has to be a way to access this button on a different frame then the first. I've been through my actionscript book, googled as relevantly as possible, and nothing.
Calling Frame Label Names
Hello,
I need to make a dynamic text box display the frame label name that appears up in the layers. Any thoughts?
Thanks.........Rob
Help Calling Frame Labels With New Syntax
Hi again
Is this the best way to call a frame label with the new 'no TellTarget' syntax?
_root.textclip(gotoAndPlay(alarmes));
It don't seem to work for me, right now
Thanks for any input.
Calling Up A Specific Frame In A Separate Swf
I am working on two different .swf's. The first is a online seminar and the second is a title page where the customers can click on chapters to view. What I want to do is when someone clicks on the chapter to direct it to a separate movie to a specific frame. Could anyone show me the loadMovie script to do this?
Many thanks
JCF
Calling An External Swf Frame Label
Here is what I want to have happen:
User pushes a button and the current swf is replaced by a different swf plus the timeline head is moved to a specific named label in the new swf.
The part that eludes me is moving to the named label.
Iteration Problem In Calling Frame
i am trying to dynamically call a button (buttons 0-7), and then tell the button to go to its corresponding frame number.
The button names get iterated correctly, but they all call frame 7 instead of their own number why?
Need help please.
Code:
MovieClip.prototype.swapProd = function(frameNum) {
for(i = 0; i < frameNum; i++) {
clip = "button"+[i];
this[clip].onRollOver = function() {
_root.SL7499.gotoAndPlay([i]);
}
}
}
[MX04] Calling A Mc After Reaching A Certain Frame
this is probably a pretty straightforward question.
I want to make a button that plays the timeline when pressed, and when the timeline reaches a certain frame (say 30) it calls a separate mc. I need the call to the mc to be relative to the button, not just a frame action. What would be the best way of doing this?
Calling Frame Labels From Another Instance
What I'm trying to do is, when I click either ENGLISH or CHINESE (buttons), the frame label "credit" will play, and the animation will continue.
However, I just can't get it to work. Is it because they are in different instances?
download the fla here
Calling A Sepcific Frame Using LoadMovieNum();
Hope everyone here is having a great day,
I have come across an issue which is mainly due to complex structuring of the project that I'm working on. I was wondering if anyone knows a way to call a specific frame of an external movie clip to be played using loadMovie(); or loadMovieNum(); once a button is click.
Or is my only way out of this is disecting my external swf into individual movies and load them one by one?
Any hint or suggestion will be appreciated.
Cheers.
Calling Movie Clip From Different Frame....
Hi all,
I have a situation that can be done in two diffent ways but none of those work how I liked it....I would really appreciate all your help.
Here is my problem:
1) I have a frame with 5 buttons, when users click on a button, I've called it to _root.myMovieClip.gotoAndStop(2); --> the problem is that, there is a back button the that MovieClip and i would like to know how to initiate the back button to go back to the frame where I have 5 buttons.
2) The same problem can be be done in another way, I have 5 buttons in Frame 1...when users click on a button, I call it to MovieClip.gotoAndStop(2) from Frame 2,, that way I can use the Back button easily. The problem is that I do not know how to write AS that can call movie clip from different Frame.
I would like to ask for your help. Thank you so much. I hope this is not confused anyone.
Thanks,
Ngoc
Calling MC Frame Labels From Main Stage
Hi, everyone. I have a small problem that I can't seem to find an answer to. I have a small game based on the Rock-Paper-Scissors game. I have two movie clips on the stage, each with different frame-labeled animations.
The first frame declares two variables: "playerchoice" is set to 1, and "compchoice" is set to random {3}, and has a stop action. I have three buttons on the main stage in this frame, one each for rock, paper and scissors. By pushing these buttons, the user sets "playerchoice" equal to 1,2 or 3, respectively. Then I have a "Go" button that moves the main timeline to the next frame.
The next frame has an "if..then" statement for each possible number in the variables. "If playerchoice=1, then telltarget ("player") goto and play (rock)" ect. This wasn't working for some reason, so I took out the if..thens and just tried to get the frame to play the MC animations; didn't work.
Now, I've done this before, but I seem to be suffering from some form of amnesia. What is the proper syntax for calling MC animations by frame label from the main time line? I can't seem to get the hang of specifying target paths in flash. Is there a tutorial somewhere that I just can't find?
Anyway, any help would be emensly appreciated. Thanks!
JG
Calling A Frame Label In Mc Doesn't Work :-)
im using MX
calling a frame label in mc doesn't work :-)
here is my label in the GreenPaketaLeft MC : EndStart
the mc is placed on the _root stage and im trying to call him and tell him to play. like this:
gotoAndPlay("_root.GreenPaketaLeft.EndStart");
i tried to load this action as in a clip_event :
onClipEvent (load) {
gotoAndPlay("_root.GreenPaketaLeft.EndStart");
}
the result is that the mc("GreenPaketaLeft") return to his starting point and doesnt work as i ordered him to
:-(
please help
:::NeoSwf:::
Mc Calling Hit Test Against Button In Root From 1 Frame Only
hi. when mc1 reaches frame 20, i need it to see if button1 in _root has the mouse over it, and stop if not, or play on if so.
i tried this in frame 20 of mc1, it doesn't work
Code:
stop();
if (_root.button1(hitTest( _root._xmouse, _root._ymouse, false))) {
gotoAndPlay(21);
}
Components, Calling Frame Label From ComboBox
Are you allowed to post urls to other forums on here?
Because I have seen a post on another forum that is
similar, but it didn't solve my problem.
How do you call a Frame Label from a ComboBox (Component)?
Tried this:
"Drag your combo box onto the stage and give it an instance name.. ill be calling mine 'combo'.
Add the values to the label array.
In the 'change Handler' parameter... type 'gotoFunc'.
On the frame that the combo box sits on... we're going to declare a function which is called whenever a selection is made:
CODE
gotoFunc = function(){
mc.gotoAndStop(combo.getValue())
}
This function runs when the selection is made and tells the 'mc' movieclip to gotoAndStop at the frame with the same label as the selection made.
hope this helps.. "
But it doesn't work...
Any ideas?
Thanks in advance.
From Jack
Calling External Swf And Loading On A Frame Label
I have a button on my main timeline that calls an external swf file into an empty container movie. How do I load external swf file and play on a particular frame label?
I want to load a file called original.swf and start playing on a frame label called stockwheels
my actionscript reads:
on (release) {
containerMovie.loadMovie("flash/original.swf", "stockwheels");
}
any ideas?
Thanks!
Calling Internal Mc To Play On Frame Event
Hello everyone,
Something very simple:
parent mc plays on button entry, it plays up to certain frame and stop untill button rollOut.
Another mc is already in the timeline loaded into 2nd frame and I need to make it play withing parent mc. Sounds may a bit screwy...
Thanks for any support,
Andrew
Calling Flash Function On Specific Frame?
I have a function declaration on frame 1. Is there any way to call this function from frame 1 but use information on lets say frame 3?
For ex.
Frame 1:
Code:
function getTSText()
{
var TS:TextSnapshot = this.textSnapshot;
textArray.push({curFrame:currentFrame, curText:TS.getText(0,10000)});
}
//I want to do something like this:
frame3.getTSText(); //This would still be in frame 1, so I can pull all the text before
//getting to frame 3 in my movie.
Thanks.
Calling Frame Label In Main Movie
hello...
forgot how to do this......i have a main movie that loads other movies into _level1. i have a button in one loaded movie that when pressed will
unLoad my movie in level1 and go to frame labeled home.
i can't seem to get it to work right. it unLoads the movie in level1 but does not go to frame labeled home.
could someone take a look at my code and tell me what i've forgot...
i've also tried _parent in place of _root
on (release) {
unloadMovieNum (1);
_root.gotoAndStop(home);
}
Thanks.....tg
Calling A Specific Frame In A MovieClip From The Main Timeline
I have a movieClip named (both as an object and as an instance) vertRotatingBackground sitting in my main timeline. I also have a button in my main timeline that on(press) I want it to advance the frame of the vertRotatingBackground by one. I've tried using gotoAnd... functions, targetPath function, etc and can't same to find a way to properly call the movieClip and reference a frame within that movieClip. Any suggestions would be appreciated.
Problem With Calling A Movie Clip Frame From A Button.
I Can't Get My Button, Just To The Left Of The Head, To PLay The Movie Clip Called "Tear" Upon Release. I Am Just A Beginner But I Really Can't Do It.
The File Is On My Webspace:
http://myweb.tiscali.co.uk/exhumed/HelpMe.fla
I Have Tried:
on(release){
gototAndPlay("Tear",2);
}
But I Think That It Will Be Looking For trhe Scene Tear Instead Of The Movie Clip. And:
on(release){
Tear_mc.gotoAndPlay(2);
}
But That Doesn't Seem To Work Either.
Thanks.
Michael.
Calling A Specific Frame Within A Loaded Movie Clip
I know it's possible using the goto commands to call specific frames, and I'm wondering if it is possible to call a movie to the _root level and then target a loaded clip, then a frame inside said clip?
ex: inside mc1, you want to click a button to follow this path - go to the _root, load mc2, but load it at frame 2.
I hope that makes sense.
Calling Function Located On A Frame Number Inside A MC
Hi everyone,
I have a movie clip on the stage which contains 4 frames and i wanna call a function from for example frame number 4... Obviously i wanna call this function from the main timeline containing all the MC. How can i do that, i have been looking around but cannot find much...
Can anyone help me achieve this please
Thanks in advance,
Jerome
Calling A Frame From The Maintimeline From Inside A Movie Clip.
I am have a stop action on the main timeline. from there i have a button that jumps and stops at the next frame where a movie clip plays. inside this movie clip, at the last frame, i want a button which when released will go to the next frame which is labeled Step2 in the main timeline, but i am having a tough time figuring out the right path.
any help would be appreciated. i tried the
on (release) {
gotoAndStop("Scene 1", "Step2");
}
but for some reason it stays within the current MC timeline instead of going to the main timeline
Calling A Frame Lable Inside Of An External File
hello.
I have created a music player. you can see it if u check out the site.
http://www.boogyoogy.com
i have this script on the first frame of the website. and when the website loads it loads the dancer1.swf in side of a MC called
"load-dancers"
loadMovie("dancer1.swf",_root.load_dancers);
you can see the dancer dancing.
inside of a dancer1.swf i have MC and inside of that MC there is a framelable called "edgarhide"
when i press on stop it should jump to "edgarhide" where the dancer wil disapiar.
i was told to try this code
on (press) {
gotoAndPlay(_root.load_dancers.dancer1.dancer("edgarhide"));
}
some one please help.
thank you
Vahe
Calling Javascript From Swf (which Is Source File Of Frame) - Problems With OPERA
hey,
right now i have the swf-file as the source file for a frame,
because i want the swf-width depend on the browser-size.
it looks kinda like this:
<frameset cols="10,*,10">
<frame src="border.htm" name="leftFrame">
<frame src="file.swf" name="mainFrame">
<frame src="border.htm" name="rightFrame">
</frameset>
from the swf i call a javascript-code that is located in the 'border.htm'
file.
the javascript simply opens a popup window.
function open_popup() {
MM_openBrWindow('popup.htm','pop','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=500');}everything works fine ine firefox, ie, netscape (at least in another tab),but when it comes to the opera browser (and apparently also safari)i don't get any reaction at all ...i told opera to allow popup-windows, so that shouldnt be the reason.now i am thinking maybe some browsers have a problem with callingjavascripts from within swfs that are not located in that specifichtml-file?maybe some of you encountered the same problem ...would be grateful for any advices ...thanx,eva
URGENT Help For Calling A Window From A Flash Button In A Frame Not Working
Hello, i'm really desperated, because i can't call a window in a frame from flash with the getURL, i tried other but do nothing! and something of external something doesn't work too, so please can enya tellme what can i do???? i'm using flash 8 professional, explorer 6, (and let me tell you that i didn't have issues before)!!
Sound Object - Doesn't Work When Calling Previous Timeline Frame?
Hi everyone.
I'm having this problem that is more theory rather than code and I'm wondering if anyone has had the same issue.
I'm using the sound object in flash to script all my sounds. Everything is fine, exept - when there is a sound playing (looping for example), and my MAIN timeline is called to a previous frame - the sounds just stop working.
Does the sound object not allow sounds to play when called to a previous keyframe?
Wondering if someone has had this problem.
Thanks alot!
[Calling A Frame Of A Flash File From A HTML File]
Hi,
I need help linking html with flash. In other words, I have a flash movie that contains four keyframes. I want to be able to call that frame from a html file. For example, on a html page, if the user clicks on 'about' section, it should go to 'frame 10' of the flash movie file. How do i do that? Can anyone help me on that?
Thanks
|