Flex :: Displaying Spinning AJAX Loader Image

Sep 6, 2011

I would like to display a spinning image, when my application is not connected to the socket server and is in an "offline" state.

So I've tried using an ajax-loader.gif, courtesy of http://www.ajaxload.info/
<s:Image source="@Embed(source='assets/ajax-loader.gif')"
horizontalCenter="0" verticalCenter="0" includeIn="offline" />

but unfortunately the bitmap is not animated (does not spin).

Is there a way to do that, how do you approach displaying a "loading indicator" in your Flex 4.5 programs?

Or do I have to fallback to mx.controls.ProgressBar?

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Spinning Wheels - Stop Spinning For A Few Seconds And Then Continue Spinning ?

Aug 1, 2004

I have a banner, and on this banner there are three wheels which spin continuously by way of motion tweens.What I want to do is have them stop spinning for a few seconds and then continue spinning, this process will be repeated every time.

So my question is: How would I accomplish this?I know I could just add a bunch of frames to stop the wheels from spinning, but I was wondering if there's a script that will do this without having to add frames.

View 1 Replies

Flex :: Adding Loader Image While The Image Is Loading?

Feb 23, 2010

I need to create a gallery to load images and display them. This part is fine:

/**
* @variable image_name to store the name of the selected item
*/
private function showimage(evt:Event):void

[Code].....

where imgMain is the id the image component.

But, I need a small twist. A transition image i.e. loading image should be displayed while the the image is being loaded.

View 1 Replies

ActionScript 3.0 :: Image Viewer And Im Loading An Image To A Loader And Then Add The Loader To The Stage?

Aug 12, 2009

im working on an image viewer and im loading an image to a loader and then add the loader to the stage.I want the user to be able to drag and drop the image but since it's a loader i dont know how to do it.
I tried

imageLoader.startDrag = true;
imageLoader.content.startDrag = true;
 
but im getting an error on both.

View 2 Replies

Actionscript :: Flex Image Isn't Displaying

Apr 20, 2010

