ActionScript 3.0 :: Pass Information From A Javascript Link To Tell It Which Video To Play?

Mar 10, 2010

I have a video player I am trying to simply pass information from a javascript link to tell it which video to play. javascript seems fine but when it trys to call the actionscript function it comes up as undefined can anyone post a simple example of the actionscript and javascript call?

View 7 Replies


Similar Posts:


Actionscript 3.0 :: Create Html Link And Click The Link To Play Video?

Jul 13, 2009

i made a video player with the xml playlist , it's a video channel indeed, it's embed swf in html. but my boss would like me to put a link on the web, when user click the link, it would directly play the specific video inside the video channel. is it possible to do it without server side script but javascript?

View 1 Replies

ActionScript 3.0 :: Play A Video/mp3 Through A .php Link?

Aug 10, 2011

I am trying to play .mp3 files with all of the above media players (Strobe Media Playback/OSMF/REOPS) which all support .mp3 files.

If I pass a direct link the mp3 file on the web server like http://example.com/audio.mp3 is all works fine.

The problem comes when I try to load an mp3 file that doesn't exist on the web server but is returned through a .php file: [URL]

[Code]....

I get the error "We are unable to connect to the content you've requested. We apologize for the inconvenience."

Has anyone successfully played a video or audio clip from a .php link? This might be more of a php question then as3.

The mp3 plays in the browser fine and through the Flash AS3 astra yahoo audio player component.

I would like to upgrade to from the old yahoo audio player to the Strobe Media Playback player.

View 9 Replies

Javascript :: Play A 2nd Flash Video After The First Ends?

Dec 14, 2010

I have a flash object set up in the standard format:

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("swfplayer.swf", "myContent", "300", "120", "9", "expressInstall.swf");

[code]....

View 3 Replies

ActionScript 3.0 :: Play A Video Dynamically And Make It Clickable As Like A Link

Mar 12, 2009

I am trying to play a video dynamically and make it clickable as like a link.[code]The Video player seems to appear and the video plays well too but there is a problem with the onClick Event which doesnt work no matter what i try. the click action never seems to work..what am i doing wrong here.

View 3 Replies

Javascript :: Make Video Not Automatically Play On Display?

Aug 9, 2011

I'm using javascript to display a flash video but it always plays automatically. How can I tell it to just display?

AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
'width', '550',

[Code].....

View 1 Replies

Javascript :: Possible To Get Firefox To Play MP4s In The Html5 Video Tag?

Jan 25, 2012

I know it is not right out of the box, but is there a hack anywhere that uses javascript, php, or even flash to play the MP4s if the html5 video tag isn't supported?

View 1 Replies

Javascript :: Nor JWPlaer Or FlowPlayer Will Play .swf Video Properly

Mar 22, 2012

I am experiencing a very weird issue with both jquery2flash players,this is how i am callin flowplayer:[code]this is how i am calling jwplayer:[code]The problem is that in both even if you click on the play button, the video will start but the play icon won't hide Also, in flowplayer the player will add an extra instance of the video (or at least the sound) each time you click the play button.I am really not sure why this won't work as expected, what am i missing here?Also, the volume controls won't work.URL....

View 2 Replies

Javascript :: Js Popup Window To Play .flv Flash Video Using Jwplayer.swf?

May 21, 2010

I have to have many small thumbnails on a page and each one needs to open up to a full size (640x480) video with controls when clicked.

View 3 Replies

Javascript :: From A SWF - Play Youtube Video In Lightbox Without Any Code External To The Swf

Feb 14, 2012

I am trying to build a Flash banner ad which will be hosted on a site I have no access to. My client would like to have a button which, when clicked, would open a youtube video in a lightbox frame. I've been looking all around, but all I see that seems workable involves my being able to edit the html page. I am trying to do this with AS3 and Javascript. Some solutions involve JQuery, but I am not a JQuery pro.

View 1 Replies

ActionScript 2.0 :: Pass Information To Swf Via Param / Embed Tag?

Jul 19, 2006

I have a flash movie that tries to load an XML file on startup. Right now it looks for a hard-coded filename, but I'd really, really love to be able to pass a filename in through the webpage that plays it. (possibly through a param tag or some such?)

