Flash :: AS3 GESTURE_SWIPE With N-Trig Powered Touch Screens

Oct 18, 2010

I'm currently developing a prototype using AS3 and trying out some touchscreen gestures. I'm compiling using AIR 2.0 and currently have GESTURE_ZOOM and GESTURE_ROTATE working but for some reason GESTURE_SWIPE is giving me a few headaches. I know It's possible as I've seen it working here, using the same laptop (DELL LATITUDE XT2 & N-TRIG) as I'm testing on.

[Code]....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Removes Screens With AddChild And RemoveChild These Screens Are Movie Clips

Feb 20, 2011

I have a main class that calls and removes screens with addChild and removeChild, these screens are movie clips.My issue lies in these movie clips, each clip is linked to a class - e.g. confidence.as links to my confidence screen.I am trying to add buttons and pieces of text from this class file onto the confidence screen, so essentially adding more movieclips on top of a movieclip that has already been added. I keep getting this error:TypeError: Error #2007: Parameter child must be non-null.I could do with some help figuring out how to add objects to my screens, as I am trying to prevent having everything in one class.

View 6 Replies

ActionScript 2.0 :: Create Image Rotator In Flash That Is Powered By XML

Jan 18, 2011

I'm trying to create an image rotator in flash that is powered by XML that just continually rotates through the images (fading into an image and fading out, and then fading into the next image, etc).I've managed to load the XML file and get the location of the image files for each image:[code]and I've managed to load the last image in the XML into a movieclip by putting this line:imageHolder.loadMovie(myImage[i].attributes.image); under the var imageURL = myImage[i].attributes.image line.I can't work out how to:

1. Display one image at a time instead of just the last image in the XML file

2. Fade in and out between each images (I was trying to use Tweenlite to do this and think I can get it to work once I know how to do the above point)

3. How to continually repeat through all the images.

View 2 Replies

Flash - Trig Equations To Create Ellipse

Feb 13, 2011

I am working with this function that moves an object around a center point in a perfect circle and am trying to modify it to move it in an oval shape that is 1/2 as high as it is wide?

Basically, I have a set speed
var myVelocity:Number = 0.25;
Then I calculate my Sine and Cosine based on the speed
var myCos:Number = Math.cos(myVelocity);
var mySin:Number = Math.sin(myVelocity);

Then I figure the distance of the the object from a fixed center points along each axis and
var x1:Number = myBall.x - centerX;
var y1:Number = myBall.y - centerY;
var x2:Number = myCos * x1 - mySin * y1;
var y2:Number = myCos * y1 + mySin * x1;
myBall.x = centerX + x2;
myBall.y = centerY + y2;

I have another function that figures x and y based upon myBall.x = centerX + cos(angle) * radius; that is easy enough to modify the radius to become an ellipse, but is there an easy way to mod the one above to become an ellipse? I want to do this to be more efficient with the code and reduce the number of math function calls

View 1 Replies

Flash :: DisplayObject.rotation Not Matching Trig Functions

Mar 19, 2010

I'm trying to label an animated pie chart, and I've been having a great deal of trouble getting rotated objects to line up with trigonometrically-positioned objects. So, for example, if I have a pie piece that's middle is angle theta and has been rotated n degrees in a tween, and then I try to position a label with code like this:

label.x = center.x + Math.cos((theta + n)/180 * Math.PI) * radius;
label.y = center.y + Math.sin((theta + n)/180 * Math.PI) * radius;

the label is often not aligned with the center of the pie slice. Since I am also zooming in to the pie chart a great deal, the error becomes significant enough that it occasionally causes the label to miss the pie slice altogether. The error seems relatively unpredictable, and it looks a great deal like a rounding error, but I don't see any obvious rounding going on (the trig functions evaluate to ten or so decimal places, which should be more than enough here).

How can I get these labels to position correctly?

View 1 Replies

ActionScript 2.0 :: Making A Flash Menu (powered Through XML ) Remember The Selected Page?

