ActionScript 2.0 :: Different Intro Animation In External Swf, Based On A Var's Value?

Jan 10, 2008

I feel this could be pretty basic for you guys. Here's the deal: I need an external swf to check a var's value and decide how to animate. If value == "something" then animate in like this, else, animate in like that. Now, a file is loaded with LoadManager class, and a function from this class sends a string to the loaded swf, and based on that string it animates out. I've tried to make the same function set a public var's value inside the LoadMangaer class, but i can't acces it from the external swf.

It will probably make sence when you look at the fla and the LoadManager class, so here's the attachment.Hope you can help, I've been dwelling on this for ages. Tnx a million.

View 5 Replies


Similar Posts:


Image At The Intro And The Rest Of The Presentation Is Vector Based?

Nov 3, 2009

I wonder if any body could help me. I am currently working on a flash presentation which will be running on a 40" Plasma Screen. What's the perfect size to set up my flash file. At the moment my file is 800 x 600 pixels. I only have one .jepg image at the intro and the rest of the presentation is vector based.

View 1 Replies

ActionScript 2.0 :: Play Intro Animation Just One Time

Jun 26, 2011

In the timeline I have a main menu on frame 1 and four subsections on frames 10,20,30, and 40. I have four buttons on the main menu label("button001"; "button002";"button003", and "button004"), each one is sending the movie to a specific label (i.e: "section001", frame 10; "section002", frame 20; "section003", frame 30; and "section004", frame 40). In each one of those specific frames/labels (10,20,30,and 40) I have a movie clip that contains the section. It starts with a simple animation and ends in a stop. And this is what I want to do: play the animation just once.

Let's say in the main menu; when pressing one of the four buttons, the movie goes to one of those specific frames and the animation starts. For instance, I press "button001" and send my movie to the "section001" label. Then I return to the main menu and press again the "button001"; I don't want the animation to play again, I want to start in the stop point. So, I think about using some kind of conditional, but it's not working. Inside the "section001" movie, I put the following code on the first frame:

ActionScript Code:
stop();
var section001_intro = false;
if (section001_intro = true){
//"section001_stop" is a label I put on the last frame of the movie clip
gotoAndStop("section001_stop");
}else{
nextFrame();
}

Then on the last frame, when the movie stops, I wrote this code:
ActionScript Code:
var section001_intro = true;

So, my idea is that the first time the movie is played, the animation is played; then, I indicate in the last frame that the move has been played. next time I go to the "section001" label the movie must skip the animation and go directly to the "section001_stop" label.

View 9 Replies

ActionScript 2.0 :: Build A Movie Which Has An Intro Animation?

May 27, 2004

trying to build a movie which has an intro animation (small one) using a tweening-playground, build a preloader into an mc that innitializes when the intro is done buuuuut it goes kinda weird, i uploaded the mc so if you could take a look at it

[URL]

View 14 Replies

CS4 Navbar Intro Animation Then Menu, Loop/stop?

May 24, 2009

First, I am an ultra newb who has read about 50 tutorials in the past two weeks or so.So, here is what I am trying to do. I have a header navigation box in my flash page. I want, when someone opens the page, for an animation to play. Then, I want it to stop and display my menu.

What I have done: I created two frames and put my animation in one inside the movie clip. The second frame has the menu. When I try to test it, The frames flicker and the animation doesnt play.I tried putting stop() at the end of both frames. This just made it...not do anything and just display the menu.
A friend suggested putting "root.gotoAndStop(2);" at the last frame of my animation, but then I get an error.

View 1 Replies

Scripts Causing Flash Intro Animation To Freeze

Apr 8, 2012

When my Flash website loads, it freezes halfway through the initial animation for 2-3 seconds and then continues. Am thinking it is one of the scripts in index.html and have tried all sorts of ways to correct it -[code]...

View 2 Replies

ActionScript 3.0 :: Short Intro Animation To Display The Preloader?

May 27, 2010

I have a preloader that works fine when I test i with flash. I publish it and then go to View and Simulate Download. Everything works fine.

