ActionScript 2.0 :: Create Buttons In One Swf That Load Another Swf And Also Give Instructions To Begin Playing From A Certain Frame In That Swf

Apr 21, 2004

What I'm trying to do is create buttons in one swf that load another swf and also give instructions to begin playing from a certain frame in that swf. The target swf has a preloader on frame 1 and then a movie clip that contains a video in frame 2. Depending on which button the user presses the video will be cued up ready to play at different frames. I think it may need an if statement ie if x=34 then goto frame 34, but I can't seem to pass the variables to the loaded swf. In the zip file is an example of what I'm trying to do.

View 11 Replies


Similar Posts:


ActionScript 2.0 :: Way To Create Buttons To Give Content A Scrolling Function?

Feb 9, 2009

What is the best way to create buttons to give content a scrolling function.The functionality is provided by ScrollPane, where content, images etc. can be used and scrolled but aesthetically buttons are preferred.There is actionscript for creating scrollable text fields with buttons, but it requires constant clicking and only applies to text. Just mentioning this if there is something similar to attain the functionality of ScrollPane for content.

View 1 Replies

ActionScript 3.0 :: Create A Second Instructions Page?

Sep 1, 2010

I hate to be a total newb but the deadline for this game is coming up way too soon for me to figure it out myself.This game is for uni and it is my first experience with making a flash game and my second flash project total. Sorry.All I want to do is create a second instructions page from what I already have but it will not play properly. The syntax is correct, I created the object before I called it but I am still getting Error #1009.Here is the related code:

Code:
startButton.addEventListener(MouseEvent.CLICK, clickButton);
rulesButton.addEventListener(MouseEvent.CLICK, clickButton);

[code].....

View 1 Replies

Create A Animation With Horizontal Scroll To Begin On MouseOver?

Feb 16, 2011

I have been trying to create a animation with horizontal scroll to begin on mouseOver. There are a set of 8-10 swfs movie, which I am calling though a xml file into the main scroll movie clip. I would like to animate and call the swfs in such a way that they drop into the screen and stay on a 800px width movie screen, on mouseOver the horizontal scroll should begin.I have seen a lot of threads for the sroll, in all the threads the movie is scrolling and on MouseOver it stops.

View 1 Replies

ActionScript 2.0 :: GetURL And Variables - Flash Movie To Begin At Particular Frame

Aug 18, 2009

I have 2 buttons in a flash movie with the following codes. They open a new URL that also contains a flash movie and it sends the variable "nFrame" and a value.

Button1:
Code:
on (release) {
getURL("goats.html?nFrame=1");
}

Button2:
Code:
on (release) {
getURL("goats.html?nFrame=2");
}

When the new URL opens I want the flash movie to begin at a particular frame depending on what variable "nFrame" is equal to. I tried placing this code in the first frame to do it but it didn't work, the movie just loops and loops and doesn't stop at any frame.

Code:
if(nFrame=1) {
gotoAndStop("cheese");
} else {
gotoAndStop("wine");}
}

View 1 Replies

ActionScript 2.0 :: Random Load SWF But Buttons Not Playing?

Sep 10, 2008

Stuck a random load swf script on main timeline:

Code:
_root.container.loadMovie("work"+(random(3)+1)+".swf");

Then on each but the appropriate code - this is for button 3:

Code:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "work3";

[Code]....

When the flash is loaded it loads in the SWF randomly fine. BUT!... when I go to select another item from the menu, I need to select the button for work1.swf first before I can then go select button for work2.swf load...

View 3 Replies

Flex :: Playing A Large/long H264 File With NetStream Takes A LONG Time To Begin Playback?

Aug 1, 2010

I'm trying to play a 10 minute long video (h264/mp4) which is 39MB in size, after I call stream.play(fileURL) it doesn't start playback until its loaded around 12-16MB of the file (many many seconds later), I finally get onMetaData at this point too. Why doesn't it begin playback right away, or at least w/in a couple seconds? What can cause this bloated lead in time?

View 2 Replies

ActionScript 2.0 :: Load 1 Swf Per Frame: Move Down TL As Each Swf Finishes Playing?

Jan 22, 2008

