ActionScript 3.0 :: Each Xml Text Load Specific Swf
Aug 28, 2010
I have created a dynamic textfield which loads several text nodes from an xml file by using a for loop. How can I set each text node to load a specific swf? Does the eventListener need to be applied on the whole textfield or is it possible to add it depending on which xml text node is clicked?
Basically once my animation loads I want to pull in an external SWF at a specific frame, basically like the "home page" swf that will display first. Underneath that I will have "About Us, Contact, etc..." and those will each load an external SWF into my movie clip. My movieclip right now is called mcHolder. Here is the code I am currently using for the buttons:
Code: //About Us Button function test2(evt:Event):void{
I 'm trying to make it so an image will scroll with a specific line of text in a text field. I know that using delta of the scrollEvent will give me direction but everytime i try to increment and decrement the y value of the image the image doesn't follow the line of text perfectly it tends to "crawl" if you will.
Attachment 54101my problem is in bitmap explained:1. after loading external text into dynamic text field,2. how to call/make visible "button over text" on the Scene by pointing a mouse over specific word in loaded external text?3. javascript, html, actionscript (asfunction, variable)
I'm currently trying to work out a method to highlight specific areas of text within a dynamic text field at runtime. The method I've been toying with so far has been the use of CSS highlighting, but have not seemed to have any luck thusfar. What I'm attempting to do is to illustrate, to students, sections within a passage of text pertaining to correct methods of source referencing (source in terms of bibilographical references), and so am essentially trying to change the background colour of sections of text specified at runtime.Here's some code I've thrown together to test the CSS theory:
PHP Code: var highlightstyle = 'span.highlight { background-color:yellow }';var txt = '<p><span class="highlight">highlighted text</span> no highlighted text<span class="highl
The desired affect is simple: I have a single button... with each click I want it to load text into a dynamic text field and load a corresponding picture or movieclip.There are only three unique text/image combinations- after its displayed the third, with the next click I want it to just start over. All the text functions perfectly with each click.
The problem is:I use "createEmptyMovieClip" then use the resulting clip as a loader clip.. With the first click I want a movieclip from the library to load, so I use the "attachMovie" method- it displays the first library fine.With the next click I want to load an external swf- so I call the "loadMovie" method of the loaderclip... The external swf loads just fine replacing the first library clip.The third clip is where I have problems... now I want to load another library item into the loaderclip... so I tried using the attachMovie method again but the external swf remains static... then with the next click, I discover the first library item no longer loads and the external swf remains still playing- it's like once it's been loaded into the loaderclip it cant be moved...
So I tried adding the "unloadMovie" method in the code for the third click.. it successfully removed the swf... but the next line of code immediately after the unload statement, doesn't work. The line calls the attachMovie method for the loaderclip... but the library item doesnt load... Oddly enough, with the next click, the first library item now does load as if everything's fine... It seems like you cant use the unloadMovie and attachMovie on the same executing code? if that makes any sense... the basic idea was that if I couldnt get the attachmovie method to replace the loaded external swf, then I would use the unload method to remove it, then have code immediately after, to then execute the attachMovie method... but it still doesnt load the library clip. and I know it's not a type-o, because when I comment out the loadMovie and unloadMovie statements, it loads both the library items perfectly ? The code is below
var increment:Number = 1; var verbiage1:String = "Hello World1"; var verbiage2:String = "Hello World2";[code].............
Can I load a swf to a specific keyframe on browser refresh or if sent to another page on the site?Each page will have the same .swf header and I'd like to highlight or animate the header based on the new html page selected.
I have a guestion about preloaders. Every preloader that is available on the web loads the entire .SWF.But I want the preloader to load a specific mc. So that the .SWF will run as soon as that specific mc is loaded.
in addition: Is it possible to have an mc in the .SWF that will only load when the user pushes a button?
I have an input text box, and a data.txt file containing data:[code]And I want, when i input 32, to display in two dynamic text boxes: "Ana" and "L". hope there is an easy way without using php and complex databases.
I'm trying to load an SWF file into antother SWF file.But I dont have a lot of experince with flash!I want the SWF file to load in the top right corner!
Is there a way to use an loadMovieNum code at the beginning of a frame and make it load at a specific x and y coordinate? When I use this code it doesn't work...
Firstly can I apologise if I'm asking something completely obvious... it driving me crazy.
I have an swf called "branding.swf" which has a movieclip (movie_mc) and a button (save_btn)
Once you press save_btn it loads another swf "summary.swf" which also has a movieclip "form_mc". Within "form_mc" there is another movieclip "loader_mc" and some dynamic text fields.
All this happens within a standalone exe "main.exe" and is loaded into "clips_mc)
Is it possible (surely it must be) to take the contents of movie_mc and display it within "loader_mc".
Basically, I want to do a loadMovie but instead of calling "branding.swf" I want it to only load "movie_mc" which is within "branding_swf"
I have a gallery set up with three primary images. Clicking a primary image brings up it's specific subset of alternate views for the product.
I've managed to get the loading and placement down as I need it, but the images are not loading in the correct order. I've tried several solutions, the current one is that an array of each Sub Image is processed in order. It looks kinda of sloppy but image 1 loads, and when image 1 is complete, image 2 loads. After each image loads, it is put into another array. This array is used to resize and place the files. However when I do so, instead of the placement order being
item[0] item[1] item[2] item[3] item[4]
it keeps ending up like this:
item[4] item[2] item[1] item[3] item[0]
Here is the relevant code. When the following function starts with sArray, the items are confirmed to be in order.
Code: function loadSubs(e:MouseEvent):void//LOAD SUBD { clearGallery();
I am loading an external swf into the mc 'image' using: image.loadMovieNum("portfolio/100_design/1.swf", 1);
Every time a new image loads, I want it to load the level above, ie: image.loadMovieNum("portfolio/100_design/1.swf", 2); Is there a way this can be done dynamically. For example, "current level + 1"
In my photo gallery, I have an array of images that load sequentially using 'next' / 'prev' buttons. The code fades out the current swf, recognises when the new external swf has fully loaded, then fades in:
I'm still begginer. I have to load images in specific movieclip, because they're loading over all the other layers. What should I do?I made a simple slideshow by tutorialI guess it would be better that I show all the code not specific parts:
I have a video. First it loads. Then it starts from time that I want to. Also it stops from time i want to. But I want to load my video only from start time to stop time. How can I do this or which method can I use?
From main movie I call a 2nd movie to appear over the main movie using [code]all good and working.Now, from a link in the 2nd movie, I want to close the 2nd movie and go back to the first movie advancing the first movie to another page (frame).[code]but how can i tell my first movie to go to a specific frame.
Im having the following problem. Im trying to load a movie.swf, but i want this movie.swf to be loaded to a specific frame. I dont want it to load and start at the frame 1, i want it to be loaded and start at the framr 5.
i'm trying to do a simple thing: a site where the background fades in and out between areas... ...and i'm trying it for a week...and still have no idea on whow to do it. i've seen many and many tutorials but there's no information regarding to loading movies in a specific frame!(like "call"-calling a specific action script frame?) here's what i have: a main movie (1frame) with 5 layers: actions, menu, bgone, bgtwo and border. and my problem is making the interaction between those areas, since i can't make the menu load the movies in the specific frames,to the specific layers... perhaps i'm just trying to find the wrong answers, or is is impossible?
im working on a flash file where im loading a title, description and image from an xml file.
im using this tutorial from Kirupa [URL] and have everything working fine. my only problem is I can't seem to figure out how to load a specific childnode when clicking a button. right now when the user clicks a button, it loads the next or previous childnode using this code
I'm trying to build a full flash site. I have movieA (main movie) that loads the rest of the movies (movieB, movieC, movieD...). MovieA is the menu. When I want to "come back" from this movies to the main movie, I need to move the header to a specific frame of movieA, diferent depending on the movie I have previously loaded:
movieA: loadmovie (movieB, movieC, movieD...) from movieB: loadmovie movie A (frame2) from movieC: loadmovie movie A (frame3) from movieD: loadmovie movie A (frame4)
Is it possible or when you load a movie you can only start playing in frame 1?