Controlling A Swf Using External Javascript?

Aug 27, 2007

I am working on a project that needs to have the swf controlled by an external javascript file, I'm looking for something very simple like basically telling the swf what frame to go to in the main timeline. I know it's possible because I did it 4 years ago, the problem is that project and computer are long gone.

View 0 Replies


Similar Posts:


Flash :: Controlling SWF From Javascript

Aug 22, 2010

I have a SWF embedded in an HTML web page and want to move to a specific frame when a trigger is clicked. But nothing happens when I click the trigger, as though the js just doesnt communicate at all with the swf.SWF is written in flash cs4 (a3)The link to the website is [URL]..I have read the text books over and over and researched high and wide on the internet and as far as I see I have done everything correctly but I cannot get this to work. The swf is very basic, just a green box moving accross a small stage. The desired gotoframe would make it cross at a lower height (just a dry run for a more complicated swf)

View 2 Replies

ActionScript 2.0 :: Javascript Controlling Colours?

Dec 22, 2005

Is it possible to change the colour used in a flash movie for a shape using javascript Basically we have a little logo which appears on one of our e-commerce frameworks which is "skinnable" When we setup a skin for a client I would like to be able to send some colours to the flash movie so that our logo changes to match the sites colour scheme..

View 1 Replies

JavaScript :: Controlling YouTube SWFObject With Flash API?

Dec 22, 2010

Is it possible to use Flash JavaScript API with YouTube videos? The only function that I got to work reasonably is "Zoom". TotalFrames() gives "1" and TCurrentFrame('/') is always "0". Other functions seem to do nothing. For testing this I'm just using the live Google Playground Demo with "ytplayer" as the movie object. Most of what I want to do can be done with the Google API, but I still feel uncomfortably unclear on the three way relationship of YouTube videos, swfobject, and Flash.

View 1 Replies

ActionScript 2.0 :: Controlling Flash With HTML / Javascript

Jan 21, 2004

Is there a way that you can control a flash movie using HTML and/or Javascript on the same page?

Basically what I want to achieve is to use an HTNL link to loadMovie into a movie which is heldon the same page as the link.

View 2 Replies

ActionScript 2.0 :: Controlling Flash With HTML / Javascript?

Jan 21, 2004

Is there a way that you can control a flash movie using HTML and/or Javascript on the same page?Basically what I want to achieve is to use an HTNL link to loadMovie into a movie which is heldon the same page as the link.

View 2 Replies

Javascript :: Call An External Javascript On Frame Action/change?

Aug 26, 2011

i have a flash movie with 2 frames. and i would like to call an external javasscript function on frame action.

[Code]...

View 2 Replies

Jquery :: Controlling Event In Timezone And Days Whit Javascript

Oct 27, 2011

i have a flash site that i need to put in a page a list of the food menu, in this site will have 6 menu's of food, and each menu is for one week, in first week will have the first menu untill the last week that is the six will have the sixt menu, than it will return in the beginning and starts again. Basically the menu's will make a loop in the weekends. I was told me that its better to do in javascript since it looks like in actionscript isn't possible, so i think ill export the info of a html page to a swf.My question is how can i control in javascript a event of a object whit my time zone and days.

View 1 Replies

Javascript :: Controlling Left/right Audio Channel Volume In A Youtube Video Player?

Sep 4, 2011

I want to know if it is possible to use javascript, flash or flex to make a youtube video player that is capable of controlling left/right audio channel volume. For example, mute the left channel and play right channel audio on both left/right speakers.

View 1 Replies

AS2 :: Controlling Url And External SWF?

Jul 6, 2009

I'm attempting to create a website that uses externally loaded swf files into a shell animation like in Creating A Full Flash Site, only I'm trying to give each swf its own website url (ie. site.com/home, site.com/page2) while still using a single shell animation.

View 1 Replies

ActionScript 3.0 :: Controlling The MC Of An External SWF?

Feb 14, 2009

I've loaded my external SWF, now I want to animate a MC within that external swf, however, when i try, the animation freezes (or won't start at all), but the external SWF DOES load.Here is my loader code

Code:
var _externalMovie:MovieClip
var _url1:URLRequest = new URLRequest("intro.swf")

[code]........

View 4 Replies

Actionscript 2.0 :: Controlling External MC With Other MC's

Jul 30, 2009

I'm trying to figure out how this is done or if this is even do-able. here is my situation, I using AS2.0 and with that i have created a mc loader, here is the code for that

[Code]...

View 1 Replies

ActionScript 3.0 :: Controlling An External SWF

Jun 19, 2007

