Professional :: Netstream.play2() Switch Transition?
Jul 25, 2011
I'm writing a player that switches to videos of different resolutions. I was able to get this to work before by closing the netstream connection and opening a new one with the new file address.I now want to try using the play2() function instead, but after setting the transition variable to "NetstreamPlayTransitions.SWITCH" and the oldStream and streamName properties to the old and new file addresses,respectively, nothing happens. The current stream keeps playing. I know that the file addresses are correct because if play each one individually using the RESUME transition, it works fine.
View 1 Replies
Similar Posts:
Jan 25, 2009
Code: Select allMovieClip.prototype.play2 = function(direction, playback, begin, end, callback, clips) {
var o = this;
playback = (playback == undefined) ? (1000/24) : playback;
[Code].....
I have tried the same commands for onClipEvent (mouseUp) aswell!
Do I need to add something in the MovieClip.prototype.play2 = function???, or what is the correct approach.
View 1 Replies
May 11, 2010
I am trying to create the simple thing by closing the switch as in image2 to glow the bulb can I achive it using adobe? The image1 is actual state & when i close(user event) the switch the state of the switch should change & bulb should glow. When I Open(again user event) the switch the state of the switch should change to the original state as in Image1.
View 1 Replies
Jul 20, 2011
I'm working on for a flooring company. They want a Flash movie that allows the user to change the look (product and color) of different areas of the floor.I have a menu on the left side that designates the three different areas of the floor. I have the two products along with color swatches along the top. I currently have each of the three areas as separate movies that load into a main movie.These three area movies each contain the color swatches on the top as buttons to change the color of that area using "On Release > Go To Frame Label" actions that displays each of the different colors. These movies each load on a different level based on the selection of the left side menu.I want the user to be able to go to each of the three areas and change the product/color attributes without losing what they had already done. For instance, if they choose PRODUCT A in RED for AREA 1, then they want to change the product/color on AREA 2, I still want the movie to display PRODUCT A in RED for AREA 1, etc.The problem I run into is that when you go back and forth between the three areas, the navigation only controls what movie is on the top level and doesn't allow the user to go back to a previous area and change the product/color attribute.
View 1 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
Jan 30, 2010
I'm pretty new to this and racking my brains on the following problem: I have a movieclip-button, with 3 states (normal, over and clicked). I want to disable the functions in actionscript 3 that switch between the normal and over-states after the button is clicked, and not enable these functions for this button until another button is clicked. What's the best/ simplest way to do this?
View 5 Replies
May 12, 2010
I would like to make the site below. [URL] I want to do a transition in and out First, In the site (btn1) 1st page( mc?) is slided in, and then, when click the buttons in the navigation bar is clicked (btn2) to go to 2nd page 1st page will be slide out, then
View 1 Replies
Nov 16, 2009
How can I add a Squeeze transition effect between frames using the transition manager class on a simple slideshow using the goBack and goForward functions in ActionScript3? Below is the code I have so far:
stop();
function goBack(event:MouseEvent):void
{[code].....
View 0 Replies
May 11, 2010
I've created an swf file in After Effects and uploaded it to my website. It works fine, HOWEVER. when you click onto another menu tab and then switch back to Home the swf has dissapeared.To see for yourself look at [URL]
View 9 Replies
Apr 20, 2010
Im currently working on a project where I have a 92x92 pixel image that needs to tween into a 711x300 pixel image. The images are the same but cropped to these sizes via photoshop, imported into flash, then converted to graphic symbols. I want to have the 92x92 image tween into the 711x300 image.
I say tween, but the two tweens aren't working correctly, I can't seem to find a "crop" like function in flash that will let me adjust the large image for when its supposed to be small, then have it tween between the two sizes as i need them to.
View 2 Replies
May 16, 2010
I have a AS2 netstream instance, in which I am loading various flv's into. The 'main' video has links to other visble when its playing. I want to be able to store the position of the flv (in seconds) so that when the user comes back to the 'main' video it remembers where it was and contiues to play. This is the code I have written so far regarding this (its probably massively wrong).
var remember:Number;
if(ns.play == ("flvs/reel.flv")) { ns.time = remember; trace ("stored"); }
[code]....
View 1 Replies
Jul 15, 2010
Im trying to get cuepoints working on an old as2 project.I have a netstream video component and want the cuepoints embedded in the FLV to trigger buttons to appear. I have embedded them as Event Cuepoints.
ns.onCuePoint = function(infoObject:Object){ trace(infoObject.name); if(infoObject.name == "CP1") { trace("yes working"); }};
[code]...
This shows all of the cuepoints within the FLV. I cant figure out how to change the code to trigger actions WHEN the FLV hits a Cuepoint.
View 2 Replies
May 18, 2010
i have a flex app that transitions between 2 states with the toggle of a button. my issue is that the effect of fading only seems to work on the 2nd transition and after. However, for my first transition... going from State1 to studyState... there is no fade effect whatsoever, in fact the components in state1 disappear completely (the footer fills the empty gap where the "body" use to be) and then the flex recreates the studyState (without any fade refilling the "body" with components only in studyState). After this first transition however, going between studyState and State1 working COMPLETELY fine.. why does this happen and how can i make it so that crossfade works STARTING FROM THE VERY FIRST TRANSITION?[code]
View 1 Replies
Oct 25, 2009
I have a presentation using the "presentation" template that comes with flash. I am trying to transition slides with the behavior slide transition options. but I've learned that it works find while going into a slide and doesn't go to the next slide when leaving.So basically I want it so that on right arrow first play out transition then go to next slide.
View 2 Replies
Apr 8, 2011
Have screen filled as much as possible with webcamBe able to go full screenJust keep it simple!Work out a way of giving you credit without putting stuff on the fullscreen version (I will not be distributing it commercially)Some things that would be kind of cool to add (both inspired by youtube's webcam thing)Ability to switch between webcamsRecord and save to the serverWhen making it similar to youtube's try to stay simple!
View 1 Replies
Aug 20, 2011
I've managed to make a simple slideshow in Flash, however the images just flick sharply to the next. Could you tell me how to do a fade transition?
View 2 Replies
Nov 25, 2011
I want the transition to blur slightly, but not the movieclip, which contains a jpg. How can I write this with ActionScript 3?
View 1 Replies
Feb 5, 2010
I've run into a troubling issue where using the NetStream class is causing odd video playback behaviour, major disk query issues, and also leading to my browsers crashing (tested on FireFox 3.5.X, IE 8, and Safari 3/4 with Flash plugin 10,0,42,34). I tested the issue on a Macbook as well and noticed the same thing, so it wasn't something specific to my machine. I wrote a basic Flex application to test this. I make a NetConnection to my web server. When successful, I create a NetStream to playback the video (F4V encoding of Big Buck Bunny). Immediately in Windows Performance Monitor, I can see the Disk queue jump to 100%. The video eventually pauses for a lengthy period of time. Sometimes the browser also becomes unresponsive at this time, and in other cases it will crash. If the video does eventually resume (disk querying reduces a bit), I experience odd behaviour with the video. If I pause the video (NetStream.pause()), when I resume the video (NetStream.resume()), the video begins to fast-forward to make up for the amount of time lost while the video was paused. So if I paused the video for 10 seconds, Flash will fast-forward in 1-second intervals through 10 seconds worth of video. During this time, NetStream will constantly dispatch buffering end and buffering full events.
What's odd is that the problem doesn't seem to happen when I add an additional arument in the play command. NetStream.play(url) will cause the issue, but NetStream.play(url, 0) will not. However, this doesn't always work. My own player, which has a lot more interface controls and complex logic, still suffers from the problem, despite that I'm not doing anything with the NetStream object.
View 4 Replies
Jun 24, 2010
I'm into LMS courses, and use a lot until today the combination of flv's for characters and loadSound for make them talk. Until today because after this week I've update my flash to 10.1 and boom, all my courses now are crashing in any browser that have the update. I already noted that the problem is the netStream. Here's my current Actions just to quote, I've been using this since version 9 of the flash player with no problems:
[Code]...
View 3 Replies
Mar 27, 2011
Has anyone seen a Flash Component that creates a slide transition similar to this [URL]. Looks like there is a looping background image and the other slides are loaded above it (hopefully via XML?) and the transition effect maybe in a component???
View 1 Replies
Apr 4, 2011
I just joined this Adobe Forums, and I am new to action script 3.0, I am working on a couple of lessons and I would like to be able to shorten the number of frames they take up on the timeline by setting the time the transition takes in seconds in my action script, and limiting each to a single frame so that my timeline can be organized and easy to work with.SO I set the seconds to 10 seconds, and kept each on a single key frame BUT THE PROBLEM is that the transition only plays as a single frame and cuts off and then moves to the next frame and so on
[Code]...
View 1 Replies
Jul 31, 2011
I have a 30 frame flash movie with a Bitmap image for a background and a Graphic with a Wipe-In Transition, but when I play the SWF file in Flash Player, the movie loops. Is there a way to stop this? It has to be in .swf format, can't be .html.
View 7 Replies
Aug 26, 2010
Let me preface this by saying: This is definitely a bug either with latest Adobe Flash Player or the streaming Media Server (in this case Real Helix):In the latest version of the Flash player (10.1.82.76) Code that worked previously in version 10.1.53.64 does not work now. This is basic code to connect to an RTMP server (Real Helix) using Netstream class. NOW the video does not even display and there is no error message . THIS ONLY OCCURS in a BROWSER . Also I am using swfobject to display the flash and I tried with latest version and the old 1.4.1 version.
private function init():void video = new Video(); NetConnection.defaultObjectEncoding = ObjectEncoding.AMF0; nc = new NetConnection(); nc.client = this;
[code].....
View 2 Replies
Jan 7, 2010
I am using NetStream, NetConnection and Video object to play an mp4 file which is hosted over a web server using http.This is an AIR application and the relevant code is pasted below:
var url:String = <some http url>;
connect_nc = new NetConnection();
connect_nc.connect(null);
[code]........
View 0 Replies
Mar 20, 2012
In my application I have a video playing from a NetStream. Every second on timer I update a text label with statistics like stream.info.currentBytesPerSecond. The problem occurs when the NetConnection associated with this NetStream closes: the getter for stream.info throws
[Code]...
View 1 Replies
Apr 23, 2010
I am trying to create a page transition that will play a movieCLip transition into a page. and then it stops then when another button is pressed, it will play that transition out while loading the appropriate one. In the attached FLA, if you click on the red button first, the blue transition plays,
--red button code--
mybutton1.onRelease=function(){
_root.transitionClip.play();
}
and then stops on the stage. When you click the green button second,
--green button code --
mybutton2.onRelease=function(){
_root.transitionClip.play("out");
_root.transitionClip2.play();
}
it works correctly/ Playing out of the blue Transition and into the Red transition. However if I click it again it does the opposite, and just keep alternating.
If I add the
_root.transitionClip2.play("out");
to the first button then, nothing works right. I will eventually have more buttons, and may need to use a variable to control which "out" transitions is played, but how do I get the buttons to do this?I just want it to exit the current movie clip and play the "in" section of the desired clip.
View 16 Replies
Oct 30, 2011
What I'm trying to do is create a program that, depending on 2 variables, multiplies another variable by a static number. Heres the code I have so far:
[Code]...
View 1 Replies
Dec 10, 2003
I want this on an MC:
[AS]
i = 0;
switch(thing){
case 0:
[code]....
Basically what I'm wondering is, will I lose the value of i in the first switch once I'm out of the switch? Can the second switch read the 1st switch?
View 8 Replies
Oct 29, 2011
Im trying to create a program that, depending on 2 variables, multiplies another variable by a static number. A friend suggested I use case/switch instead of if/else statements,which is what I was using before.
[Code]...
View 1 Replies