Professional :: Load A Bunch Of External Swfs Into A Tile List?

Nov 19, 2010

I'm trying to load a bunch of external swfs into a tile list. Once the swfs have been loaded I'm adding them to a dataprovider which I then sort and add to the tilelist. Like so:

dp.addItem({label:e.currentTarget.content.getLabel(), path:e.currentTarget.content.getPath(), source:e.currentTarget.content, cost:e.currentTarget.content.getCost(), category:e.currentTarget.content.getCategory()});

It works fine except that the way I'm doing it I have to add a bunch of functions to each swf to know which one is loaded and pass the correct info to the dataprovider.Is there another way to tell which swf has been loaded? Something like this.URLRequest. If I could tell something about it I could compare that to my original xml and find out all the other information I need for my dataprovider.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Timeout - Load A Bunch Of External Images And Then Print Them All In The Same PrintJob

Apr 21, 2009

I'm trying to load a bunch of external images, and then print them all in the same PrintJob. For testing i tried 40 images at around 599kb. I load all images using Loaders and check that all images are fully loaded (by Event.INIT) and put the images in separate Sprites.When this is done i start a new PrintJob, loop throug all my images and add them to the PrintJob, and then PrintJob.send(); At least this is what i want to do. What happens is this:
 
[Code]....

View 8 Replies

ActionScript 2.0 :: Load External File Into Movieclip Than Tile?

Apr 7, 2011

I'm loading an external logo (.swf) into a movieclip. The user would actually select what logo to load from a list. After loading the selected logo into the empty movieclip, the user can than apply certain changes such as changing the logo colors, the size, the rotation and the position of the logo over a certain product.What I want to do is to expand on this by allowing the user to select whether they want the logo tiled across the product

View 3 Replies

ActionScript 3.0 :: External Swfs Load - Remove The Swfs And Sound After A New Button Is Clicked

Nov 13, 2010

I am loading eight external swfs by way of eight buttons with actionscript to remove the swfs and sound after a new button is clicked. This works fine except that as soon as you get to the frame where the actionscript is all the swfs load at one time on top of each other. I don't want any to load until the button is clicked for the right one. MouseEvent listener works but only after all the swfs have loaded. How do I get the swfs to load only when the buttons are clicked. I can't figure out what I am doing wrong.

[Code]...

View 5 Replies

ActionScript 3.0 :: External Swfs Load In Different Places On 2nd Load

Oct 19, 2009

I'm loading (and unloading) external swfs into a holder in my main document. However, they seem to load perfectly the first time, but after that, they load at a different x and y. I've seen this happen before in someone else's file, but I'm not sure what the solution is.

This is the bare bones of it:

Code:

sceneHolder.x=0;
sceneHolder.y=0;
addChild(sceneHolder);

[Code].....

View 1 Replies

ActionScript 3.0 :: Load External Swfs Which Load Videos

Apr 11, 2009

Okay so I am trying to load external swfs which load videos dynamically.

I can load the swfs into the parent fla fine (if I remove all the code and just place a circle or something on the stage of the swf), and the swfs are also loading their respective videos correctly. But when I try to load the external swfs, if they contain any casting related code in them, I'm getting an error

[AS]TypeError: Error #1009: Cannot access a property or method of a null object reference.
at swf1_fla::MainTimeline/frame1()[/AS]

Is there some specific method to casting within external swfs?

My code for loading the videos is this:

[AS]var vc:NetConnection = new NetConnection();
vc.connect(null);
var vs:NetStream = new NetStream(vc);

[Code].....

View 1 Replies

Flex :: Put Headers In Tile List?

Apr 18, 2011

I dont want to make hboxes with labels and all for static headers in tile list... IS there a shortway to put column headers in a tile list in flex easily?

View 1 Replies

Flex :: How To Add Image In Tile List

Dec 14, 2011

I am using Flex Builder 3.0 and i want to add image in tile list dynamically then how its possible.Images are stored in Images folder of src. and my array is similar like that.