I'm trying to extend the Image class but hit a problem that I can't get past. I have a private image (img) that loads an image and a function that takes that image and copies it onto the parent. The debug function "copyit2" displays the image fine (so I know it's loaded OK). But the function "copyit" doesn't work - it just displays a white rectangle. I can't see how to make copyit work so that the original image is copied to the BitmapData and then subsequenty copied onto the parent?

(The idea is to do some processing on the Bitmap data before it is displayed, although this isn't shown here to keep the example simple.) I suspect it is something to do with the security of loading images, but I'm loading it from the same server as the application is run from - so this shouldn't be a problem?

[Code]...

View 1 Replies

Flash :: Displaying An Image In Flex

Mar 25, 2012

I worked with HaXe and actionscript programming, but I'm new to flex. Here's my question. If I want to get image from server (blazeds) in AS3 I'll load it to Loader a loader and then add it to some e.g. MovieClip. Should I do the same to load an image in flex? Or there some common for flex schema for doing that? Another question is. If I have an Image on blazeds server what will a better way to get it: to pass it through java (i.e. read it, and then pass to client) or directcly with Loader?

View 2 Replies

Flex :: DataGrid Itemrenderer Image Not Displaying?

Dec 22, 2010

I have a Datagrid with an ItemRenderer assigned to a column which is a Currency column(String). The renderer is mean to display the Flag of the currency eg; for USD it should display a USD flag image etc. At the moment the column is appearing Blank without an image. I have the following renderer (which extends UIComponent). I am dynamically loading the images in the commitProperties() method. At the moment I have hard-coded it to the USD image to get it to work

public class CenteredEmbedImage extends UIComponent implements IListItemRenderer,IDropInListItemRenderer
{
private var _loader:Loader;

[Code]....

View 1 Replies

Ajax :: In Terms Of HTTP Request Performance Pick AJAX Or Flash?

Jul 19, 2011

In terms of HTTP request performance should I pick AJAX or Flash? To be more specific, I'm more into Flash than AJAX and I'm currently working on a wide scale web project. I wanted to try AJAX out for once and now it's getting too messy for me. Before it gets more complicated I thought may be I can run Flash on the background for HTTP Requests and use it with javascript. I couldn't find any benchmark on the Internet, but I think AJAX is faster than Flash. So what's your personal experience? Is there too much difference between Flash and AJAX?

View 4 Replies

Ajax :: FBJS AJAX.post Is Not Working After Permissions Dialog?

Feb 21, 2011

I have problems with facebook application based on flash which communicate with PHP using FBJS-bridge.When someone use the application for the first time, he/she is asked for various permissions. After that, flash contact PHP with ajax but request is never sent. When you refresh page, everything is working without any problems.If you remove the application on privacy settings, refresh the page and try again -same bug happens.If you allow application, refresh page, in other tab remove application and start application in previous tab - user is asked for permissions but everything is working after allowing application.This is FBJS code

function openPermissions(){
Facebook.showPermissionDialog(/*permissions string*/, permissionOnDone);[code]......

openPermissions is called to display permission dialog, and on allow flash function allow() is called. In flash, allow() calls JS function ajaxCall(), which should make ajax request. But, ajax.post never sends request. I know that for sure, because flash function parseAjax was never called and also debugging tools in browsers are not showing any ajax requests. URL and parameters are same as when it is working. No flash or JS errors are detected...

View 1 Replies

Flex :: Displaying Huge, Scrollable Images In Image?

Jul 31, 2009

I'm trying to show image files (jpg, png, gif) that can be larger than the available display area. I've embedded an Image inside a cCanvas (to get scrolling), but the large images are not completely displayed.

Very large images (e.g. 2480 x 3507) have the top or the top and bottom of the image clipped withing the scrolling Image.

What is the largest graphic one can display using the mx.controls.Image ?

View 3 Replies

Flex :: Dragging A Image Within A Loader?

Mar 23, 2010

I am having trouble in dragging a image within a loader. I am able to do zooming and rotating image but not moving image with mouse. Purpose is when I zoom a image info is out of boundaries and so is hidden. To see that info users should be able to drag the image any way they want.

View 1 Replies

ActionScript 3.0 :: Resize Image Before Uplaod In Flash Using AJAX

Sep 19, 2011

I want make a image up-loader in flash.i will call to Ajax to upload image, AJAX check for flash re sizer and it re size image using flash re sizer and upload on sever.please any body can help me how i can re size image in flash before upload on server.

View 2 Replies

Actionscript 3 :: Resize Image Before Uplaod In Flash Using AJAX?

Sep 19, 2011

I want make a image up-loader in flash.i will call to Ajax to upload image, AJAX check for flash re sizer and it re size image using flash re sizer and upload on sever. how i can re size image in flash before upload on server.

View 1 Replies

Actionscript 3 :: Displaying Huge - Scrollable Graphics In Flex - Part 2: BitmapData Into An Image?

Aug 6, 2009

I have the code to copy parts of a huge loaded BitmapData to a target BitmapData that is just the size that I can display. I think I have set the scroll bars of an enclosing Canvas to show the size of the larger image and allow the user to scroll. Now I need to put the selected pixels on the screen. When I try to add a Bitmap component as a child of the Canvas, it get an error because Bitmap is not a UIComponent. What's the best way to put the target BitmapData into an Image component?

View 1 Replies

Actionscript 3 :: Flex Loader Class Won't Load Image Hotlink Protection

Oct 30, 2011

I'm building an Adobe Air app that needs to load external images from different webservers. I have my basic loader function set up, but I encountered one server that wouldn't let me load it's images. it gave me the following error[url]...

After that I got in contact with the server's manager and he told me he had been working on some basisc hotlink protection for his images. He also told me that I could subvert this by supplying[url]... as the referrer when building the request headers.

First of all I found no trace of hotlink protection with online testapplications for hotlink protection. Secondly I have no idea how to set up what he told me with a simple Loader class function.[code]...

View 2 Replies

Actionscript 3.0 :: Trace Not Displaying Data From Loader

Feb 25, 2011

I am having a bit of an issue with my traces not working. Basically I have 4 loaders that loads up XML data and displays it for it to be checked. My issue is that the first two traces work for the first two loaders but the last two traces do not work. Usually I get a 1009 error if I try to dig into the data.[code]...

View 7 Replies

IDE :: Loader Component - Slideshow Not Displaying When Uploaded

Jun 2, 2009

I have used loader component in my flash website. In that I have used slideshow of images. But it is not displaying slideshow when uploaded.

View 3 Replies

Asp.net :: Flex - How To User Frames With 2.0 OR AJAX

Jan 7, 2010

How do I keep the menu static so the animations do not refresh with page clicks? Example would be like a 'frames' but within ASP.NET 2.0... Do I use the old HTML Iframes approach?? Or can I use something more contemporary using AJAX or something like that? This one stumps me... Should I user custom controls or AJAX ??Among other things, I'd like to change the menu swf based on security role of user in ASP.net 2.0, so I would need to pass variables to Flex / Flash application.

View 1 Replies

Flex :: Flash - How To Implement Ajax Functionality

Apr 15, 2010

I have a requirement like when I type 2 characters in email field if that email id exists in DB then I need to show remaining emails starting with those characters needs to display in dropdown list. Like Tags part in stackoverflow site, Is it possible in flex this functionality?

View 2 Replies

Jquery :: Flex VS Ajax - Prototype Or Any Other Script?

Jul 9, 2010

I am rebuilding one product website where client has 1000 of products which he wants user to filter as per his requirement without refreshing page. I am confused I should hire flex developer or Java script developer to deliver such project, looking at low bandwidth issue in India, which technology is more preferred? will using flex can effect search engine to crawl/read website content?There are 30 odd filters for user to find his/her desire product.

View 2 Replies

Ajax :: Flex - POST To Servlet: Null Parameter

Jun 27, 2011

I'm working on a flex application and I need to call some data with a synchonous method. After some research, I've found a code from adobe that use ajax and external interface. That great. the code from adobe

When I send data with the GET method, the servlet read the parameters and print some infos (to check). But when I send data with the POST method, the servlet recieve the request, but the parameters disappeared.

[CODE]...

View 1 Replies

Flash - Add Image Using Loader And Make Image A Button With Event Handler?

Oct 26, 2011

How would I make an image I load using AS3's loader class into a button with an event handler on it? Below is what I have started. And below that is my error I get when I click the message.

AS:

//call function that starts loading my image
callButtons();
function callButtons():void {

[code]....

the error I am getting when I click the spanish.png on the stage is: ArgumentError: Error #1063: Argument count mismatch on MyVideoPlayer_CS4_fla::MainTimeline/playSpanish(). Expected 0, got 1.I NEEDED TO ADDED evt:MouseEvent

View 1 Replies

ActionScript 2.0 :: Image Loader Gallery - Put A Timer - Divert To The Next Image Automatically

Apr 30, 2010

I have this piece of code to change images. I was trying to figure out how you could put a timer on the code, so if the image has been displayed for say 5 seconds it diverts to the next image automatically? Also if it's not to hard, when it has played to the end to divert to the 1st image.

[Code]...

View 1 Replies

Flash CS4 Loader Class: Image Loads Initially But Error Returned When Loading New Image

Mar 22, 2011

[code]This script is for a loader image gallery in flash, as part of a class assignment. What happens is that in flash, when I open the swf file, the initial image (images/nair_evanescentautumn.png) will load fine. However, clicking on any thumbnail image (including the exact same images/nair_evanescentautumn.png), will result in an error saying the file cannot be found.I cannot figure out why it is doing this... I've tested it over. Clicking each thumbnail does go to the correct position in the two separate functions. All said full-size image links are in the folder images/, and replacing the initial loader image will load the other images in place of the default one. However, clicking on any thumbnail still results in URL not found, even though everything works correctly.[code]Before anyone asks why I'm putting this kind of content into a flash site, I'm not--this is only for a class assignment. I'm just trying to figure out why my images aren't loading right when I'm only doing the exact same thing in the functions as I am on the other pages.Of note, commissions.swf has the exact same feature, just with swf files loaded instead, and it works perfectly fine. home, traditional, digital, and photography all have the image gallery, and all have the same issue (I only referenced one page because if I can fix one page I should be able to fix all of them).As for the artworks, they are all my fiance's. The website design was built for her, and I used the website design for this project because I didn't want to have to build an entirely new interface design. Since the project also required a gallery, I felt that this interface would work just fine.

View 3 Replies

Ajax :: Flex - Bridge On Safari - Cannot Call Any Of Public Functions

Jul 25, 2009

My flex project uses FA-Bridge, and apparently in Safari browser I cannot call any of my public AS functions that have arguments passed in. For example I can call this AS function from javascript:

[Code]....

In the above call safari throws an error # 1063, (i.e. Argument count mismatch) in the safari javascript console, and points to line 561 in FaBridge.js. It thinks I didn't pass in the requied parameters. Now the above issue exists only on Safari. Both of the above approaches work on IE, Firefox and Chrome browsers. Note: I am NOT using swfObject for embedding my swf.

View 1 Replies

Javascript :: Flex Ajax Bridge, Or Any Other Push Method With ColdFusion?

Jul 5, 2011

Is it easy to implement Flex Ajax Bridge with ColdFusion? Where can I learn how to use it? My frontend is pure HTML+JS and I just need the push capability. I thought of using Websocket Event Gateway and Server Sent Event (aka EventSource) but seems like they don't have much browser support quite yet. Any pure jQuery short/long polling option Any good Server Sent Event polyfill solution available for older browsers?

View 3 Replies

ActionScript 3.0 :: Reflection Image Should Appear Under The Image / Loader

Mar 6, 2010

I've looked through a couple threads here about reflecting images... but I don't quite understand it. I will include a link to my project thus far: Final Project First of all, ignore the music/mp3 items at the bottom of the stage. Those aren't wired up yet. When you click on a bike image on the right, the reflection image should appear under the image... but it's not quite working out that way, and I've tried a few things. Here's the segment of AS3 code that is giving me trouble:

[Code]....

View 2 Replies

ActionScript 3.0 :: Image Not Displaying?

Aug 23, 2010

Made this class that loads pictures for me. You pass on the picture URL, the object that the picture needs to be added to and a function to do after the image is loaded.Here is the class:

Code:
import flash.display.Sprite;
import flash.events.*;

[code].....

View 13 Replies

ActionScript 3.0 :: Displaying Text Instead Of An Image?

Jan 13, 2011

I have the following AS:

function clicButton(e:MouseEvent) {
//if (MovieClip(root).gallery_category_num !== numButton && _root.gallery_flag_animation==true) {

[code].....

View 1 Replies

ActionScript 3.0 :: Displaying An Image To A TextField With The 'img' Tag?

Oct 28, 2008

it is possible to display an image in a TextField by using html and the img-tag. The image is identified by an URI:

textField.htmlText = 'An image: <img
src="c:\myImage.png">';

Now here's my question: Is it possible to refer an image which is in the same .swf-file as the code?

View 1 Replies







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