Jun 19, 2009

I am using xml to create my flash menu . Now , i want that when i open a link it should remain highlighted , but right now the menu just refreshes on the next page. I am attaching the file . Attachment not working here is the link = [URL]

View 1 Replies

ActionScript 3.0 :: Can't Get TransformGestureEvent.GESTURE_SWIPE To Work

Jul 19, 2010

I can't get TransformGestureEvent.GESTURE_SWIPE to work. It never dispatches. Then I  looked more closely at the non-definitive example of what triggers a  swipe event:

[URL]
 
Dispatched when the user performs a swipe gesture at a point of contact with an InteractiveObject instance (such as touching three  fingers to a  screen and then moving them in parallel over a display  object  on a mobile phone or tablet with a touch screen) What about touching one finger and swiping, that  seriously isn't supported by this event?

View 6 Replies

Flash :: Site Looks Different On Different Size Computer Screens?

May 25, 2010

I was wondering if anybody could help me out and tell me why my flash site looks different on different size computer screens?

I have built a site in flash and when I preview in html it looks different to how it does on my flash canvas (the text is a different size and takes up a different amount of space than on the original flash document). Then when I publish it and make it live it looks different on different size screens. On my laptop the text all fits in, but when I view it on my desktop the text cuts off, so that the last few lines of each text box is missing? What's going on?

View 2 Replies

Professional :: Can Flash Handle Multiple Screens

Jul 21, 2010

I want to make an application that works on 2 screen.on screen1 I need to make GUI with several buttons, sliders, radio buttons, field for dynamic texton screen2 (big screen / LED / video projector) I want to output photos and simple vector animations that are controlled with GUI on screen1 I don't know if it is possible in Flash to have one output with GUI and other with content. Does Flash recognize multiple screen outputs? Is there an action script command to tell flash projector: this put on screen1 and this put on screen2.

View 3 Replies

ActionScript 3.0 :: Implement Multi-language Support For Flash Screens?

Jul 7, 2010

I have several screens for flash and these screen have so many dynamic texts. We need to support these texts in different languages like "Spanish", French and English.

View 1 Replies

Actionscript 3.0 :: Getting Mysql-amfphp-powered Buttons To Work?

Jan 25, 2009

i'm using a joomla-backend and am trying to create a flash frontend for my site. I'm using amphp to connect with my mysql-data, so i fetch the necessary data for the topmenu: buttonname and url.

Now i create buttons that i've animated with motiontweening. See script below.

My 2 biggest questions are:

- how do i add the textfield containing the buttonname?

- how do i get the buttons to link to the correct url?

i did manage to get the buttonnames displayed via the addChildmethod simmilar to the creation of the buttons, but that did screw up the mouse-events.

Code: Select allimport flash.net.*;
var gw:NetConnection = new NetConnection();
gw.connect("http://mysite.be/amfphp/gateway.php");
var res:Responder = new Responder(onResult, onFault);

[Code].....

View 2 Replies

ActionScript 2.0 :: Drawing An Arrow With A Line - Trig?

Feb 19, 2006

