ActionScript 3.0 :: Unable To Use Some Properties In Netstream Class?
Sep 13, 2011
I am trying to use "maxPauseBufferTime" property in NetStream class.I am using Adobe Flash Pro CS3. I have defined an object by the name nsStream of NetStream class. When I write nsStream and put a dot next to nsStream it shows me a drop down list of the properties of NetStream. However it doesn't show me maxPauseBufferTime property. I also tried the same with Adobe Flash Pro CS5. Even there the drop down list for nsStream doesnt show me the maxPauseBufferTime property.The adobe help page (first link that shows up when I google for as3 NetStream. Forum rules doesn't allow me to post the link here) indicates that this property is part of NetStream class.
View 3 Replies
Similar Posts:
Nov 28, 2008
i wonder why i am unable to access the public properties of this custom class the public var w:Number; and the Public var h:Number; i am tracing them and on an instance of the PreLoader() Class.. and ia m getting NAN;
View 12 Replies
Aug 24, 2011
I am developing a Jigsaw puzzle in Flash. I am developing a class for puzzle piece. The code of the PuzzlePiece class in given as follows.
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;[code]....
I will be choosing which mask to use based on users selection of puzzle piece.When I try to use traingular mask by adding puzzle.gotoAndStop(2) the swf just flickers. Thought the holder_mc and mask_mc are exactly of same dimension one comes below lower than other though I have not altered the position of the clips within a puzzle piece.If you want to take a look at my fla here it is https:[url]....How to go to a specific frame 2. Why is position of two clips inside the piece changing
View 1 Replies
Jul 29, 2010
Getting this output from the following code, video streams OK but fills the output log with.Error #2095: flash.net.NetStream was unable to invoke callback onFI
var nc:NetConnection; var ns:NetStream; var nsPlayer:NetStream; var vidPlayer:Video;
function init() { nc = new NetConnection(); nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus); nc.connect("rtmp:///video");}
function onNetStatus (event:NetStatusEvent):void { trace(event.info.code); switch(event.info.code){ case "NetConnection.Connect.Success": displayVideo(); break; }}
[code]...
View 1 Replies
Apr 10, 2009
I can't find the properties menu in flash 4, my text book references flash 3.
View 1 Replies
Feb 5, 2009
So i have a really nice flash gallery that i downloaded from a site but i am trying to personlize it. It uses a dynamic text (for the preloaders and the titles) which is post by this procedure :
fullPreloader.onLoadStart = function(target) {
target.createTextField("my_txt",fullImage_mc.getNe xtHighestDepth(),50,50,200,20);
target.my_txt.selectable = false;
};
So what i did was basically to create a new style (my_fmt) and apply it to dynamic style applied by default (my_txt) :
fullPreloader.onLoadStart = function(target) {
target.createTextField("my_txt",fullImage_mc.getNe xtHighestDepth(),0,0,200,20);
target.my_txt.selectable = false;
[Code]....
Anway nothing changes. The text is always the same (Times New Roman which is by default) I also tried to change de height and width definitions but no difference. It only works when i change the x and y position of the text.
View 2 Replies
Oct 14, 2011
I need to use stage.width/height in my CustomClass so I found some topics about it.
if (stage)
{
init(ar,firma,kontakt,oferta,naglowek,tekst,dane);
[code]......
View 1 Replies
Mar 14, 2012
i am using xmllistcollection for displaying data in list. whenever i run my application data is display in list control, but this warning has displayed in console. How can i remove this warning warning: unable to bind to property 'xmlnode' on class 'XML' (class is not an IEventDispatcher)
View 1 Replies
Jun 9, 2011
I have a class, call it MyClass, and there are several variables that I need to be able to access each instance of from within the class.So for instance, I need the object myObject1, a member of MyClass, to store the variable myNumber.From the main timeline, if I trace myObject1.myNumber, I get whatever number I've stored.
However, I need to check the numbers against another parameter, so I need to be able to test if myObject.myNumber == myOtherNumber. But from within the class, if I trace this.myNumber or myNumber I get null.What is the proper syntax for accessing a variable within a class?
View 5 Replies
Jul 6, 2011
I have an mc called sunny. In the properties panel I export her for actionscript. I put Sunny in the main class and Drag in the base class. The reason for this is that I want her to be draggable. I can't use Drag in the main class as another object is using that name. The Drag.as has the drag functionality. Why can't I drag her. I already have a solution - I wrote a specific class for her and extended the Drag class. However, if I have 10 mcs I'm not going to write specific classes for all of them. Summing up: Using the base class Drag in properties panel - why isn't she draggable?
View 7 Replies
Oct 12, 2011
I'm pretty new to fully using class's for my programming (in-frame scripting satisfied me for a while). I am having a problem accessing the properties of a class from another class. The first class (I'll call it controller) receives a reference to an object of another class (I'll call it display). Display have several specialized subclass (I'll call one SequencedDisplay). SequencedDisplay has a timer in it that I need to access:
[Code]...
View 2 Replies
Jan 28, 2010
I'm trying to play an FLV on a video instance on the stage called my_video. This works as frame code the timeline, but when I use it as a class it loads the video but gets stuck on the first frame.
Here is my code
Code:
private var my_video:Video;
private function loadVid(mc:MovieClip)
{
[Code].....
View 3 Replies
Aug 6, 2010
I have a few questions about the net stream class..Lets start with the first one I have a netStream class that is basically set to default property values I am loading a video file off the local hard drive.Now once this video starts playing, I get NetStreamEvents constantly firing.. extremely rapid pace.
NetStream.Buffer.Full
NetStream.Buffer.Flush
NetStream.Buffer.Full
[code]....
It just keeps filling up and then flushing itself, but the video plays smoothly so to the end users nothing is wrong..
View 1 Replies
Sep 17, 2008
I am trying to load video using NetStream. I am able to do this by using the Video Class, but is it possible with the FLV Playback? I would like to add a seek bar so people can scroll the video if they want to.
I know the FLV Playback Component has this built in so I would use it BUT I can't load a stream to the FLV Playback, I can only set it's source. This works fine, but it doesn't allow me to unload it, the sound keeps playing, which is why I ended up using the NetStream instead.
So I have 2 questions. 1) Is it possible to load the NetStream to the FLV Playback component? 2) If not, how do I add the seek functionality to my Video Class?
View 2 Replies
Mar 19, 2010
I was using CS3 and Flash 8 (macromedia).I am working on a file that was created in maybe flash cs3 or perhaps flash 8, from another developer.It shows tweens on the time line.The developer created fade tweens, with names like "Transform 1" etc.The fades are on symbols (the developer converted jpegs to a symbols)from 100 percent to 0 percent alpha.I can see the fade go from 100 to 0, but I am unable to see the "alpha" properties when I select the symbol or the tween in the timeline.The tween is displayed in the timeline as a line with an arrowhead at the keyframe when the visibility goes to zero.I do not seem to be able to see the properties for the tween, i.e. 100 in keyframe 1, to 0 in keyframe 20.No information shows in the CS4 "Motion Editor".
I created a tween in a layer that I added, and it seems that CS4 no longer show the lines with arrowheads, but uses a different color for the tween range.And I get the motion properties in the "Motion Editor".I am sure it is pilot error here.Since I just installed CS4, etc.How can I view tween properties, like alpha on a symbol created in an earlier version of Flash?
View 2 Replies
Jul 31, 2011
I'm building a video chat in flash and everything works really well, except for the part where I'm trying to detect if the other user is sending a working video stream. There's a couple of reasons why the other user isn't sending video.
-The other user got no camera
-The other user got a camera, but the camera is currently being occupied by another application(Skype, Photo Booth, Google Talk, etc.)
-The other user got a camera but hasn't allowed the use of his/hers camera.
(Other unexpected problems I guess...)
So how do I detect if the stream I receive from the other user is a black stream(because of the reasons above) using the NetStream class? The closest thing I have came up with is by adding a timer that polls the currentFps() function from the stream I receive from the other user. But so far this seems pretty unreliable because I might get currentFps() == 0 and show an error because of this even though I actually got video from the stream in some cases. The reason for this is because I poll the API every 4 seconds for the currentFPS function and let's say at 00:00:04 I get "no video" according to the poll but at 00:00:05 the video kicks in, and therefor I need to wait until the next tick until the error message disappears
This is what my current poll looks like
function subscribingStatusPoll(e:TimerEvent):void {
if (subscribingStream.currentFPS == 0){
error.text = "No video found from the other user...
} else {
error.text = "";
}}
This is the only hack I that I can come up with to detect this, but this is unreliable and I actually would prefer a way to instantly detect if the stream I receive got a working video attached to it.
View 2 Replies
Jan 25, 2010
I would like use NetStream class to stream AAC audio file stored locally on server (because i can't use Sound class, AAC not compatible) How can i do this ? (without flash media server)
I have tried using http protocol, no errors occured, but i receive no audio data.
View 13 Replies
Jul 6, 2011
I'm making a small video players in AS3, and I've found that after calling NetStream.pause() or NetStream.togglePause(), no status messages are being fired any more.If I click the "pause" button while the video is buffering, I never get the Buffer.Full message.Here is some code:
_connection = new NetConnection();
_connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
_connection.connect(null);[code].....
View 1 Replies
Feb 25, 2010
I am working on an app that will take a snapshot of an rtmp stream of an archived video, save it to a file, and ExternalInterface the file name to the hosting page to javascript it up for display.
I actually have all pieces working great. The only time an error is thrown is when I pause the video, seek to somewhere, and then try to take a snapshot. Then there is a runtime error of:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: mySwf.swf cannot access rtmp://myFlashServer/myApp. No policy files granted access.I've seen post after post of suggestions and have tried them, but without success.
I have the crossdomain.xml and my FlashMediaServer security setup fine (it is actually working, except for this one glitch). It just seems to be the pause-then-seek-then-BitMapData.draw() combination which is creating issues.
Another weird thing: after the error is thrown, if I resume the stream and take a snapshot, it works flawlessly again.
View 5 Replies
Oct 13, 2009
i have created a Vehicle.as file and a Car.as file which are in the same project. The problem i am having is trying to use the properties in my Car.as from my Vehicle.as file.
[Code]...
When i type this line of code, _gasMileage = mpg; and build it i get the following error, C:UsersvistaDocumentsFlashDevelopProjectsVehi cleAppCar.as(20): col: 4 Error: Attempted access of inaccessible property _gasMileage through a reference with static type Car. Now i tried to add an import statement i.e import Vehicle but that did not work. How can i use the private attributes of my Vehicle class in my Car class appropriately?
View 10 Replies
Sep 15, 2011
I'm using a library that has a function that returns an instance of some class Engine.
I'd like to tack on some interfaces to Engine, so I subclass it class InterfacedEngine extends Engine implements AwesomeInterface. but when I change the code that uses the classes from this:
var engine:Engine = generateEngine();
to this: var interfacedEngine:InterfacedEngine = generateEngine();
It gives me a runtime error (elision mine):
TypeError: Error #1034: Type Coercion failed: cannot convert ...::Engine@1bc2bf11 to ....InterfacedEngine.
What about AS3 classes am I misunderstanding?
View 2 Replies
Jul 1, 2009
I have two movie clips on the stage at frame 1 and frame 2. Both are instances of seperate classes. (They are not dynamically created, just their linkage is set to their class names)I have created soundChannel and Sound Objects in Class 1 and I want to access them from Class 2. (I want to stop the sound channel that was started in class 1)Is there any way to do this? If yes, will this be true for other properties also?
View 7 Replies
May 7, 2010
I've been working on a project in Flash CS3 for a while. To follow an object on the screen and keep it centered, I'd adjust the Document Class' x and y properties.
Yesterday I bought/installed Flash CS5 and thus Flash Player 10 was also installed. Now when I go play my SWF it seems everything is all buggy, as if the code that modifies the Document Class' x and y properties isn't exactly working properly...
I've since reopened the CS3 FLA in CS5 and converted it to a CS5 format and I can't seem to get it working the way it used to.
Did something change regarding the Document Class and how to modify the x / y properties of it in the Flash Player 10 version? I really don't know what's going on at this point.
View 4 Replies
Oct 19, 2009
I'm working in CS4. I am trying to add 20 squares to the stage. Each square must have a different number in the middle(1, 2, 3, etc.).
This is my code so far:
ActionScript Code:
package {
import flash.display.Sprite;
[Code]....
Ideally, I would like the squares to be added automatically, with increasing numbers and 100 x 100 pixels apart. Possibly a 'for-loop' statement?
View 2 Replies
Jun 4, 2011
I've heard it's considered best practice to keep all class properties private and to change them using getter and setter methods.
View 5 Replies
Jun 9, 2011
I have a class - call it MyClass - and an instance of that class with instance name myObject.In MyClass I declare:
public var myVariable:Number;
In the main timeline I try to set it using myObject.myVariable = 3;
In the main timeline, if I do a trace (myObject.myVariable) it will return 3. Within the class, if I do a trace of (this.myVariable) it returns null.However, if I add a line of code in my class and add this.myVariable = 3, it traces 3.Why can't I get myObject to correctly change its own parameters?
View 2 Replies
Dec 9, 2005
I almost feel dumb posting this, but I am develpoing a project and seem unable to trace from within a class. It definatley helps to have this ability and I have yet to find a suitable work around.
View 9 Replies
Jul 17, 2009
I've created a movie clip and placed it in the library. I've given it a class name via the properties panel in the library. Every time I drag it to stage I want to make sure its alpha is set to 0. If I drag 300 of those clips to stage, is there a way to reference the class name I gave it in order to automatically set the alpha value as soon as they're dragged into the stage?
View 2 Replies
Nov 14, 2009
when I try to access a property of the document class from another class, I get an error:
Quote:
1119: Access of possibly undefined property _left through a reference with static type flash.displayisplayObject.
Maybe I'm not doing it correctly? This is how I've been accessing document class properties so far. Does the fact that they're private make a difference?
Quote:
root.property
View 1 Replies
Jun 7, 2010
I can't use a "for in " loop to enumerate public properties of a custom class. So I have a class "ClassA" , which has some public properties. if I try :
PHP Code:
trace(classInstace.hasOwnProperty('property1'));// true
trace(classInstace.property1) // traces the property correctly
trace(classInstance.propertyIsEnumerable('property1')); // traces false ????
View 6 Replies