Javascript :: Android: Disable Pinch Zoom And Pass Event To Flash Content

Apr 14, 2011

I have a flash application written in actionscript 2.0 that shows vector architectural maps and works perfectly on common web browsers. There are many interactions with javascript functions called by user events on the webpage, such as zooming to a certain x,y point. This event is usually accomplished via the mouse wheel.

Now I have to make sure that the thing works on tablet pc, in particular the Galaxy Tab. The first thing I have to fix is that, obviously, there is no mouse wheel and the user naturally tries to pinch zoom the flash application, with the result of zooming the entire web browser.

What I need is to listen to the multitouch gesture and, when a pinch zoom event is called, disable the default zooming event and call a javascript/flash function that allows my flash app to zoom only the objects that need to be zoomed: in few words, the browser stays still and only a part of the flash zooms in or out.

I already have working javascript functions to call flash object functions for the zooming purpose, so I just need to connect them to some android things that tell me when the user tries to pinch zoom in and when he tries to pinch zoom out (and possibly the x,y point of zoom).

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Pinch To Zoom From Center Into Map?

Oct 17, 2011

I'm currently using the pinch gesture to zoom into a map I'm making. My problem is that the map zoom's from the top left corner when I'd prefer it to zoom from the centre.

View 3 Replies

ActionScript 3.0 :: Pinch Zoom Scaling Boundary?

Apr 12, 2011

I am trying to achieve a pinch zoom effect on an image dynamically added to the stage via actionscript.

the images natural size is 2048x and onload is scaled to 1024x

when the pinch zoom is performed it calls the function below.

the problem i am trying to solve (and have tried numerous things) is to ONLY have the image scale between the two sizes as mentioned above.

scale between 1024x and 2048x and not go larger or smaller than.

[Code]...

View 2 Replies

ActionScript 3.0 :: Pinch / Zoom On Entire Browser Window?

Oct 20, 2011

I know I can use the Multitouch capabilities in AS3 to recognize pinch/zoom gestures etc., which I can use to zoom in on object in my movie. Can I set it up differently, so pinch/zoom effects the entire browser window? Basically treat a pinch zoom in flash as if they did it somewhere in the browser. For example I'm testing a flash animation on a droid tablet. When the html page loads, I can pinch zoom on the flash object as if it's not even there. But after I've "clicked into" the flash object to interact with it, pinch/zoom no longer does anything.

View 0 Replies

Flash :: Android Web View Displaying Content Catch OnClick Event On Specific Inner Item

Dec 12, 2011