Im using the drawing API to draw lines between movie clips, join the dots style, but is there a way to draw an arrow in the centre of the line indicating which direction its going? I know it will involve trig i think and i guess it will be something like (1 find the mid point of the line (2 find the direction by checking the start point and end point (3 draw a triangle somehow that goes in the right spot. It shouldnt be too hard if u know your trig i bet...

View 12 Replies

ActionScript 2.0 :: Randomly Generate Trig Functions?

Jul 9, 2006

Does anyone know if there is a way to randomly generate trig functions (sin, cos, tan). I am trying to make poblems using these functions. The examples that I see are automatically assigning values to these functions however I want to randomly generate. Example from flash 8 help feature[code]...

View 2 Replies

Flex :: Using A Container Powered By Itemrenderers - Make The Rendering Not Stall?

Feb 19, 2010

I'm developing on Flex 4. I have a datagrid container and custom itemrenderer with a text field, a button and a few boxes. Every time some data is displayed, the app stalls for a second or two before rendering completely. Is there any way to make it render more fluidly or render one after another...?

View 1 Replies

Flash :: Windows - Player Debugger Stopped Working - No Exception Screens Popping Up

Jan 10, 2012

Has anybody had Flash player debuuger suddenly stop working for no reason whatsoever. What I've found so far: - No exception screens popping up.. in ANY browser. Reinstalled debugger version of flash player, no go. - Flashbug not showing in Firebug - No trace calls visible in FlashDevelop - Flash IDE behaves normal.. all trace calls visible - Firefox updated about the same time but problem seems to be on a wider scale This started approximately, on Sunday 8th Januray (or saturday).

View 1 Replies

ActionScript 2.0 :: Trig - Rotating An Object Based On 90 Degrees

Jul 8, 2007

rotating an object based on 90 degrees. For example, I only want the characters rotation values to be 0, 90, 180, or 270 based on the angle between the mouse and an object. I used to know a formula that worked right into the atan2 method, however sadly I had forgotten it

View 2 Replies

Black Fri -- Best Phone For Flash 10.1 'touch'?

Nov 26, 2009

I've really been 'chomping-on-the-bit' to try some of the touch programming features of the next release of flash, but I haven't got a phone for it yet.  Flash 10.1 doesn't come out for a little bit so I've been putting off doing any research on it.  But I glanced through the fliers tonight and I'm seeing some REALLY good deals.  So the big question is, which phone would be the best for a touch screen programmer.  I'm not looking to dazzle my friends, but I am looking to have a piece of equipment that will suite my needs as a developer.  I understand that the iPhone doesn't use Flash, so that one is definitely off of the list.

View 5 Replies

Actionscript 3 :: Flash CS5 Displaying Different "screens" On The Stage As Movieclips?

Aug 2, 2011

Taking this thread to the next level and now making a Main.as class to display different "screens" of my game.For right now I only have 1 screen called ControlPanel, but this will eventually have multiple levels (each level will be a separate screen) and a level selection screen, etc. added. So at this point I'm losing control over how to give things access to the stage (in other words... it's getting really thick with multiple levels and this noob's brain is being overloaded lol).

To start off, I took all of my graphics that were on the stage by default (buttons, lights, meters, score text, etc.) and created a new symbol (MovieClip) that I called ControlPanel and checked off "Export for ActionScript" with a class name of ControlPanel. So now my games fla stage is black and I made it's document class Main.as. which looks like this:

public class Main extends MovieClip {
public var controlPanel:ControlPanel;
public function Main() {[code].........

Running this worked perfectly in that my Control Panel screen popped right onto the screen. Of course all the buttons didn't work yet but that is the next step. So I modified my old Game.as to now be called ControlPanel and read like so:

public class ControlPanel extends MovieClip {
private var docRef:Main;
private var _player:Player;[code]...........

this is a hodgepodge of ideas torn between the docRef and the View idea. I need to have access to the stage for my mouse and keyboard listeners, but then I also need access to the buttons in the ControlPanelView symbol. Do I need to pass both the view and the docRef here? How to I maintain access to the stage and the ControlPanelView graphic?

View 1 Replies

ActionScript 3.0 :: Touch Screen Programming Using Flash?

Jun 25, 2009

how to develop a touch screen application using flash action script.  It is a kiosk type application.

View 4 Replies

ActionScript 3.0 :: Flash: Build Flash Application With Touch Screen Monitor

Jun 9, 2009

My client ask me for build some flash application which will be show on his kiosk exhibition. And what I wondering is it any different kind of addEventListener for touch screen interface? Or it is similar like mouse click or double click?

View 4 Replies

Zoom Flash Multi-touch On Windows 7 / Configurable?

Oct 29, 2009

I'm testing a Flash application in Windows 7 that uses the mouse wheel to perform a zoom. When I do a standard pinch gesture the app properly zooms in or out, so I'm guessing that somewhere the gesture is getting converted to mouse wheels. The only problem is that the zooming is really slow.

View 1 Replies

Flash :: Iphone - Packager For IOS And Touch Events Don't Work

Jul 12, 2011

I am trying Flash CS5 for ios development, but TouchEvents don't works on my ipod. My ipod is jailbroken. The code I try is here:

[Code]...

View 1 Replies

Flash :: Prevent Touch Event From Firing From Under Another Sprite

Dec 6, 2011

I'm trying to make a vieport in which you can pan by dragging the background image around. Here is what I've done: [URL] Note that I've hidden the mouse cursor and replaced it with 2 custom ones. The problem is, the event attached to the background, which is a touch event, fires even when the mouse is over a sprite/movieclip (the monkey or the stats) that's in front of that background. And the stats isn't even in the gameLayer (where the monkey and the bg and the mouse cursors are). Try to drag the stats around, and see that the background and everything else pans with it (this is unwanted). Also, I need to remove the custom cursor and show the regular cursor whenever the mouse is NOT on the background (i.e. when it's on the monkey or stats or any new sprites I may/will have in the future).

[Code]...

View 1 Replies

Professional :: No Scroll Bar In Low Res Screens?

May 10, 2007

I just designed a web site. It looks fine on my big screen, but a few people that I have sent it to cannot see the whole thing. They say there is no scroll bar on the right side to go down. When I lower my screen resolution to 800x600, I get a scroll bar. Are they using an old version of flash maybe? I am using Flash 9 plugin. In my publish settings, I require at least 8 and I have my dimensions set to pixels under HTML. Here is the web site: [URL]

View 10 Replies

ActionScript 2.0 :: Controlling MC's Within Screens?

May 19, 2007

I'm making a slide show presentation, I have a child screen nested inside a parent screen. When I load the child the MC inside it seems to have already been played. I tried adding a stop(); in the first frame inside the MC then calling a gotoandplay in the first frame of the child but it doesn't seem to work and the MC doesn't play...

View 7 Replies

ActionScript 3.0 :: Flash Touch Events Slowing Display In Air Android?

Apr 4, 2011

I'm still having some problems understanding these touch events...or maybe something else..can anyone enlighten me as to what i'm doing wrong in this code?? Only left as1&2 to go to 3 recently so I'm sure I have bad habits and misconceptions but. In the IDE i have a button on the stage called: "touchBtn" and a textfield called "timer"

the problem i have is that if i touch the button fast / lots, the display rate really slows down...I know this is down to something I'm doing totally wrong but not sure what..

[Code]...

View 2 Replies

ActionScript 3.0 :: Go To One Of The Screens Referenced In The Constructor

Jul 8, 2009

basically my program has this part in it where it emulates this menu system that's on a piece of hardware. So in my code I just have a bunch of objects in a hierarchy to represent the menu. Each object constructor has references to other screens. When these buttons are pressed, they go to one of the screens referenced in the constructor.

[Code]....

View 2 Replies

ActionScript 3.0 :: Switching Screens In Levels?

Apr 21, 2011

When the character touches the escape, the level loads of course but neither character or the exit shows up.

ActionScript Code:
package
{
import flash.display.MovieClip;
import flash.display.Sprite;

[code]....

View 1 Replies

Actionscript 3 :: Make Scrollable UI In Touch Flash CS5 For Mobile Devices (Primarily IOS)?

May 3, 2011

I wanted to know how I would make a whole symbol (an image) scrollable? I have found out how to do the multi-touch pinch to zoom but I can't find any code samples that will let me make the image scroll vertically only with one finger.

View 1 Replies

Ios :: Cocoa Touch - Displaying Flash-based Youtube Videos On Devices?

Nov 14, 2011

Is it possible to display flashed-based youtube videos on ios devices?What solution do you use when you decide to embed youtube videos on your app?Or do I have to give up on all flash-based contents?

View 1 Replies







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