Professional :: Code Not Entering Functions
Jan 27, 2010I have the following code in the first frame of the only layer of the timeline, and nothing else in the layer:[code]
View 7 RepliesI have the following code in the first frame of the only layer of the timeline, and nothing else in the layer:[code]
View 7 RepliesI don't know what's going on here. I have some onRelease functions on movieclips that work fine. However one of them takes the user to a contact form in another frame but after selecting another button to go back to the first frame of the movieclip none of the functions work again.Here's a link to my swf so you can see what I mean:
http:[url].....It's kind of glitchy because it's on deviantart and I took out a lot of stuff so the .swf would be smaller.And here is the action script I'm using:
Code:
stop();
Stage.scaleMode="noScale";
Stage.align="TL";[code].....
I'm thinking because the actionscript is located in the _root of the whole .fla and all the action is happening in the img movieclip that something is off.
I have a magazine of 40 frame. each frame is a different page. in one page (frame) i have imported an flv video from a url. but when i publish it and go to the next frame the video keeps playing, even if im not seeing it.
View 7 RepliesI have a Flash presntation that bought that I need to load before my website. How do I add an addurl and the end of the fla presentation.
View 4 RepliesI am trying to reuse the lines of code and it worked fine the first time but when I tried to use the evtObj.target.name it gave me error 1120:Access undefined property evtObj.Here is the code I tried to use:When I test the movies it just runs automatically instaed of waiting for the click.
View 4 Repliesi am creating a game using flash cs5 and a part of it is drag and drop. in the game, we have this so called sprites. if you clicked on sprite 1, the topic for the drag and drop game is like for example, science. and once done and when you clicked on the other sprites, the subject assign would be for example arts.is it possible to create 1 fla file in flash cs5 where in it contains all the possible commands for drag and drop game for all sprites? you see, i have a main fla file which is the main game this calls the other files or activity, and some other fla file which is the activity in the game like question and answer, puzzles and the likes.
i am having an idea about inserting each question game in different frames to make the code shorter and to avoid having to duplicate the code for the other sprites. or in other words, every time the user clicks the sprites assigned to that specific activity, it will call the specified frame that corresponds to the instance name.again, the sprites are located on the main fla file. when clicked, it calls another fla file containing the game and at the same time, getting the value of the sprites ti know which frame should it proceed to. and thus returning the score attained in the minor fla file to the main fla file after the end of each activity.
i need to draw an API Drawing and do the following with it;
-Effective experimentation with the drawing API e.g. gradient fills, curves etc.
-Effective rationalising of code using functions and loops.
-A sophisticated/realistic looking drawing, that shows the ability to use the drawing API with a high degree of skill.
what's the best way to combine these onrelease functions here so i dont have to repeat the same lines of code?
[Code]...
I've seen some discussion on how to load a child swf using swfLoader and accessing it's variables but I am wondering if it is possible to do this without adding any code to the child swf.Either accessing public vars or listening for funciton calls would work fine
View 2 Repliesi have As code with functions on frame 1-6 i want on frame 7 to have a clear code that will remove all the functions from frame 6. I need only the AS code to be cleared on frame 6 no where else... so the functions that are there no longer work in the rest of the animation.
View 4 Replies[Code]...
with the code above how would you call the function clicker from the function clicker2? as with the code i have it comes up with the error "1084: Syntax error: expecting rightparen befor colon")
I am building a Flash site with a boombox animation. I have the below code I am using. I am using just two frames. First frame, is where I put the code in the actions layer, boombox is still. In the second frame, I placed my movie clips on layers (woofers vibrating & tape deck spins). No code in second frame. So, if you hit the play, previous or forward button a song goes on and the animation start. If you press the pause button, animations stop with music. I have created 2 functions per button.
2 questions: 1 - Is this the best way to do it? If I press the buttons quickly, sometimes a song gets stuck and I can't stop, forward, etc. I was wondering if this was the code?
2 - I am tweening in my pages using AS3 - not timeline. I have a music and video page (each a movieclip). Is there a way that once I tween in the new movie clip (non-music of vid page) that the music or video can shut off?
[Code]...
I have worked out how to store my varables in a document class, but now I find I can't use any functions on my timeline?? Is this supposed to be saving me time?I want to have mouse event functions
View 2 RepliesI have about 10 as3 coded buttons that use the same AS3 coded parameters to control the font and filters of their text fields. I'd like to create a global function to hold these parameters, and then just call the function within each button, and then also code each button to have it's own myText.text = "blahblah"; I can set up a global function no problem using an external as file, but am having trouble getting Flash to accept the parameters. For example, the following parameters work fine when used within the text fields of the buttons, but as so as I try to put them in an external global function, Flash doesn't like the parameters being external:
[Code]....
i'm trying to make a website with sliding pages via clicking on the buttons, scrolling a mouse wheel and draging a scroller button just like in this wesite [URL].. for a moment i have done navigation via buttons, it works perfectly but i'm strugling with adding scrollbar (just like in that website) that i want to make it scrolable via mousewheel and that drager on the right side.
can anybody help me to add those functions for mouse wheel scroll and drager.
[Code]...
I've used the code below to load swfs into my tileList and set their colors using setData() within each swf. Everything seems to work except "source:e.currentTarget.content". The swfs seem to be mixed up randomly each time it runs. Their colors are set correctly and all the other tilelist info is correct. What have I done wrong with "source:e.currentTarget.content"? I can swap "source:e.currentTarget.content" with "source:myXMLList[loadPosition].source" which gives me the correct swf but then the colors aren't set.
for(var f:int = 0; f<myXMLList.length(); f++){
var ldr:Loader = new Loader();
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, function(e:Event):void{
Object(e.currentTarget.content).setData(myXMLList[loadPosition].param eter[0], myXMLList[loadPosition].parameter[1]);
[Code] .....
can you make a button have multiple functions? as in if i click a button one and imahe will pop up and then click that same button and another different image will pop up??
View 1 RepliesI have two functions that use loadNext. How can I have that? I don't quite understand it and would greatly appreciate help. I'm bolding the two areas that use the loadNext function.
[Code].....
Right now I'm designing an application for smartphones and tablet. What I am interested to know is whether I can integrate specific functions. These app would include:
1 The automatic screen rotation 2 Scroll page (in particular pages I will have a list of which need scrolling)3 will have many pages and would require a small search engine
You can insert these three functions?
I have all my layers made and graphic symbols in each layer.I want to create a timeline for my graphic to fade in and out. (Know how to do that)When I lock my main layer and work within my selected layer:1. drag the graphic onto the stage2. select a frameThis is where the problem comes in:My main layer (with my background) disappears and I'm left working on a white stage (not a problem I know how to make the stage a color)When I test the movie:I get white - no motion - and then the background flashes quickly. (I set my last frame at 100 so that it would loop slower).
View 3 RepliesI have a flash movie with a kind of intro to enter the website. I need a script to navigate to a new url when the animation reach the frame 500. I don't have any buttons. I am saying that cause I already know how to make it work with a button but not with a frame number. What do I need to change in the script? Here's a button script I have;
btn_1.addEventListener(MouseEvent.CLICK,a);
function a(e:Event){
var request:URLRequest = new URLRequest("http://www.website.com");
navigateToURL(request, "_self");
}
So what should I change to make it work when it entered the frame 500 instead of when a button is clicked?
When I put this code, the two text boxes only enter "0".
YES, the text boxes are labelled properly. YES, I checked everything.
Attached is .fla also.
Code:
import flash.events.MouseEvent;
// Varibles
var theText:String;
[Code]....
I have two input text boxes. I need to enter a number (1900) into the first box then hit the 'Enter' button, then enter a number (50) into the second box right below the first.
After the 'Enter' button is pressed it needs to lock-in the required value, by selectable = false.
My problem is...I can get the first number to work. I type in the number, press 'Enter', it changes the textbox value to selectable = false...everything is good for that part.
But the second number is where I am having trouble, it seems the function is called, but that's it...nothing else happens.
Trying to see if someone can guide me to a way I could stop my earlier tweens and onRollOver function when my onPress function is launched. What I worked out here with that McX/YScale.stop(); and that target9_mc.onRollOver = null; is kind of working but I don't want the onRollOver function to stop until the onPress function begins.
[Code]...
I am a multimedia student and I want to create an interactive slide show to put in the Portfolio section of my web site. How would I do that? Would it be easier to do in Dreamweaver CS5 or create in After effects then import in Dreamweaver? I have never done slideshows. What I want; is a slide show of my work to scroll on the screen, when the person hovers their mouse over the picture from left to right, the slideshow moves, when you click on a specific image, you are able to see the image in a bigger size.
View 1 RepliesI have a flash movie with a kind of intro to enter the website. I need a script to navigate to a new url when the animation reach the frame 500. I don't have any buttons. I am saying that cause I already know how to make it work with a button but not with a frame number. What do I need to change in the script ?Here's a button script I have;
btn_1.addEventListener(MouseEvent.CLICK,a);
function a(e:Event){
var request:URLRequest = new URLRequest("http://www.website.com");
navigateToURL(request, "_self");
}
So what should I change to make it work when it entered the frame 500 instead of when a button is clicked?
I am making my first website in flash based on frames. When you go to an other frame the Stage fades out. When you enter the frame you see nothing at all. So how can I clear the stage when entering the frame or even better it fades into the frame with clearing the objects & code of the previous frame.[code]...
View 1 RepliesI have written a simple program to randomly generate the name of a student from my class. Other teachers have asked if they could have a copy but as you can see from the code, I have to manually enter their students' names into the array.I wonder if there is a way to enter a list of names into the array from an external file so that teacher's can enter their own students' names and change them when needed.
(here is the code for a button that generates the students names)
on (release) {
_root.student1_txt.text = "";
myStudents=["Chloey","Paul","Rachel","Kudzayi","Josiah","S arah C","Daniel C","Micahel","Daniel Ha","Daniel He","Amanda","Tammy","Zach","Sam","Sarah M","Xanthe","Charlotte","Bethany","Luke","Jessica"
[code]....
is it possible to hide the cursor upon entering a frame. i know you can hide the cursor when you use a custom cursor hideCursor=true but what about like .... if you have a button and on the over state you have a movie, upon entering the movie the cursor hides?
View 2 RepliesI am making my first website in flash based on frames. When you go to an other frame the Stage fades out. When you enter the frame you see nothing at all. So how can I clear the stage when entering the frame or even better it fades into the frame with clearing the objects & code of the previous frame.
Code:
/*buttons naar frames*/
homehome.mouseChildren = false;
[code].....