I can't find a way to control an external SWF in AS3 like I used to be able to in AS2. This used to be a real simple way (among others) in AS2:[code]Unfortunately this has been abolished in AS3 . To load a SWF externally from a separate SWF file (on a separate CPU) in AS3, you now must now use a URL request along with a load request. However, the SWF is tied into this loader object of which's class does not contain "play", "stop", "currentFrame", "nextFrame", "prevFrame", "gotoAndPlay", "gotoAndStop", etc.According to the help panel, you can target any of the loader's child's methods by virtue of calling "loader.content" but it doesn't work. When I trace my "loader.content".... all I get back that it is an [Object Main Timeline] when I would expect it to be [Object MovieClip] if it were to have the methods I need.I need to do all sorts of gotoAndStop / gotoAndPlay functionality with external SWFs on another CPU. I have a nice XML server running successfully.

View 12 Replies

ActionScript 2.0 :: Controlling An External SWF

Jun 11, 2008

i am loading an external swf in to a movie clip and controlling it by using a slider with a knob. once the onEnterFrame is encountered the swf starts to play. This can be paused. But after pause the knob cannot be moved by using the startDrag().

View 1 Replies

IDE :: Loading And Controlling External SWF

Jan 20, 2010

I have a flash website in development and I'm using external .swf files for the sub pages. In my main.swf file I have a loading function that works and everything is fine and dandy there. My problem is that when I am loading the external "content" swf files into my main swf file, the actionscript that is embedded in my external .swf is not functional (there are buttons in the content swf with event listeners to control them). I have a movie clip holder set up and placed on my stage in the main swf file and that is what I am adding the content swf's to.

Now in all of my attempts to isolate the problem I have noticed one thing. If I add the external "content" swf directly to the stage of my main swf file, the code works, but if I add it to my container mc (which I have basically set up to control the position that the content is loaded to and to set up boundaries/masks to control the content from overspilling) then the code is not operational.

Code:
The code below is called by my loadContent function on my main swf
contentmc = MovieClip(event.target.content); // the external swf is assigned to a movie clip object
addChild(contentmc); // when using this, code works in the external swf
contentwindow.addChild(contentmc); // when using this, code in the external swf no longer works.

View 2 Replies

Controlling Flash With External HTML?

May 7, 2009

I have a flash movie emmbedded in my web page. I what to be able to go to certain frames using html. Can this be done. If so how?

View 1 Replies

Controlling A Movie Clip In An External Swf?

Nov 4, 2010

I'm working from main.swf and I need to call another swf to display one of four flvs once the appropriate button is clicked.

main.swf = my main content
player.swf = contains mc_playMovie
mc_playMovie = embedded in player.swf and contains four frames, each with a different flv movie.

My code so far:

