I want to dynamically load a series of SWF's to play one after another without the user having to click any buttons. I've build a nice shiny preloader that will allow each movie to load up, but I can't seem to figure out how to make the next step. I've tried creating "placeholder" instances, and linking them but as I said, I just don't have enough AS experience to do it right. Most of the time when I'm working in Flash I'm under a time crunch and I do everything through animation.
Essentially, I've got a MC container that's created dynamically based off an XML file (basically for every <title></title> I've got, it makes a new "card"). Now within the context of each <title></title> grouping I've got <imgs></imgs> in which I specify the path to images that are related.All of that works perfectly, save for the external jpg files actually appearing on the stage. The MC I add them to does, but the external image doesn't.My problem is- I can't add the external images until they're completely loaded (or so it appears). The thumbnail BG I use is blank. So I know for a fact that the thumbnail BG isn't occluding the loaded thumbnails.
I have started putting together a flash based website to present my works. I am dynamically loading thumbnails and the larger companions using an XML file. Everything seems to work fine on my comp but when I upload it to my host sever the larger images do not want to load and on occasion a page of thumbnails doesnt want to load. My address is [URL]. Also the code I am using only places one image atop another, so when I click on a thumbnail it will place the larger image on top of the last it does not take the previous one away. which can be a problem if one image is smaller than the last. or if I wanted to load movie clips.
Here is the AS of one page. //XML Trails stuff //var to hold Tween; var fadeTweenPhotoP1:Tween // Creating image txtfield var imageTextPhotoP1:TextField = new TextField(); // Instance of loader class var imageLoaderPhotoP1:Loader; [Code] ....
Imagine a database with a table of some items. Each item has 5 images inside and some other fields. In flash I have a page that duplicates all the items and shows them by thumbnails and a view button for each item. The movieclip that does this is for convenience movieclipA. When I press on the view button of an instance of movieclipA a duplicated movieclip takes place that has all the values of the specific item except of the images.
This movieclip - movieclipB duplicates for each item. This works perfect. I also have another movieclip movieclipC The movieclipB is a slideshow and loads the 5 images for an item by a self generated xml file that a php functions produces, depending on the querystring that is the idstring in my actionscript. I mean that inside the movieclipB I do
So far the movieclipB works very well standalone...and this means that if I assign the querystring value inside the movieclip (for example idstring=1 and then call the function as above, the slideshow works verywell. How to pass for each item a different idstring into movieclipB and where exactly to put the movieclipB so it can be duplicated with movieclipA and take the correct idstring to do its job. Everything I tried to pass the idstring failed.
In the flash page among other code that I don't believe it's important, I have the following actionscript in the action layer Main page frame 1: PHP Code: total = showPost.total; var id:Array = new Array(); var headline:Array = new Array(); var details:Array = new Array(); var thumbnail:Array = new Array(); showPost = new LoadVars(); [Code] .....
VisitorsDetailsClip_mc is the movieclipB I mentioned above. MovieclipA (the one with the thumbnail) and movieclipB are placed on the stage of the main flash page.
of a complex question to me, but it's coming from an absolute beginner and it might be considered a stupid one, that's why I posted here...I've kind of been dropped in the deep end with this task and I can't get it right... I have a company's organisational chart in flash where it loads in each person's name dynamically for their department and when you click on it it brings up their CV information such as name, qualifications etc. This is loaded into a dynamic text box. I can test it locally with an xml file and then switch back to the online version.The local version I check by switching to "strXMLpath = "organisation.xml";" where things are laid out as follows:
How to add a child to the stage dynamically? I can get a child to add to the stage but not using dynamic variables. Is it possible? Example: var firstRoundWinner:String = "Redsquare"; var mc:MovieClip = new firstRoundWinner(); // want it to say = new RedsquareaddChild(mc); With Redsquare as one of my movieclips and the linkage is working. I can add it if I hard code it. But I want to load the variable dynamically through xml.
It's possible to load dinamically gif animation to Flash? I tried but only loads the 1st frame and was wondering if I'm doing something wromg or can't be done.
I am trying to load dynamic images in order without all of them attempting to load at once....I have an array of images that I loop through depending on the gallery that will load up....but when i loop through the images all of them try to load.What i need to happen is somewhere in the
I can't get to load a movieClip dynamically.I have this code:[code]Also, I exported the movieClip to ActionScript with the name of myButton..When I test the movie- there're no errors, but there's nothing on the stage.
I'm trying to load Text into my file, and i have it all set up i'm just not seeing anything loaded, i've been through tones of tutorials but i can't work out why my text isnt loading:
Script: myData = new LoadVars();myData.onLoad = function() {myText = this.myVariable;};myData.load("myText.txt");
Is it possible to dynamically load vector files, in this case .ai files in Actionscript 3? You can import them to the stage, but I want to do this dynamically, is there a way to do this?
So i decided to implement some themes in my AIR app. I have converted my CSS files into SWF files, removed the Style linkage from my main file. Based on the user preferences stored in a file, I decide which theme to use. i.e; load the SWF file using StyleManager class.
I made my application window invisible, added a StyleEvent.COMPLETE event listener for the IEventDispatcher object returned by StyleManager.loadStyleDeclarations method. After the StyleEvent.COMPLETE occurs, I made my main window visible.
The problem i have now is, for a few seconds, i can see white canvases and all my components without any styles before using the style selected. I want to know if my approach is correct or do I need to make any changes to implement this properly?
I have 30 swf files in a directory in my project named swf1.swf through swf30.swf. I need to load 10 randomly selected swf's without repeating any into 10 placeholders named myclip0 to myclip9.
my problem is I can not access the placeholders dynamically.
Code:
// random numbers that dont repeat from 1-30 var numbers:Array = []; var total:Number = 30;
I have built an mp3 player, and when I run it locally on tomcat it works fine. Basically it gets the name of an mp3 from a menu list and loads the mp3 into a sound object using a hardcoded path for the url i.e: "C:/Jakarta/jakarta-tomcat-4.x.x/........." When I try to do this on the server, it is able to populate menu list ok (makes a request to a servlet for an xml response the returns the labels and values for the song titles). The sound does not play though. It appears to be loading, but it does not play. I think that it has to do with the url that I am using. loading mp3 dynamically on tomcat?
I 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 created a flash web site where I'm dynamically loading all the .swf files into one. I'm using Flash 8, Actionscript 2, Flash Player 8. The goal was to break up the file size of the project and load the .swf files via four buttons 'HOME' 'PEOPLE' 'RESEARCH' 'PUBLICATIONS' repectively. I was able to do this using the following code for the buttons.
button_name.onRelease = function () { createEmptyMovieClip("container", 1); loadMovie("people.swf", "container");
ok, here's the deal. We are creating an ecard that will be customized by the sender, and sent to soldiers in Iraq. There are about 5 different things that the sender can customize, as well as write a message. The goal is to have their choices sent to a database and then inserting those variables when the receiver watches the movie.Now, instead of creating possibly thousands of XML files (one for each sender), we decided it would be better to just generate the XML on the fly from the info in the db. But my question is, how do I handle loading that XML? Since this won't just be a static page on the server, I'm not sure how to go about it. I'm wondering if you can use variables when loading XML, for example:
Code:my_xml.load("senderData.xml?user=LyndaSmith");Basically, how can i create an XML file on the fly with the values from the DB, that can then be loaded into Flash?I have virtually no experience with db's, so this is the method I came up with because I do have some experience with XML. I have a developer who will actually insert the values into the database with ColdFusion, and he can also generate the XML, I just need to be able to load the dynamic XML in flash when the receiver watches the card.
I've tried to loadClip an animated GIF only find the first frame being displayed.
How should I go about dynamically loading an animated GIF? I'm working on a tile based game (editor right now) and would like to have some tiles to be animated to add some flare.
I recently did a site for a spanish language online magazine where the text is loaded dynamically. My problem isn't actually loading the .txt . The thing is that spanish-language punctuations like �, �, �, �, � and � get truncated. The dynamic textbox has the font embedded, and the font I'm using has the vowel and � punctuations that get truncated.How may I correct this???? I've tried everything!!! I had to get rid of the punctuations, but I HAVE to include them because of the grammatical and syntax problems not having them makes.
I'm working on a project that requires me to load variables into my movie dynamically.I've gotten to the point where I get the variables loaded into flash. But then I cannot use them dynamically once inside flash. I understand code pretty well But I am relatively new to actionscript. The variables have to be used dynamically because I'll never know how many variables there will be. Could be 1 could be zero, could even be 1000.So say my loaded variable var.txt had this line in it.
As part of the subtitle work I'm doing on our player, I've built a little system that lets people load fonts during runtime in order to keep the player file size down as much as possible.It's been working great locally, but for some reason it is failing on a remote server.I *think* the problem may be related to the ApplicationDomain, but I'm not so sure.I'm thinking this because I have a wrapper .swf which loads the player .swf into a separate application domain (to resolve an issue with shared classes between the two swfs). When I'm running locally, I'm testing the player in the IDE without the wrapper (so it's all one domain), but remotely it needs the wrapper (separate domains).Here's the code that loads the font(s), in the player .swf:
Code: // settings.basepath_fonts and font.font_url are determined prior var fontLoader:Loader = new Loader();
I am currently struggling big time with whole process of dynamic font loading. I created several swf's. Each swf has its own font type with different styles. I have 3 swfs:1. arial: 4 fontclasses, regular, bold, italic, boldItalic2. verdana: 3 fontclasses, regular, bold, italic3. tahoma: 2 fontclasses, regular, boldIn the first frame I have "Font.registerFont(classname);" for all available font classes and I also have a dynamic textfield on the stage for each class with the specific font selected.So I am loading these swf's in my main project. For the Tahoma swf all works well, I can switch between "regular" and "bold". For Arial however only "regular" works well. When choosing the bold version the textfield gooes all blank and italic appears as regular. I doubled check the properties of the font classes of Arial, they all seems ok.
I have a question about it 1.Does it use less memory than streaming it or using it as an event?2.How is it done? my music in my library has these actionscript links "song1" "song2" etc...
When you click each navigation button it slides to each section of pictures, each picture has an invisible button on top of it and each invisible button has its own individual instance name. When you click the picture (invisible button) it should load a seperate external swf into another movie clip I have set up. However because I have about 216 pictures (and hence 216 swfs) I dont want to have to make add a loadmovie on each button, that would get very repetitive and would increase the file size.
SO Im trying to be a smart coder here and do it dynamically. I KNOW this is possible. I want the swf to load based on the instance name of the button. I have seen this done with text files before using the _name command and it worked marvelously using loadvars so im just trying to do it using loadmovie instead.Have a look at my code.
//====================================== //========================Dynamic Movie load //this movie initializes 2 prototypes then assigns the prototypes to each button
Im having trouble loading text dynamically into a "masked" movie...I followed two tutorials to do put this together...this one for dynamically loading text: http:[url].....
and this for the preloader: http:[url].....I was able to load external movies correctly, BUT each of those movies have dynamic text content. I followed that external data tut to do it in each external movie...when i played that external movie by itself, the text worked..BUT when i loaded the external movie into the container movie -- the text did not show up. It only works when i unmask that content layer.
how can i make the text show up when the content layer is masked. (it needs to be masked for the effects of each external movie that is loaded into the container to work right)