ActionScript 2.0 :: Attatched The Script To Frame1 Of The Main Timeline?
Mar 25, 2002
I'm having trouble using flashamp, I'm ovbiously writing the script in the wrong place I just cant quite get it These are the two errors flashamp teqh support sent me back
- script attached to frame 1 of the main timeline, not the instance of the Controller clip.- duplicate script attached to frame 1 of the Controller clip timeline not the root level instance of the Controller clip.
So I attatched the script to frame1 of the main timeline (this is wrong) but I cant figure how to attatch it to the instance of the controller clip? Then I have to attatch it to the root level instance of the controller clip, and so far I'm somewhat puzzled on how you do this.
View 6 Replies
Similar Posts:
Nov 21, 2009
I have created myself a new website and I get the following error
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at flash_fla::MainTimeline/frame1()
The website loads ok but if i navigate around and click home again i get:
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at flash_fla::MainTimeline/frame1()
at flash.display::MovieClip/gotoAndStop()
at flash_fla::MainTimeline/clickSection()
Here is the code im using, I have set up a few segments of code on different frames in the flash time line but this is the code from the first section, I had more errors but they were relating to my pre-loader which I deleted. I have failed at a few things in my code. Getting multiple images to load into a ui loader, creating a pre loader and making a "fluid" or "liquid" page.
ActionScript Code:
stop();
//stageResize
stage.scaleMode = StageScaleMode.NO_SCALE;
//stage.align = StageAlign.LEFT;
stage.addEventListener(Event.RESIZE, resizeListener);
[Code] .....
The website is here: [URL]. I only get the error in IE and my mp3 doesn't load when I click "on".
View 0 Replies
Apr 12, 2006
ok so here the problem: i have a dynamically generated menu which is made up of a swf and an xml files, i want to be able to load these into my main swf, now the code i have got for the button is:
[Code]....
yet when is click on the button the swf loads but i get the follwing error: Error opening URL "file:///C|/Documents%20and%20Settings/alex%2Dwork/Desktop/Betatest/Flash/menu.xml" when i place a copy of the xml into the above folder it crashes flash 8 so what do i need to do to correct this problem?
View 2 Replies
Oct 2, 2011
I have 3 layers in the timeline, and I want to make a new layer, and then use the new layer to be my first frame (like a startpage).
View 2 Replies
Oct 16, 2009
I have 3 functions in my main document class that I want to execute when the main timeline reaches a particular frame number. how do I do that?
see the code and comments
public function mainClass()
{
//stage declaraction
stage.align = StageAlign.TOP_LEFT;
[Code]....
View 5 Replies
Jun 10, 2009
why the timeline inside these movie clips and the timeline on the main scene have to correspond to work. [URL]
View 1 Replies
Feb 2, 2010
I cannot seem to find anything of what I need from google.(Well, I can find the reverse method to what i need ) Basically I wish to access a variable declared in the Root Timeline from my Movie clips timeline.
[Code]...
View 2 Replies
Mar 16, 2007
I simply want to assign a variable to the current frame of the main timeline (not movieclip timeline) I already know about _currentframe and it doesn't help in this case.
View 4 Replies
Apr 26, 2011
I am in the learning process. Working with FlashCS5 and AS3. if the issue appears to be too simple for you. Placed a movieclip(mcassessJohn) on the main timeline and moved to the frame labelled "johnFeedback" in the movieclip timeline using the following actionscript code.
[Code]...
View 1 Replies
Oct 9, 2009
I have a file comprised of 1 scene and two movie clips. The clips are instanced into the Main Timeline and occupy Frames 1 and 2 respectively.MovieClip1 is an animation that has navigation buttons that appear at the end of the clip. I'm trying to get mouse click navigation to make Frame 2 on the Main Timeline active.
Here is what I'm trying but it is not working:
btExplore.addEventListener(MouseEvent.CLICK, ExploreClick);
function ExploreClick (evt:MouseEvent):void {
gotoAndStop(2);
}
this takes the animation to Frame 2 of the Movie Clip Timeline not Frame 2 the Main Timeline.
View 9 Replies
Jul 4, 2009
I'm having some problem with the workflow of flash.I make web banners everyday att my work att it is important to me to have the banners easy structured so I can copy effects, tweens and symbols to a new banner. I have Flash CS3 pro.I always start by making a symbols. And then in the symbols own timeline I make the animation or effect.
The big problem I'm having is when I have the main (scene1) timeline with many frames, and then have symbols on that timeline, with it's own timeline with some frames. The frames in the symbol timeline is okey, but at the main timeline the frames is too short or too long so the animation of the symbol cuts of early or it plays more than one time (too many frames).
How do I calculate how long a symbols timeline should be so It maches the main timeline?What happens to me is that I always have to adjust the symbols timeline and the main timeline, and this I have to do many times.
View 2 Replies
Jul 14, 2009
so here's the function on main stage:
[Code]....
and here's the code that wants to call this function in a another movie clip. I've attached this clip dynamicaly to the main stage as well.
[Code].....
How can i acess slideImage function on the main stage. in AS2 _root.slideImage(btnNumber); would work. How Would I do this in AS3?
View 7 Replies
Dec 30, 2009
I have a main.fla which has 3 movieclips inside it. All 3 mc's have timelines that run 40 frames. The main.fla timeline has each mc instance on a frame. mc_1 is on frame 1 mc_2 is on frame 40 mc_3 is on frame 81 as the main timeline plays the clips each one fades to the other. I need to know how to target this scenerio after mc_3 plays I need to have a goToAndplay (20) set up so the animation inside mc_1 starts playing (frame 20) of mc_1.
View 5 Replies
Mar 13, 2011
I have a magic cloud effect. On frame 30 of the nested effect I would like an mc on the main timeline to become visible.Not too sure how to code with frame numbers,a) Do I put AS on the timeline of the nested clip ORb) Write code on the main timeline to listen for when the nested mc gets to frame 30
View 5 Replies
Apr 5, 2005
I have a movieclip on the scene. I also have a button on the scene and when I press the button I want to send a variable-value to the movieclip. I have a variable set in the actual frame on the main-timeline but the movieclip doesn't catch that, when traced I get undefined. Can I send a value from the main-timeline to a moviclips timeline?
View 3 Replies
Aug 30, 2009
On my main timeline, I load a mc from the library with:
text_content.attachMovie("text_content", "text_content", 10);
There is a marker inside this mc called "news". I need a script in the main timeline that will gotoandStop "news" within the "text_content" mc.I have tried, amongst others
[code].....
View 4 Replies
Apr 5, 2005
I have a movieclip on the scene. I also have a button on the scene and when I press the button I want to send a variable-value to the movieclip. I have a variable set in the actual frame on the main-timeline but the movieclip doesn�t catch that, when traced I get undefined. Can I send a value from the main-timeline to a moviclips timeline?
View 3 Replies
Nov 22, 2011
How do I link a button thats embedded in frame 2 (music page timeline) to a frame in the main timeline ( frame 3= biography page)? Both pages are on the same scene with link buttons embedded in each page independent timeline.
View 1 Replies
Aug 9, 2010
I am trying to "gotoAndStop" on a frame in a nested timeline from the main timeline, but can't seem to figure out the correct way to write it with it's 'parents' etc... this is how I have tried which makes sense to me (have tried other ways too) but no success.
gotoAndStop(parent."framename");
View 3 Replies
Oct 26, 2006
I have successfully created a mock of the FLVPlayback component on frame1 with a button that advances to frame 2 where the FLV actually starts playing. This allows me to use still image MCs and copy that prevents an FLV that is not on autoplay from looking like a blank black screen. [URL]I would also like to have messaging at the end of the video encouraging actions such as attending an event or calling or clicking. Often this would include still images and or a logo. I tried putting the instance of the FLVPlayback in an MC called mcVideo with an extra frame on that MCs timeline that displays the ending art and action copy. But no matter what I try I see nothing but a stopped video at the end of my Flash movie. I keep thinking that after the nested video MC plays if I could only get the timeline to advance to one more frame I could do this. Am I going to have to create a cue point and then have it go to the frame that displays the ending copy?
View 1 Replies
Jan 17, 2010
i have a menu, that is triggered by an .as file, and a xml file. under the xml file i have this:
[Code]...
and under the main fla i have this for frame 5 (frame 1 plays it fine...i have imageLoader instead of loader for frame1) var loader:Loader = new Loader();loader.load(new URLRequest("about.swf"));addChild(loader); i also have a stop after frame 1 script.
View 17 Replies
Apr 13, 2009
I've created a preloader using the following script:
mySWF.contentLoaderInfo.addEventListener(ProgressE vent.PROGRESS, loop);
mySWF.contentLoaderInfo.addEventListener(Event.COM PLETE, done);
Works, but even if the content has been previously downloaded there is still a quick flicker of frame1 of the preloader...is there a way to avoid this (in AS2 you could check, if loaded)? Is there a way to arrange...maybe using an if statement...to avoid the flicker? Basically if the file is available locally bypass frame1 of the preloader and go to frame2?
View 1 Replies
Jul 27, 2011
I followed a tutorial to get this to work. I've been fixing new errors on this project for the past 5 hours.
ActionScript Code:
import flash.events.MouseEvent;
var imgurl:String = "img1.jpg";
[code]....
View 9 Replies
Apr 15, 2010
I have a movieclip in a movieclip with a button, when clicked it should go to the main timeline I have done this with AS2, the script is below. How can I accomplish this in AS3.
on (release) { _root.gotoAndStop(785);}
View 5 Replies
Dec 6, 2005
I have a main navigation bar on my main stage that is constant through out. I have converted the bar to a movie clip. How do i then tell the movie clip to look at the main stage, not inside the mc, when a button/mouse event is clicked. This is what i have.
stop();
name_btn.addEventListener(MouseEvent.CLICK, enterMovie);
function enterMovie(myEvent:MouseEvent):void{
[code].....
View 1 Replies
Nov 8, 2010
I am gonna connect two swf file on the same domain. I actually want to connect button1 on swf1 to frame1 on swf2 and then the same like that button2 to frame2... I think localconnection class is usable for that I am open to other ideas, it's very simple I guess but I am novice at this and this is my first job.
View 1 Replies
Sep 30, 2008
[URL]about 30 seconds into this flash, there is an FLV of a computer screen. The problem is, when I pause the swf, the flv keeps going. How do I get around this?1. Is it possible to convert the flv to swf?OR2. Is it possible to control the flv from the main timeline?
View 7 Replies
May 19, 2009
I have 3 movieclips on the main stage.
btn1, 2, 3
I have this code in the maintime line, that when i click a button, the btn the stays static (like its on), when i click another btn, it switches on the next button and loads an external swf.
Each button's instance name is button1, 2, 3..and more buttons I add the stage I would increase the button number, so for 3 buttons on stage I have up (var buttonNum:Number = 3
code//
var buttonNum:Number = 1;
for (i=1; i<=buttonNum; i++) {
this["button"+i].onRollOver = function() {
[Code].....
This all works fine.
I have built a scroller with thumbnails as movieclips and would like to add this code to movieclips.
The thumbnails are indivdual moviclips and are inside a movieclip (productscroll), as the dragbar i am using targets the clip (productscroll) to scroll the thumbnails.
I basically need the same actions as the buttons. When I click a thumbnail I need to load an external swf.
View 3 Replies
Nov 23, 2009
I'm trying to play a frame label that is on the main timeline by clicking on a button inside of a movieclip.Here is the error I'm getting. I most definitely have a page1 label on the frame.[code]
View 9 Replies
Aug 26, 2010
I recently started creating a flash website from a template that was created back in 2004. I have very little knowledge of either AS 2.0 or AS 3.0. I am currently attempting to link my buttons that are in separate movieclips back to specific parts of the main timeline "scene 1". Currently when clicked, the buttons just cycle through the varying pages that have been created, "s1" , "s2" etc.
How do I link a movieclip/button back to "s8" in the main timeline?The AS 2.0(I think it's AS 2.0 anyway) that currently exists is as follows:
PHP Code:
on (rollOver) {
gotoAndPlay(2);
}
[code]....
I understand what first rollOver and rollOut commands are and they work fine, but the "On (release)" doesn't seem to go where it needs to.
View 2 Replies