View 3 Replies

ActionScript 3.0 :: Pass The Metadata Information Received In The Following Code To Another Class?

Oct 27, 2009

Im trying to pass the metadata information received in the following code to another class. The below code generates a trace response of 162... so I am receiving the data I just need to be able to call the totalLength variable from another class with the same response of 162. I know this should be relatively easy...

package com.bit.net
{
import flash.events.Event;
import flash.events.EventDispatcher;

[code]....

View 1 Replies

ActionScript 3.0 :: Pass The Selected Entity Information Back To The Html Page?

Mar 1, 2012

I got a dwg file converted into swf file. Now I want this swf file to embed in html page. No issue with that. The tricky part for me is to let the user select the entites of the file such as line/circle as one might select in autocad. After entity selection the swf file (by any means) pass the selected entity information back to the html page ( to the javascript function).

View 5 Replies

ActionScript 3.0 :: Button Link To Another Frame On Same Layer Which Contains Other Information

Apr 11, 2011

i have a button named biografy_btn and that should link to another frame on same layer wich contains other information, i labeled that next frame: biografie

the code is:

stop();
biografie_btn.addEventListener(MouseEvent.CLICK, goBiografie);
function goBiografie(evt:Event)
{
this.gotoAndStop(''biografie'');
}

but..it does not work, i keep seeing to tekst from frame 1 and the "other info" frame flickering both at same time and the button does not do a thing...

View 2 Replies

Javascript :: SWF Video With Controls (toggle Sound On / Off And Toggle Play / Pause)

Jan 10, 2011

I'm new to flash and just need to do a simple task but I can't manage to get it to work. I'm trying to import a video (flv) into a SWF container and need to AS functions which should be exposed to JS (using liveconnect or anything else). These two function should toggle sound on/off and toggle play/pause. I dont need any user interface or a full featured player, just these two functions.

View 1 Replies

AS3 :: IDE - Display Information About The Link When The User Hovers Their Mouse Over The Button

Nov 23, 2009

I have converted an image into a button and am using the following code to use it as an external link.

[Code]...

This works fine which is great but I would like for it to display information about the link when the user hovers their mouse over the button. How would I do this?

View 1 Replies

Get Information From A Flash Input Textfield To A Javascript Function

Aug 25, 2009

I have a web page with a couple of Flash Input TextFields. When I press a button on my web page, I am using javascript (jQuery) to get all the values from the text fields and checkboxes etc on the page.
 
In order to get a value out of my Flash TextField, I understand that I have to use the ExternalInterface API. I am using ActionScript 3.0 and Flash CS4.
 
In the flash IDE, I have a layer with just the textbox instance and another layer 'actions', which has all the actionscript.
 
As soon as I put: import flash.external.ExternalInterface
 
in my code, then the textfields full functionality does not seem to work on the webpage.
 
I assumed what I had to do was something like:
 
import flash.external.ExternalInterface;
ExternalInterface.addCallback("getFlashFieldText", getText);
function getText():String  {
return myTextField.text;
}
 
then I thought that perhaps I had to call a javascript function to return the textfields value like so:
 
function getText():void  {
var word:String = myTextField.text;
ExternalInterface.call("alert", word);
}
 
but nothing is working, and I think it is strange that the textfields functionality (some letters being styled) does not work as soon as I import the ExternalInterface class. I have tried putting the ActionScript 'actions' layer in a package, but it didn't help. As you can probably tell I am new to Flash and Actionscript, and I would be very greatful if someone could point me in the right direction.

View 3 Replies

ActionScript 3.0 :: Send Some Information To A Javascript Function On The Same Html Page As The Swf File Is In?

Nov 3, 2011

I am trying to send some information to a javascript function on the same html page as the swf file is in. I used the tutorial here on Kirupa but for same way it doesnt work.

ExternalInterface.call("fillForm('"+ l.x, l.y +"')");
ExternalInterface.call("fillForm", l.x, l.y);

These are the variations I tried.

View 1 Replies

ActionScript 3.0 :: Time Information From Video?

Sep 28, 2010

What I need to obtain is the playhead location of a playing video when the Stop button is pressed. I need this to be either in milliseconds or hours:minutes:seconds. Either format is fine as I can work with either.I need this so that I can add a cue point to the video so that when the user returns to the presentation, it will start playing again at that point.

View 1 Replies

ActionScript 3.0 :: Get Meta Tag Information Of A Video?

Oct 21, 2011

I want to read Meta tag information of a video file like Artist,Album,Year,etc.... I tryed "onMetaData" for a video file.But i didnt get information like rtist,Album,Year,etc... The video file can be mp4,avi,mpg,mov. I dont want them to play in swf... I just want to load the file and show the meta tag information as text. For audio files i can get id3 information after loading the song.But is there any other way to get them with out loading the sound? Each loading will take time to give the result.

View 9 Replies

JW PLAYER : Play Preview Video First Before Starts Play Any Other Video?

Apr 18, 2011

I need to play preview video first, before starts play any other video. I am using jw player

View 1 Replies

Javascript :: Flash - Uset To "stop" And "play" Video That's Inside An FLV Player?

Jul 1, 2010

Is it possible to use JavaScript to "stop" and "play" video that's inside an FLV player?I want to do this using only JavaScript and without modifying the FLV player or movies.

View 1 Replies

Professional :: Information On Google Analytics On A Video Player?

Feb 5, 2011

I'm have some videos and I would like to add analytics so I can track how many times they were played. Although it sounds like a simple task, I can't seem to find much on the subject.

View 1 Replies

AS :: Flash - Send Additional Information While Posting Video Data?

Jan 20, 2011

I'm now saving the snapshot this way:

vidBmpHolder.draw(main.media.videoLocal);
var jpgEncoder:JPGEncoder = new JPGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(vidBmpHolder);

[code].....

View 2 Replies

Flash :: Sending Information From Scripting Side To Video Player?

Mar 28, 2012

I don't know how to ask this, but the thing is that i was thinking that how does youtube or videofy.me like video blogs send the video path & all info to a flash video player i mean when e click on any video link how does it sets up everything and displays the chosen video, because actually i've created one but in that i had to set up the whole page via flash so that it can manipulate the information like path & name of the video, and cannot use html links, php and all.. so can u people tell me how do i start up & how this process is done & what i need to do & other important things on this.. i mean sending any info to a flash player via any scripting or server side language.

View 1 Replies

Flex :: Correctly Pass The Link To A Page?

May 5, 2010

I'm using <mx:LinkButton label="www.google.com" click="navigateToURL(new URLRequest(event.currentTarget.label.toString()))" /> to open a browser window to display the website on the label of my LinkButton. However I cannot correctly pass the link..

you see the problem: file://localhost/..myapp/bin-debug/www.google.com

View 3 Replies

ActionScript 2.0 :: Link To A Movieclip And Pass The Parameter?

Nov 7, 2004

Let's say I have a class that has a constructor which accepts some parameters.

Code:
class MyClass {
var myNumber:Number;
function MyClass(number) {
myNumber = number;
}
}

Is there a way I can link this to a movieclip and pass the parameter? From what I've found there are two ways to link the class to a movieclip, one using the registerClass and another typing the name intro the Linkage Box in the Library. But in both cases there are no parameters being setup.

View 2 Replies

ActionScript 1/2 :: How To Pass A Variable To Javascript

Dec 18, 2010

Does anyone know how to pass a variable to javascript in As2?

View 1 Replies

Pass Link URL Values Into A Flash Object As A Parameter?

Apr 28, 2009

I have created a small banner for the homepage of a website for a company. The problem is that when they load the banner to their website the link no longer works. I have tested it myself and it works fine on my website. have the banner be clicked and open up in the same browser to another page on this website."define a way to pass link URL values into a flash object as a parameter."

"We need the functionality ASAP so can you start by working on this and creating a sample. It shouldn�t be too difficult as it is a fairly common requirement. Can you put together a basic example (it doesn�t need good graphics) that shows this idea working over " [URL]

View 5 Replies

Html :: Pass The Button Link (after Click) As Parameter?

Jul 15, 2010

i have a flash button and i want to pass the button link (after click) as parameter.

View 2 Replies







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