But when I upload it to my server it works fine util I hit the reload button, all it does is do the short intro animation to display the preloader and just sits there.

I have attatched the preloader class wich is pretty straight forward.

[code]...

View 2 Replies

ActionScript 3.0 :: Intro Animation - Creating Image Until Whole Page Drawn

Nov 6, 2010

I want the page to be drawn as in intro animation. For example the screen is blank at first and then the image is drawn from the outside in a thin line until the whole page is drawn and then fade the lines into the actual design.

View 5 Replies

ActionScript 2.0 :: Build A Movie Which Has An Intro Animation (small One) Using A Tweening-playground?

May 27, 2004

trying to build a movie which has an intro animation (small one) using a tweening-playground, build a preloader into an mc that innitializes when the intro is done buuuuut it goes kinda weird, i uploaded the mc so if you could take a look at it

View 14 Replies

Professional :: FLV And Skip Intro - Make Note Of The Actual Time Or Keyframe In Which The Intro Completes

Jun 14, 2011

If I have an FLV that I've output as SWF with skin to have embedded into an HTML page, and now a 'skip intro' is needed - though I'd have to make note of the actual time or keyframe in which the intro completes...How is this possible? Clearly, a button would need to be added for that kind of interactivity?

View 3 Replies

ActionScript 3.0 :: Run The External Swf's Actions When It's Called Main-intro.sql

Nov 11, 2009

I have a swf called main.swf that is loading an external swf called main-intro.swf.main-intro.swf has a clip that fades up and then I have a stop action 24 frames in. The problem is is that I get a null object reference error (1009) when calling the external swf. If I remove the stop action then it works, if I rename the external swf to intro-main.swf it works with the (stop action).It seems it just doesn't want to run the external swf's actions when it's called main-intro.sql

View 2 Replies

ActionScript 3.0 :: Flash Intro (flv Imported) As Intro Page?

Apr 11, 2010

I have a movie clip that I imported into flash, used a skin and have a nice little player for this website intro. I want to proceed to the sites home page upon completion of the movie. Searched but the best I could come up with was;
 
player.addEventListener("complete",function (event:Object) { trace("doneVideo");new URLRequest("my link");});

View 5 Replies

ActionScript 3.0 :: Load External SWF As Intro - Goto Frame3 When Finished?

May 13, 2010

I am looking to load an external swf as an intro to a project I am working on. I want the external swf to trigger the main timeline to goto frame 3 when completed. What is the best way to achieve this?

View 2 Replies

ActionScript 3.0 :: Make Intro / Outro Animations Before / After Load External Contents?

Nov 24, 2009

I want to do is a simple transition that allows to me start some function (at the external swf!) to dismount the LOADED content. I'd like to change the external contents with intros and "outros" located on their own timelines.. It's a simple logic, but I dont know how to manage that.. Everytime I try some simple, it never happens.

[URL]

View 6 Replies

Java-based Menu And Flash Animation

Feb 17, 2010

I have a flash animation I'm working on for a Web site and the java-based menu that's above it uses drop-down menus. Well, when the drop-down menus and the flash animation overlap, all you can see is the flash. The menu is behind it. This only happens on a PC-based browser. It is fine on a Mac. Any thoughts here? Any settings I'm missing here? The file is built in Flash CS4 using ActionScript 3.0. Here's the URL for the site (problem on home page when "Resources" menu drops down):

View 2 Replies

ActionScript 2.0 :: Ease Animation Based On X Mouse?

Aug 17, 2011

I'm trying to scroll an MC based on X mouse position and ease it into it's final position as it reaches the edges.

View 1 Replies

ActionScript 2.0 :: Display Animation Based On How Much Data Has Downloaded

Sep 15, 2006

I have a question regarding preloaders.I am wondering if someone could help me figure out how to display an animation based on how much data has downloaded.For example.I have a preloader, it gets to 10% or xxx bytes loaded, I want a movie clip to play (or whatever, sparks to fly, etc.), then at 20% or zzz bytes, another movie clip plays (or again, something else happens).So basically I want the movie to react to how much of it has been downloaded.A real world example of this that I can find quick is.url...(ya ya, everyone uses this as their example).The loader seems to animate based on how much of the movie has actually loaded.play an animation, movie clip, etc based on how many bytes/percent, has loaded.

