ActionScript 3.0 :: Loading Images On Demand?
Nov 20, 2009
I have a project where I load a bunch of images into a scroll pane object. There are only 4 visible at a time, and there may be hundreds. The user can change the dates of the images, delete images and the like. Each action calls web services to enact the function in the database, so reloading is required after each user action. As a result, when there are more than, say, 20 images, it is a SLOW application. What's the best way to only load a certain number of images, say 12 - until they are actually needed? So basically only load the images that would be visible in the scroll pane at any given point? So if they wanted to scroll way to the bottom and see the last 10 images, we never need to load the 200 images in the middle.
what to search for on the internet for an example. "progressive" only gives me info on jpgs...!
View 8 Replies
Similar Posts:
Dec 9, 2005
Explaination: MX 04' Pro Thumbnail Nav. loading images with XML Loader resizes and displays images when users click on Nav. reading XML Problem: Users click Thumbnail Nav. first image gets loaded and loader resizes to image. However the next choice by user on thumbnail click, the second image doesnt get resized in the loader. It goes beyond holder. Here is my code for Thumbnail and Loader:
[Code]....
Now the first image loads fine and the loader sizes to file from XML. However, when users click second choice from Thumbail the loader doesnt resize to new image size. It only gets resized on the first selction or if users click the next or prev. buttons then the images fade correctly but nothing fades back in. Now if they do hit next or prev and then hit a thumbnail option it loads and resizes.
View 1 Replies
Jan 26, 2009
im loading multiple images but how do I make sure the program will start once all images have dispatched a complete event. like make a universal loader for all the other "small loaders" if you understand.
View 1 Replies
Oct 20, 2009
I need to load dynamically a few images (4-6) so that by clicking on particular image user would invoke particular action. Embedding images solves the problem but at the expense of file size. If I load them dynamically, they lose their ID.
<comps:ExercisesScroller id="scroller" x="300" y="100"
ex1="@Embed(source='assets/Exerc_1.png')"
ex2="@Embed(source='assets/Exerc_2.png')"/>
and so forth this works. But instantiated in CDATA it does not work:
import components.ExercisesSCroller;
private var custScroller:ExercisesScroller;
private function init():void {
[Code].....
View 1 Replies
Feb 19, 2012
I have typical situation where big loop is loading lots of images and its done asynchronous which make browser to frees during loading and I want to make it synchronous but having big trouble doing it. I found this class synchronous loader and it work great but you cant add mouse event listener to loader. Here is sample code:
[Code]...
View 2 Replies
Apr 1, 2010
I want to have an AS3 app load images from url supplied by the user. But I don't want a malicious user to be able to load an SWF file in place of the image, such as with an altered extension "maliciousSwf.png". Well, not sure how big a security threat that is above and beyond the ability of the hacker to decompile swf, but I think that ideally such behavior should not be allowed.
So, is there any way to prevent this? When people allow users to load images in their Flash apps, do they somehow guard against loading of SWF? Or is this really absolutely no big deal?
View 1 Replies
Nov 15, 2010
How would you defer loading of other graphics on the page until after the images in a Flash gallery's images.xml file are finished loading?Is there any way to detect for this, or would I only be able to check if the flash swf object is finished loading? I'm pretty sure the swf object would be loaded/ready as with document.getElementById('flashobject').onload = function(){}; before the corresponding images have loaded though, instead of after.
View 1 Replies
Mar 23, 2011
I am loading images of different size and then images are scaled and border is drawn for each image as shown in below link,[URL]... I want that border of images to be of the same width and height and for that I need to find out the max width and height size image before loading all the images. Is there any way that I can know the width and height of an image before loading it completely?
View 1 Replies
Oct 8, 2011
I am looking to develop a simple flash progrma that allows me to create custom slide shows on the fly. I have about 8 different countries that i have photos for and I want to have a front page that via checkboxes you can select the countries to view which will then populate a slideshow/gallery with the relevant photos.
View 1 Replies
Oct 10, 2011
At the moment i am using vlc to transcode my video realtime and display the output through Flowplayer.The problem is that I am struggling to seek using flowplayer my time gets out of sync between the stream and flowplayer and there are a few other issues.Are there any streaming servers that allow for real time transcoding and allow for a flash player to seek.
View 1 Replies
Oct 16, 2009
I'm trying to implement way so that stylesheets can be loaded on demand: Either the default stylesheet is used, which is compiled into the application file, or a remote stylesheet (.swf) is loaded if the default styles should not be used. (each stylesheet has embedded images)
So what I would like to do is:
1) Embed the stylesheet but not load it right away. Instead, store a reference to it inside a variable. (or simply a path string?)
2) Load the requested stylesheet, for example using StyleManager
My way of tackling the problem was like this:
1) Embed the default stylesheet as
Code:
[Embed(source="assets/themes/default.theme.swf")]
_defaultThemeClass:Class;
and turn it into a StyleSheet object
2) Have a separate class decide which stylesheet to use and call StyleManager.loadStyleDeclaration(myStyle), where myStyle can either be the remote or local stylesheet.
As it seems, the StyleManager cannot load a local stylesheet. So I'm looking for a way to "activate" the style I have embedded.
View 1 Replies
Jun 25, 2009
i'm having problems trying to play FLV videos on demand from Flash Media Server 3.0.1.
Sometimes the video doesn't show at all, sometimes it plays the audio only, and sometimes it works perfectly...i can't figure out why.
Videos are into the applications/vod/media folder, i'm using a MediaDisplay object to load them, and i've exported the SWF as a Flash Player 7 AS2 application.
Code: Select all // m is the mediadisplay object
m.setBufferTime(10);
// file will be passed as parameter
[Code]....
as you see, the server is in my local network, but i've tried with a public remote server too, with the same results.
View 1 Replies
Nov 14, 2005
i want to do following:
1. Create sound.fla, import some wave as Sound-Symbol in the Lib and set the linkage to �s1�
2. export that swf as sound.swf.
3. Create main.fla, load the sound.swf with loadMovie or LoadMovieNum.and than use that s1 in my main movie
I tried like this but this doesnt work
[Code]...
View 2 Replies
Apr 28, 2006
I wanna do some slide show, getting some seconds of some MPGs , is it possible to do that My ideia is, create a XML files containing the names and the paths of the MPEGs, and at each 10 seconds, change the file.
View 1 Replies
Mar 30, 2010
I have a basic video on demand app running on Flash Media Interactive 3.5. I've noticed that in our flowplayer page, in order to view the contents I have to set the netconnectionurl to be the address to the app, and then the file name url needs to contain the rest of the path.
For Example:
NetConnectionURL: rtmp://myserver.edu/appname/
Url: path/to/file/many/folders/deep/video.mp4
However - I have accessed the same file from a different server using the following:
NetConnectionURL: rtmp://myserver.edu/appname/path/to/file/many/folders/deep/
Url: video.mp4
What type of VOD application or settings need to be configure to allow the later example to work?
View 3 Replies
Sep 14, 2011
I have a folder in my applications folder in FMS 4.0 Is it possible to stream both Live and VOD from this sames folder.
View 1 Replies
Nov 23, 2011
We've purchased the FMS 4.5 and are now planning an application that lets users record a video to the server using their webcam. Straight forward, if we were to stream only to a flash video object. BUT, we would like our padders to be able to see the videos on demand too. Can't find a tutorial on this, seems like everyone's more interested in live streams.The server is able to record a stream in mp4, but when I'm testing these files in Adobe Media Player it won't play :| What codec is used, and is it possible to play this format on an iPad? If not, is there som sort of solution other than manually transcode to the right format.
View 5 Replies
Nov 16, 2010
I have a component and I add some content to it making it change it's size, immediately I need it's new size, but flex only updates the size in the next frame by calling updateDisplayList. how can I force it to update the size of the component right away.
View 1 Replies
Dec 2, 2009
Being a code purist, I always set Flash to demand that I declare all variables/functions with a type. Like this:var myVar1:int = 14; //Okvar myVar2 = 18; //Compiler ERRORMy problem is that I just reinstalled my computer (including Flash) but I've forgotten where I do this setting. Anyone here with a better memory than me?
View 4 Replies
Jul 16, 2009
In order to play a FMS stream (live or on demand), either an FLVPlayback component or the Video class is needed.And they require ActionScript 3 and Flash 8 or above.
As far as i know , Youtube, Dailymotion and Google Video stream their on demand videos from a FMS, and their players are compatible with Flash 7.
How can they achieve this? If Youtube, Google and Dailymotion do that, i deduce it's possible..
I tried to create a Flash 7 application that plays a video coming from FMS, using a MediaDisplay component, but it doesn't work well. Sometimes it shows the video, sometimes not.So i don't think youtube player uses MediaDisplay..
View 7 Replies
Jul 18, 2011
I have a ERROR message is
[Code]...
Below code is xml playlist included. But i want to play videos through "rtmp server". My On-demand Video Player Code
[Code]...
View 8 Replies
Feb 28, 2012
FMS 4.5.1 popping sound crackle when streaming HDS on demand
View 2 Replies
Feb 12, 2011
I have an mxml pie chart, which I would like to rotate slowly prior to a button click, however on click it needs to stop immediately (or at least reasonably quickly) and then the callout labels are introduced with a fade.
I have experiemented with both a timer function to achieve this:
[Code]...
View 1 Replies
Jul 16, 2011
I have a ERROR message is
Code:
ArgumentError: Error #2126: NetConnection object must be connected.
at flash.net::NetStream/ctor()
at flash.net::NetStream()
at videoplayer1_fla::MainTimeline/initVideoPlayer()
at videoplayer1_fla::MainTimeline/frame1()
Below code is xml playlist included. Buti want to play videos through "rtmp host".
My On-demand Video Player Code
ActionScript Code:
// #### VARIABLES
// net connection object for net stream
var ncConnection:NetConnection;
// net stream object
var nsStream:NetStream;
[Code] .....
View 1 Replies
Jun 29, 2007
Is it possible to create a flash file, which can be embedded into a website for on-demand viewing and be exported to a cd while maintaing interactivity, that is geared towards an online elearning environment? Basically a client wants a video that is broken down into various chapters with an interactive "course" for each chapter.The interacivity will included answering questions correctly in order to move on to the end of the chapter.
View 2 Replies
Nov 3, 2011
I am trying to config custom encryption key for different pieces of content at streaming level using jit.conf for On-demand Apple HTTP Live Streaming.I tried to set "HLSEncryptionScope content" in httpd.conf and placed jit.conf in ../webroot/vod but not success, the m3u8 generate not contains EXT-X-KEY.and, I tried and got nothing in access plugin log file while i http stream a m3u8 file, is it possible to log HTTP Live Streaming using plug-in?can plugin got any event triggered by http streaming?
View 4 Replies
Jul 7, 2010
Setting up a web page to progressively stream video to whoever goes to that page. We are not streaming live video but streaming a video fileon the server.
The Question: Instead of starting the video at the begining we want the video to start at some mid-point based on the time of day... (therefore emulating "joining" a live broadcast.)
View 3 Replies
Oct 30, 2009
I am trying to import some images into flash using an XML file. My XML file seems to load fine, and my code seems to find the URL of the images to load. However when I actually try to load the images into my Loader nothing. This is my code that is relevant:
-----------------
public var xml:XML;
public var xmlList:XMLList;
public var imageLoader:Loader;
[Code].....
So as you can see my xml file is loading, my URLRequest seems to be finding the image path and filename (the paths are correct and those files are located there) however my imageLoader doesnt seem to actually load them .
View 2 Replies
Jan 28, 2011
I have an fla which is loading images from an XML, then the images start scrolling , but when it arrives at the last images, I want it to loop back from th first images, like a never ending scrolling..
below is my code :
Code:
import gs.*;
import mx.transitions.Tween;
import mx.transitions.easing.*;
import flash.display.BitmapData;
[Code]...
View 2 Replies
Oct 21, 2009
I have a flash site, which uses XML to load an image gallery, but it cant find the images on the server even though they are there. It works fine locally.In firebug, each image is listed in the net tab as found, but when you click on it, there is an error message..Plus an error page is listed for each of the images.If you click on one of the other button's in the gallery strip on the site, it tries to find Freeola's (my host) 'crossdomain.xml' file which doesn't seen to be there, could this be a cause?
View 1 Replies