butDelmar_thumb.onRelease = function() {
createEmptyMovieClip("targetMC", this.getNextHighestDepth())
targetMC._x = 0
targetMC._y = 0

[Code].....

View 1 Replies

ActionScript 3.0 :: Controlling Timeline Of External Swf?

Jun 3, 2010

Just wondering how to control the timeline of an external swf loaded into the root of your main timeline, from within nested movieclips on your main timeline?I can successfully control it once it's loaded from within the function that assigns the external swf a MovieClip var, but I want to control it from deeper in my main swf.1. I've loaded an external swf into the root of my main swf.2. After loading, I assign the external swf a MovieClip var, and then set up a button to control the timeline of the external swf:
 
function dataOnLoad(evt:Event): void {
var myClip:MovieClip = evt.target.content;
function updateSwf(evt:MouseEvent): void{

[code].....

View 6 Replies

Professional :: Controlling Sound Of An External SWF?

Jan 11, 2011

I'm trynig to control an sound of a external SWF but I can't seem to get it right,here is the code i'm using to import the sound
 
mport flash.media.Sound;import flash.net.URLRequest;import flash.display.Sprite;import flash.media.SoundChannel;import flash.events.Event;import flash.events.MouseEvent;var _som1:Sound;var _channel1:SoundChannel;var _playing1:Boolean = false;var[code]...

View 16 Replies

ActionScript 3.0 :: Controlling Sound Of An External SWF?

Jan 10, 2011

I'm making an application and I can't seem to find a way to control my sound of an external SWF(SWF2) from the main one(SWF1).Here is the code I'm using to control the timeline of external SWF that is placed inside of the main movie

Code:
var loadAnimBox:Loader = new Loader();
var vid_mc:MovieClip;
function startLoading():void {

[code]....

View 2 Replies

ActionScript 2.0 :: Controlling External Swf Movie?

Aug 26, 2005

createEmptyMovieClip("_root.displayMV.portfolio", 1);
win.loadMovie("portfolio.swf");

That is a frame action - The "win" is my instance & the "portfolio.swf" is my external flash movie, I want this frame to tell my external flash "portfolio.swf" movie to go to and stop at frame 3 or 4, becuase at this time its only playing from the start.

View 5 Replies

AS3 :: IDE : Loading And Controlling External SWF Movie?

Sep 10, 2008

I'm able to load the actual external SWF movie, but I can't seem to control it. I have already built a controller for my flash video player. The problem now is it only plays FLV and I want it to be able to take in SWF support. Again, I load the SWF fine, but controlling is the problem.

function finished_loading (e:Event) {
var externalMovie = MovieClip(swfLoader.content); // cast 'DisplayObject' to 'MovieClip'
addChild(externalMovie); // add your swf directly to the stage

[code]....

I think this is the problem with the code. Casting it to a MovieClip only gives me a 1034 error.

View 2 Replies

AS3 :: IDE - Loading And Controlling External SWF Movie?

Jan 4, 2009

I'm able to load the actual external SWF movie, but I can't seem to control it. I have already built a controller for my flash video player. The problem now is it only plays FLV and I want it to be able to take in SWF support. Again, I load the SWF fine, but controlling is the problem.

function finished_loading (e:Event) {
var externalMovie = MovieClip(swfLoader.content); // cast 'DisplayObject' to 'MovieClip'
addChild(externalMovie); // add your swf directly to the stage

[code]....

View 1 Replies

ActionScript 3.0 :: Controlling Main Swf With External Swf?

Aug 27, 2009

My main flash file is setup with a scroll pane component. The scroll pane is loading an external swf. This external swf has a button that when pressed I want to load another external swf into the scroll pane in the main flash file. How do I make the button functional? Is it using sprites? If so, could someone direct me to a tutorial?

View 1 Replies

ActionScript 2.0 :: Controlling External Movies?

Sep 30, 2002

I have a movie (movie1.swf) which loads "movie2.swf" onto level 2. What is the scripting to make it go right to a specific frame in "movie2.swf"? What if I wanted it to go to a specific scene in "movie2.swf" right away upon load?

View 5 Replies

ActionScript 2.0 :: External SWF - Controlling Main Timeline

Mar 21, 2009

I'm having a bit of time getting this to work.
Setup like this: Main mov:
Nav1 is clicked and loads in external swf. In the swf that was just loaded there is button to call another external swf on the main movie's timeline. I'm trying make a "lightbox" effect. Where you click on the external swf and the screen darkens and a swf is loaded on top of it. Above the loaded swf. Of course on a new layer.

PHP Code:
This is handling the swfs that get loaded in
EXTERNAL SWF LOADER
_root.page_mc.preloader_mc._visible = false;
_root.page_mc.preloaderText_txt._visible = false;
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
[Code] .....

View 9 Replies

ActionScript 3.0 :: Controlling The Sound Of The External Loaded SWF?

Aug 18, 2009

I  have a Loader that loads external SWF. The external SWF has sound. I'd like to stop, pause and play the sound.

[Code]...

This only mute the sound only and the sound is still runnung.

View 4 Replies

ActionScript 3.0 :: External Swf (as A Subpage) Controlling The Main Swf

Nov 25, 2009

At the moment I am working on a flash website. There is a main swf with the menu, which loads external swfs as subpages. These external swfs contain some html text. Now I want to have a link inside this html text to another subpage.

[Code]....

But this doesn´t work. It seems "page_2" or "page_3" gets never dispatched.

View 5 Replies

Professional :: Controlling External Information Using Cue Points?

Apr 13, 2011

I am trying to change information on my site using cue points in my video.  My video is in a flash quiz and I am trying to change my objects such as an ad or photo with these cue points.  In otherwords, when a video begins, or when a cue point is reached the photo outside the video would change.  I am currently using cue points to go to the next frame after the video completes, but I don't know how to make it change things outside the video.

View 2 Replies

ActionScript 2.0 :: Loading And Controlling External SWF Files

Jan 12, 2009

What I am trying to achieve is the following:
I have a main file (main.swf)
Within this movie i have 5 buttons; Nos. 1-5.
When released each button will load an external swf movie clip:
e.g: button 1 will load "1.swf", button 4 will load "4.swf", etc.

However, this is where I am stuck; each external swf movie clip has its own lead in animation as well as its own lead out animation. So say for example I release button 1, "1.swf" will load and play its lead in animation before it reaches a certain point in its playhead with a 'stop' command. Then lets say, for example, I then release button 3. What I would like it to do is play the lead out animation of "1.swf" before it plays the lead in animation for "3.swf". Obviously I would want this to happen regardless of what button I press, so therefore I would want it to play the lead out of the loaded movie before loading and playing the corresponding swf file of what button I pressed. Would I use loadMovNum or load the swf within a movie clip container?

View 9 Replies







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