View 4 Replies

ActionScript 2.0 :: Make A Preloader Based On Frame Animation?

Jul 30, 2007

im just wondering on how can i create a preloader based on a certain keyframe animation.

View 2 Replies

IDE :: Timeline Based Animation Runs Choppy In Some Browsers?

Jan 13, 2009

Try to wrap my head around why sometimes a timeline base animation will run choppy in some browsers. Is it processor speed vs frame rate. I boosted my framerate to 29.97 but on older computers the animation is very arthritic.

View 1 Replies

Actionscript 3 :: Stop Timer Class-based Animation In Another Frame?

Dec 14, 2011

I have a project which consists of 4 frames (+ one starting frame), where each frame contains a Timer class based-animation. You can visit each frame by selecting the appropriate button.

Let's say the animation in frame1 lasts for a total of 30 seconds, but I'm too impatient to watch it and decide to go frame2, which also I don't like. In the background however, the animation for frame1 is still running, for when I go to frame 2 and go back to frame1, the animation starts both from the beginning and also continues to play from where I left off.

I also get an error:

TypeError: Error #1009: Kan geen eigenschap of methode benaderen via een verwijzing naar een object dat null is.
at fl.transitions::TransitionManager/saveContentAppearance()
at fl.transitions::TransitionManager/set content()
at fl.transitions::TransitionManager()

[Code]...

View 1 Replies

ActionScript 2.0 :: Loading Animation Into Swf2 Based On An Array In Swf1

Oct 19, 2009

I have an interface file, which allows the user to drag mc's onto the stage and save their xy position in accordance to a position on a timeline. For example, mc1 is at x50, y50 at timeline position 1.

I am using an array to save all parameters. When the user is finished they can click play to view an animation of the mc's moving about the stage.

I want a button which will somehow save this animation into an external swf. This swf needs to be independent as it will be loaded onto a website.

I have tried to figure this out in many ways. I am new to actionscript but slowlly getting there.

I have looked into using a shared object, to save the xy positions etc which are then loaded into the swf2. The problem with this, is the swf2 is dependent on the SO plus the SO is temporary. I need to be able to hand swf2 over to the guy to put on his website.

I have also looked into using an intermediate .as code file. I have worked out how to put an mc onto swf2 using the graphic held in the interfaces library. I started working out how to click a button on the interface swf which then attaches the mc into swf2.. but then I realised swf2 still isnt independent.

Now I am completely pulling my hair out. This thing is due soon and I am out of ideas.

Failing everything I thought I could just use a capturing software to record the animation as it plays... but with all the time I have spent on this and how far I have come in actionscript it is annoying that I cant work this out.

View 3 Replies

ActionScript 2.0 :: Control A MovieClip Animation Based On A NetStream Event?

Jul 29, 2006

[URL]

What I am trying to do is get the animation of the audio levels (red bars next to the power switch) to only happen while a video is actually playing (videos are in the video gallery section). I have the animation done and I can easily get it to start and stop based on pressing the play and stop buttons, but since they start and pause the video you would get instances where the video isn't playing but the audio levels would be animated, which I don't want.

Here is an example of the code in the play button (using NetConnection and NetStream to play the videos):

Code:
play_btn.onPress = function() {
playSound.start();
infoText_txt.text = "PLAY";
my_ns.pause(spotToPlay);
};

The only way I can think to make it work exactly as I want it is to have Flash look to see if the video is actually playing or not and I can't figure out how to do this or if its even possible using the NetStream command I am using to start and stop the videos.

View 5 Replies

ActionScript 2.0 :: Time-based Animation - Animations To Play At Certain Times?

Aug 29, 2006

I recently got back into animating and I need some help with my latest project. I have a number of different animations that I would like to be played on the inside of a tv, however I would like for these animations to play at certain times. For example, at 9:00 pm (real time) the tv displays the animation of the character sleeping. I'm not sure how to do this, and I'm not sure if I need an internal clock.

