Actionscript :: Arranging Controls Based On Template Layouts In Flex Apps

Jul 17, 2011

Suppose you have a view, which contains three control A, B and C. The control A and B are in a HGroup, which itself is inside a VGroup with C.

Based on user interaction, I'd like to re-arrange the controls to new layouts. For example all three inside a VGroup. Or for example a layout, which hides A and B and maximizes C in size.

While I could hand-write the code, I'd like to use something like a layout template. A template, which contains placeholders for A, B and C. Give the current view, I'd like to pass the new template and the view should rearrange.

View 1 Replies


Similar Posts:


Actionscript 3 :: Detecting Out-of-view Flex Controls - Hide And Show Based On User Context

Sep 10, 2009

In my flex app I have custom tooltips on buttons that hide and show based on user context. The problem that I dealing with is that when I call my showTips() function I only want to show tooltips on the buttons that visible in the view. So buttons that on a un-selected tab (tabNavigator) should not show the tooltips. For some reason all tooltips are showing. Is there a way to detect if a button is not in current view, like on a un-selected tab?

View 2 Replies

Flex :: Getting The Collapsible Layouts?

Jul 6, 2010

I'm just finished my first month of getting to grips with flex. All of my projects so far have be very small fixed sized containers with everything in the application resting in an absolute position.The next up and coming project is going to require a more dynamic layout and need some advice.The app will consist of 3 container (not sure what ones to use yet)

Container 1Will be the entire width of the app and a quater of its height.

Container 2Will be beneath Container 1. It will be half the width of the app and 3 quaters of its height.

Container 3 will be the same as container 2.

I want to be able to collapse each container and have the other containers respond to this.For example, I would like to collapse container 1 so that container 2 and 3 go from 3 quaters height to 100% height.

If I collapse container 2 conatainer 1 remains the same but container 3 goes from half thes apps width to 100% of the width.

View 1 Replies

ActionScript 3.0 :: Make Flash-based Facebook Apps?

May 26, 2010

Does anyone have any experience making Flash-based Facebook apps? I'm trying to make one but the event listeners don't seem to do anything. It works fine on its own but once I upload it to Facebook, it stops working.

View 4 Replies

ActionScript 3.0 :: Develop Flash Based Facebook Apps?

Feb 18, 2010

I have been trying to develop flash based facebook apps. After reading a bit on methods (there are many) I went with zerofractals bridge component ... basically an external interface wrapper that manages calls to the javascript api. Well, its been frustrating for me... some calls go off into limbo and generate no result event.. it hangs on various calls, never on the same one... im just over it. So now i need to decide what to try next.

I have had a hard time finding good flash/facebook documentation. I would love to see a good working example. As it stands, in addition to the above api frustration, my app chooses not to ask the user for permission the first time they come and doesn't load at all. They have to hit refresh. Lots of little **** like this is bugging me.

Does anyone here have experience with this? I need something that is reliable. I was hesitant to use the adobe library because you have to compile your api key and secret in it. Now im thinking about giving it another look, I can always bring those strings at runtime in from a protected place I guess.

View 1 Replies

Javascript :: Pasting Non-text Data Into Browser-based Apps?

Jun 11, 2010

Imagine I want a user to be able to copy-paste a selection of pixels from MSPaint into a browser-based app. Is this possible using JavaScript in any current browsers? Will it become possible in HTML5?If not, is it feasible using something like Flex/Silverlight, or is it simply not possible at this time, and you'd have to save a file and manually upload it?

update: sounds like HTML5 should allow it, but that's a way in the future to be genuinely useful. Some suggestions of Java applets and Flash are mentioned, probably Flash would be preferable since parts of the web-client would probably use Flex anyway... I'd rather not have requirement for Java and Flash in my site.

View 1 Replies

Flex :: Float Left Or Right In Layouts Or Containers?

Aug 9, 2010

[Flex 4] Float left or right in layouts or containers?i have a main container, that is dynamic, 100% width, and in it there are 3 components. one should be floating to left, to right and the other will be centered. how do i do that?

View 3 Replies

Flex :: Dynamic Object Layouts In Flash?

Sep 6, 2011

I have a general Flash question. I have got 2 .SWF wrappers (Playbook and Android,that work perfectly) that takes any .SWF file and wraps it up as an application. I'm hoping to make 1 application and have it run on both the Blackberry Playbook and any Android device.Technically everything is perfect but the problem I am having is with the layout.For example if an object is placed at x= 512 y=400 then it looks great on the Playbook but that looks horrible on an Android screen thats not 1024x800px. What I want to be able to do is something like (x=DeviceWidth/2), (y= DeviceHeight/2) so that it resizes and repositions itself automatically. An example of where I need to change the code is shown belowbt1.tween("_y", 400, 0.5, "easeOutBack");

View 1 Replies

Actionscript 3 :: Increase The Buffer In Virtualized Flex 4 Layouts?

Oct 12, 2010

Virtualized Layouts are nice, but I find that they often feel a bit "chunky" due to the "tightness" of the virtual range. This could be improved by increasing the range - one or two steps ahead (and behind) would often be enough to improve the "responsiveness" of the list, especially when external resources (like images) need to be loaded.

