ActionScript 2.0 :: Dynamically Load Txt Into A Swf?
Oct 15, 2003i know you can dynamically load txt into a swf - and i know you can use a css to affect text in a dynamic text field.
View 1 Repliesi know you can dynamically load txt into a swf - and i know you can use a css to affect text in a dynamic text field.
View 1 RepliesIm currently making a flash website. and trying to make it as light as possible.so decided to load images dynamically.Im using UILoaders.I drag the UILoader from components into the main timeline and set the source as 1.jpg, because the image is in the same folder as the .fla file.and scale - false
Tested the movie but nothing shows up. i guess i need some coding? but i dont know where to add the codes. on the same frame? or in frame 1? i also need the image to fade-in.the end result im looking for is, as i click a button. 3 images show up at the same time, fading in.
I need to find or develop an app that will load in a pdf file from the web, allow a user to make simple annotations and save these annotations back to a webserver I'm curently using the zurb javascript annotator with the pdf rendered to a .jpg with imagemagick. Just now, I was told that they need the ability to zoom in to 3000% or more on some files. clearly rendering to a jpg would create gigantic files.
So I need to create either a java app or a flash app that will load the original pdf, allow the user to mark it up, and save either the annotated pdf, or the annotations themselves back to the webapp. This also needs to live IN the web browser, launching acrobat reader, or an air app that must be downloaded and installed are not going to work here.
I would like to have a SWC file with many bitmaps stored in it, which can the be called and loaded dynamically when they are needed.The SWC has been made, with the Bitmaps set to export.In my main class I am running into trouble trying to access these classes.Different sources are offering different advice, could someone advise the best way to gain access to these classes within the SWC, and the best way to access the SWC from within my file.URL]they offer a solution which involves having to statically name the classes at runtime (these arent exported bitmapdata classes but same idea)this second link is a person describing a solution to the problem described in the first link. His solution involves what appear to be either flex or command line compiler directives
View 2 RepliesI'm developing a website for school and in an effort to make it eaier to update i'm attempting to make it as dynamic as possible. So far I've been able to load in MC's dynamically. These MC's banners are made up of smaller MC's themselves. When the mouse goes over one the banners, I want to access one of it's child MC's. This is what I have so far:
//the banners to be loaded are set in the library to export with a class matching their respective names
//when page loads...
[code].....
I've been playing around with a demo version of a PHP Flv streaming player from rich media project. I've been able to setup my player to play flv videos dynamically by passing an id from the database to the swf file (works great).
However I cannot for the life of me work out how images are loaded dynamically. The player uses the filename and adds .jpg as the extension to load the image file when the player starts. Problem is my image name will be different to the file and so I need to pass a variable in the same way I am passing a variable for the movie name.
// skinID=1// Instance names and linkage identifiers were set with '_1' extension//myPlayer.skinID=1;myPlayer.skinPlayer=true;
var passed:String = video;myPlayer.movieName = video;// Init isFullScreen and zoom varisFullScreen=false;zoom=1;
// Set scaleMode to noScale and align top leftStage.align = "TL";Stage.scaleMode = "noScale";
[code]....
i want to dynamically select an image from images have and load in the application.
View 2 Repliesi managed to load an svg tiny file on flashlite 3.0. Is there any way to load an svg file dynamically through as2? (i suppose that as long as it is loaded in flashlite there is also a way to load it by as2).
View 3 Repliesvery new to the actionscript can anyone
View 2 RepliesI'm building a slide-show like application in Flex and I'm trying to load images dynamically. The images are in a folder outside the application folder. This is the folder structure:
/Bildvisare-debug/
Bildvisare.html
Bildvisare.swf
/Images/
[Code]....
The problem is that the images never show up, I only get the icon for a missing image.
Edit to add: I've tried this both with and without the use-network flag set to false when compiling.
I have 20 different flash files that i need to play randomly when a user enters a zip code. I am done with the project, but the way I have done it is I think could have been done a lot better. I have 20 different aspx files that have the flash object. I redirect users to different aspx files based on the random number using Random class. Is there a way to just have one aspx file where the param value and data could be passed using a variable. That way, its easier to maintain and i don't have to go to 20 different aspx files to update anything. Here is what the flash object looks like.
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="960" height="952"
id="HOT" align="middle">
<param name="movie" value="../FlashFiles/FirstTime/HOT_00.swf" />
<param name="quality" value="high" />
[code]....
How can i load a swfloader dynamically
What i want is I have an swfloader in a canvas
on my clear all buton i remove all children of canvas(removeallchildren)
so i loose my swfloader also
So on next button click(load button)i need to get that swfloader back.
i try create a code, which can load to stage Movie Clips(which included pages of my website)
I've created code which load Movie Clips on stage,Listing of this code:
ActionScript Code:
var currentPage:MovieClip = index_mc;
var indexPage: pageIndex =new pageIndex();
[code].....
I'm thinking of a setup similar to a photogallery... when you click a thumbnail the picture fades in, when you click another thumbnail the picture fades out and the new one fades in. I can't figure out how to put something like that together in as3. last time i coded was back in flashMX.[code]...
View 4 RepliesI'm doing an xml Slideshow. I have to loading 3 images by xml.My XML is
Code:
<?xml version="1.0" encoding="utf-8"?>
<immagini>
[code]....
I'm building a review system where the client can review the animated clips and give their feedback right there.I'm looking for a way to load all SWF clips from a folder on the same directory level as the main SWF clip, for example:
/Review/main.swf
/Review/clips/happy.swf
/Review/clips/sad.swf
[code]......
is there any way I can dynamically load a mp3 and have a loading bar? or preloader?
View 6 RepliesI'm having a slight problem with loading backgrounds dynamically. When the index page loads i need one bg.swf to load dynamically, but when the user clicks another background button, a new background will replace the default bg.swf that loaded automatically when the page opened. I understand to load the new bg's into an empty clip. I just need to know how to automatically load a .swf once the page opens. Pretty basic,
View 1 RepliesI'm trying to load sound dynamically. I have 4 loops (mp3) and I want them to go like this:
loop1 - loop2 -loop1 - loop3 - loop1 - loop4 and repeat...
Is this possible? I've tried onSoundComplete but how will I get it to start all over?
Can you load a vector file such as .svg or .eps dynamically? I know you can import a .jpg or a .swf file, but those same methods dont seem to work when it comes to vector
View 4 RepliesI want to do something like this:
Code:
eval("var "+ class_iname +" = new"+class_name+"();");
But since this is not possible, how would I dynamically load different classes?
Should I use the loader class? This example does, but it requires pre compiling of the class in question + I am using AIR.: [URL]
I have to load .png images dynamically, but cant make it work.
When I change the image to a .jpg, it works fine.
Theres no error message, just doesn�t load. How do I do it?
I'm having a slight problem with loading backgrounds dynamically. When the index page loads i need one bg.swf to load dynamically, but when the user clicks another background button, a new background will replace the default bg.swf that loaded automatically when the page opened. I understand to load the new bg's into an empty clip. I just need to know how to automatically load a .swf once the page opens.
View 1 RepliesI would like to load text dynamically form my server into my flash movie. That I know how to do. I have 2 frames on 1 layer.
[Code]...
But when I try the same thing within a movie clip, I have trouble getting the text to display. The text box pops up but no text from my content.txt file.
I am looking for a way to dynamically load a theme in flash. I want to change the look of the swf based on the passed url. I can get the data from the url I just don't know if there is an easy way to dynamically change the theme other than just creating several swf files and choosing which one to load.
View 1 RepliesI want to display photos and load them dynamically.What I have this much done and normally I would just manually add the URL to each button (boring and tedious) and I am learning to import variables and images and all of that...I want to be able to click the thumb to see the actual image:
Main Stage:
code:
onClipEvent(load){
_xscale=1000;
[code]...
i am trying to dynamically load some content using actionscript into my movie but i already have content on standard layers within the movie. so everytime i start the movie and the dynamic content is loaded it loads it all on top of the content already displayed on the normal layers and i want it to load underneath the content that i have already put there myself.
for example, i have made my menu using flash and have it on a layer in the main MC, when the movie loads it loads the following script which loads the content pages of the site. but it loads it ontop of the menu therefore you cannot see the menu to view different content as it is being covered by the content pages. i would like it to load below the menu so that you can see the menu and choose what content you are to view.
this is the code i use to load the content:
Code:
menu = ["home", "about", "treatments", "products", "weddings", "testimonials"];
this.createEmptyMovieClip("content", 1000);
this.attachMovie("sectionBackground", "mask", 1001);
mask._y = content._y=-102.6;
[code]...
i have tried changing the levels values but it has no effect.
I have a pre-made solution I purchased. But it only works when it's variables are all loaded from a #include .txt. Here's a sample file: [URL] It's all in the form of an include rather than a loadVars. Is there anyway to load this file with a loadVars?
View 28 RepliesTrying to load several images to timeline keyframes,managed to load one, how to load several.[code]...
View 12 RepliesI was wondering if someone found out a way to load dynamically video formats other than "FLA" like "AVI", and the same question about audio files like "WMA".I want to support it so users in my site could upload these formats and watch them in the player I made, therefore the solution of putting them first in "swf" won't help.
View 2 Replies