I have android 3.2 tablet application that displaying flash inside webView. now I want to catch event when pressing some inner item inside (it does't direct to another url..)
is it possible??

View 1 Replies

Flex :: Disable Mousewheel In Application - Pass Event To Browser Instead

Jan 14, 2011

I have a full screen flex application and I want the user to be able to scroll using browser scrollbars. I don't need mousewheel in the flex application and flex appears to block mousewheel events within itself. So mousewheel events do nothing.

View 2 Replies

ActionScript 3.0 :: Disable Function - Zoom In And Zoom Out By Clicking Button?

Feb 7, 2012

I want to make a scope wich can zoom in on button click and go back to previous stage (zoom out) also by clicking a button.Now i made it work for zooming in (when i click my button it zooms) but when i want to zoom out everything i tried didn't work .Here is the code:

//button for zoom in
zoom.addEventListener(MouseEvent.CLICK,glassMove);
function glassMove(event:MouseEvent):void{[code]..............

View 1 Replies

Android :: If Its Zoom In Or Zoom Out On Flex / Air TransformGestureEvent

May 13, 2011

Using flex / air 2.6 working on an Android device, I am using a canvas with a TransformGestureEvent for zoom in on a map. The listening of the efect is working ok, but I can´t seem to find the information on wether the user intended zoom in or zoom out (fingers getting closer or getting apart).I expected the intention of the gesture to be identifiable with the offsetX and offsetY properties of the event, as you will do on a swipe gesture event. But I always get 0 for both properties, no matter how I do the gesture in the device.How can I know if the fingers getting closer or getting apart in a gesture zoom event?

View 1 Replies

Android Emulator To Test Flash Content?

Mar 1, 2011

I just saw the very simple tutorial on how to create a touch sound image of a Cat. Very well explained and easy to follow. However, I don't own an Android phone. I'm considering to get one soon. Meanwhile,

1. How can I test the compiled file generated from Flash without an Android phone?

2. Is there any Android emulator? If yes, how can I set it up?

3. What's the difference of Flash developed apps and native apps?

View 3 Replies

Android :: Able To Move The Content Up And Down In AIR-Android ?

Sep 30, 2010

I'm using Flash CS 5 and Flex 4, both to build an AIR application for android. I would like to know how to allow the user to move content(image or text) up and down(like a map,in this case only vertically).

View 1 Replies

Javascript :: Flash Always On Top In Android Browser Workaround?

Apr 2, 2012

I have a website with a simple Flash animation behind some text and semi-transparent images as a background. I have used swfobject to embed it and set wmode opaque to make it display correctly in most browsers.For browsers without Flash, the user gets a static background image instead and would not know they were missing anything. However, Android users get the flash background on top of everything as per the known issue with how Flash content is rendered in the Android browser making the site unusable.

I have added a crude browser sniff javascript function to the swfobject code to prevent it from loading for any user agent whith 'Mobile' in it:

<script type="text/javascript">
if (navigator.userAgent.indexOf('Mobile') == -1)
{[code].....

The only problem I have left is for Android users browsing with 'Mobile View' turned off as the user agent pretends to be a desktop version of Safari (I think). I do not wish to disable the Flash animation for all Safari users. Is there a way of blocking it for just Andriod users - even if they have 'Mobile View' disabled?

Possible ideas include:detecting the Flash version with JavaScript or Flash. Does Android use specific versions (version numbers) of Flash which are different from the desktop equivalent? blocking the specific user agents used by Android devices with 'Mobile View' disabled.

View 1 Replies

Android :: Adobe AIR IOS/Android Best Event To Listen?

Jan 12, 2012

So I'm having this issue where I need an event to fire at the very beginning of my application

public function Main() {
this.addEventListener(Event.ACTIVATE, onInit);
}

I've also tried Event.ADDED_TO_STAGE, but both seem to not be firing onInit at the right time... they fire too early. For example, on testing for IPhone it's firing when I still see the Default.png icon... I want it to fire when that "loading" phase is over.

View 2 Replies

ActionScript 2.0 :: Disable Right Click Menu Except Zoom?

Jul 25, 2010

So I wanna to disable the Right Click menu except the Zoom In, Zoom Out, and Show All.

View 4 Replies

Flash :: Javascript - Disable Scrolling With Arrow Keys

Mar 26, 2011

I have a flash embed code in my webpage. When playing the game, page is scrolling with Up and Down keys. How can i prevent this? Firefox is ok, but it's only scrolling in IE.

View 1 Replies

Android :: Flash Content Breaks WebView Boundings And Overlaps Native Layout Elements

Dec 11, 2010

I'm using a WebView to display a web page which contains some Flash content which basically works pretty well.
The big problem is, that the Flash content seems not to consider the WebView's boundings: The Flash content is displayed even if the WebView is too small to show the complete page and the Flash content is not inside the WebView's boundings. Moreover this Flash content overlays other (native) layout elements that are displayed next to the WebView.To me, it seems, that the Flash content is rendered in (special) z-Layer, that overlays all other layout elements.

Tested with: Android 2.2 and Flash 10.1.Is this a known bug in Adobes Flash player 10.1?

View 2 Replies

Javascript :: Disable Clicks And Mouseevents For A Flash Embed/object Tag?

May 26, 2011

I have a flash object on my page and I want to disable clicks on it using Javascript. I tried to use the following code:

document.getElementById('flash-obj').onclick = function(){return false;};
document.getElementById('flash-obj').onmouseup = function(){return false;};
document.getElementById('flash-obj').onmousedown = function(){return false;};

It doesn't work. Is there any other alternative?

View 2 Replies

ActionScript 3.0 :: Pass A Value To Javascript From Flash Using Externalinterface

Jun 1, 2009

i'm currently trying to call a javascript function and pass values to it. but i'm not really familiar in using the addcallback since i only tested on calling a function from flash without passing anything to the function.
 
Basically, i'm going to retrieve the values of a node from xml. and then i will assign those values to a variable in flash. now what i'm going to do next is pass this value to a javascript parameter..is it done using externalinterface?

I just need to throw the value to the javascript function parameter and no return values to the actionscript. The event is that whenever an image is click, the corresponding value for each image is passed to the javascript function.

[Code]....

View 1 Replies

Professional :: How To Pass Flash Variables To JavaScript

Aug 25, 2010

How can I pass variables to be used on the page the flash is embed?

View 1 Replies

Javascript :: Pass From Flash Under The External Reference?

Mar 10, 2010

I have Mac OS widget with flash. If to click on flash the URL in a window of a browser should open. But it does not occur. I use code like this:

DETAILS_HTML='object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="700" height="460" id="start" align="middle">'+
'param name="allowScriptAccess" value="always" />'+
'param name="flashvars" value=SomeParam>'+

[code]....

View 1 Replies

ActionScript 3.0 :: Pass Value To HTML/javascript From Flash?

Sep 20, 2010

I have following code from AS2 and I need to convert it to AS3.

function ActivityComplete() {
if (try_count >3) {
getURL("javascript:setNextTxt('Click Next to continue.');setPageDone();");
}
}

View 4 Replies

Actionscript 3 :: Disable Touch Screen In Android?

Jun 30, 2011

I am working on a little android app which i use Flash Builder4.5. what i want to do is when app is loading something, i'd like to disable the touch-screen,or anything similar to that.

View 1 Replies

ActionScript 1/2 :: Pass Parameters Into Flash Using A Javascript Function?

Jan 29, 2010

I am attempting to get Flash - Javascript communication working using ExternalInterface.addCallback, using code found at http:[url].... I am trying to pass parameters into Flash using a javascript function, but it only works if I insert a 'window.alert' line into the code. Once I click OK, the parameter str is passed into Flash ok. The function is:
 
function sendToFlash(str) {                if (str=="tools"){            window.alert(str);            getFlashMovie("richFunctionality_corp").sendTextToFlash(str);[code]....
 
If I remove the window.alert, str isn't passed into Flash. Is this a browser speed thing? A value menu is passed out of Flash using getURL("index.php?pageID=239&menu=tools"), i.e. the page reloads and a php script  sends the appropriate str value to the sendToFlash javascript function based upon the value of menu.

View 5 Replies

Flash :: Php - Javascript - Pass Php $_GET To Player Xml File

Jun 3, 2011

I have a flash player embedded on page x.php?user=john using swfobject. The player calls the xml file content.php to get the results. in content.php i have $_GET['user']. I'm trying to get the user name from the url id and fetch results based on that. I'm however getting a 500 error. I don't think content.php is able to access the user variable. if i just put in the username "john" instead of $_GET['user'] then it works. How can i get this to work with $_GET['user']

[Code]...

View 3 Replies

Actionscript 3 :: External - Pass The Geolocation Over Javascript To Flash

Mar 29, 2012

I'm trying to pass the geolocation over Javascript to Flash. The .SWF is embedded in a HTML site and set to AllowScriptAccess="always". For some reason the getGEO() function is not receiving the call.

[Code]...

View 1 Replies

Javascript Blocking Flash Content

Oct 21, 2010

I'm working on a simple website for A level ICT and am having some difficulties. My site has a javascript based drop down menu, as well as two .swf files embedded. When the drop down buttons in the menu are scrolled over, the .swf files disappear.index1.jpg is a screenshot of the page normally, index2.jpg is a screenshot when the menu link is scrolled over.I am also having difficulties with flash working with java on another page, the same .swf files do not fade into the background like the rest of the page when images are enlarged in a javascript gallery within the page. gallery.jpg shows this.

View 2 Replies

ActionScript 2.0 :: Pass Flash Array To Javascript Function Without Using Json?

Oct 28, 2009

How do I pass flash array to javascript function without using json?

View 3 Replies

Flash :: Take A Photo Using The Webcam Then Pass That Data To A JavaScript Function

Feb 17, 2010

I think this is fairly straight forward but my skills lie in JavaScript and Ruby rather than flash so I want to run this past a few other minds :) I have a flash file that will take pictures of the user via their web cam. I want to take that newly created image, base64 encode it then pass it to a JavaScript function. That JavaScript function will essentially take this data then embed it into a hidden form element on the page.

[Code]...

View 1 Replies

Javascript :: Flash - Pass Array Collection From Flex To Function?

Jul 22, 2011

Is it possible to pass an ArrayCollection object from flex ExternalInterface.call() as a parameter to javascript function?

[Code]...

View 1 Replies

ActionScript 3.0 :: External Interface: Pass Variables To Flash Using Javascript?

Sep 6, 2010

I am looking for a simple and straightfoward example of how I can pass the value of a variable into flash using javascript.Specifically, I'd like to use javascript to pass the filename of an external video file that I would like to load into my flash movie.I'd also like to call a function in the SWF that plays the movie once the filename as been passed to the flash movie.External Inferface looks like the way to goI've found a few decent AS2.0 examples, but converting them to AS3.0 has proven difficult and many of the examples are much too complex for what I am trying to do.

View 4 Replies

ActionScript 2.0 :: Sliding And Zoom Content?

Feb 9, 2006

I'd like to get the content sliding and then zooming in effect achieved here:I know that the the basic content slide works using the AS below.Any ideas on adapting this to get the effect achieved at Zebra? Or is a different approah needed?

onClipEvent (load) {
_root.targetx = 116;
_root.targety = 34;

[code]....

View 6 Replies







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