Flex :: Playbook AIR SDK Images On Surface
Jul 21, 2011
I am trying to write a Playbook app using the AIR SDK, I need a surface of some kind that I can load a large image onto, then subsequently place some smaller images on top of and add the whole lot to a ScrollPane so I can pan it around the screen. I have tried by adding the image to a sprite and displaying that in a group in the application but the image does not show up. What is the correct surface kind I should be using here and how should I be loading the images? (currently using "Embed" and loading the image into a BitmapAsset.)
var scroll:ScrollPane = new ScrollPane();
scroll.setScrollContent(image);
scroll.update();
scroll.graphics.beginBitmapFill(icon.bitmapData);
scroll.graphics.drawRect(100,100,56,56);
scroll.graphics.endFill();
scroll.update();
This code causes a non-moving icon to be drawn behind the scrollContent, I want to add something on top of the scroll content that moves with it.
View 2 Replies
Similar Posts:
Mar 24, 2011
I'm developing an application for the Blackberry Playbook using Flash Burrito 4.5 and Flex. I'd like to create a file browser to allow users to load images from the local system into the application. I followed this example [URL] When I click on the Load Image button in the simulator however, the file browser pops up but tells me that "no file was found with the specified filter", even though I don't specify any filter or even if I specify a . filter.
View 2 Replies
Mar 28, 2010
Do you have any recommendation for a free 3D charting library in Flex. To be more precise, I only need to draw surface (for now). Basically, I just need a chart that displays three axes (one should be timeline, and two should be linear axises) and the surface.
From what I have seen so far, two most popular free Flesh 3D libraries are Papervision3D and Away3D. Also, I've found one IBM library - ILOG Elixir that looks really nice, but it's proprietary (although, I haven't seen any surface examples for Elixir neither).
From what I have seen, Papervision3D and Away3D should do much more then 3D charting, but I haven't seen any examples on how to draw surfaces in any of them (except this line chart in 3D: [URL]..So, if anyone has a link to a documentation or some examples that would be great. Also, I'm interested to hear your opinion and recommendations on this topic.
View 3 Replies
Feb 21, 2011
I am having an issue with a playbook app I am working on. This is the first one i've done using Flex Burrito Hero, and on the simulator I noticed that the app fails to minimize gracefully (when multi-tasking etc). Are there any resources for handling minimization or anything that could help guide me to debug whats going on with that?
View 1 Replies
Mar 29, 2011
Ive been trying to write my first Blackberry Adobe Flex application but get the following errors:
1172: Definition mx.controls:Label could not be found.
View 1 Replies
Apr 14, 2011
I'm creating a pure actionscript 3 mobile project for Blackberry Playbook. One problem I have came across is that there seems to be no inbuilt way to handle view navigation. In flex mobile projects, we have the spark.components.ViewNavigator component, but this isn't available on a pure AS3 mobile project. These two links are both making their own libraries for view navigation...
[Code]....
View 2 Replies
Apr 18, 2011
I am creating a Playbook app in Adobe Flex/AIR. I have a situation where there is too much content to show all on one page so I would like it where the content overflows vertically, the user can swipe to scroll down, like they were viewing a website on an Ipad.
I am extending the View class to make my screens, I could place every screen in a one element List or surround it all in a Scroller but surely there must be an inbuilt way to do this on the Playbook?
With the limited Blackberry documentation, I'm struggling to find the solution,
View 1 Replies
Apr 21, 2011
After deploying the Flex 4.5 Spark Scroller control to a Playbook, the default result is choppy/jittery scrolling and no spring at the top and bottom of the scrolling.
Is there a way to change this behavior to a normal smooth touch scrolling with start and end springiness?
View 2 Replies
Jul 13, 2011
Is possible to make a "push", initiated by a server, to send data down to a Blackberry playbook application?
If so how is this best implemented in Flex/Actionscript? ie. How do we capture this on the client?
View 1 Replies
Aug 4, 2011
The overall aim of my project is to communicate between two Playbook flex applications. I found this article and tried it out:
[URL]
Application 1 (Called 'App1')
var folder:File = File.applicationStorageDirectory.resolvePath("shared/misc");
folder.createDirectory();
employeeDB = File.applicationStorageDirectory.resolvePath('shared/misc/employee.db');
[Code].....
View 1 Replies
Mar 23, 2011
way to modify/replace the icon of a Playbook program?
Like display a red star on it - to indicate there is new message for the user.
I've tried tracing NativeApplication.supportsDockIcon and NativeApplication.supportsSystemTrayIcon properties, but they are both false on Playbook simulator.
View 2 Replies
Jan 8, 2011
how to take what a user inputs into a s:TextInput and use that as a variable in a JSON data request? Basically, I want to have a user enter a search term, like "math" and then have that placed into a variable so I can use it in a JSON request. Something like public var q:String, except that my search box (and hence user input) is on another "view" of the application. I've just started with Flex Mobile applications and I might be way out of my league.
View 1 Replies
Mar 11, 2011
there is a Picker example for usage in an ActionScript project. It works well in simulator. But how do you use that component in a Mobile Flex Project (with Burrito Flash Builder)? How do you add a qnx.ui.picker.Picker to a spark.components.View? The latter seems to expect a mx.core.UIComponent, but the former is a qnx.ui.core.UIComponent. The ActionScript project I've mentioned above works ok, because the Picker is added to the Sprite. But adding it to a View in a Mobile Flex project fails for me.
UPDATE: I've found this page today: [URL] And also I've found out that the QNX AIR components work on Android as well, wonder if it is legal to use them there? Nothing is mentioned in Playbook SDK Legal Notice.
View 2 Replies
Apr 22, 2010
There is something i do not understand, i'm making a Tetris like game and i want borders (limits) but when put an height and width to my MovieClip nothing appears.
Code:
public class Thugtris_V2 extends MovieClip
{
var ts:ThugtrisShapes;//ShapeManager.GetInstance().CreateShape(ThugtrisShapes.RLSHAPE);[code]....
I have second problem, i check my coordinates of my dropping shapes and my shape disapeared from the screen,fell completely down, and it's last coordinates were : pos = (x=-6, y=371).My bottom is suppose to be at 440? The entire screen does not "measure" 400 pixels? How can u get a negative coordinate,are'nt the coordinates suppose to be like texture coordinates, only positive and (0,0) is at the top left corner?How do u measure the pixels limits of the top DisplayObject? How are the coordinates actually "setuped"? Like cartesian but only the upper part?
View 5 Replies
Sep 23, 2006
I'm working on a game, and I'm a bit stuck on something that I think I'm really close to solving.
I have an actor, which I can move around on a platform (Top-down view)
The platform rotates, and I want the actor to receive the x- and y acceleration, so that it appears to be on top of the platform, and thus rotate together with it. I don't want the actor to rotate 'inside' the platform, because of some other constraints
View 1 Replies
Aug 23, 2007
I am working on a firework move look's coolfire works are dynamic. Is there a way I could add a type of reflective surface kind of like water to show he reflection?
View 4 Replies
Apr 14, 2009
This one concept has been bugging me for days now and I can't seem to solve it. You see, I'm trying to rotate my enemies along an uneven surface. So far, they follow along it perfectly, using my hitTestPoint collision checks.But I don't know how to rotate the collision points and thus rotate the movieclip along the curve so it remains clipped to the ground like in Fancy Pants Adventure 2 or a tanks game.Here is what it looks like right now
View 3 Replies
Sep 2, 2010
I would love to get some help or advice on how to create an effect in a drawing application. I want to build a drawing application, which is not that difficult. I've found several resources on these type of applications. What I want to do is "merge" 2 examples that I've found. This drawing application makes sense to me and I feel I can modify it to my liking. (sorry in advance I cant post links)
[Code]....
View 0 Replies
Mar 20, 2004
I'm working on a new site: [URL]. However, I've got some problems with my reflection of the mouse-pointer. The problem is that I don't know how to create the fake 3D effect, because now when you move your mouse over "Identity" the reflection is above the real mouse. I was thinking to put a mask, so the reflection cannot go above the real mouse, but then there is no reflection.
View 14 Replies
Oct 12, 2004
I make this simple system to simulate a colision of a block in "walls" and bounce like a pong ball. To use drag the orange square and release to start the movement. But i have a problem, sometimes the colision not happen and the block go through the walls, i try less the time of setInterval that verify the colisions but not solve my problem. colision system -> [URL]
View 3 Replies
May 7, 2010
find weather one movieclips area on stage is equal or more than the other.. I mean, ok here it goes, I have some movieclips on stage, circle shaped exactly speaking. Any of these Mcs.onMouseDown event adds another circle to the stage which is a very small circle , and as long as the mousedown event continues it grows in size from the center.The idea is to fill the onstage circle mc with exactly he same size circle.This i could do if the mouse had been clicked exactly in the center of the onstage circle by comparing the width and height of both (I guess havent started doing it yet).
I want to check if the scaling circle has exceeded the bounds of the onstage circle which is bound to happen more often as the user can mostly never point to the exact center of the onStage circle and as a result the circle is going to go out of the boundaries of the onstage one. I have been racking my brains and me thinks that by creating a bitmap data of the onstage circle i could maybe find out when the being scaled circle bitmap stopped overlapping the onStage one. But i have no idea on how to do this ! It is jus something that came to mind from some example i saw somewhere but i jus cannot find it now .
View 2 Replies
Dec 16, 2010
I'm about to make an animation where a whole world map separates from globe/ball. Kind of coating/jacket that opens from 3d ball to plain 2d surface.
View 1 Replies
Jan 9, 2009
I am currently working on a game and I am stuck. I do not know how to make a rounded surface that will act as a wall/barrier. It is pretty much a semi-circle. I know you can make a circle act as a barrier but I would need to use the perimeter of the circle. Also is there a way you can make an actual image a barrier? I am new at this but I know from reading up that making a rounded wall is pretty tough. I am going to use this wall to make a ball bounce or "roll" around it. Below is a picture of what I am trying to do. The black dot is the ball.
View 3 Replies
Dec 14, 2010
So I have some 3d points generator that gives points like
{1,1,1}
{1,2,3}
{1,3,3}
[code].....
View 1 Replies
Feb 10, 2008
i want a character to move on a globe. the movement of the character is shown though not by shifting the positions of the caharcter but by the rotation of the surface of the globe. buttons are used to move leftward and rightward.
Also, there are three layers of the globe to show depth. how would i script it so that the layers of the globe rotate at different speed?
i've uploaded a zipped of a fla file.
View 3 Replies
Jun 20, 2011
Basically I need to have;
- interface where a user can choose a font (from pre determined font sets) and input a text string
- This text is then displayed engraved on a ring (jewellery)
I'm not sure the best way to achieve this or if there is a module somewhere that does similar.
My best guess would be to
- using mathematics (sin, cos) to be able to plot the oval (where the text need to be displayed on the ring) on an imaginary graph.
- From here there will be a centre , start and end point. The text will need to be limited as it will eventually following the curve of the ring until it can't be see as it is masked by the angle of the ring
- If using dynamic font then the width of each letter should be possible to obtain with AS.
Then mathematically it should be possible to determine how far away from the centre point on the oval each letter is.
- Following this, dependant on the letters distance from the centre, transformations can be applied to each letter. IE stretch, skew and an emboss filter via the convolution filter.
- Hence this will provide the illusion that the text is following the curve of the ring and the look like it is engraved via the emboss.
View 6 Replies
Jan 24, 2012
I was wondering if anyone knows of a way to isolate the pixels that are adjacent to a certain color pixel in a BitmapData. For example, if there was a BitmapData that looked something like this:[code]I was wondering if there was a proven and efficient way of doing this, because I am trying to make a collision engine of sorts that can give me the collision normal of the best fit slope of a given bitmap image. In the scenario of the last example, the slope would be 1/1, or -45 degrees. The way I have it now, I am isolating the adjacent pixels by blurring the entire image, looping through all of the pixels, and storing the gray ones in an array. from there I can determine the best fit slope of the surface of the image. The only thing is that this seems like a lot of work for the CPU. Is there a better way to isolate the black pixels adjacent to white ones than blurring the image and looping through every pixel?
View 12 Replies
Mar 25, 2011
How can I embed and play a video from a given url, in a playbook app written in as3?
View 1 Replies
Mar 31, 2011
I need a line chart in my playbook app. does anybody know a library for that? (for as3 mobile air projects)
View 3 Replies
Nov 16, 2011
How can I instantiate a TabViewNavigator from actionscript for the playbook? Currently, I add the necessary spark frameworks and have this piece of code in the Main of my actionscript project:
[SWF(width="1024", height="600", backgroundColor="#ffffff", frameRate="30")]
public class Main extends Sprite {
private var waitDialog:BaseDialog = new BaseDialog ();
public function Main() {
super ();
[Code] .....
When the button is clicked, the button disappears as you would expect but the tab navigator is not added/does not appear. I tried without removing the Main class but that does not work either. What do I need to do to set up a tab interface. I can get similar code working through Flex and MXML but not in actionscript.
View 1 Replies