ActionScript 3.0 :: Thumbnail Loader Based On Bytes Loaded?

Jul 23, 2010

I have found out that I can not use loaderInfo.getBytesLoaded in as3. I have a gallery located here: [URL]the functionality is almost complete, but my gallery still has issues loading all the thumbnails. It seems that sometimes they wont load while sometimes they do. I have split my thumbnail process into:

LoadThumbs: Loads the thumbs
Callthumbs:Arranges the thumbs

Each function is called once per thumbnail. My problem is that I can not find the bytes loaded information for the thumbnail as it loads. Event completion and preloaders dont seem to help. I doubt it's my alpha tween because the thumbs are un click-able when they are not there. This is the info for my function, with the comments indicating the parts that bring up errors.

Code:

function loadThumbs()
{
x_counter = 0;
y_counter = 0;

[code]...

How do I get the loaded info of each thumb as it loads? Do i need to make a new class file?

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Preload Multiple - Load And Display The Percentage Loaded Of Total Bytes And Bytes Loaded Of All The Files

Jul 13, 2009

What I'm trying to do is get the total bytes of all the files I want to load and display the percentage loaded of total bytes and bytes loaded of all the files. Its a slideshow so i want all the files loaded and then it will play. I've looked at bulk-loader but it wasn't what I needed. The image are loaded from an xml file. I think I would need to create an Array and then find out the total bytes but I don't know how to reference the loader in the progress.

[Code]....

View 2 Replies

ActionScript 2.0 :: Get The Bytes Loaded And Bytes Total From A JPG I'm Loading Using LoadMovie?

Jul 4, 2005

how can I get the bytes loaded and bytes total, from a JPG i'm loading using loadMovie? the point it's making a loadbar

Code:
image.loadMovie("pic.jpg");

View 2 Replies

ActionScript 2.0 :: Make A Pre-loader That Based On The Percent Loaded Displays Text

Jan 31, 2007

im trying to make a pre-loader, that based on the percent loaded, displays text. So at 5% it says "loading" and at 10% "still loading" , etc. Im guessing there is a way to say percenttotal=5, entertext=still loading target=instancenameoftextbox I've gotten the loader tutorial on the site here to work, i just want to add this to it.

View 2 Replies

ActionScript 3.0 :: How To Delete Loaded Bytes

Jun 19, 2011

so i have created a preloader to load pictures... and i created a button to stop the preloader if the user changed his mind and wanted to change the picturethe problem is that each time i click a picture and cancel it, the bytes remain in memory, so if I click on another picture very fast both the first picture's bytes and second picture's bytes get accumulated and load together, which means much much slower loadingso how can i delete the bytes loaded of the image if i click the cancel button?

ActionScript Code:
function onclsLdrclick(e:MouseEvent):void {
l.contentLoaderInfo.removeEventListener(Event.COMPLETE, onImgComp);

[code].....

View 4 Replies

IDE :: Advance Aimation In Time With Bytes Loaded?

Sep 9, 2009

URL...Basically, you press button to enter and the tape measure will roll in time with the amount of data/frames loaded. So if 50% of data/frames loaded, the animation would be halfway completed. Upon completion, it zooms in on tape measure and I have animations from there to get to the main site.This was successfully done in Actionscript 2.0, but I need it to work in Actionscript 3.0.

View 3 Replies

ActionScript 2.0 :: Get_bytesLoaded - Preloader Is Not Getting The Bytes Of Loaded Movievlip

Oct 7, 2004

[Code].....

this is executed when a ceratin button is pressed and loads in a movie in to the .swf , the movie is loaded into the 'content' movievlip and displayed correctly, but the preloader is not getting the bytes of it,

View 2 Replies

ActionScript 2.0 :: Retrieving Total Bytes On Dynamically Loaded Clip?

Jun 23, 2004

I'm trying to create a script that will check different supplied filename paths, insert them into a movieclip, and retrieve the total bytes of the clip so I can determine whether or not the filename is valid. I'm having trouble with the bolded code below. Basically its checking to see if the loaded clip's bytes are more than 0. If its 0 then I know the path was wrong.I've tried using .onData and .onLoad as event handlers, and getBytesTotal and getBytesLoaded as my conditions for my following if statement. When I trace the result I get 0 even if the movie was successfully found and loaded... anyone know whats wrong?!?!

Code:
if (presType == "web") {
videoName1 = videoName + "_300k.swf";

[code].....

View 2 Replies

ActionScript 2.0 :: Simple Fla For Preloader That Shows Percentage Of Bytes Being Loaded?

Jul 18, 2005

Simple fla for a preloader that shows the percentage of bytes being loaded?

View 3 Replies

ActionScript 2.0 :: Retrieving Total Bytes On Dynamically Loaded Clip

Jun 23, 2004

I'm trying to create a script that will check different supplied filename paths, insert them into a movieclip, and retrieve the total bytes of the clip so I can determine whether or not the filename is valid. I'm having trouble with the bolded code below. Basically its checking to see if the loaded clip's bytes are more than 0. If its 0 then I know the path was wrong. I've tried using .onData and .onLoad as event handlers, and getBytesTotal and getBytesLoaded as my conditions for my following if statement. When I trace the result I get 0 even if the movie was successfully found and loaded.

[Code]...

View 2 Replies

ActionScript 2.0 :: Sequential Thumbnail Loader From A Xml File?

Jun 22, 2007

I have set up an xml thumbnail gallery using some of the great tuts on this site (I'm a designer so this dev stuff tends to get a little confusing). Basic setup is quite simple:

xml holds titles, thumb urls and details set up thumbs as a grid system, so they're loading in as columns, all of which is working great.

I have run into a bit of a brick wall though, and that is how to get the thumbs to sequentially load in, instead of random as they currently are.

Code:
...
function GeneratePortfolio(portfolio_xml) {
var portfolioTitle = portfolio_xml.childNodes[0].attributes.title;
var rootUrl = portfolio_xml.childNodes[0].childNodes[0].attributes.rooturl;

[Code].....

View 12 Replies

ActionScript 2.0 :: Putting Together A Tweened Preloader That Runs In Time With Bytes Loaded?

Nov 4, 2004

I'm over here putting together a tweened preloader that runs in time with bytes loaded. I'm just wondering how I could make the preloader movieclip fade out when the tween is finished and then advance the playhead when the alpha reaches 0. I can post an fla if that'll help anyone understand better.Heres the code on the preloader movieclip:

[Code]...

View 4 Replies

ActionScript 3.0 :: Loader - Uploading Large Image And Thumbnail From Xml

Sep 12, 2010

i am currently working with flash based fashion website. here i am uploading large image and thumbnail from xml. i also have menu navigation at top. my code structure is detail below:

[Code]...

my problem here is like i have home button with 5 thumbnail and handbags with 2 thumbnail when i click home button will display 5 thumb with large image and again when i click hangbags buttom it will display 2 thumb which is what i want but 5 home thumbs keeps on remain at back. dont know how to remove them upon new button click

View 5 Replies

ActionScript 2.0 :: Create Xml-driven - Thumbnail-based Image Galleries

Apr 30, 2007

I have seen many tutorials on how to create xml-driven, thumbnail-based image galleries, but I am looking for one which can do a "Before and After" photo effect. I'm designing a realtor's website and want a "before and after" gallery to show work being done on some homes, before construction and after construction. So, basically, you have two photos, same size, overlaying each other, and use maybe an Alpha fade to "merge one photo into another"? Something which slowly fades one into another, not just something which does a complete Alpha fade out, then a complete Alpha fade in.

View 4 Replies

Media Server :: When Using RTMP It Returns Nothing , If We Uses HTTP It Displays Number Of Bytes Loaded?

Mar 24, 2011

I can get which part of file in bytes is loaded using videoDisplay component for RTMP protocol for VOD, I can get the current playing position using videoDisplay.playheadTime. But I want to know how many seconds of video are already loaded (not the length of bufferTime, which remains constant). i used videoDisplay.bytesLoaded when using RTMP it returns nothing ,if we uses HTTP it displays number of bytes loaded
 
The loaded size in bytes is not directly proportional to running time of the video, and while using rtmp im unable to get bytesLoaded too, how i can calculated the Video already loaded.

View 3 Replies

XML Scrolling Thumbnail, Image Loader, & Buttons [halfway Works]?

Jul 2, 2009

Intro:I started a flash-based website a few years ago. Back in 2006 I was able to get a xml scrolling thumbnail, image loader to work without a glitch.For numerous reasons I had to put the project on hold until now. [one was that my 30 day trial of flash expired and only recently was I able to purchase the Adobe Web Suite CS4 as well as a new computer which could run the apps.]

Last Friday saw a bump in the road in the development of my site as two, rather straightforward task, turned into something short of a nightmare as I have been unable to get past these two, seemingly, relatively simple task.I have posted in 4 other flash forums the issues, in detail, that I am facing - and have quite a bit of interest/views in the topic as the numbers suggest - yet no response/answer as of yet. [Which confirms other messages I have seen which seem to state that working with buttons has become increasingly difficult with the newer version of flash - something Im a bit surprised with actually from Adobe. - I would have thought there would be a palette where you could set parameters...] 

Screenshot of Site/Timeline: Before getting into the two questions I have, I would like to post an image of the site as it looks whenever an swf file is saved out, as well as a piece of the timeline in the back for reference.As of now when the swf file is saved out you get exactly what you see above:

a: A scrolling thumbnail

b: ...which loads a large image when clicked on it - PEFECT...
 
BUT...1a: I need for the buttons to load in this action, not for it to just load on its own.[i.e., the silk_paintings gallery is what is open, so I need the "silk_paintings" button to call up this action]
 
note: Initially I had attacked this problem by taking out the actions layer you see above and applying it directly to the individual buttons with some crude MouseEvent Listener/Handerls... that did not work - at all.Im sure it may be "easier" to make an array out of it, but with my coding level it may be "easier" to apply it to the buttons.
 
1b: How I currently see it, I would take the xml-list and duplicate it for the number of galleries I have.[I would then re-name the xml-list to reflect the name of the galleries they are to represent, i.e. "silk_paintings"][also, I would have to rename the folders to "thumbnails1,2,3, etc., & "images 1,2,3, etc"
 
From there I would duplicate the actions and paste it into the buttons, changing the xml-list name to that of "silk_paintings", etc., as well as write in the MouseEvent listener Handler to make it work. [ah, ha, but what is that magic phrase, I have tried to implement various code from other tutorials, and all in vein.]
 
At this point I would be tickled pink just to get this to basic function to work.However, once the buttons are working and calling up the xml, etc., then I need the buttons to stay on the semi-transparent blue color it is whenever in the 'hit' state. [note: NOT pictured above.]With the way the buttons are currently set up, and with wanting to use scripting to get them to interact with the thumbnail gallery, it will have to be some miraculous code to tell that button what color to stay as whenever its clicked, and of course it going back to white when another button is clicked.
 
Conclusion:Since this is an Adobe Forum I would like to make a few additional statements in hopes that the developers, etc. may take heed.Adobes products are not cheap, and when I went to purchase the websuite I went in as a designer needing a program as not to need to program.I understand the flexibility that coding gives, but something as simple as linking buttons should not be in the realms of rocket science.

stop();
fscommand(allowscale, false);//keep SWF display at 100%

var x:XML = new XML ();//Define XML Object[code]....

View 31 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 :: How To Access A Loader Loaded By A Loader

Aug 13, 2009

How to access a loader loaded by a loader

View 4 Replies

ActionScript 3.0 :: Loaded Swf Tell The Parent Loader To Unload Itself After The Loaded Swf Finishes Playing?

Sep 23, 2010

I have a shell swf that is loading a swf. How do you have the loaded swf tell the parent loader to unload itself after the loaded swf finishes playing?

View 4 Replies

ActionScript 2.0 :: Thumbnail Button Loaded From Xml?

Sep 18, 2010

I am fairly new to flash action script and I am having a problem with a project I am working on. The problem is as follows. I am trying to create a table of thumbnail pictures from an xml. I have made the table load from from the file though when the items are created the first thumb has the background and text field though all others are missing this. I have tried making a clip inside the thumbnail clip thats called "thumbnail_image" though that didn't work. I also want to be able to click the thumb and have it go to the corresponding url from "curl[]". I just can't work it out. At the moment it will only go to the last url added in the array

[Code]...

View 9 Replies

ActionScript 2.0 :: Generating An Thumbnail Preview From Xml Loaded Content

Feb 23, 2009

I am busy working on a xml driven photo gallery where the number buttons for each picture are generated dynamically ie) 6 xml nodes....6 buttons generated labelled 1-6 and everything is working fine. I want to have a thumbnail hover state appear when I roll over each of the buttons. I have a static thumbnail which loads in the thumb_path, however I cant seem to get this to work when you hover over the buttons...the function menu() is what generates the buttons: Can anyone shed some light on what would be the best way to create a thumbnail preview for the buttons? I have attached a preview of the gallery as well.

[Code]...

View 0 Replies

ActionScript 2.0 :: Thumbnail - Images Skew When Loaded Up Using Loadmovieclip Function

Feb 22, 2009

images skew when loaded up using loadmovieclip fuction thumbnail images should load at resolution 150x150 but display at 150x175 cant find scaling as in my code (couldnt get scaling to work right with my looping function so left it out)

View 1 Replies

ActionScript 2.0 :: 'Highlight'/'rollover' Effect For Thumbnail Image Loaded Into Flash?

Sep 20, 2007

I load my thumbnail into flash this way:

Code:
material.holder.loadMovie("material.png")
material.holder._xscale = 75;
material.holder._yscale = 75;

how can i make it so when the user rollsover the image loaded, it darkens to appear highlighted?

View 1 Replies

ActionScript 2.0 :: Kirupa XML Flash Gallery - Allow The Thumbnail Scrollbar To Begin Scrolling Once The Page Has Loaded

Nov 17, 2009

That said, I would like to alter some of the code to allow the thumbnail scrollbar to begin scrolling once the page has loaded. Here is what the code looks like as it is right now.

[Code]....

View 1 Replies

Actionscript 3 :: Position Loaded Object Based On Root Stage Instead Of MC That Is Loaded From Root

Mar 22, 2010

I have a root stage, and a MC that is called from the root stage.Now from that MC, i will called in another MC2, and I wanted to placed the MC in the center of the stage. The reason I could not use normal ADDED_TO_STAGE at MC and define the center is because MC is not place in the exact position of the root stage (as in x, y=0). So if I would target MC2 at MC stage center, it would not be the exact center of the root stage/screen.How can I called the root stage properties rather than adding MC2 into the stage?

View 1 Replies

ActionScript 2.0 :: Thumbnail Loop - Middle Thumbnail Represents The Photo In Target_mc?

Nov 28, 2007

I have made a image-viewer. I've this AS for the viewer:

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
function loadXML(loaded) {[code].....

Now i would like to make a loop for the thumbnails so they don't have a beginning or end(Now when i scroll to the right the thumbnails stop at the last thumbnail, i want it to begin at the first thumb again).I'm also trying to make that the middle thumbnail represents the photo in target_mc.

View 1 Replies

ActionScript 2.0 :: OnRelease - Cannot Scroll Thumbnail Until Roll Off The Click Thumbnail

Jul 10, 2007

I am making a gallery, which you can view here:[URL]ok, firstly, when you click a thumbnail, you cannot scroll them until you roll off the click thumbnail, and I'm not sure why. is it just a movieclip thing? or can I put some code in to re-get focus of something? ok, now for the two general questions:

1. When you roll over the thumbs, they go up, sometimes they flick back down though, even though you are rolled over them still. is this just because they are moving?

2. Does anyone know why when I add this:

[Code]...

View 1 Replies

Get Rid Of Pre Loader Bar When Page Loaded?

Dec 19, 2011

Ok why wont this work? (flash CS5 and action script 2)Trying to do aNavigation bar button , to preloader to abour me page with a photo component.Not on the pre loader page the bar works, only it wont disappear.

siteLoader.loadMovie("AboutMe5.swf",4);
Frame_movie._alpha = 100;
loadingBar._alpha = 100;

[code]....

View 2 Replies

Loader For Externally Loaded SWF?

Dec 2, 2009

if a loader can be added to let the user know the video is being loaded rather than a blank 20-30 seconds...

View 18 Replies

IDE :: Loader For Externally Loaded SWF?

Dec 2, 2009

I have a fairly chunky swf that I am loading through the loadMovie function. Just wondering if a loader can be added to let the user know the video is being loaded rather than a blank 20-30 seconds...

View 1 Replies







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