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


Similar Posts:


Flex :: Generating Preview Of BMP Image?

Aug 26, 2010

I am working on a Media up-loader which uploads images to Server. Before start upload file i want to show small thumbnail of Image.

I used Loader class to load image selected by user & used Canvas to draw image on it.

This works fine with images like jpg & png.

But for bmp file loader class doesn't work.

Is there anyway to load bmp image in Flex & Convert it to BitmapData ??

View 1 Replies

Professional :: Video Preview Thumbnail?

Mar 2, 2011

Using Flash cs5I have a simple swfnothing on the stage except a video (flv) playback component.I dont want it to autostart which i see the paremeter for and have set that to uncheckedBut I would like pick a place in the video to be the thumbnail image for the video that people see instead of just a black box. I dont see how to do that.Is there any way to have them see a thumbnail image in the video player instead of a black box when i dont want the video to autoplay?

View 2 Replies

ActionScript 2.0 :: Thumbnail Menu With Next And Preview Buttons?

May 4, 2005

i have created xml based gallery in flash.. everything is working good... its like portfolio... having lots of jpgs wid thumbnails... thats fine..i have like 23 projects... its like verticle menu wid mask showing only 5 thumbnails on page... i have 2 buttons on bottom of the page prev btn and next btn... ok.. when i click on next button i want to show next 5 thumbnails which will slide up.. and so on... and when i click prev btn i want to slide back previous 5 thumbnails...i have blank mc whose instance name is menu_mc... i have another mc called thumb_mc which will be attached thru actionscript containing thumbnails from xml file which are like 23 small thumbs...

i have tried like this

on menu_mc attached this action script
menu_mc.onLoad = function() {
this._y = this._y;
div = 5
}

[code].....

but its not working..

View 8 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 :: Remove The Loader But Its Content Still Playing I Know That From The Sound Of The Content Was Loaded?

Apr 20, 2009

How to remove a loader and its content using removeChild or any other way, I had removed the loader but its content still playing in the background i know that from the sound of the content.this is the my code for removing:

removeChild(getChildByName("SampleLoader"));

View 9 Replies

ActionScript 2.0 :: Preview With Flash's Html Preview - GetURL Not Working

Oct 20, 2004

I'm having some trouble with getURL (I think). It works fine when I preview with Flash's html preview but it's not working on my server. It's pretty simple. [URL].selected1 is a user-defined variable pointing to a page: ie, when the user selects variable page1 the page to be opened is [URL]. Like I said, it works with Flash's preview, but not on my server(no 404 or any response). Does there seem to be a problem with my code or might I be overlooking a server error? Here's my code:

[Code]...

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 :: Preloading Flashvars - Ensure That All The Content Being Loaded Externally Is Loaded Before The Transition Plays?

Aug 30, 2005

I am in the process of building a site for an Architect... Jamie Fobert Architects (projects) I am useing transitions between the projects and am loading details/text and images externally through flashvars, php and a mySQL database. Within my transitions I have a a preloader on the forst 2 frames the code is as follows (taken from a Voetsjoeba tutorial):

[Code]....

This works pretty well if the content is within the .swf, but when it is loaded externally it doesnt preload it at all. Does anyone know how I can adapt/improve this preloader? or somehow ensure that all the content being loaded externally is loaded before the transition plays?

View 2 Replies

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

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 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

ActionScript 1/2 :: Xml Thumbnail + OnRelease Function On Each Thumbnail?

Oct 11, 2009

Im trying to create via xml and a for() loop a thumbnails wiewer and each thumbnail have a simple onrelease function.....but my probleme is that my 'container' movieClip and 'BT' movieClip dont show when I export the movie...also when i trace()them the output is empty. maybe is because they are inside  x.onLoad(xml){} function ? At the end of the script you can remove // before the trace() function for ckecking in the output panel. here is my code:

xml file: TumbLoader.xml
<?xml version="1.0" encoding="ISO-8859-1"?><slideshow><photos thumbnail="thumbnail/1.jpg" /><photos thumbnail="thumbnail/2.jpg" /><photos thumbnail="thumbnail/3.jpg" /><photos[code]...

