Alright im trying to figure out how to take the xml gallery tutorial, and add the ability to add lines to the xml from the swf itself.The swf would just be 2 text boxes, one having the url to the image, and one for the caption
I am dynamically adding a set of grid lines to a movieclip using a for loop. And I was wondering how I go about removing all of them so that I can add another set of grid lines to the same movieclip.This may sound weird but what I am doing is dynamically creating a table from an array and I wanted to dynamically add gridlines in between the table entries depending on how many entries there are in the array. I got this to work fine but when you go from one table with more entries to a table with less then the grid lines from the longer table are still there.Hence I want to be able to remove all the grid line instances before creating the next table.
For some reason, if you add an image to htmlText, like the following: myText.htmlText = "<img src='"+dataProvider.bodyImage.getUrl('original')+"' align='left' />" + dataProvider.bodyText; The image will be successfully added to the htmlText, but it seems to measure the sizes completely wrong. At times, the actual text (dataProvider.bodyText) will have part 'hidden' under the image. At other times, there are anywhere from 1 to 4 lines cut off at the bottom. However, if you select the text and drag your mouse down, you can see the bottom lines. It appears the text is all there, but the mx:Text component is not including the image in the textHeight, so it doesnt resize the componenet to the correct size.
I have been working on a map viewer based blitting technique. As part of the map I need to draw approximately 50000 lines and performance is currently really poor.
When doing a preview, flash loaded quite fast and you were able to see the preview in only a few seconds! But suddently it has become slow! Now it runs to about 80-90% in loading when pressing CTRL+Enter and then it stops, and you have to wait like 10 seconds to see a preview.. Why is that? The file only contains around 100 lines of AS and 2 images!!
My code is on the main timeline.I call a function loop to draw lines between them.The lines are drawing between the right x, y values BUT between those values on the main stage, not those values within the kite.For example, dot1_mc is at x100, y0 inside kite. the line that should go from its center, draws from stage x100, 0.How do I draw the lines inside kite so that they draw between the dots?Heres my code that draws the linesPHP Code:
function loop():void{ lineDrawing.graphics.clear(); var a:Point = new Point(kite_mc.dot1_mc.x, kite_mc.dot1_mc.y); var b:Point = new Point(kite_mc.dot2_mc.x, kite_mc.dot2_mc.y); var c:Point = new
I have an animation that reads some info from a txt file (such a bkg color, bkg image and text). So I would like to make my main animation in the root to repeate a segment of the animation (beteween 50 and 80 frame) or to loop an MC so many times like the number of lines in this txt file.
For exapmle if I have in my txt 6 lines to go from 50 to 80 frames, that again to 50 and like this 6 times (e.g. to repeat this segment 6 times)
I have a text field that i have set to load several lines of text from an XML file.
Code: <?xml version="1.0" encoding="uft-8"?> <imageText> <text> <text1>text for image one <br> line 1 <br> line 2 <br> line 3</text1> </text> </imageText>
it loads into flash fine but when i try make it a global variable it only takes the "text for image one" because it thinks the <br>'s are tags. flash the turns the above code into:
Code: <?xml version="1.0" encoding="uft-8"?><imageText><text><text1>text for image one <br> line 1 <br> line 2 <br> line 3</br></br></br></text1></text></imageText>
i need this tag to be in there to show that its a new line.
I have an animation that reads some info from a txt file (such a bkg color, bkg image and text). So I would like to make my main animation in the root to repeate a segment of the animation (beteween 50 and 80 frame) or to loop an MC so many times like the number of lines in this txt file.
For exapmle if I have in my txt 6 lines to go from 50 to 80 frames, that again to 50 and like this 6 times (e.g. to repeat this segment 6 times)
I want to load an XML file and display at random a different line when a button is pressed. I swear I've seen dozens of different ways to do this online already and I've tried to copy them for my purpose
I need to count the number of lines that exists in a txt file, from wich I load some content. I think I need to escape the content of the txt to be able to read the "/n", to count them and to have them displayed as variable (for example t_linenumber=...?)
I need to count the number of lines that exists in a txt file, from which I load some content. I think I need to escape the content of the txt to be able to read the "/n", to count them and to have them displayed as variable (for example t_linenumber=...?)
I would like to see a line of a text file on the frame that I want (and view it in a dynamic text). This is my text file: Foo Candy Bar Dog
This is my code in the first frame: var myTextLoader:URLLoader = new URLLoader(); firstLine.wordWrap=true; firstLine.autoSize=TextFieldAutoSize.LEFT; myTextLoader.addEventListener(Event.COMPLETE, onLoaded); function onLoaded(e:Event):void { [Code] .....
With this I can see "Foo" in the first frame. How could I see "Candy"? a second frame. Is it repeated all this code again? Is there any way to just invoke the Lines array: Array = e.target.data.split (/ n /) And obtain the desired Item?
I will try to be as clear as I can. I have an existing swf file that I want to add Play,Pause, FF and Rewind via an externally loaded swf file that has the controls contained in it.I am loading an external swf file that has all of the controls on it via this code:
// Set up the Mouse to use a listener var mouseListener = new Object(); Mouse.addListener(mouseListener);
I have an existing swf file that I want to add Play,Pause, FF and Rewind via an externally loaded swf file that has the controls contained in it.
I am loading an external swf file that has all of the controls on it via this code:
// Set up the Mouse to use a listener var mouseListener = new Object(); Mouse.addListener(mouseListener);
[Code]....
I am doing this so I can rollover the viewing window and have it appear. I cannot get any code to work to control the timeline (which is broken down into sections with individual MC's in each section.
What I am looking for is the code to apply to the buttons on the external swf file that has the controls to control the playing of the movie.
I am trying to create a mindmap where the user can drag points about the screen. I have gotten as far as drawing the line via actionscript, and drag+drop the points (defined as movie clips on stage). This is the existing script - I don't know how to get the lines to follow the points. Something to do with ENTER_FRAME or updateAfterEvent?
var line:MovieClip = new MovieClip(); line.graphics.lineStyle(1,1); line.graphics.moveTo(ptOne.x,ptOne.y);
I have been given an .swf file that needs to be added to an HTML page - no problem. That file then needs to link to another site. Is this something that needs to be added to the file before it is loaded onto a website?
I've seen the following code provided in other threads, but either it is meant to be used when creating the file, or I'm not using it correctly when I try adding it to my .asp page.
on (release) { getURL ("<URL here>", "_blank"); }
If I'm not trying to do something impossible, edit the code below to make this file link:
I am very very new to flash...I created a quick little slide show...in which I want to add to add an mp3 file too...the slide show works as such.. Each frame has a picture and next button, so when I test the movie. The pictures are stopped, I click the next button and it goes to the next frame......pretty straight forward. How do I add sound? I just want the music to start when I open it, and stop when the slide show is over.
The funny thing is...if I insert music into a file with no buttons and just let it stream (and stop on the last frame) it works great, the music plays...Only now that I have a movie with buttons, it doesn't even start. I have been thumbing around the actions panel, but for the most part I'm lost.
I am trying to add a photo to a Flash file that we had created for us: URL...I am kind of sort of new at Flash. I can edit these files but I can't figure out how to add a new photo. I thought you could just add a new layer but that's not working.URL...
just created a slideshow that loops because I want it to continuously play. I added another timeline layer and inserted my music file which is 4:03 minutes long which I set to loop as well. However after it has been playing for about 15-20 seconds it sounds like it is layering another music file on top of the existing one and so on and so forth, so a couple of minutes
I downloaded a flash template and I need to add special characters (Greek Language) to: fonts.fla. After editing the file the flash is not loading anymore.
Notice : This is an AS3 project and you can only add AS3 SWF files When publishing your custom SWF file be sure to add this method to your actionscript file: public function startModule():void { //inside this method you can start your transitions to show the content }
I'm trying to add code to some videos that I have already exported out as FLV for tracking purposes. How does one go about this the correct way? I have the code snippet already, just don't know if I open the FLV in flash and add the code to the first frame, then re-export it or is there another way of doing it?
I am trying to add a photo to a Flash file that we had created for us:
[URL]
I am kind of sort of new at Flash. I can edit these files but I can't figure out how to add a new photo. At first I tried to add in a new layer and copy the frames from the previous layer but Flash won't let me do that. [URL]
how i can add text to an existing file instead of overwriting it... ive got this far... string filePath = "C:\tex1.txt"; StreamWriter foo; if (File.Exists(filePath)) { // File exists // Don't do anything.} else {// File does not exist foo = new StreamWriter(filePath); foo.Write("Blarg. Zorb. Zeeb. Foo."); foo.Close();}
and id like to add a text link like this to each "entry name":
Code: <link href="Title1.html" text="Title1" /> Note: Each "entry name" currently becomes a link in itself when displayed. I need the new link to be a separate link. And this is the xml code in the actionscript:
How would I add the name of an item in an array to a text box? I want to add the name of each item in an array to the text box depending which picture is being displayed.
Is it possible to add a player component to your fla file? In all the documentation I'm finding the only thing I can find is adding it to an flv file. I've run into a roadblock, my flash video encoder is not installed, I no longer have the cds to install it and when I try to export to an mov file its saying that the version of flash is too new for my quick time application. There has to be an easier way to add add controls to your flash movies.