Actionscript 3 :: 3D Object In FLARToolKit Keep Appearing Even Though There Is No Marker Detected

Aug 11, 2011

I have another (newbie) question about FLARToolKit.This is Lee Brimelow's code to make 3 boxes on top of the marker.

package {
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.events.Event;

[Code]...

the flaw of this code is, after the marker detected, yes, the 3D object got rendered. but after the marker were not detected, the object still appeared on the screen (even though it did not move)

View 1 Replies


Similar Posts:


Actionscript 3 :: Augmented Reality Flartoolkit Rotation - Trace The Rotation Of The Marker

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

Flex :: Use Standard Map Marker Instead Of Custom Marker?

May 10, 2011

I'm using Google Maps with Flex 3. I'm using custom markers (custom icons) to mark places on the map. It works fine. The problem is that in some cases, I don't need a custom icon, I need the standard marker.

For example, how would I set condition C's icon to the standard marker:

public function iconSetter():void {
if (condition A blah blah){myIcon=star; myPointsBuilder(); return;}
if (condition B blah blah){myIcon=circle; myPointsBuilder(); return;}

[Code].....

I don't know how to revert to the default marker where I wrote "STANDARD MARKER".

View 1 Replies

ActionScript 3.0 :: RemoveChild Object From Stage Can Be Detected By Hittest

Apr 4, 2010

If I removeChild an object from the stage can it still be detected by a hittest? I have objects that are tweening off the stage and if they hit other objects they stop their tween i use removeChild to remove objects that I don't want a hittest to occur on which is the nature of my question.

View 1 Replies

Stop A Rectangle From Going Past An Object After Collision Is Detected?

Oct 11, 2009

Assuming, for a rectangle that is controlled by the user using the arrow keys, that I do the following[code]...

Assuming that works in detecting the collision, what would I use to actually stop the rectangle from progressing through the wall?

View 1 Replies

Actionscript 3 :: Remove Object From Stage And It's Arrays After Collision Detected?

Apr 3, 2012

The scenario: in Main, instances of class Bullet are spawned and added to the stage, and to the array bltarray, instances of class Enemy are spawned, added to the stage, and added to nmearray. This works fine.

The problem comes in seemingly sporadically, i.e. it works, then suddenly doesn't work soon after, when it doesn't work I get spammed with output errors and the score display is constantly rising, note it's the same instance of bullet and enemy. [code]...

View 1 Replies

Flash - How To Get Rotation In FLARToolKit

Sep 30, 2010

How do you get the rotation of the marker in FLARToolKit? All that I can find is how to do it with papervision3D but since I am using Unity3 for the 3D, this is not optimal.

View 1 Replies

ActionScript 3.0 :: FLARToolkit Timeline Script?

Apr 15, 2009

I'm tying to convert the FLARToolkit class Lee showed in his tutorial for timeline scripting.(i.a. copied the whole damn thing, and put it on a actions layer) So far so good, I cleared out all the class related code and tested the movie. Than I ran into a problem.

[Code]...

View 4 Replies

ActionScript 3.0 :: Hover Description Appearing Behind Object

Sep 15, 2011

Above is a pic of a combo box loded with values. Id like to have it so when you mouse over the dropdown, a hover descripition of the value the mouse is currently on appears on the screen. I have it complete for the most part...but as you can see, the description displays behind the dropdown. Ive tried this.setChildIndex(textDescription, this.numChildren - 1)" and no luck.

View 6 Replies

ActionScript 2.0 :: MovieClip-derived Object Not Appearing?

Aug 24, 2004

Ach. I have a class that extends MovieClip called AxonClip, and a class that extends AxonClip called Target. I create several new Target objects like so:

Code:
Targets[i] = new Target("Targ"+i);
Targets[i].attachMovie("TargetArt", "TarGuy"+i, iDepth);

[code].....

View 3 Replies

Professional :: Put A Marker On The Timeline?

Sep 21, 2011

Is it possible to put some sort of a marker along the timeline on a certain frame? I want to select all the frames of all my layers within a certain range so I can paste them in a new document,

View 5 Replies

ActionScript 3.0 :: Google Map API - How To Put Title In Marker

Dec 18, 2009

I am using google map api. Is there any way to put title in marker?

View 1 Replies

ActionScript 2.0 :: Targeting - Tell Another MC To Go To A Marker On Its Timeline

Feb 20, 2006

I have a MC with buttons in it. When the button is pressed, I need to tell another MC to go to a marker on its timeline. Do i target the MC name (from the library) or the instance name? would it be something like Code: _root.mc1.mc2.mc3.gotoAndPlay("label");

View 4 Replies

ActionScript 2.0 :: Leave A Marker Where The Mouse Has Been Clicked?

Oct 18, 2011

I have created a movie that requires the user to click on two points on an image. I want a visual indication to appear (eg a marker of some sort) to appear on the first and second click. Is this possible?

View 21 Replies

Actionscript :: Flex Validator - Remove The Red Marker?

Jan 13, 2011

I'm working with flex 3.5 and I have a problem with a validator. I have a field that dynamically has o has not an asigned validator, the problem is that in a specific moment the field haven't the validator assigned but the textInput had a red border.I dont know what do I have to remove the red marker?Here is an example of my validator: This is the validator:

<mx:CreditCardValidator id="ccV"
cardTypeSource="{cardTypeCbx.selectedItem}"
cardTypeProperty="data"[code].........

And I have a button that been enable or disable because it has a binding with a boolean var isFormValid.The most weird thing is that when remove the validator the button becomes enables but the red border is still in the textInput.

View 1 Replies

Add A Polygon As A Marker In Google Maps Flash Api?

May 9, 2011

I am creating a project in Flash using the Google Maps API and docs. I'm trying to add a marker to the map, which is draggable but I don't want it to look like the standard Google Maps bubble-style marker. Is it possible to have a custom polygon or image but still keep the draggability?

View 2 Replies

ActionScript 3.0 :: Adding Movie Clip And Going To A Marker

Jan 1, 2012

I've added a movie clip i've created to the stage and it works fine... the movie clip has 4 frame labels inside it with different content on each label. The main timeline has 4 buttons and I want to be able to click one of these buttons, it will load the movie clip (which it currently does) but goto a specific frame label within the movie clip. The below is a sample of the code from one of the buttons.

[Code]...

View 6 Replies

'No Flash Detected' Message?

May 6, 2009

I have searched all afternoon, and I thought millions of people must have this problem, but couldn't find a single useful site.I have made a flash site, that works correctly for people with flash. People without Flash however, don't see anything but my background color. No yellowbar on top that enables them to download flash, and no message that they need to have flash either!I want to display a message when the user doesn't have flash, like on www.thehansofoundation.orgI just want the site to say that you need flash, you can download it here, and if you don't get it to install you have to contact your network administrator, because a lot of companies have disabled flash and I want their administrators to explain te problem and not the client I made this site for.

View 2 Replies

ActionScript 3.0 :: Mouse Over Not Detected

Aug 25, 2009

I'm trying to make a grid full of photos as an AS3 class. I would like mouseOver and mouseOut behaviour for the indvidual pictures however, only one of the pictures is triggering a mouseOver event ?_?
 
Code:
 
... 
public class PhotoGrid extends MovieClip{
...
private function loadComplete(ev:Event){            var count:int = parseInt(ev.target.data.picCount);            for(var

[code].....
 
As you can see event listeners are being added to all of the pictures that are being displayed, however, only one actually works.PictureLoader is a custom class extending MovieClip which has a child Loader object (the loaded picture)

View 3 Replies

ActionScript 3.0 :: CTRL+UP Key Not Detected

Jun 6, 2010

I have been using the up/down, left right keys ito scale and rotate an object. I decided to change that to CTRL+up/down/left/right key so I could use the arrows to position the object.

When I change

if( event.keyCode == Keyboard.UP)

to
 
if( event.keyCode == Keyboard.UP && event.ctrlKey)

nothing happens.
 
I've tried a few tests and I can CTRL+left and CTRL+right fires an event, but CTRL+Up or CTRL+Down does not fire an event.
 
without the && event.ctrlKey added, all events work fine. So I knopw the CTRL key works and the arrows work. Just not CTRL+UP or CTRL+DOWN arrow together.

It might be my DELL laptop keyboard, but if so, many will have this problem.

View 1 Replies

Flash :: Beginbegin Cannot Be Detected?

Feb 4, 2011

I have issue with a value that should have just work, however, it seem to be a bug which I could not understand. Maybe you can find any bug?Note: I have no issue with the "begin" and "end", just "beginbegin" and "endend" always return false.My array values:beginbegin,endend,-,-,-,begin,end,-,-,-,begin,end,-,-,-,-,begin,-,endMy code:

private var xm:int = 0;
private function createBeam():void {
for(var a:int=xm;a<naArray.length;a++) {

[code].....

View 1 Replies

ActionScript 1/2 :: Randomly Choosing Next Marker To Jump To And Play?

Sep 16, 2009

I'm interested in understanding the ActionScript 2 code that will allow a random decision on the next marker to jump to. I have five markers on a time line and want the movie to stop after playing a sequence of elements, then randomly choose the next marker to jump to and play, this would continue forever.The goal is to communicate a few concepts without starting from the same concept every time in a linear manner.

View 6 Replies

Php :: Flex - Image Serving Extraneous Bytes Before Marker?

Nov 7, 2010

I'm desperately trying to solve this one. I have a bunch of files stored outside of the webroot and I need to serve them to a user after a few auth checks. These files have been uploaded using a Flex application or have just been manually uploaded through FTP. I have a serving script that looks something like:

[Code]...

I imagine this could be on the Flash side, but honestly it's dirt simple. I just don't see where the extra data is coming in, and why its corrupting the file. Anyone know why this is happening? or better yet, how I can clean these files up now?

View 1 Replies

Events - Flash Google Maps: Get Id Of A Marker OnClick

Jul 19, 2011

In Google Maps Flash API, When the user clicks, or hovers on a marker, is there a way to dispatch an event containing the ID or lat/lon so this info can be used by the application?

View 1 Replies

Flex :: A Custom Embedded Marker For A LegendItem In A Chart?

Aug 15, 2011

I've been working with the flex charting component and I want to embed a custom icon for the marker in the legend. I've run into some strange behaviour where if set directly the icon is mirrored and the text is misaligned but if created using the a class factory and the legendMarkerRenderer property the component renders fine. I've included a snippet to illustrate the problem below. Working around this problem may be possible but I'm curious if anyone has an explanation as to what could be going on here. Additional info: Flex SDK 4.5.0.20967, FlashBuilder 4.5This is the output of the below snippet:

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Script>

[code]......

View 1 Replies

ActionScript 3.0 :: Identifying Marker Overlay In Google Maps

Jan 12, 2011

how to identify which marker overlay is being clicked.

I've looked up solutions online and the only thing that ever traces back for me is [object Marker] I need a way to identify the marker icon and manipulate the icon.

this is the marker code:

ActionScript Code:
function createMarker(latlng:LatLng, number:Number, tip, myTitle, myContent):Marker {
trace(this);

[Code]....

View 1 Replies

ActionScript 2.0 :: Marker Based Augmented Reality Start?

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

ActionScript 2.0 :: Loadmovie - Goto A Specific Marker Within The External .swf

Sep 12, 2006

I am loading a external swf into a MC "m_loader" but i want to go to a specific marker within the external .swf (Marker "m1q1"), i can load the .SWF fine but how do i go to specific place currently using the following AS.

[Code]...

View 1 Replies

ActionScript 2.0 :: Listbox / Select - MovieClip Jumps To Marker On Map

Feb 27, 2007

I have a list of street names. I need to get them into a listbox, so when you select one, a MovieClip (let's call it "my_mc1"), jumps to a marker on the map. Each marker has it's own coordinates ( x, y ) and InstanceName ("mr1" , "mr2", 'mr3' ...). So, I need a MovieClip that jumps to a point when a street is selected in a listbox.

View 1 Replies

ActionScript 3.0 :: Custom Event Not Being Detected

Feb 21, 2012

I've been experimenting with writing my first custom event. So I have a MovieClip class in the library called "Curtains". It plays an animation and at the end of the animation I have the code:

ActionScript Code:
stop();
dispatchEvent(new Event("closed"));

Now I'm creating an instance of this Curtains MC in my class below. The custom event is not being detected. Did I put the event listener in the wrong place? What did I do wrong?

[Code]...

View 9 Replies







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