View 6 Replies

ActionScript 2.0 :: Dynamic Image Animation Based On Mouse Movement?

Sep 30, 2006

We have made a dynamic image animation using xml. We are attaching the source code herewith. At present, when you place your mouse over the images, the animation will start backwards. I.e., it will reverse the way the images are loading.

We want this animation order (normal and reverse) to control based on the mouse movement. By default, now the images are animating in one direction. That is fine now. But, we want the animation should get reversed when you place your mouse at bottom of the page. And again when you move the cursor towards top of the page, animation should again start as normal (vice versa).

how we can achieve this task using mouse placement?

View 4 Replies

ActionScript 3.0 :: Flash Change Preloader Animation Based On Internet Speed?

Aug 1, 2010

I have 4 animations and based on the speed of the internet i want it to change between each depending on the speed.

e.g...

0 - 10kb/ps - 1st MC
11 - 30kb/ps - 2nd MC
31 - 50kb/ps - 3rd MC
50+ - 4th MC

My idea is to have like a glass of water... and for the 1st MC the water filling it up is only a drip... and then 2nd MC is a slow stream of water etc etc and then final MC is water gushing in filling the cup up faster until it's full...

I think this might be a bit hard for me... as i can't even make a preloader... everytime i try the SWF file just stays blank until it's fully loaded... haha... but i'll read tutorials and stuff... i'm rather basic with Flash and just learn what i need to learn as i get to it... I also need the transition between each change (say from 1-10kbps - 51+) to be smooth rather than just having it going from a drip to gushing water... but i think i'll just have to make animations for each and then IF statements to deal with that issue..

View 7 Replies

ActionScript 2.0 :: Loading An External Gallery Based On Xml?

Jul 31, 2007

im trying to load an external movie clip named gallery.swf (which is based on xml) to be loaded into my main movie...

it seems my external movie clip is replacing the main movie. i want it to be loaded inside it not in place of it.

here is the code of the gallery.swf:

[CODE]var imageArray = new Array();
imageXML = new XML();
imageXML.onLoad = function ()

[Code].....

View 8 Replies

ActionScript 2.0 :: Loading An External SWF Based On The Date?

Mar 12, 2005

how to use actionscript to load 1 external swf into a mc for everyday throughout a year. I want to make 365 independent swf files that load in into a particular mc based on the current date. And it'll call it based on the users system clock. Can it be done?

View 2 Replies

ActionScript 2.0 :: Dynamically Changing Color Based On External Info?

May 26, 2004

I read through the random colour tutorial with interest, and wondered to myself if an objects colour could be altered in other ways... such as by a weather feed or stocks feed. I thought it would be interesting if the design of a site could be changed regularly by outside influences.

View 5 Replies

ActionScript 3.0 :: Use A Button To Filter Information Out Of A Datagrid Based On An External XML Document?

Apr 14, 2009

how use a button (or movieclip) to filter information out of a datagrid based on an external XML document. For example, say, the data were types of fruit along with their corresponding prices, but the user was only interested in the price of apples. To see only those records or rows with apples and the corresponding apple prices, the user would press the "Apples" button.

Creating the datagrid seems pretty straight forward, it's just the second part that's stumped me. Whatever the answer is would seem to go at the end where the "trace" is now. There seems to be many, many Web sites that sort of touch on this subject.I typed of the following from memory (I'm at work now), but I think this is pretty much what I have so far.

import fl.controls.dataGridClasses.DataGridColumn;import fl.data.DataProvider;
var food:XML;var urlLoader:URLLoader;var urlRequest:URLRequest = new URLRequest("food_list.xml");urlLoader = new URLLoader();urlLoader.load(urlRequest);[code].............

View 2 Replies

Actionscript 3 :: Import Frame Based External Swf File To Scrollpane For Flash?

Mar 15, 2010

i'm using pdf2swf but i can't import external swf frame per frame in scrollpane like to scribd[URL]

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved