ActionScript 3.0 :: Dynamic Loading Of Content In One Long Sliding Sprite

May 26, 2009

I am building a long timeline (50-100 entries) dynamically from XML. An entry can have either text or image or both. They all have the same distance from each other but they have different widths.  there will be a slider at the bottom to quickly bring the user from one end of the timeline to the other end.

It's an interface that's similar to the aiga design archives. [URL]

The main difficulty I see is to dynamically load content that is currently visible first and content that is 'offscreen' later (or even unloading it if it enhances performance, does it?)  I could try to figure out the math... but I know from experience that I get major headaches from such undertakings...

The second difficult task will be to determine the width of all entries before displaying them.. Is there a way in as3 to find out how wide an image is before completely loading it?  Hmm that sounds a little unrealistic, but I thought I'd ask anyway
 
I am looking for an as3 class or library that could assist me in building this, mainly detecting if an entry is visible or not, or even better which entries are visible or not. Has anyone seen any as3 libraries related to such an interface?

View 2 Replies


Similar Posts:


IDE :: Slow Dynamic Content Loading In IE?

Nov 17, 2009

This is really weird and I have no idea what could be causing this.I have this simple Flash site:

http:[url]....The main interface is loaded, and then it starts to preload a few external JPG images.The problem is that with IE it is taking about FOUR times (or even more) the time to load the same pictures with FF. In a slow connection such as a 128K the main interface takes the same time to load either on FF aswel IE - about 5-10 seconds. Then, it starts loading the external pictures - in FF it will take about 20 seconds more and in IE it will take about 80 seconds more. It is clear to me that the problem is not in the site loading itself, but in the contents loading. I can't see what in the browser could be interfering in the SWF, unless that the IE Flash plugin have some known (or unknown!) bug regarding to MovieClipLoader!

The only thing I can have in mind, is that I am not terminating the listeners in the onLoadComplete events, so theoretically they would be keeping the CPU busy even after the pictures finish to load (I spawn about 30 listeners, one for each picture). However, I doubt that this is the reason or else it would make FF slow down too, indeed? Also I noticed that when running the application in the authoring environment (control+ENTER) but loading contents from remote server, it have the same behavior as when loaded within IE (slow loading).

View 1 Replies

ActionScript 2.0 :: Dynamic Content Loading?

Sep 19, 2003

I need to create a movie that will look into some directories and display the images he founds there (or text).

View 6 Replies

IDE :: Scrollbar Content Too Long?

Sep 15, 2009

I have a scrollbar in which a very long list which I can't make any shorter / smaller.roblem is, the script for the scroller demands that I place the text at 0,0 on the Flash axis, and the lenght of the text makes it run way down to the lower edge of the Flash workingfield.Somehow this makes the text run 'beyond reach' of the scrollbar; the scroller only shows about 2/3 of the list, and does not show the text beyond that point.How can I extent the reach of the scrollbar??? Can I shift the 0,0 point of the Flash axis (maybe place it higher, so the text falls into the more 'reasonable' regions of the workingfield of Flash?)

View 1 Replies

ActionScript 3.0 :: Loading Swf With Dynamic Content Into Scrollpane

Aug 5, 2009

I have been working on a file for a while now and I am trying to load an external swf into a scrollpane. The external swf gets all its content from an xml file (there is nothing on the stage, it's all done through as3) My problem is that when I load the swf into the scrollpane I don't get the scroll bars and most of my content is cut off. I have tried setting the scroll policy to auto, and true, neither helped. Can anybody tell me what I am doing wrong?

[Code].....

View 3 Replies

Flash Movie Loading In Dynamic Content Which Is Controlled By A CMS?

May 31, 2011

The images are uploaded with an html form onto the server and their path names are loaded into a .txt file for my flash AS to use.The problem I am having seems to be either server lag or browser issues (catching perhaps?).I manage my content via the CMS and once returning to the flash movie it is either old content, half working or just doesn't work, period.What is interesting is that once I locate the text file and view/refresh it manually, it works 100% fine. Now, it's obviously not a very useful set up if I have to manually refresh my txt files so is there a way, (php?, Java? etc?) to refresh these files?

View 5 Replies

ActionScript 3.0 :: Terminate External SWF Loading Dynamic Content?

Nov 2, 2010

Is there a way to immediately terminate the loading on an external swf and the loading of that external swf's dynamic content? I've tried the code below in the parent swf, but no success. The external swf's dynamic content continues to load.

View 2 Replies

ActionScript 1/2 :: Vertical Sliding Content?

Mar 13, 2011

I'm trying to make vertical sliding content on my flash site and I have it working so that when I click on the second button, it slides up to the second content, but when I click back on the 1st, it doesn't slide back down to display the 1st content.

var currentPosition:Number = contentholder.richginfo._y;
var startFlag:Boolean = false;
menuSlide = function (input:MovieClip) {

[code].....

View 5 Replies

ActionScript 3.0 :: Sliding The UILoader Content?

Aug 31, 2009

i am using flash cs3 with as3. i want to slide content of uiloader with some percentage whenever i click slide button.i have a UILoader of size 1024*768 with scaleContent=false , and the mask of size 1024*768 set on uiloader. i have an image of size 2048*768 and i load this image to uiloader, now i have a two buttons on the screen one for slide left and other for slide right.i want to slide uiloader content by 256 pixel every time the button was clicked in particular direction(depends upon which button is clicked).

currently i am working on right button only. so ignore left sliding at this point.The problem is when i clicked button first time it works fine but when i clicked the same button second time the slide of image is disturbed and it first goes 256 pixels behind zero and then slides to 512 pixels (at third click again it starts from -256 and then come at the target position) . i want to slide the uiloader contents from 256 to 512 at the second click and so on.

View 1 Replies

ActionScript 2.0 :: Sliding And Zoom Content?

Feb 9, 2006

I'd like to get the content sliding and then zooming in effect achieved here:I know that the the basic content slide works using the AS below.Any ideas on adapting this to get the effect achieved at Zebra? Or is a different approah needed?

onClipEvent (load) {
_root.targetx = 116;
_root.targety = 34;

[code]....

View 6 Replies

ActionScript 3.0 :: Sliding Content With Next And Prev Button?

Sep 2, 2010

how to make a sliding content with a next and previous button in AS3? I know how to do it in AS1 but in this particular project I made use of Tweenlite, which requires AS3. Basically, I have a vertical movieclip navigation that toggles back and forth, and in each movieclip i want to insert a sliding image gallery with the next and previous button.It's similar to this onebut instead of having individual links, i just want to have a NEXT and PREVIOUS buttonIs it also possible to have links in each image? Anyway, in case I'm not making myself clear I attached a sample fla. and jpeg file of what I'd like to happen.[URL]

View 1 Replies

Professional :: Scrolling/Sliding Content In Flash?

Jul 21, 2011

I'm looking for tutorials that  show how to create scrolling content in flash, but instead of an auto  scroll, I would like to click and drag the content.Similar to the link below.

View 1 Replies

Javascript :: Make A Div Update The Content With A Sliding Effect?

Jul 20, 2011

Could you please tell me how this photo animation effect is achieved - see the pictures that slide seamlessly to the left every say 3 seconds (the pictures just below the BIGSTOCKPHOTO logo).. Site- www.bigstockphoto.com

I have noted this effect being used in many other sites.. And none of them seem to employ flash for making this. Please let me know whether this is just JS or whether its purely a CSS based effect, and probably a place where i can read on how to make this.

View 1 Replies

ActionScript 3.0 :: Sliding Thumbnail Gallery - Loader Content Drag

Jul 28, 2010

I have a sliding thumbnail gallery which when a thumbnail is clicked loads an external .png into a container with an instance name of mycontainer which I have on the stage in the .fla. Its added like such:
When the Loader's (which I gave an instance name of imgLoader) complete event is called the function onLoaded loads it -like this: mycontainer.addChild(imgLoader);

I also added a mask(stageMask2) to mycontainer which is the same size as the external .png--I then used this code imgLoader.mask=stageMask2; to mask the .png. I did this because I added a zoommc function which enlarges the imgLoader and wanted to keep the visible size of the container the same. I would also like to be able to drag the zoomed image. I don't want to drag mycontainer as it contains the mask and I cant drag the imgLoader as it doesn't have that property--Do I need to put the imgLoader in another container?

Here's the problematic code:
var stageMask2:Sprite = new Sprite();
stageMask2.graphics.beginFill(0x183045,0);
stageMask2.graphics.drawRect(swfX,swfY,604,403);
stageMask2.graphics.endFill();
var closeWin:TextField=new TextField();
[Code] .....

View 9 Replies

ActionScript 3.0 :: Expanding Content Item With Other Items Subsequently Sliding Down?

Sep 14, 2010

So that's the general idea, not quite an accordion, but similar. Basically, I'm going to have 25-30 of these boxes laid out vertically. They'll be narrow to begin with, and on roll over i want them to expand down a littlle, but when they do that, I want the ones below to slide down accordingly.

View 1 Replies

Flash - Dynamic Sliding Panels?

May 23, 2011

SO, it's been a while since I've done actionscript 3 again, been mostly busy with iOS programming..Anyway, what I'm trying to create is a sliding panels.So far they work but I'm having some troubles, And everything I try does not do what I want hehe.

The panels work, I generate 5 of them in a for loop, they slide open and close when clicked using greensock.But, They all have a label, which needs to slide with it instead of staying on the same position.Plus, I have a if/else to check if a panel is open, but I want to check this individually instead of overall.

The full code is:

import com.greensock.TweenLite;
import flash.geom.ColorTransform;
import flash.text.engine.TabStop;

[cod]....

View 1 Replies

ActionScript 2.0 :: Dynamic Sliding Menu In MX?

Jan 21, 2003

Lostinbeta utilises a sliding menu system with a delay so that the section head follows after the content. I have been looking around for a tutorial but haven't found one to date

View 1 Replies

ActionScript 2.0 :: Loading A Swf From Sliding Menu?

Jul 22, 2008

I have a sliding menu. As one of the movies inside the contentHold i want to load an swf. I do this by going into the movie content2 and adding the following code:

Code:
this.clip_mc = this.createEmptyMovieClip ("holder", 1);
this.clip_mc.loadMovie("sourceMod.swf");

The swf file works perfectly if i launch it separately, but when i try to launch it from the sliding menu all i see is the background of the clip and not the actual content.

View 1 Replies

ActionScript 3.0 :: 2 Row Dynamic Textfield 200px Long

Jul 20, 2010

i have a 2 row dynamic textfield 200px long.if more text than fits is entered i want to cut the last words that dont fit plus put 3 dots at the end ...

View 5 Replies

Flash :: Way To Scroll Content Within A Sprite

Mar 4, 2010

I am very new to ActionScript and Flash development so excuse any incorrect terminology that I may use. I'm developing on Ubuntu, using AS3, and compiling with the flex sdk using the ANT tasks (flexTasks-4.0.0.10485).I am looking for a way to scroll content within a sprite. So, say I have a sprite that is 100px in height, and I add several child objects stacked on top of each other that exceed the sprite height, then I would like to display a scrollbar to enable scrolling through the children.Now I found fl.controls.ScrollBar, but when I attempt to import the class I receive the error:Error: Definition fl.controls:ScrollBar could not be found.I'm not sure why I am receiving this error, as this appears to be a valid AS 3 component according to the livedocs.Is there a scrollbar component in AS 3 that can be attached to a display container like a sprite?

View 2 Replies

ActionScript 2.0 :: Edit Dynamic Content And Modify The Content And Save It All Within Flash?

Oct 1, 2007

how it is possible to edit dynamic content and modify the content and save it, all within flash.I have tried some experiments in the past and have got the text to change etc which is easy but i need a way to save the content so the next time anybody sees the flash it will have the latest content until i change it again.

View 2 Replies

ActionScript 2.0 :: LoadMovieNum - Users Of The Player To See How Long They Have Listen Or How Long Time Back Of The Song

Feb 5, 2004

I'am making a advanced mp3 player arund this tutorial: [URL] and i want the users of the player to see how long they have listen or how long time back of the song. i have the AS i what to use but i cant connect them. becuase the tutorial i used does not make a sound objekt (MUSIC)

[COde]...

View 1 Replies

ActionScript 2.0 :: Sliding Menu & Loading Text?

Jun 14, 2006

Using the sliding menu and wanna use the movieclips with external text but i cant seem to get that to work.

Inside content1 I have added on frame 1:
System.useCodepage = true;
loadVariables("news.txt", "");

[code].....

View 4 Replies

ActionScript 3.0 :: Print The Content Of A Sprite Without The Background?

Oct 28, 2009

How can I only print the content of a sprite (here a simple text) without the background color of the document?

View 4 Replies

ActionScript 3.0 :: Flash - Loading External Content On Top Of Main Content?

Jan 28, 2011

I'm loading one SWF into another but the internal one is coming over the main content and that can't happen.here is the part of my code where the external content is being loaded anyone hason what I can do to fix this? here is my code:

Code:
var loadAnimBox:Loader = new Loader();
var vid_mc:MovieClip;

[code].....

View 2 Replies

Flash :: Loading Progress For Long Loop In Flex?

Dec 2, 2011

I have a loop that parses and works on a lot of data and it takes a long time. While it works away, the screen is blank and im wondering if there is a way to put a loader or counter up?

Since it does a finite amount of work, I thought I could just update the progress from within the loop but further readings has revealed that it wasn't possible.

View 3 Replies

Flex :: Playing A Large/long H264 File With NetStream Takes A LONG Time To Begin Playback?

Aug 1, 2010

I'm trying to play a 10 minute long video (h264/mp4) which is 39MB in size, after I call stream.play(fileURL) it doesn't start playback until its loaded around 12-16MB of the file (many many seconds later), I finally get onMetaData at this point too. Why doesn't it begin playback right away, or at least w/in a couple seconds? What can cause this bloated lead in time?

View 2 Replies

ActionScript 2.0 :: Develop A Dynamic Image Sliding Component?

Apr 4, 2006

I am trying to develop a dynamic image sliding component.Although i tried to implement v2 framework but finds it difficult to handle.yet what i have created is attached.Please guys test it and give me few thoughts about it. This is the forum i like most and i learnt lot from it and thats where i wanna load my first independent work.

View 1 Replies

ActionScript 2.0 :: Loading External Movies With Sliding Menu

Nov 8, 2006

I would like to use Sliding Menu (URL...) on my web site,how to I load the external movie when user lands on let's say slide 3 (content3)?From actions script given on page URL...Then, when user go to another slide, I would ultimately would like to unload/stop the loaded swf movie

View 2 Replies

ActionScript 3.0 :: Loading Images - Substitute The Content For The New Content?

May 20, 2010

I have a menu whee you can choose a picture to lead, works great with first selection, but when you choose a different picture it loads over the last picture,I want to substitute the content of that movie clip not to load all the pictures in the same space. I treid to use clear() and removeChild(), but this only works when I choose pic1 then remove that to load pic2, is there an easy way to substitute the content for the new content?

View 1 Replies







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