I have about 30 very simple external swfs--each contain an image with tweened fades and rollover-to-pause/rollout-to-resume actions. They're loaded onto the main timeline one after another as a slideshow. It's an auto-play and loop: each image swf loads the next one on to the empty movie clip after it is done playing. (i.e., swf1's last frame loads swf2, and so on.)

This set up was fine until I realized that I should have a place-marker--something that indicates where you are in the slideshow. No other functions (go to next/previous) for the marker. I just need to show graphically that you're seeing the 5th of 30 images. The graphic is 30 dark dots that get filled in as you progress.

To do this, I figured it would be easiest if I designate 1 frame per image (=one swf) on the main timeline. So, frame 1 will load 1.swf and when 1.swf finishes, frame 2 will load 2.swf. This will make it easy for me to color in the appropriate dots according to where we are in the slideshow.

What I think I need to figure out is to "pause" at each of the frames on the main timeline until the loaded swf is done playing. They're all different in length--some are 50 frames and some are 90 frames long.

I almost had it figured out from massive googling, but I honestly don't understand it well enough to tweak what I've found to do what I want it to do.

Also, if there is a way that I can easily make the "place marker" work without changing the way it is currently set up (1 frame in main time line; 30 swfs that load one another), that would be even more awesome!

View 10 Replies

ActionScript 3.0 :: Create Sequence Module With Radio Buttons In Frame?

Jul 28, 2009

I'm creating a sequencing module with a bunch of radio buttons in frame 1. When a user clicks the wrong radio button it tells them. When the click the right one it moves them to frame 10. In frame 10 the correct radio button is hidden and the user has to click the next one in order. if they click the wrong one it tells them and if they click the correct one it gives new feedback and advances them to frame 20 and so forth until they get them all in order. Can I add a new event listener to a component in frame 10? how do I cancel out a previous event listener and associated function from frame 1 that was associated with that radio button? The problem I am having is that the script is calling both the frame 1 function on that button AND the frame 10 function on that button. How to correct this?

View 1 Replies

ActionScript 3.0 :: Give Buttons A Magnetic Effect?

Jul 16, 2009

I want to give my buttons a magnetic effect. Can someone please show me a tutorial on how to do this in AS3?

View 8 Replies

Flex :: Give Setfocus To The Alert Buttons?

Aug 19, 2009

I am using Flex3.0. in this i am craeting a custom component for an Alert.and for that alert i am applying styles. but when i opening the alert through the application i want to set focus on Alert button.means when i press enter button there are two buttons in alert YES and NO.i need to focus on YES button.

View 2 Replies

Actionscript 3.0 :: Give Names/attributes To Buttons?

Aug 8, 2009

I have an XML-file.I want to base an menu on my website om this information.Let us say that I have info in the XML-file with the names "About Me", "Articles" and "Video".Then I want three buttons with the text above on them. This is successfully done.The problem is, that I don't know what button I am pressing. To go to the nest page I need to know what button I am pressing.

I've tryed the following:

Code: Select allprivate function buildMenu():void
{
for (var i:int = 0; i < menuArray.length; i++)
{

[code]....

The result is that all the buttons get the name of the last entry in the XML-file. In the case above all the buttons would get the name "Video".

View 4 Replies

ActionScript 2.0 :: Want To Give Buttons A Bit More Life (wobble)?

Feb 3, 2004

I would like a bit of script that I could attach to some buttons so it looks like they are wobbling slighty on roll over.The atached jpeg shows the basic design of them - opaque with shadows.I would like the movement to be random, i can programme it already to move up and down or whatever, but not so its a differnt movement every time.

View 13 Replies

ActionScript 2.0 :: Give Buttons A Bit More Life Wobble?

Feb 3, 2004

I would like a bit of script that I could attach to some buttons so it looks like they are wobbling slighty on roll over.

The atached jpeg shows the basic design of them - opaque with shadows.

I would like the movement to be random, i can programme it already to move up and down or whatever, but not so its a differnt movement every time.

View 13 Replies

ActionScript 3.0 :: Create New Frame And Externally Load An Image?

Jan 17, 2010

is it possible to create new frames through AS? I'm trying to create a new movieclip and then create 4 frames and then on each frame externally load an image.

View 1 Replies

ActionScript 2.0 :: Create Some Buttons As MCs That Will Load Random ImageMCs On Release Or Rollover

Apr 29, 2003

i'm trying to create some buttons as MCs that will load random imageMCs on release or rollover i think i am supposed to use math random in some form with MCs but i have no idea how to execute the script for that

View 1 Replies

ActionScript 2.0 :: Load XML And Create Dynamic Buttons - Stop Sliding Menu?

Apr 15, 2007

I'm making a slide menu that loads a xml file and creates buttons dynamically. Another functionality it has a sliding menu also, and I can't stop it. Heres goes the zip file, which contains .fla and .xml files. What I want to do is when I put the mouse at the top of the mask, the menu stops on the first option, and when I put the mouse at the bottom, the menu stops on the last option. Is it possible? [URL]

View 3 Replies

ActionScript 3.0 :: Give User The Option To Skip A Mc/frame?

Sep 21, 2009

I am building a short "introduciton" movie that an orthodontist will show prospective patients. It has 32 pages (frames) each is it's own mc. I have a btn that the user can click and go to a screen that will allow them to choose to dispay or omit 6 of the pages (becasue they may not pertain to their practice). I have no clue how to do this since I am a graphic artist and a novice to Flash. I've watched as many tutorial movies as my brain can handle, and it's about to burst! From what I've read, I think I need to use Flash cookies (local), so that the choices will be remembered.

View 5 Replies

ActionScript 2.0 :: Create A Movie With Buttons That Load External Movies And Works Seamlessly?

Nov 18, 2007

i used kirupa's [URL].. tutorial to create a movie with buttons that load external movies and works seamlessly.

my problem is that i want to do the same thing on the external movies that are loaded so to be able to load new external movies on top of them. it does not work and i know its because of the _root script that gets messed up when a new movie is loaded. it has to become _parent or smthing but i can't seem to be able to make it work..

View 4 Replies

ActionScript 3.0 :: Create A MovieClip And Give It An Eventlistener Type?

Nov 16, 2009

Quick question (I hope) I am switching from as2 to as3.
  
In as2 I could create a movieClip and give it an eventlistener type functionality and function like so:
  
myDynamiclyCreatedMc.onEnterFrame = function ()
{
// do stuff
}
 
How do you do the same thing in as3?

View 1 Replies

ActionScript 3.0 :: Load External And Give Instance Name?

Jul 15, 2009

I'm using this code to load and external swf, now how do I assign an instance name for it?

var eventInitialLoader:Loader = new Loader();var eventInitialURL:String = parent['eventPath'+ie];var eventInitialRequest:URLRequest = new URLRequest(eventInitialURL);eventInitialLoader.load(eventInitialRequest);eventOdd_MC.addChild(eventInitialLoader);

View 3 Replies

Flash :: Possible For One SWF To Load Another But Give It Fewer Privileges?

Sep 17, 2010

From a webpage, I can specify that a SWF should be loaded with "allowNetworking=internal" and "allowScriptAccess=none" to prevent it from modifying the state of the browser.

Is it possible for SWF A to be loaded with no restrictions, and have A impose those restrictions on a SWF B that it loads?

View 1 Replies

Actionscript 3.0 :: Give Xy Coordinates To Load External Swf Through Xml?

Aug 14, 2011

how to give xy coordinates to the target in an xml, to load an extenal swf in an exact position?hat I want to do is load an external swf file and give it xy coordinates, but the thing is the external swf is loaded through xml, so I can't use as3 to give the coordinates

View 1 Replies

ActionScript 2.0 :: Load Mc Or Swf And Give A Width Or Height In %?

Jan 18, 2005

Posible to load mc or swf and give a width or height in %?

View 6 Replies

ActionScript 2.0 :: Load Pictures And Give Each Of Them A OnPress Function?

Nov 4, 2005

I'm loading pictures from an array, each picture gets his own onPress function[code]...

View 3 Replies

Flash :: Which Video Player Can Give Exact Position (timestamp / Frame Index) Information

Dec 18, 2011

I'm looking for a Flash Video Player (something like JWPlayer) that I can embed in an html page, that provides a JavaScript API with a method to get the exact timestamp (aka position, or frame-count) for the current frame.

View 1 Replies

ActionScript 2.0 :: Flash 5 With HTML Frames - Adding Frame On Top Of My Home Poage To Give Users Better Navigation?

Feb 10, 2002

I was thinking of adding frame on top of my home poage to give users better navigation with a meun on top.But how do you make when you press the button in flash the hyperlink will make the frame at the bottom or specific frame page to change?

View 2 Replies

ActionScript 3.0 :: Preloading - Get Xml Data To Load On Frame One But Leave The .as Files To Load In Frame 2?

Jun 4, 2009

I have a question about loading external data. When I had all my actionscript export to frame one, it would slow down the preloader and not show up until it was far into the progress bar animation. So I moved everything to frame 2. The problem with that is now my menus which are populated from an xml file are not there when the site starts to play. How can I get my xml data to load on frame one, but leave the .as fils to load in frame 2?

View 6 Replies

CS3 Delay - Button To Play Frame 10 To 40 Then After Playing From Frame 10-40 The Movie Stops

Jul 3, 2010

how to code this on a button

onrelease
gotoandplay(10); // i need delay here before activating the next code below//
gotoandplay(80);

the trick is.. i want the button to play frame 10 to 40 then after playing from frame 10-40 the movie stops and then play frame 80 to 100

View 4 Replies

Actionscript 3 :: Stop Movie (from Current Frame) Playing When I Click On Next Frame?

Apr 8, 2010

I have four movie clips (.f4v) in 4 frames in a movie with watch buttons.. This movie has them been imported into a main movie container that has next and previous buttons. However if i play a movie then hit next frame, the movie continues to play in the background. The code below shows one of the actionscripts for a movie clip and then the main actionscript in the main movie.[code]...

View 1 Replies







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