View 8 Replies

ActionScript 2.0 :: Publish Preview As Flash VS Publish Preview As Html

Jun 7, 2004

Ive made a movie that add strings from several input text fields to an array. This array is sent from the flash video to php. This is working fine when I preview the movie as Flash. The php script prints the variables as intended.

But when I preview it as html the arrays are all empty...

[AS]
on (release) {
number_of_attr1 = main._currentframe + 1;
suggestions1 = new Array();

[Code].....

View 1 Replies

ActionScript 3.0 :: Get Dimensions Of Loaded Content?

Aug 30, 2009

How can i get the dimensions of the loaded content of a Loader object?[code]...

View 8 Replies

ActionScript 3.0 :: External Swf Could Not Use Loaded Content

Aug 23, 2010

I have main preloader that loading external swf into it. external swf call method load picture from url. when event complete picture does not appear. but if external swf is the main swf it will appear nomally. I tried to use init but it still not working When I debug loader.contentLoaderInfo.content that call from external is gone.

View 1 Replies

ActionScript 2.0 :: Centering Loaded Content?

Oct 28, 2005

I have an index.swf that it's dimensions are 1020x610, now when I load content in a container in the index.swf it will be centered using an onResize stage listener, that works fine but only if the loaded content is 1020x610, I've also used an onEnterFrame that checks if the width and height are !=0 so that way it waits for it to load before centering the content.

What should I do to always keep my content centered. Lets say I want to load a swf that is smaller (ie the 1st frame only contains 1 element that is smaller than the stage dimensions) I'm not sure if I'm explaining this well....

View 6 Replies

ActionScript 3.0 :: Merging Loaded SWF Content?

Jan 6, 2009

I am trying to merge loaded SWF content into one centralized data placeholder. The SWFs will be loaded through a Loader class. From what I know, as soon as the Loader class dispatches Event.COMPLETE, I can have access to the SWF content. What I am trying to merge here are the classes in the SWFs.

Why I need this is because, I am building a game where the character will have equipments for different body parts. Let say the head, body, bottom. I will load Head.swf, Body.Swf, Bottom.swf. After fully loaded, I will access the assets through standardized classNames (e.g. HeadPart1, HeadPart2 using getDefinitionByName(className)).

I can do this if I am getting the content from each individual Loader object - loader.contentLoaderInfo.applicationDomain.getDefi nition(className) but I am guessing if I have many other body parts, I will need more Loader objects.

So I am wondering if there is a way where I can grab all the loaded content from a loaded Loader into a data placeholder? I foresee there might be naming conflicts if I try to merge a Head2.swf inside the data placeholder after Head.swf as they both have parts with same class names. Will there be a way to overwrite an existing asset with same class name?

View 3 Replies

ActionScript 3.0 :: Accessing Loaded Swf Content?

Mar 30, 2010

I'm loading swf file from a server. For some reason i can't access movieclips that are not instantiated on the first frame, more than this - all movieclips that are not instantiated on the first frame and have some animation inside of them, won't stop looping, like there is no stop() action inside, but it is there. And even more than this - everything works fine when i'm using other server. Both servers have crossdomain.xml file that looks the sameI don't get no crossdomain errors and no other warnings.

View 2 Replies

ActionScript 3.0 :: Set UILoader Loaded Content To Position Top?

Nov 25, 2010

I have UILoader that loads images 427x240, then I thought to load an external swf dimensions 427x273. So I resized UILoader to height 273, now the images on load are positioned vertical middle, gap top and bottom, i need this to be absolute Top. How do I set UILoader loaded content to position Top?

View 2 Replies

ActionScript 3.0 :: Scrollbar And Loaded Content Of Various Sizes?

Jun 5, 2009

I'm working on a project that uses a loader to load up a swf, then display the loader in an area using a mask and a scrollbar to scroll through the content. The content in this project will change regularly, including the dimensions of the swf file (vertical dimension only, I'm not worried about horizontal scrollbars with this question).The problem I'm running into is I can't figure out a proper formula to get the scrollbar to position the content at it's bottom when the scrollbar is at the bottom  What I have now is close, but not exact. If you scoll to the bottom, the bottom of the content would scroll up too high, leaving an empty 'blank' space where the content should be. I have an if statement checking for this currently, but this creates a 'dead zone' at the bottom of the scroll bar where the content is already at the bottom, and the scroll bar can continue to scroll down a bit.oes anyone know what I'm doing wrong here in the math to get a good scrolling going, regardless of the size of the content loaded by the loader?Here is what I have so far:

package {  import flash.display.MovieClip; import flash.net.URLRequest;  import flash.events.*; import flash.display.Loader;  import fl.controls.UIScrollBar; import fl.controls.ScrollBar; import

[code].....

View 1 Replies

ActionScript 1/2 :: Get Content Of Dynamically Loaded Movieclip

Nov 18, 2009

After trying to no avail to get the totalframes of a dynamically loaded .swf in AS3 I've regressed to AS2.
 
Now I can add the clip and get the totalframes of the content, no problem.
 
THe problem is I cannot resize the content at all.I have no idea how to target the loaded content.
 
Here's the code I'm using:
var myXML:XML = new XML();
var path:String;

[Code]....

I need to resize the content both for the main holder_mc as well as for the menu elements.

View 5 Replies

ActionScript 3.0 :: Adding Content To A Loaded Movie

Jun 10, 2011

I've got an application which loads anexternal swf, then needs to add content to a specific depth in it. It does this by finding a named placeholder clip and replacing it with a UIComponent, using addChildAt(); This seems to work fine - I have a trace utility that walks back up the display list and it shows my UIComponent right where I expect it, then the parent movie clip, then all the containers up to the stage. At each level the container is a) visible b) 1.0 alpha and c) the size I expect it to be, and from my trace I can see that I have a structure which looks something like this:[code]

All well and good, but if I draw a rectangle on the graphics of the UIComponent (or add an image to it, or do anything else), nothing is visible. I can trace any parameters of the UIComponent, I can use it to make changes to its parent SWF, I can even note that if I draw a rectangle on the UIComponent which is larger than the Loaded SWF, then the SWF changes size to accommodate the new bounds - but I can't see a thing.I was wondering if some security stopped the parent application adding content to the Loaded SWF, or if there was some other issue.

View 1 Replies

ActionScript 3.0 :: Button Not Working Under Loaded Content?

Aug 28, 2011

Plain and simple, I have a button that does not work if it exists on a layer below a loaded SWF. If I drag the button layer up above the layer where the eternal SWF is loading into and publish, the button works fine, yet if the button is below the layer that the clip is loading into it does not work at all, even when no content appears over the button. There is no button at all in the loaded clip that would interfere...

View 5 Replies

ActionScript 2.0 :: Preloader Is Not Displayed Until 90% Of Content Is Loaded

Jun 2, 2010

I've spent hours looking for a solution to why my preloader is not working. No luck. I've found alot of information, and have checked everything I can think of, but I am missing something.

Problem: Preloader is not displayed until 90% of content is loaded.[code]...

Most of the content is created dynamically, so I've had to embed one font type, but I've deselected the Export on Frame 1 option for this font. I still think this might be the issue though.

View 9 Replies

ActionScript 3.0 :: Externally Loaded Swf Content Is Not A MovieClip?

Mar 3, 2011

I have multiple SWFs published with Flash CS5, all of them seemed to work fine and I could load them at runtime from another SWF and access the the loader.content as a MovieCLip and therefore access the children of those SWFs.

But now I've created a new SWF and the loader.content type is .MainTimeline__Preloader__ instead of MovieClip on this particular swf! So I get the reference error 1069 property not found when I load and try to access children in this SWF.

View 4 Replies

ActionScript 3.0 :: Get Height / Width On Loaded Content?

May 2, 2011

I have the following sample code and I'm not quite sure where I'm missing the mark[code]...

Am I just calling the wrong attribute? The over all goal is to find out the size of the SWF that just got loaded and to match it to the size of another MovieClip elsewhere in the code.

View 1 Replies







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