Ios ::Properly Preventing Orientation Change In Flex Mobile App
Jan 17, 2012
Is anyone able to actually make it work properly in Flex SDK 4.6?
Here's a short snippet :
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[Code]....
What I'm trying to achieve is to support Landscape mode in both orientations, so if user turns the device 180 degress, the screen should also rotate. But there should be no action at all, when user rotates the device to one of portrait orientations. Instead, I'm seeing width changes to navigator action bar and sometimes content in portrait orientations, so apparently preventing the event is not enough. I'm using the "official" way Adobe suggests, but the problem is that it's not working very well. Granted, the stage does not change, but it seems that there's something firing in navigator anyway, since you can see the action bar width changing.
I had some success with explicitly setting layoutbounds to fixed width in handler method - this prevents changing the actionbar width, but it's only a temporary solution - if the view is a subject to a transition, or some other redraw - it will again render with bad sizes. As if there was something below that was telling it that it's in portrait mode, even though I'm trying to prevent it.
Before you detonate with some silly ideas like "autoOrient = false", don't. It's clearly not a solution for this problem. Obviously it's a bug with Flex SDK - did anyone find a way to fix it or a stable workaround?
[URL]
View 1 Replies
Similar Posts:
Apr 5, 2012
Things go weird when i tried position a button in titleContent of ActionBar. Set both the "left" and "horizontalCenter" can't move my button.Code as below:
<s:titleContent>
<s:Button label="HELLO" left="50"/>
</s:titleContent>
How can I position a Button at the middle of this Actionbar??
View 1 Replies
Apr 12, 2010
I am using an array to load images into a holder_mc on my flash site.Is there a way to change the registration point at which the image loads?
View 3 Replies
Aug 14, 2011
I'm adding a print button to a game for client. The only code I've found that actually works is this
ActionScript Code:
printButton.onPress = function() {
print(drawingArea, "bframe")
}
And then the frame that's to be printed has "#p" for a frame label. It works, but I would like to be able to change the orientation from the default portrait, to landscape.
View 0 Replies
Dec 4, 2011
I am working on a try-out app targeting ios and adroid mobile devices and I use flex 4.6. I want to hide the app in the list of running applications. Is it possible?
If not, is there a way to change the name and icon of the app in run-time after installation?
View 1 Replies
Mar 23, 2012
I would like to move (right or left according the current view) between 2 views when I move my finger on the mobile screen; for example with Google+ mobile application, in profil section, you can change the view just on move your finger on the screen, and the offset and the moving speed must be checked before change complete view.
View 2 Replies
Dec 27, 2011
I want to call the Flex printing API to set the print arguments before sending printing command.But there is no method in Flex(FlexPrintJob or PrintJob) to set the printing orientation.Are there some methods to solve this problem?My project is running in B/S structure and the view layer is in Flex.
View 1 Replies
Jun 27, 2011
Does flex mobile supports In-App purchases, push notification etc that can run on all supported mobile platforms (iOS, Android, Blackberry playbook).
View 2 Replies
Mar 9, 2009
I'm developing some photo viewer app for some web site in flex 3. One of the demands made by my customers is preventing of their unique visual content from copying at least by standard Windows tools ("Print Screen" button). Are there any tricky techniques capable of doing this?
The first thing occurred to me is handling "Print Screen" button of keyboard doesn't seem to be as effective as my client needs.
View 2 Replies
Jun 5, 2011
I am going to make an Arabic application using Flex builder 4.5. I have two questions that need to be answered What is the difference between ActionScript Mobile Project and Flex Mobile Project. (AS Mobile Project supports iOS and Android but I doubt about it!!)
Is Arabic support available in Flex Mobile Projects or AS Mobile Projects? I know TLF supports Desktop and web apps but does it support mobile platforms?
View 1 Replies
Nov 5, 2009
I am working on a product options form whose contents should be cleared by a clearOptions() method each time the user adds an option. The option name TextInput is bound to a value object that is reinstantiated each time the the user adds a product option. The problem I am having is that the StringValidator fires each time the bound value object is reinstantiated.
[Code]...
View 1 Replies
Jan 6, 2012
I have a ViewStack, with a bunch of NavigatorContainers in. Each NavigatorContainer contains a different category of settings for the application.
I would like to be able to display a popup prompting the user if they try to leave the current NavigatorContainer without saving the changes they have made to the container's settings.
What would be ideal is something like the 'changing' event in the List component, whereby you are able to cancel or defer the event. Calling preventDefault() on the change event in ViewStack doesn't prevent the index change from happening.
View 2 Replies
Oct 26, 2011
Here is a functional example:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
[Code].....
When you change from txtOne to txtTwo, the Alert is showed and after pressing OK, the focus will return to txtOne. I don't want that to happen. How to solve this?
View 1 Replies
Feb 9, 2012
I'm working on a Flex 3 app, implemented in Actionscript 3 and MXML, that includes an embedded video player, which is essentially a black box--I load it as a SWF from another site on demand, and I don't have access to its source code. It does, however, inherit from Sprite.The problem is that, when focus is on the Flash app, the video player is somehow receiving and processing keyboard events, even when the player itself isn't in focus.So when users are typing text elsewhere in the GUI, if they hit the space bar, the video pauses.
I've tried intercepting key events in the Sprite's parent, and setting tabEnabled = false, tabChildren = false, and buttonMode = false on the Sprite, but nothing seems to work. It's as if the Sprite is getting keystrokes through an alternate Event path.how I can prevent the player from receiving keyboard events or input events entirely? It's fine with me if no input events reach the player, since I've implemented my own,separate video controls.
View 1 Replies
Jun 2, 2011
I have a website with a flex application. The flex application has no user input - except for clicks for navigation. The website also uses no scripting language - i.e. no php, asp, jsp or cfm.
The website just consists of one page which contains the flash file for the flex application. The source code of this page is here: [URL]
I have been advised (by a software program used by my client) that this website is vulnerable to a reflective type XSS attack and have been advised to 'sanitize' all user input.
respect to XSS and would respectfully like to ask that AFAIK there is no user input. What should I sanitize and how?
View 1 Replies
Jul 29, 2011
I am working with Flash Builder 4.5 using Adobe Air, Flex and Actionscript 3, to develop a mobile application that works with multiple views. I want to change the height of my actionbar on all my views. I know that I can dynamically change it in actionscript 3 using:
navigator.actionBar.height = newHeight;
However, I would prefer to have the height in my style (.css) file, or if that's not possible, in the mxml code in every view, so that the actual height is reflected in the design-view. How can I accomplish this?
View 1 Replies
Mar 26, 2012
I am having Fast-Forward and Rewind Functionality in my Custom Video Player, Which I done by calling seek method on regular interval.which works fine. but for same cases , the video playHeadTime get changed , but the frame does not change with that, and video's playHeadTime and Frame does not come with sync.
View 2 Replies
Feb 23, 2012
I have a grails application using jquery mobile. I am hoping to find some way to access the camera on the devices. I thought about using flash to grab the webcam but that obviously wont work on Apple devices. Does anyone know of a way to do it and keep it all browser based? I am hoping that there is a plugin somewhere or maybe html5 has some magic in there that supports it.
View 1 Replies
Mar 26, 2012
I'm using the SpinnerList component in a flex mobile application, the spinner turn too fast for my need, is it any way to reduces its speed.
There is many answer regarding the speed of the mouse wheel but no answer concerning the spinner itself.
View 1 Replies
Jul 20, 2011
i've got a few fonts embedded and am using them in my mobile application, and they are all working, except for the ones i try to use for the "ActionBar". They work everywhere else, and substituting "Comic Sans MS" for "titleCGF" changes it to Comic Sans. So why won't it work with my custom fontFamily?
[Code]...
View 5 Replies
Jan 19, 2012
I have a flex mobile application that I am working on that I am having issues with selecting an image from roll/taking a picture. My application is not tabbed, however one part of it contains a Tabbed View Navigator with tabs across the bottom. Within one of those tabs, I have the ability to upload an image to a webservice that I have created. However, when I select an image or take the picture, it pops back out to the initial splash screen and the application restarts. If I use the component standalone (outside of the tabbed view navigator) it selects the image and uploads without any problem.
[Code]...
View 1 Replies
Sep 21, 2009
I am creating a emptyMC that my splash page will open up on. So when I create a new symbol (my empty movie clip) how do I set the center point/orientation of it to the top left hand corner???
View 2 Replies
Sep 3, 2005
I've managed to find the tutorial for custom mouse pointers but I haven't managed to find quite what I need.What I want is a mouse pointer thats actually a car (an overhead view) that rotates as tho it was driving. So its orientation is dependent on the direction the mouse pointer is moving. Basically I want the car to face the direction its driving in.
View 5 Replies
Sep 25, 2011
Well I started playing around with some coding for Android (because I want to make an App for my YouTube community [URL] and I got some pretty cool stuff working already but just now I bumped into this weird problem.I was trying out Auto Orientation (rotating the phone for portrait or landscape view). And in Flash the BG Movieclip is at 0,0 but on the phone its more like -20,-40...I also had a "similar" problem with a swipe tryout where in Flash the swipeable pages where completely filling the screen but on my phone I had a top and bottom white bar (flash's bg, so if i made this black it would be black on the phone also) of about 10-15 px...
View 6 Replies
Jun 25, 2011
im completely lost on how to do a simple multiline label. The docs say that labels are best used as single lined elements, but that alludes to it being able to do multiline if necessary. Anyone have any clarification on the subject?
View 3 Replies
Jun 30, 2011
i have a mobile application that i am attempting to use to load an interactive .swf file. At first, i was just going to use the .mxml applications from my other project file in flex, but they're for desktop apps and running on Flex 3.6, and Mobile apps can't be built on less than 4.5 :P
so, i figured i'd export the first project to a .swf, and load it in my mobile application, but nothing i do will get it to show up. anyone know a solution?
[Code]...
View 1 Replies
Nov 24, 2011
I have four views:1.SplitView (main view)2.SplitViewHomeView(root Panel)3.SimpleView(Right panel)4.Details(child of Right Panel View).I am trying to accomplish the split view as in Ipad in adobe flex mobile.But unable to connect the root panel to right panel...Can any one suggest the path to me.My Code is below
Split View
**
<?xml version="1.0" encoding="utf-8"?>
[code]...
View 1 Replies
Mar 11, 2012
I have 2 simple objects on stage: 1 is a static circle with a sharp tip (to show direction of the object) and 1 moving circle (moves according to users mouse or just a constant random move).
I want the static circle orientation to change according to moving circle position (so the sharp tip will always point at the moving circle).
What I did is divide the stage to 8 sections, each is linked to a specific orientation of the static circle.
View 1 Replies
Nov 28, 2011
I have a question about Papervision3D, or perhaps bitmapData, I am unsure where the problem is. I have constructed a program that takes 4 banners and splits them into pieces and then applies those pieces to cubes so that I can make a banner rotator. So after I run my program I have 10 cubes with a piece of a banner on 4 faces(front, top, back, bottom) of each cube. The problem is that some of the faces are oriented incorrectly(spun 180 degrees).
Is there a way in Papervision3D to spin a cube face? The other place I think the problem may be is when I create the bitmapData that will be applied to the cube faces. Is there some way to explicitly define orientation during bitmapData creation?
[Code]...
View 1 Replies
Mar 10, 2011
I'm trying to design a tablet flash applet. Does anyone know how to lock the orientation of the html embedded player player in landscape mode when it has been full screened? So far this is what I have in the html file: HTML Code: <embed src="fullScreenTest.swf" allowFullScreen="true" fullScreenOnSelection = "true" />
That did wonders for maximing the flash window, but the moment I change orientation on the tablet the flash player also changed orientation. I know there is a way of locking the orientation to landscape mode in ActionScript 3, but is there an ActionScript 2 equivalent for it?
View 0 Replies