ActionScript 2.0 :: Loop An Imported Flv?
Sep 28, 2009i've imported an flv, it's about 8 seconds long. i'd like to loop it... i thought this would be simple enough... but after doing alot of searches online, i'm getting nowhere...
View 2 Repliesi've imported an flv, it's about 8 seconds long. i'd like to loop it... i thought this would be simple enough... but after doing alot of searches online, i'm getting nowhere...
View 2 RepliesI would like to create a loop so the icons in the menu continually loop indefinitly.[code]
View 2 RepliesI am attempting to use a loop to create text field with the loop's current value. The code looks like this:
ActionScript Code:
for (var i = 1; i<=10; i++) {
var 'nameHolder'+[i]+'_txt':TLFTextField = new TLFTextField();
'nameHolder'+[i]+'_txt'.x = 40
'nameHolder'+[i]+'_txt'.y = 40
'nameHolder'+[i]+'_txt'.text = "Hello World"
}
So essentially what it should do is create 10 text fields at 40, 40 with the text: "Hello World".
i'm trying to do an infinate loop for my m.clip.the looping part does not want to loop...it loops back to my firrst frame even though there are two same picture in the movie clip.....here's a sample of what i use for the infinate loop script..
[Code]...
I have need of loops / nested loops that pick different figures depending on where you are in the loop. The whole function needs to run through 'ml' times. 'ml' is a dynamic figure. Loop 1 = While the loop is within the first 12 iterations, 'exconemp' must equal 100. For iterations 13 - 24, 'exconemp' must equal 102.5, for 25 - 36 it will be 105.06, for 37 - 48 it will be 107.69. This needs to change every 12th iteration until it has reached 'ml'. The calculation takes the value of the previous 'exconemp' and then multiplies that by 0.025.
Loop 2 = While the loop is within the first 120 iterations, 'abc' must equal 0.015 and any further iterations must use 0.01. This must also work in a way to figure out whether 'ml' is higher or lower than 120 and work accordingly. My main issue is this - how do I get the loops to run through as this: While the iteration is < 12, do this, THEN take the final figure (12th iteration) and start on 13 - 24, do this THEN etc etc. How do I produce a THEN statement? I can get the code to pick up the final values, but not change along the way.
[Code]...
Say, I had a loop in a function...
[Code]....
How would I refer to a in another function
I'm using the following code to import class functions the import is fine but my question is what are the diffrent ways to use it once imported right now the cam:CameraExample line throws the error TypeError: Error #1009: Cannot access a property or method of a null object reference.[code]...
View 5 RepliesIs there a way to have imported images automatically update if the original file is changed?
View 1 Repliesit seemed like a simple process but I cant seem to get this right... I got a button there, but the URL wont go, ie, the click does nothing.I imported a PSD layered image to Flash CS3, into a new blank layer. I need basically an area of this PSD to be "image mapped" so what I did was create a rectangle with the rect tool, over the area I needed the hot spot.Here I tried to do a transparent box and border (alpha 0) but the outline is still there even though the box is "empty." I did select the transparent box, no color, and tried alpha, both same result)I made that into a symbol, then I double clicked into there to fill in the key pts for the over, hit, etc., states.... I dont have any effects here btw, as simple as we can get.After that I right clicked on the buttonand entered the action script ("reserve" is the name of my button symbol)
reserve.onRelease=function(){
getURL("http://www.redeggnyc.com/menu2.htm");
}
[code].....
I'm putting together a website in Flash CS4, and my Actionscript knowledge is pretty minimal. The site has a portfolio section with a scrollbar, which I modified from a downloadable example I found here: http:[url]...The prewritten code uses xml to import the thumbnails into the scrollbar- all of this is fine and working beautifully so far. What I'd like to do is to have each thumbnail act as a button, so that when clicked, you jump to another page/frame on the timeline. I see that it's very straightforward to either open a 'full' image or to go have the thumbnail take you to an html page, but is there a command that can go into the xml text that will simply take you to another spot on the timeline?
View 3 RepliesI created an image in Photoshop that included a gradient layer fading from transparency to a foreground color (in this case, black). I saved this image as a PNG file and imported the file onto my Flash stage. The gradient appears on the image as expected when viewing the stage in the Flash editor, however, when I test the movie, the gradient no longer appears.
View 2 RepliesI created a flash file (I will refer to this a swf.1) that plays correct when published as swf.However when I place it into another flash file the nested animation inside the swf.1 does not run.The nested animation in swf1. that does not run has a mask. Would this have anything to do with it?
View 1 RepliesI am creating an animation that will be used in 60 or so countries so messages will have to be translated in-country. From what I understand, using XML is the best way to do this. So, I created the following XML file (number of items reduced for space) using notepad:
<?xml version="1.0"?><displays name="Transfer Case Messages"> <message text="Click on the igntion switch to advance the switch one position." messageNumber = "0"/> <message text="Please use the brake pedal hold button to shift into and out of Park (P)." messageNumber = "1"/> <message text="Speed is limited in 4WD LOW." messageNumber = "2"/></displays>
Then, I used the following code to load the XML file and verify that it loads:
[Code]...
I have imported some info from an xml file into my movie. The info from this file is then displayed in dynamic text boxes. Three of these text boxes show a price which displays fine. However i need the contents of these text boxes to be added together in another dynamic text box called total. I need this total to update as the price fields change. I just cant figure it out.
Here is my code which is placed at frame 1 of my movie:
The last line of code is along the lines of how i think it should work
stop();
bar._visible = false;
bar2._visible = false;
bar3._visible = false;
[Code]....
Im preparing a Flash piece that includes several audio files. I imported the audio successfully but for some reason when I play the swf, the audio sounds tinny. I set the settings to speech compression and synced to stream. Some of the audio files were edited in Soundbooth to add silence at the beginning of the audio files. HOwever, all files (edited in Soundbooth or not) sound tinny.
View 2 Replieswhy I can't draw over impoted images? I've animated something on paper and scanned in the frames. When I import them to flash it either deletes the line as soon as I draw it, or if I create a new layer the drawing stays in all frames, not just one.
View 3 RepliesI have a AS3 portfolio site that loads older AS2 content. Currently the loaded AS2 content won't respond to rollovers or anything inside. Is this at all possible?
View 9 RepliesI am using Flash CS4 and Flash CS5.I bought some music from Amazon MP3 that I want to use in my Flash animation and I keep getting this error upon import:one or more files were not imported because there were problems reading them.
View 2 RepliesI am new to flash CS5 and I am having a problem creating a character with multiple parts.My problem is. I created the character parts in PS: CS5 and save it individually as PNG with transparent background, but when I Imported it to Flash CS5 and applied a bone on it and test the bone. The image is messed up and as I realize that the individual png transparent image has a background.That's why the imae pic is distorted, messed up.I know it's hard to imagine so I post a pic.As what I have said. It is only an example screen cap of the problem.When I apply a bone and test that is the result.I am unable to draw in Flash cause it's different from PS which where I draw the chars, parts, and everything.
View 12 RepliesI have an animated SWF that I created. It is supposed to be at 3FPS, however it runs at 24FPS which is my stage's current FPS. How do I have different FPS's for my stage, and my SWF?
View 1 RepliesI am wondering if there is a way in as 2.0 to allow flash to auto-execute an attachMovieClip (in the next frame) at the end of an imported video file? a 2 minute timer delay could potentially have flaws, and doesn't seem correct.the goal is this:- choose a language- attach imported video in selected language- at the end, go to the menu of the specified language.The auto-attach at the end of the movie is all I have left to do, and I am uncertain about it.
View 2 Replies have a film with two empty MCs, "mc1" and "mc2", each one load a external swf, so far so good. The film loaded in MC1 must control an especific MC ("mc3") from the film loaded in MC2, and here is the problem. Dont work. I can�t comunicate me with mc3. Here is the code that I use:
link1_mc.addEventListener(MouseEvent.CLICK,link1cl ickPlay);
function link1clickPlay(event:MouseEvent):void {
MovieClip(parent.parent.parent).mc2.mc3.alpha=0.5;
}
Can I import xml data, parse it into an array and then display it in flash with anchor links? I tried putting the links in the text and setting my text box to html = true; htmlText= but it didn't work.
View 2 RepliesIs it possible to have 2 different link/hover styles within the same file? i tried using: class A:link {details} class A:hover {details} but no luck.
View 2 Replies've been building some website in pure flash with as2, where index.html is only a 100%x100% swf movie without any marginsi didn't expect there was supposed to be a gallery but oh well. our client decided that he wants to have some gallery in his flash website. this of course wouldn't be a problem if the swf weren't scaled but it unfortunately is so everytime it loads an image it is, of course, sacled up/down which produces a really ugly pixelated image (because nobody would want to have his gallery images scaled up 2 times)if i knew there was going to be a gallery, i would export it into html with "match movie" dimensions and dynamically reposition all the objects in the swf but i didn't. and i don't have time to rebuild the damn site againso i'm asking, is there any option for a loaded image that it would not get scaled up/down while the swf(browser window) is? or a variable that tells at how much % is the movie scaled in the browser?(so i could re-scale the images inside flash) i know there is probably not but i'm really desperate
View 1 RepliesI have a master SWF which has a menu and loads other swf's into holders so they can be animated. I have button's in one of the loaded swf's but i am unable to make these buttons alter whats in the main swf. I.e. addEventListener to button and root(but the root doesnt seem to root to the holding swf).
View 2 RepliesI got a button there, but the URL wont go, ie, the click does nothing.I imported a PSD layered image to Flash CS3, into a new blank layer. I need basically an area of this PSD to be "image mapped" so what I did was create a rectangle with the rect tool, over the area I needed the hot spot.
Here I tried to do a transparent box and border (alpha 0) but the outline is still there even though the box is "empty." I did select the transparent box, no color, and tried alpha, both same result)
I made that into a symbol, then I double clicked into there to fill in the key pts for the over, hit, etc., states.... I dont have any effects here btw, as simple as we can get.After that I right clicked on the buttonand entered the action script ("reserve" is the name of my button symbol)
[Code]...
which gave no errors on validation.When I preview in Flash, everything looks good except the thin black border and the fact that when the button is pressed, nothing happens.
Should I declare the _mcContainer var before the loop or no? (performance increase?)
for(var i:uint = _startIndex; i <= _endIndex; ++i){
var _mcContainer:MovieClip = _mcParent["i_" + _position];
}
[Code]....
Recently I'd been criticized for structuring my for loops like so:
var i:MovieClip;
for each(i in array)
{
[Code]....
This reads better for me personally, yet I'm being attacked for it. Is there any difference?
basically I need a loop within a loop to compare two different arrays in my actionscript3 lottery game. I have attempted the loop but I cannot seem to get it to work ...
[Code]....
So basically within this code check_win is a button. Once the button is clicked it runs the loop. It is meant to take an instance of matches which contains 6 properties and loop until index is greater than matches. According to my output this is happening but the second loop doesn't appear to do anything.