View 1 Replies

Xml :: Flash Not Displaying On Dreamweaver Template Based Pages

Nov 3, 2009

I have a test site up here and as you can see, the Flash movie plays fine. But when you navigate to an inside page it does not. The flash movie has an action in the native file that references an xml file to list the images. So why wouldn't the inside pages do the same?

View 1 Replies

Professional :: Video Plays In .SWF But Flash Template Video Controls Don't Show Up

Sep 9, 2010

I'm porting in an .flv to Flash for the first time. I created the .flv from an .MP4 using Media Encoder CS5, and then opened a new Actionscript 3 .fla in Flash Professional CS5, clicked File > Import > Import Video. Then selected 'Load external video with playback component'. Everything seems to have imported fine, but when I publish the SWF and import it via Dreamweaver CS5 and preview the page, the video is there, but the controls are not. There's just a white box where the controls should be. Also, the video is out of sync with the audio, which I believe is a problem with Media Encoder, not Flash.
 
Here are some links:
 
The page that I'm working on (video at the bottom of the page)
 
The .FLA 
The .FLV 
The .SWF

View 2 Replies

Actionscript 3 :: Kick Start Template Based Flash Website?

Apr 28, 2010

I'm very new to flash and as3 design patterns. But I can read and write as3 quite ok, i've created small widgets with that. I've developed several web sites using php and also python.

Now for a educational cd-rom project i'm working on, i've basically designed all templates (A home page, a generic page with navigation and a sidebar - kind of like a wordpress blog). I have all the data for the cdrom on word files, which i intend to place on xml files.

My question is what is the best way to start a project like this? Can anyone guide me to a template or something that can be used for kickstarting this? kind of like a wordpress (without the admin)? Or am i on this all wrong?

View 2 Replies

ActionScript 3.0 :: Timeline Controls Based On Mouse Position?

May 25, 2009

I'm trying to make a faux 3D rotation animation where if the user mouses to the right the object rotates right and if the user mouses to the left the object rotates left. Depending on how far they move the mouse the rotation should speed up or slow down.I spent a lot of time making an object in 3d studio max and importing the animation of rotation as JPEGs onto the timeline. I figured the most efficient way to go about this would be to make the mouse control the timeline instead of the object itself.

View 4 Replies

Professional :: Query String Variable Based On Coldfusion Template Body Element Id

Jan 25, 2010

I'm using a Coldfusion Dreamweaver template with cfinclude tags.  The header contains a flash movie where I'd like to pass 2 variables via a query string to load the correct image and menu button based on the variables in the ActionScript.
 
Example:  <param name="movie" value="flash/header_v8.swf?pic=1&button=1" />
 
pic variable can be 1 - 3 and button variable can be 1 - 7  depending on the each pages body element id.  So the logic would be something like this for my flash movie:
 
if body id =home, then pic=1 and button=1
if body id =about, then pic=current variable and button=2
if body id =page3, then pic=1 variable and button=3

[Code].....
 
What's the best way to pass these variables depending on the current page body element id?

View 1 Replies

AS3 :: Flex : Automatically Arranging A Set Of Objects (furniture) In A Virtual Room?

Jun 2, 2010

I don't want to visually arrange 3D models dragging them with the mouse, all I want is: Given a room of certain dimensions (L,W,H) and given a set of elements like beds, chairs, etc (with L,W,H dimensions, of course) I want to automatically arrange those elements to take advantage of the space as much as I can. So I want to be able to put as much furniture as I can in a given room. At the end I need to represent the arranged items visually, inside the room.

My first thought was to use an array of items and sorting it with array.sortOn(["l","w","h"] Array.NUMERIC) and then define a gap between the objects and make the maths to put the objects one next to another, etc. but that isn't a good approach because some items may be placed on top of another ones (boxes of the same size, boxes on top of tables, etc).

View 1 Replies

Make Multiple Flash Files From The Same Template And Then Edit That Template

May 24, 2010

If you make multiple flash files from the same template and then edit that template, will all those files have those same changes? If not, is there a way to make the same change on multiple files at once? Basically the same idea as linking HTML files to a single CSS file...

View 1 Replies

Flex :: Force Flex Apps To Load On A Local Domain?

Jan 11, 2010

I have a situation where I need my swf to load from a domain. Currently my flex set up always loads a SWF from file [URL]...

View 1 Replies

Flex :: Multiline Labels In Flex 4.5 Mobile Apps?

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

ActionScript 1/2 :: Flash Template On Template Monster?

Mar 29, 2004

Jesus Christ - I thought I was really good in flash.Got this template and I can't see S***.
WTH - is it supposed to be this difficult to manipulate a template or am I stupid???
Go into project explorer and can't see much AS so how the hwll are they getting the images and text into the flash swf. By the html??? I don't think so.

View 5 Replies

Flex :: Communication Between Two Apps?

Aug 11, 2009

I have 2 flex apps on the same page. I want them to be able to call each other's public functions. I am thinking of using either externalInterface calls or FaBridge to do so.