private var arrImage:Array = [
{source:"Images/1.png",tooltip:"1"},
{source:"Images/2.png",tooltip:"2"},

[code].....

View 2 Replies

ActionScript 3.0 :: Get The Y Value Of Each Item In The Tile List

Feb 26, 2009

Not sure if you guys remember flash paper or not, but basically I am trying to clone it in AS3. The layout anyway, not the actual conversion. I have my PDF pages and SWF format and I have them loading into a tile list. I want to get the Y value of each item in the tile list so I can make a page browser.

View 2 Replies

ActionScript 3.0 :: Using Tile List And AreaText Component?

Apr 7, 2009

I am using a tile list component and an areatext component. When I click on the graphic in the list a description of the graphic comes up in the text area. No problems so far. However I want to view a large image of the graphic at the same time as the text. I will attach one graphic so you can see how they show up. I will attach the .swf file also. You can see in the middle of the two areas (where the green square is) this is where I want the larger graphic to appear.

Here is the script
majorworksthumb_tl.addEventListener(Event.CHANGE, majorworksthumbClicked)
function majorworksthumbClicked(event:Event):void {
majorwork_ta.text = event.target.selectedItem.data;
majorworks_mc.MovieClip = event.target.selectedItem.MovieClip;}
[Code] .....

Attachments:
BisonCoopMain.jpg (40.1 K)
majorworks2.swf (224.8 K)

View 6 Replies

ActionScript 1/2 :: Load External SWFs Through XML

Feb 15, 2010

I am using this thumbnail gallery attached but instead of loading images through the xml I want to load external SWF'S. I also want to be able to control each SWF loaded in individually apparently in order to do that I need to give the container different instance names..however I don't know how to extend the code inorder to achieve this..

View 7 Replies

ActionScript 3.0 :: Cannot Get External .swfs To Load

Apr 29, 2010

Im trying to load an external .swf, from one of those lazy-do-it-for-you photo gallery creators. Well, it just simply refuses to work
 
Ive tried using AS3 code straight off adobes site and i get this:

[CODE]
var request:URLRequest = new URLRequest("4melogo.jpg");
var loader:Loader = new Loader()
loader.load(request);

[Code]....

View 12 Replies

ActionScript 2.0 :: Using XML To Load External SWFs?

Jul 6, 2010

I've got this down using ActionScript 3, but I am in over my head trying to revert back to ActionScript 2.

I have a main swf that acts as a shell and calls up external swfs via XML upon a button click.

I've read a number of tutorials over the past few hours, and have learned the basics of how to trace the XML information; however, I'm struggling getting the content to appear on stage.

View 3 Replies

ActionScript 3.0 :: External SWFs Don't Load

Aug 4, 2010

I am working on a an automatic slideshow that's also clickable with buttons...I got the code to work fine on my sample file, but now that I brought it over to the actual file I need to make a slideshow out of - the external SWFs don't load all the way! The first default one loads ok - and the rest remain at about 80% Alpha...

//Import classes for easier use
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;

[code]...

View 1 Replies

Actionscript 3.0 :: External SWFs Won't Load

Jul 16, 2009

I'm loading external swfs into my main swf and they should just be playing automatically. When I test in Flash, the system works. Upon loading the swf into an HTML page, the system seems to shut down. It seems liike the exteranl swfs aren't even loading. This is what I've got so far.

var clips:Array = ["amerishelf2.swf", "bedHardware.swf"];
var index:int = 0;
var thisLoader:Loader = new Loader();
thisLoader.contentLoaderInfo.addEventListener(Event.INIT, doneLoading);

[code]....

View 3 Replies

ActionScript 3.0 :: External SWFs Don't Load All The Way

Aug 4, 2010

I am working on a an automatic slideshow that's also clickable with buttons...I got the code to work fine on my sample file, but now that I brought it over to the actual file I need to make a slideshow out of - the external SWFs don't load all the way! The first default one loads ok - and the rest remain at about 80% Alpha... Does anyone have any idea what may be the prob lem??

//Import classes for easier use
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;

[code].....

View 1 Replies

ActionScript 3.0 :: Use A URL Load To Load A Bunch Of Plot Points From An Address

Jul 27, 2009

So I have this flash app I'm making that uses a URL load to load a bunch of plot points from an address. When the loader finishes, it send the data to a plotter function. the plotter function clears the graphics in a shape called graphLine. It then draws a line from one plot point to another using the lineTo function. Basically every 3 seconds it makes this request and redraws the screen and updates the value of a textfield to the current y value. In flex builder 3, it works great in debug mode. The screen updates just fine. However, when I make the release build and test it out in a browser, it loads the data fine, but will not draw it until I stop the graphing process. Any thoughts on this one? Here's the code for the graphing function

[Code]...

View 2 Replies

ActionScript 3.0 :: Linking Tile List Component Thumbnails?

Apr 12, 2009

I have a Tile List Component full of pictures,when a picture is clicked i want it to gotoandstop at the frame where I made the picture fill the page. How do I do that if I can't insert an addeventlistener for any of my thumbnails in the component? how do I make the thumbnails link to Urls and load UIs? Heres my basic code:
 
thumbnails_tl.addItem({source:"website-01.png"});
thumbnails_tl.addItem({source:"website-02.png"});
thumbnails_tl.addItem({source:"website-03.png"});

[Code].....

View 3 Replies

ActionScript 3.0 :: Load External SWFs (previous, Next)?

Mar 4, 2010

I am delving into AS3 and need a little bit of help. I am building an application that allows users to view content by clicking "next" and "previous" with a visual cue telling the user what slide they have loaded (slide 1 of 15, slide 2 of 15 etc etc) but I am really struggling with it. I want to load each slide as an external SWF because they are heavy.

I found this code online which loads swfs when you hit a "next button" but I have no idea how to get it to work to load swfs when you click a "previous button" and how to add the slide reference:

[Code]...

View 1 Replies

ActionScript 3.0 :: Load Multiple External Swfs At Once/

Jul 26, 2011

I want to load the first swf, if the load is complete, load the second swf, etc. This seems logical but I get a compile error: Scene 1, Layer 'scripts', Frame 1, Line 24 1120: Access of undefined property swfLoader3.[code]...

View 3 Replies

ActionScript 3.0 :: XML Menu To Load External SWFs?

Sep 25, 2009

currently, I have a XML menu. I followed the tutorial from here: [URL]. It needs more work and tweaking, but that's for later. The menu.swf is from an external SWF and it's loaded into my index.swf using the loader.My question is how can I have the menu load different external SWFs, in other words, different part of the website. Do I create another loader in the index.swf for loading the website's content? Can I use the existing XML file for the loading the SWFs?

Here are the codes I have so far:

Index.swf
ActionScript Code:
import flash.display.*;
import flash.net.URLRequest;

[code]....

View 3 Replies

ActionScript 2.0 :: Load And Unload External Swfs?

Oct 2, 2007

I have a small problem,(among many others...) i am loading an external swf using:

this.onRelease = function(){
loadMovieNum ("contentLondon.swf",50)
}

So the ext SWF loads on top of my main SWF, but i have other buttons that will load other ext SWF's. What i would like to do is when an ext SWF is loaded and the user choses to click another link from the main SWF, i would like to have the already loaded one "unload" so that the new one can load in place of it

View 3 Replies

ActionScript 2.0 :: Load Order In External Swfs

Nov 13, 2008

I was wondering if there was a way to specify the order in which I load in external swfs. I have my main swf which loads in music, navigation and content, they all load at the same time, say i wanted to load in the music swf after the content has finished loading, how would i do that?

View 1 Replies

ActionScript 3.0 :: Have The Menu Load Different External SWFs?

Sep 28, 2009

currently, I have a XML menu. I followed the tutorial from here: http://tutorials.flashmymind.com/200...-menu-via-xml/. It needs more work and tweaking, but that's for later. The menu.swf is from an external SWF and it's loaded into my index.swf using the loader.

how can I have the menu load different external SWFs, in other words, different part of the website. Do I create another loader in the index.swf for loading the website's content? Can I use the existing XML file for the loading the SWFs?Here are the codes I have so far:

Index.swf

Code:
import flash.display.*;
import flash.net.URLRequest;
var menuldr:Loader = new Loader();

[code]....

View 8 Replies

ActionScript 2.0 :: Transitions Between External SWFs - Looks Crap As The Size Of External SWFs Grow?

Sep 2, 2006

[URL]regarding this tutorial I started my site [URL] to get some trasition effects but im getting somewhat different since the external SWFs take time to load. isn't it better to create "intro and outro" on the same time line instead of loading external SWFs bcos once the movie loaded as a whole will lead to smooth and contineous transitions.

View 1 Replies

ActionScript 3.0 :: Trace The Movie Clips Inside The Tile List?

Sep 8, 2010

I want to trace the name of the movie clips(with instance name as mc1,mc2,...,mc5) when I click the images in the Tile List. What I want is that when I click image 4 in the Tile List, output should be "mc4". I'm trying the following code but I'm not getting the correct output.

import flash.events.MouseEvent;import flash.events.Event;import fl.data.DataProvider;import flash.display.*;import fl.controls.TileList;
var aThumbs:Array = new Array(mc1,mc2,mc3,mc4,mc5);

[code].....

View 5 Replies

Flex :: Horizontal Tile List To Display Image Gallery

Dec 5, 2009

I am using a horizontal tilelist in flex to display an image gallery with only one item in horiz. tilelist being shown at a time. I have next and previous buttons on both sides. The problem is I want to display a particular item/image in that list when user clicks on a thumb image from another thumbimages tilelist at bottom. I used someTilelist.selectedIndex property but it just selects that particular index in list, it does not show that particular item/image. I want the list to show that particular image, not just select it. Please take note that the horiz. tilelist shows only one image at time.

View 1 Replies

ActionScript 2.0 :: Load External Swfs With Main Swf Preloader

Sep 3, 2009

My external swfs are taking 8-10 secs gap in loading inside main swf, that's why i want to load my external swfs with dynamic content at the same time when my main swf loads.

Code of preloader

Code on 1st frame:
onClipEvent (load) {
total = _root.getBytesTotal();
}

[Code].....

View 3 Replies

ActionScript 3.0 :: Use One Button To Load And Unload External Swfs?

Jun 24, 2011

How can I use one Button to load and unload a sequence of external swfs, Like a Next Button and Previous Button?

View 1 Replies

ActionScript 3.0 :: Using One Button To Load And Unload External Swfs ?

Jun 24, 2011

How can I use one Button to load and unload a sequence of external swfs, Like a Next Button and Previous Button?

View 5 Replies







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