ActionScript 3.0 :: Starting And Stopping Video File That Is Attached To Augmented Reality?
Apr 17, 2009
I'm trying to do a little augmented reality. I'm using an action script to call a video and play it. The problem that I'm having is that the sound is starting the moment the window is open and the video plays with the marker is shown. I want the sound and video to only play when the marker is seen. I would like it to pause when the marker is removed and then resume where it left off when the marker is seen again. Here is a copy of my code if someone could look it over and tell me what I'm doing wrong. PLEASE PLEASE PLEASE just correct my mistake. I don't understand enough about coding for you to just say Netstream.pause() and netstream.resume. I don't know where to put that information in.
package { import flash.display.Sprite; import flash.events.Event; import flash.display.BitmapData; import flash.display.Loader; import flash.net.URLRequest; import flash.media.Video; import flash.net.NetConnection; import flash.net.NetStream;
[code]........
View 1 Replies
Similar Posts:
Sep 17, 2009
I am trying to get a Papervision 3d plane with video attached to it to orient to the marker on the y axis. That is when you hold the marker at a z axis(flat) the video plane plays vertically, basically like a hologram playing off a flat surface. I am new to papervision 3d and I cant figure out how to orient the plane to the marker.
View 3 Replies
Sep 25, 2010
this tutorial create augmented reality an application with 3d *.dae files. [URL] I want to do this with video files. So, when i show the pattern to the camera, video play. How can i do this? :/
View 2 Replies
May 12, 2010
how to insert a swf file in augmented reality?
View 4 Replies
Jul 15, 2010
The program works just fine, and I am able to play the vÃdeo.flv in the augmented reality, but i need a preload for this because the flv is about 20Mb... how can I begin to add a preload to this project?
View 1 Replies
Mar 1, 2011
Is there any tutorial of how we can take a picture of augmented reality application in Flex, like in this video at 1:12 min.
View 1 Replies
Mar 22, 2011
Tutorials that I've been looking at are either about Augmented reality or Papervision 3D click-ability. I haven't found any article that talks about them at the same time
View 2 Replies
Jun 10, 2010
I'm trying to develop an augmented reality game on an action script project in flex and I have a small problem, I need to load a png image on the stage so I have put it into a swf but when loading the swf with the pngs do not show me anything.
[Code]...
View 1 Replies
Sep 9, 2009
I'm trying to work with Augmented Reality, I saw some examples and I'm trying to make some changes.
[URL]
this example it shows a 3D cube.What I want is a little easier, I think.I want to show a image or a .Swf file.
AS he it uses:
Code:
package {
import org.papervision3d.lights.PointLight3D;
import org.papervision3d.materials.WireframeMaterial;
[code].....
When I compile, he shows the image.What I want is to show the image only when I show the marker.
View 1 Replies
Oct 3, 2010
URL..which should be recognized via a webcam. So this image is the original which should be included into the swf. If a person show this image in the webcam, an overlay of a video should added and played (augmented reality).How can I do this? I found FLARToolkit, but it is not possible because I need a black border which the original image does not has.Are there other libraries which have this functionality?
View 2 Replies
Sep 22, 2011
I'm looking into producing a relatively basic augmented reality web app where a user can print out a pre-made marker, which when held infront of their webcam and viewed through the app will display an object on top which the user can move around and explore. Something very similar to this: [URL] but with a simpler model. I have absolutely no idea where to start and am struggling to find any decent sources online.
View 0 Replies
Jul 23, 2010
I'm trying to make a cube based on six markers for augmented reality and I need to display a defferent video on each marker, I followed Lee Brimelow in "Learn how to use the FLARManager library to make creating AR applications", the tutorial worked perfect but I can't use my own video and SWC file!
And also I followed the best tutorial for multiple markers "Tracking multiple augmented reality markers with FLARManager and papervision" by Rob Hawkes and got it worked, how to load my six videos into an array to work as materials for my planes (markers)?
View 1 Replies
Sep 25, 2010
this tutorial create augmented reality an application with 3d *.dae files.
[URL] I want to do this with video files. So, when i show the pattern to the camera, video play. How can i do this?
View 1 Replies
May 22, 2011
This is for a freelance design i am working on. I would do it expect coding and flash is very confusing to me and hurts my head. I have a link that says how you make it but im not quiet sure. [URL]if someone can please make me something that would be great i will give you all the details you want in a email but i dont want to share it in the forums if its illeagle or not (its not illeagle by law but maybe by forums idk) my email to contact me is [URL]
View 26 Replies
Oct 23, 2010
I tried to playing around with the augmented reality. Therefore I watched the tutorial (http:url....) and all works like a charme to me. I replaced the kramer.m4v with my own video. It works perfectly.But I want to have my own video on a transparent layer.So that I can see myself not within the background of my video.Therefore I did a video on a greenscreen and keyed the background. All seems to be ok!I exported the video in an .mov with the alpha channel. It works so far, but the black background is still there if i hold the marker to the camera.so my question is: Is it not possible to export a mov with the alpha channel to let the background go away?
Any hints or workaround? I just want to have a video with me speaking on a transparent background and not with teh black background. I changed the kramer.m4v in the HELLOFlar.as to kramer.mov (its with my own video, just the name is the same) but the background isn´t gone
View 11 Replies
May 31, 2011
i'm trying to make an augmented reality game..my game will be composed of a main menu..and in the main menu you can either choose to start a new game,option,and exit button, what will i do to make my background a webcam view when i click the new game button??
View 2 Replies
Aug 5, 2009
I can't seem to get around my video and audio files starting when I arrive at the page. I'm even using some example code with start and stop buttons. This is in CS4 Flash. I expect it's because the ActionScript is in the wrong place because when I run the movie it flashes through all of the pages on the site without stopping at the home page. Is there some generic code that will allow me to simply swap out the name of the video or audio file I want to start. If there is, do I need to locate it on its own layer at the top of the timeline?
View 6 Replies
Dec 11, 2009
I'm researching a potential project involving flash based augmented reality, and I've already looked at FlarToolkit and FlarManager which seem pretty straight forward to execute marker detection. What I cannot find are any sites or assistance with how to detect hand position, etc. To allow the subject to 'press' buttons. An example of what I mean can be found here: [URL] where the model presses virtual buttons to take action.
View 2 Replies
Mar 23, 2011
I'm trying to do some augmented reality projects with flartoolkit . I can now put simple 3d objects on my marker and it works fine , but I wanna give my project some events that the user can interact with. I'm trying to trace the rotation of the marker. there's a container:DisplayObject3D which my application uses to add the 3d objects , I traced this :"trace(container.rotationZ)" but it's just returning 0 . I studied another AR application's source code and it was using the rotation of it's container object without problem .and I think I should mention that I'm using the exercise file of seb lee delisle papervision3d course from [URL]. anyone has any experience with flartoolkit? the main functions of my my code is as below:
[Code]...
View 1 Replies
Aug 13, 2010
I am using Flash Builder 4 to run Lee's tutorial "Augmented Reality with FLARManager".However, upon importing the project and running, it shows the feed from the webcam but it's frozen on the first frame. I have a Logitech Quickcam Pro for Notebooks and, thinking it may be interference from the Logitech software, tried killing all Logitech-related processes but to no avail. I also tried making the project on my own and writing only the first few lines of code as the minimum requirement to get the webcam displayed (ie: everything up to about 9 minutes). Also, I'm working with FLARManager v1.0 which has some slight differences from v.6 Lee was working with for this tutorial. I'm fairly sure I've fixed these differences (in this case, the constructor for FLARManager) as specified on FLARManager's website. Here's my code:
Code: Select allpackage
{
import com.transmote.flar.FLARManager;
[code].....
View 2 Replies
Jan 7, 2012
I am making a character walk. This code will make him wobble to the right and when thats done it will trigger him to wobble to the left and then call the function again to continue the loop.I can get the loop to work fine by calling the function but how do I STOP the function? Also I want to call it later on. Is there a way to start and stop a function?
function wobble()
{
var ws = .1;
var dis = 1;
[code]....
View 2 Replies
Oct 2, 2007
I've set a music sound to play across three scenes in my movie. However, when the user clicks to enter the fourth scene, I'd like the music to stop. Simple enough.
Here's the problem...the fourth scene contains individual keyframes in the scene where I have separate voice overs for each frame. The user navs forward or backward among the scene's keyframes using arrow buttons for forward and backward. How can I have the voice over stop playing on frame 1 if the user clicks the arrow to go to frame 2 if the frame 1 sound isn't finished playing? Frame 1 plays out until finished, even if the user has clicked to go to frame 2.
Then, on return to the main scene where the general music file played, I'd like it to resume playing upon the user clicking 'return home.'
Incidentally, I set up my sound files to play on a soundtrack timeline.
View 4 Replies
Nov 5, 2003
I have placed an invisible button over the tweened animation, now here's my question:Whe i click on the invisible button the animation stops and when I click on it again, it restartsSo that's it really, can this be done? I know how to stop the animation by putting a stop in the action script, so I am looking for some actionscript that works on an alternative click method if I am making myself clear? Example:
View 2 Replies
Nov 23, 2010
I'm working on an assignment for a Flash Game Programming class (1 of 2) where I have to take a pre-made animation, add start and stop buttons to it, and use AS3 to make those buttons work. I got the buttons on the .fla, but I'm having a heck of a time stopping the animation using the stop button (I haven't even done the start button yet). This course is an independent study so I'm not being "taught" anything by the instructor. I have to find the answers myself. I've asked said instructor, my former AS instructor, and several computer lab monitors for help and we cannot get the animation to work correctly. There are compile errors that come up that really make no sense. This is my last resort in regards to this assignment!
Assign1WalkCycle
Code:
function onTimerStart(evt:TimerEvent):void
{
play();
}
[Code]......
View 1 Replies
May 14, 2009
Im using the flvplayback to put up a video in my swf. in my swf i also have several buttons. the thing i want to do is when i for example click a button i want to start playing the movie from 5 seconds in it and then stop the movie at for example 10 seconds in it. even if the video is 20 seconds long i want to be able to stop it automatically at 10 seconds in the movie. the start and stop should be controlled from the button..
i know how to start the movie at a specific time but i dont know how to stop it at a specific time.
View 2 Replies
Aug 17, 2010
I want to play my songs in my Flash site..
I tried Making the song title as a button, and then I figured out how to make the song play by releasing the mouse button. This works great, however, when I click on the button numerous times, the song starts playing numerous times..
What I would like is to be able to click on my Song_btn once to start the song, and then click again on the Song.btn to stop the song.
or another option is to start the song with the Song_btn, and then some way to just let that song play through.
I have used the "stop all sounds" command when you navigate away from that songs particular page..
View 9 Replies
Nov 5, 2003
I have a simple tween that runs over 50 frames, there is no stop action so it loops, just what I want. I have placed an invisible button over the tweened animation, now here's my question: When I click on the invisible button the animation stops and when I click on it again, it restarts. So that's it really, can this be done? I know how to stop the animation by putting a stop in the action script, so I am looking for some actionscript that works on an alternative click method if I am making myself clear?
Example: First click stops it, second click starts it, third click stops it fourth click starts it - this goes on forever.
View 2 Replies
Jan 10, 2007
I have 4 sets of 2 buttons (on and off):
Each set of buttons I want to trigger and stop a different audio file. (4 audio files in total)
I would like for the sound files to be saved within the .fla file.
I have done lots of searching but I still haven't been able to get this to work.
View 1 Replies
Feb 23, 2009
I need to create a tall background, when the user clicks on a button the background will scroll up and down to the area that the user wants to go to. ( I attach an image of how that might look like)
The background is divided in to 4 sections, the way i figure to do this, is to have each section be a different part of the timeline- and what I need to happen is as the user arrives at one of the sections or in that part of the timeline the mc's on that sections start playing and stoping once he/she leaves.
If there is a better way of doing this as well- feel free of telling me- Im use flash about once a year.
View 2 Replies
Apr 29, 2009
i just want my loop to keep playing regardless of the timeline stopping and starting. is this possible?
View 1 Replies