View 2 Replies

Flex :: Air - Build A Desktop Apps?

Jul 10, 2010

building a desktop app that can compile java, c, c++ files and display the results using the flex app

View 3 Replies

Flex :: Loader That Supports Many Apps?

Aug 29, 2010

I have created a simple SWF-loader in ActionScript 3.0. It loads an SWF from a server and then plays it. While downloading, it displays the "loading" screen.Its main defect is that it can load only one Flash application - the one which it is compiled for. Let's say it's named test1.swf.Is there any way to make the loader support more than one Flash app (for example test2.swf and test3.swf)? I mean by passing external parameters to it and not by creating another loader. Is using Javascript the only way to do it? I don't want my loader to require the Javascript support.

View 1 Replies

Actionscript 3 :: ALT Capturing In Flex Apps (yet Again)?

Jan 6, 2011

I know there have been similar threads in the past but I can't seem to find a decent definitive answer / workaround for the problem I'm facing.What I'm trying to do: capture ALT+SHIFT+something keyboard events. Pretty straightforward, right?

Issue: When pressing ALT+SHIFT doesn't seem to ever shoot an event. The only combination that seems to work with ALT is CTRL+ALT +something, as pointed out here.

Question: I've read that the browser catches some of the keyboard events, but this happens with the basic flash player too - maybe that catches events too? Would love to know if there is a solution that doesn't involve messing with JS.

View 1 Replies

Android :: Can Flex AIR Apps Run As Processes?

Feb 14, 2011

Is it possible to have an AIR application built in Flex run as process or receive intents? For example if I wanted to make a calendar and each time there was an event at a certain time, have the AIR up which isn't running in the foreground, pop-up and inform the user that "it's time". Can it be done with the current stable versions of both AIR and Flex SDK?

View 1 Replies

ActionScript 2.0 :: 2 Player Game Moving Cars Controls Help With Controls

Nov 13, 2005

i have the controls for car number 1 that would be the arrow keys if [code]but how can i make controls for car 2.i wann use wasd but i cant figure out how the key.a doesnt work.

View 1 Replies

Flex :: Using # For Deep Linking Into Dynamic Apps?

Jul 21, 2010

I have a Flex app I built. It uses the BrowserManager class to listen for changes in the # part of the URL. When a change is made to the hash my application updates accordingly so you can link directly to a state of the application. Also inside my programming when a user clicks something, all I do is use the BrowserManager to update the # and then my listener will apply the correct changes once its finished. I believe this is the best practice way to doing this in Flex.

I have some issues though. When using the Back button in FF or IE, it gets "stuck". for example if the hash is like #state4 clicking the back button will take you to #state3 then #state2 but sometimes get stuck where you can be on #state3 click the back button, see it flicker to #state2 real quick then change back to #state3 preventing you from going back any further in your history.

[Code]...

View 1 Replies

Flash :: Communication Between 2 Flex Apps On The Same Webpage?

Dec 21, 2010

What's the best way to communicate between 2 Flex/Flash apps on the same webpage? I need a 3rd party Flash app to call a function on my Flex 4 app (they are ready to customize their 3rd party app how I specify). I use ExternalInterface.call("javascript_function", arguments) extensively. I know there's a bridge to go from Javascript to Actionscript as well. So I guess I could go from their flash app -> javascript function -> flex bridge -> my flex app. Do I have to go through javascript? Is there a better way?

View 1 Replies

Integrate Raw Ruby Apps (not Rails) With Flex?

Jan 12, 2011

I´m looking for any kind of information on this subject, kinda hard to find. I´m a ruby programmer and i´m looking for ways to create web apps with RIA, like Adobe Flex.

View 3 Replies

Flash :: Are There Any Limitations Of Flex 4.5 Mobile Apps On IOS

Jul 1, 2011

I've looked at a few demos from adobe that show apps built with Flex 4.5 running on iOS from simple list views to video capture. This has made me wonder if its an effective solution to build cross platform mobile apps.

For those of you who have taken Flex 4.5 mobile for a spin, what is your impression on the capability and performance on iOS. Is there anything you can't do with Flex 4.5 mobile that you couldn't with a native app? Are there any limitations?

View 1 Replies

Professional :: Flash Crashed And Now Operates Without Layouts?

Jan 9, 2011

I was working on a project, copying and pasting a large amount of frames and objects when Flash CS4 would not let me save, the message was something like "cannot save due to an unknown error" so I closed it and opened again, and the following error popus came up repeatedly: 

1) "The following panel layout is missing or could not be read:/Users/(my name)/Library/Application Support/Adobe Flash CS4/en/Configuration/Workspace/Animator.xml

The application will not have have a correct layout. Please load one from Windows - > Workspace."

2) " XML parsinfg fatal error: Invalid document structure lone: 1, files: Users/(my name)/Library/Application Support/Adobe Flash CS4/en/Configuration/Workspace/Animator.xml"

I looked for the file and it's actually in the folder.I've uninstalled and reinstalled Flash CS4 twice, and the entire Creative Suite once already, none of this has solved the issue.

View 2 Replies







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