ActionScript 2.0 :: Dynamically Change ContentPath For FLVPlayback-Component
Sep 24, 2010
how can I dynamically change the contentPath in FLVPlayback-Component, when one video is complete and the other one should follow? the code below it doesn't work for me. I don't show the full URLs, but the problem is definitely somewhere else. As separate contentPaths they work perfectly. I don't know why this shouldn't work, do I need smth. else to force FLVPlayback to refresh the content?
[Code].....
View 4 Replies
Similar Posts:
Mar 19, 2010
When i click button 01, load the image externaly "01.jpg" in the ScrollPane. By clicking the button 02 change the path to "02.jpg" in the same ScrollPane, by clicking 03 the same thing, and so on.
View 2 Replies
Aug 9, 2007
I just created a 448x380 SWF with the following code:
[Code]...
Why doesn't that load a video? The skin partially appears, but the video does not. Hitting "Play" gives a server error, even though I'm testing locally. Does FLVPlayback need the full MACHINE PATH -- file:////blah blah blah -- to access that local file? You'd think not.
View 2 Replies
Feb 25, 2009
I am using the loader component to place images on the main timeline.My goal is to use a folder with multiple images.How can I modify the AS 2.0 code from myLoader.contentPath = "image.jpg";?I know it should start with:myLoader.contentPath = myVariable;How do I define myVariable to mean the path of the folder with multiple images?The folder will contain 1.jpg, 2.jpg, etc.
View 2 Replies
Jul 8, 2009
Trying to use a txt file to change the contentPath
import mx.video.*;
var myNC:NetConnection = new NetConnection();
myNC.connect(null);
var stream_ns:NetStream = new NetStream(myNC);
[code]...
View 1 Replies
Jan 16, 2012
How can I dynamically change components text size in item renderer? Here is my CustomItemRenderer.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="[URL]" xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
[Code] .....
When a button is pressed I want to access textArea2 and change font size.
View 1 Replies
May 29, 2009
Already I have one video player and it's width and height are set as 450 and 370 respectively. It's set by statically on its property field. Now I want to change the width and height of video component according to the specified value. Also the control box should be scale accordingly. But when i tried to change the video component's width and height while loading, it's not getting changed.
View 4 Replies
May 27, 2011
How to change the scrollbar component dynamically in flash MX 2004(AS2.0),i attached scrollbar component but need code to change the color of that scroll bar. "this.attachMovie("UIScrollBar","myscrollbar",2,{h orizontal:false, _targetInstanceName:"mytext"});" -by this code only i attached it
View 1 Replies
Mar 20, 2012
I was wondering if there was a way to get the sound from a FLVPlayback component and manipulate it with using a custom volume slider? Within my Actionscript I currently have this code which enables me to control the volume of a MP3:
import fl.events.SliderEvent;
var mysong = new music();
var myChannel:SoundChannel = new SoundChannel();
var myTransform = new SoundTransform();
myChannel = mysong.play(0,10);
[Code]...
But Instead of using the MP3 for sound, is there a way to use an FLV's sound instead?
View 1 Replies
Jan 27, 2011
I created a somewhat custom Spark button by doing the File > New > MXML skin and basing it on spark.components.button. The problem is that I need to add an extra text field to the button component and dynamically change that text...but of course, the property isn't recognized on a Spark Button.
Is there a simple way to add this field to my custom button skin & its property so it can be addressed? If not, is there a simple way to take what I've done and just extend the Spark Button? I can't seem to find any examples that show how to do it without writing it all up in ActionScript.
View 1 Replies
Aug 17, 2010
I know nothing about flash but this is what I am doind with CS5 Adobe Flash Professional:1. Import video. I type in the server location of my .mp4 file.Now when I save it and embed on a webpage it loads and works perfect, however it is not looping. So my question is in adobe flash professional what do I need to exactly?
View 1 Replies
Feb 9, 2010
Im using the FLVplayback component for a project im doing. I want to add the time elapsed and time left on the controls. I dont really want to create my own controls, as im happy with the flv playback component. The FLVs playing in the component are external and are loaded into it via as3
View 13 Replies
Apr 8, 2011
With autoHide set to true would like to have the skin show when a video is loaded then fade away after a couple of seconds.
View 3 Replies
Sep 30, 2010
I have tried numerous things but when I insert the FLVplayback Component into flash that is linked to an external video source the fullscreen function will not work but the video plays as needed.
View 15 Replies
Dec 21, 2010
I am working on AS3 project using Flash CS3. I have to display some videos using FLVPlayBack component. I am using the same component instance to display videos but when a new video is loaded the max duration property does not updates and hence the onComplete event is never fired. I somehow wanted to refresh the component when a new video is to be played.
View 1 Replies
Jun 11, 2009
I imported the flvplayback component on-stage in one frame and gave the instance a name of hv.If a button takes the movie to another frame, how do I pause the flv at that point
View 1 Replies
Jun 29, 2009
What are steps to do unload a flv file after clearing necessary memory used for its loading and also to remove the FLVPlayback component.his is the code i have used for creating FLVPlayback component and setting its source.
public var m_flvPlayer:FLVPlayback;
m_flvPlayer= new FLVPlayback();
m_flvPlayer.autoPlay = false;
[code].......
View 12 Replies
Jul 13, 2009
Publish to Flash 8 and using the FLVPlayback component as part of a larger elearning course.We have a legacy pause button that works by recursively looking through every item on stage and if the item is a movieclip following its children and so on. Something like this (there is more to the whole thing, but this is where the problem is):
findCurrent = function (obj){ // RECURSIVE SEARCH FOR MOVIECLIPS for (var i in obj) { if (typeof (obj[i]) == "movieclip" && obj[i] != obj) { if (obj[i]._name == "pauser"{
continue; } var m = obj[i]; m.frameWas = m._currentFrame; isCurrent.push(m); findCurrent(m); } }};
The issue is that when using the FLVPlayback component the 256 recursions limit is reached. I'm guessing that the video part contains a reference to playback controls skin and the playback controls skin contains a reference to the video part and the recursion just goes round and round till it hits the limit and then all actionscript is disabled for the rest of the file.
I thought of adding a counter, and that is probabaly a good idea, but I was wondering if there is anyway to identify that I've hit a video player and stop following it?
Obviously the topeof(myVideoPlayer) is coming back as "movieclip" or I wouldn't be getting this problem. I don't think there is a getQualifiedName for AS2, right? I looked at the properties and couldn't find one that said, "clearlyVideoPlayer."
View 3 Replies
Aug 16, 2009
I'm using the FLVPlayback component to play a movie. In the parameters, I'm setting volume to "8" where the default is "1".This works great and gives me the right volume setting, but if the user touches the volume slider (which I'd like to keep), the new maximum volume is only one.
View 2 Replies
Feb 10, 2010
I have an array of videos coming from an XML doc. I am getting the name of my video in the trace statement okay, but am not sure how to go about loading the FLV video into the player.I have an FLVPlayback component on the interface named "video". The video I'm going to load will be ("videos/" + videoArray[0]))
View 3 Replies
Mar 9, 2010
Is there any way that i can load a local mp3 file using flvplayback?
View 2 Replies
Aug 27, 2010
I try to modify ncmanager file. (I want add parameter when connect method is called). I've edited this file but nothing happens in my application. After two hours of headacke, I delete NCManager (I've made a copy on my USB key).I try to place a FLVPlayback on my scene : no problem ! I can place it, but it does'nt work as I want.So I discover that even I try to change NCManager, this file isn't read.I need help to understand what I must do when I modify these file. Should I have to put it somewhere ? must I compile them and how ?
View 14 Replies
Sep 12, 2009
I need to use cue points in an FLVplayback component to load other movies. I've looked at several tuts, but most are for navigation.
View 7 Replies
Sep 3, 2009
I've noticed, that placing an FLVPlayBack component on Stage, instancenaming it myFLVPlayer and using this code:
Code: Select allmyFLVPlayer.addEventListener(Event.COMPLETE, playAgain);
function playAgain(e:Event):void {
trace("starting over");
[Code]....
View 2 Replies
Apr 8, 2010
Video won't play from XML
I have been trying to pull a single random video (.flv) from an XML list to play it using the FLVPlayback component. I managed to get the description from the <desc> tag and the title <vidtitle> tag in the xml file but can't get the flv to play in the player.
I dragged a FLVPlayback component onto the stage and gave it an instance name of "display" but I still cannot get it to work. I get no errors when hitting "control + enter" the video never loads. My code is below.
Code: Select all//Let's load our video classes
import fl.video.*;
import flash.events.Event;
import flash.net.*;
[Code].....
View 1 Replies
Dec 28, 2009
I'm working with an FLVPlayback component in Flash CS4 and I'm trying to target the seek bar handle, which according to what I've read so far, is created at runtime and it's assigned an instance name of handle_mc.I've tried targeting that, but with no success. After researching for most of my day and trying several different methods, I have no idea what else to do to have access to that handle and change its alpha property
View 1 Replies
May 14, 2009
I did a search, but couldn't find my issue, which was rather surprising. I have an actionscript 3.0 component (flvplayback) and I want to simply change the highlight color from the default green color. You used to be able to do this by a style manger "halo" color or something I don't remember exactly (AS 2.0), but this doesn't work w/ 3.0 components. I thought I could double click on the component in the library, but I can't seem to change the style that way either. I have also tried to place individual items on the stage, like the play button and change the styles there, but it doesn't inherit the changes to the flvplayback component.
View 2 Replies
May 14, 2009
i have set up a flvplayback instance and when a button is clicked i want it to load in and play a new flv
i have the following code:
// Add FLVPlayback Class (required for Playing flv's)import fl.video.*;// Create a new FLVPlayback object to hold the video var myVideo:FLVPlayback = new FLVPlayback();// set the width of the videomyVideo.width = 544;//set the video's widthmyVideo.height = 304;//set the video's heightmyVideo.x = 200;//set the video's horizontal positionmyVideo.y = 88;//set the video's vertical position// set the video source to the current video stored in the variable myFlvmyVideo.source = myFlv;// put the video on the stageaddChild(myVideo);
all this works fine and the first flv loads and plays fine no problems
[Code]...
I know how to use netstream but unless there is a way to use skins with it its not the way i want to go.
View 3 Replies
May 27, 2009
I have a couple of lessons that I have created in Flash CS3 for Flash Player 9 with AS3.In the main timeline of the lessons I have an flvplayback component setup to connect to our instance of Akamai's flash ondemand application to stream down several videos.
I have a customer who is behind a client side proxy server that is having an issue where the first 10-15 seconds of the any video plays then the video drops out and it appears that the flash player attempts to make a connection on another port which causes multiple audio streams to play but the video never comes back.From the network sniffer read out that their IT send me it appears that the flash player initially attempts to get out on port 80 then attempts port 1935 then attempts 443. if there is anyway to stop the flvplayback component from attempting multiple connections?
I created a stripped out application that just has a flvplayback component in it and when the end user opens that one it streams the video fine. I can only assume that my lessons which are using scorm and webservices to make database updates are reaching some bandwidth limit that the end users proxy doesn't like.
View 1 Replies
Jun 2, 2009
my flvplayback component is not working when i tried to pass the url of the video to be played from js to the actionscript.(using actionscript 2)
I properly embedded the swf and added the object ids as well. i just assigned the url to a string and then passed it to the function in the as but it's not working...
View 3 Replies