Professional :: Covers Syntax In The Previous Section?

Feb 6, 2010

I am just learning AS3 and am reading up on instantiating and object.The code from the Quickstart book makes about 75% sense to me, as it covers syntax in the previous section. However, like every damn intro to code on the planet, it throws in new, unexplained syntax:

var myMC:MovieClip= new MovieClip();
myMC.x=100;
myMC.y=100;
addChild(myMC);

Line 1: I get var=myMC is defining a variable.. I don't however understand the colon. What does the colon do and what does MovieClip mean? I'd assume that new MovieClip() is a method.

[Code]...

View 2 Replies


Similar Posts:


IDE :: Picture Section Includes An MC Slide Show With "next/previous" Buttons?

Jul 14, 2003

my picture section includes an MC slide show with "next/previous" buttons.

is there any way:

1- to make this MC calls JPG pictures from a directory.

2- make them autofit inside the mask.

View 12 Replies

ActionScript 2.0 :: Play A Section On The Timeline And Then Move Onto Another Section Or Scene

Mar 9, 2009

I have a button that I would like to use with the basic actionscript as follows:

on (release) {
this.gotoAndPlay("15");
}

What I would like it to do is play a section on the timeline and then move onto another section or scene.

[Code]....

I know this is incorrect, so would anyone know how to write an actionscript button that plays a section then goes somewhere else?

View 4 Replies

Invisible Button Covers Up Animation?

Nov 2, 2009

I have two motion-tween animated movie clips used as "buttons" which I would like to link to various html pages on my site. Using invisible buttons works, but I can no longer see the animation. If I put it under the movie clip layer, it no longer responds. Is normal, or should I place the invisible button within the editable movie clip?

View 4 Replies

ActionScript 2.0 :: What Is The Word 'section' In _root.section

Dec 17, 2003

on [URL] what is the word 'section' in _root.section? I assume it is a movie clip instance, but can't seem to find it on the timeline.

View 2 Replies

IDE :: Apply The Scanline That Covers Up The 100% Width And Height?

Sep 9, 2009

i was trying to apply the scanline that covers up the 100% width and height and resize it whenever the stage is resized. and i also wanted the rounded gradiant shape that shows the majority portion of the center and rest fades out to black(background).

to achieve this, first i simply thought, i could just create the two shapes and put them on top of the movieclip. scanline was achieved by using bitmapfill(using 2x4 pattern). and the rounded thing was achieved by just creating a circle and blur it.

then i figured that this would not going to work because i need to have interaction on the actual movieclip thats now behind the round shape and scanline.

View 4 Replies

ActionScript 3.0 :: Flash Animation Covers JQuery Menu

Dec 6, 2010

I have a couple flash animations I made for some websites, not too complicated mostly timeline animation and I am getting the same problem when I embed them into the html. The flash covers the jQuery drop down menu when you hover over the navigation. I did not create the navigation and it is behind a CMS.

View 7 Replies

Professional :: Using UILoader To Show Portfolio Section Of Website?

Jun 17, 2010

I'm having an issue with the UiLoader, I think. I am using a UiLoader to show the portfolio section of my website. When I click on portfolio there is nothing there. Brought UiLoader to stage from the component panel> in the component inspector I set the source to Portfolio.swf> Test movie> it works great. In dreamweaver I draged the swf from the folder panel and placed it in a table> uploaded it to the site> go to the site, and there is no portfolio section. See the site here -> [URL]. I noticed when I made changes and uploaded to the web then went to the site I have to delete internet history files to get the swf to reload. What do I do about that? Off the top of my head I thought about changing the swf name everytime I make any changes, but I'm sure there is another way.

View 3 Replies

Professional :: Make A Scrolling News Section With A Stage Of 200 W X 250 L?

Sep 1, 2010

I am in the process of building a web site and am running into an issue with dynamic loading text.I am trying to make a scrolling news section with a stage of 200 W x 250 LCreated a movie clip with the following coding:

var myTextLoader:URLLoader = new URLLoader();var myTextField_txt:TextField = new TextField();myTextField_txt.wordWrap=true;
myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
function onLoaded(e:Event):void {myTextField_txt.text = e.target.data;addChild(myTextField_txt);} 
myTextLoader.load(new URLRequest("myText.txt"));
 
Then set the clip (which is 250 W x 600 L) on the main stage, moving upwards, creating the auto scroll effect.The problem I am running into is that I can't figure out how to make the text use the whole width of the text box I created. It only uses half of the width, creating columbs like this:
 
Hello and
welcome
to our new

[code]...
 
The text box itself is at least twice the width of the sentences, but they aren't using the full width.

View 5 Replies

Flash :: Professional - Background - Set To Have Motion Is One Section Of Text

Sep 9, 2010

I am trying to create a new webpage using flash CS5. I imported the page that I created in photoshop. Now the background is flashing, the only thing that I have set to have motion is one section of text.

View 5 Replies

ActionScript 3.0 :: Movie Looping After Starting Syntax With Stop Command, No Compiler And Syntax Errors?

Jul 14, 2011

using action script...
 
stop();btn001_btn.addEventListener(MouseEvent.CLICK,showimage1);function showimage1(event:MouseEvent):void { gotoAndPlay(10);}btn002_btn.addEventListener(MouseEvent.CLICK,showimage2);function showimage2(event:MouseEvent):void { gotoAndPlay(20);}
 
however movie is playing without stopping to "Listen" for a Mouse CLICK. Images placed at frame 10 and 20 should appear only when CLICK'd.
 
This code is straight out of Classroom in a Book CS4.

View 5 Replies

Professional :: Jump Out Of UI Loader Image To A Labeled Section Of The Main Site?

Aug 25, 2010

I have my entire site layout in Flash CS4 and using AS3. I was able to successfully segment the site with labels, add UI Loaders to desired sections to make the site smaller and work faster, I was able to put a close button above the UI Loader, which closes it and brings a user back to a designated section of the site.

And then I encountered a problem. I have a few images in each UI Loader which I would like to function as buttons and also bring the user to the desired section on the main site, however it seems to be a problem that the buttons are located inside the UI Loader I can not figure out how to jump out of the loader to the main site.
 
Is there a specific code for it or the whole layout has to be somehow restructured?

View 10 Replies

Professional :: Flash CS4 - Change The Colors Of The Background Or Text That Shows Up In The Layers Section?

Mar 8, 2010

I am colorblind.I need to change either the color of the background or the color of the text on the layers section on the Timeline.I simply cannot read/see what is currently showing.It is a very light blue background with white text and white dots for seeing, locking, or setting the outline color.I need to either change the text color and dots to black so I can see them, or try to change the background color to a dark blue so I can read the white text.Changing the text color would really be my preference. Adobe hasn't been very concerned about colorblindness when developing these products. I can barely make out all the light grey/grey/dark grey/grey stuff.

View 7 Replies

Professional :: Syntax Error Expecting Rightbrace Before Rightparen

Dec 4, 2010

I am getting the following error when using the below code:1084: Syntax error: expecting rightbrace before rightparen.[code]

View 1 Replies

Professional :: Syntax Error: Extra Characters Found After End Of Program

Nov 8, 2009

error:
 
Scene 1, Layer 'PreLoader', Frame 1, Line 11087: Syntax Error: extra characters found after end of program
onClipEvent (enterFrame) {        loading = _parent.getBytesLoaded();        total = _parent.getBytesTotal();    if (percent == undefined) percent = 0;        percent -= (percent-

[code].....

View 12 Replies

Professional :: Change Settings And Export The Movie To A .swf - Getting A Syntax Error?

Mar 24, 2010

play ();ifFrameLoaded ("content", "loader") {    gotoAndPlay ("content", 1);}downloaded = math.floor((_root.getbytesLoaded()/_root.getbytestotal())*100) add "%";_root.bar.download_bar.gotoandstop(downloaded);bytesloaded = math.floor(_root.getbytesloaded()/1000);bytestotal = math.floor(_root.getbytestotal()/1000);_root.bar.message = bytesloaded add "Kb";_root.bar.message2 =  bytestotal  add "Kb";
 
this is for a loader on an already created flash. Which I am updating. All I am doing is changing a picture that has no coding with it, and changing the publish settings. The publish setting for the original was set for flash player 5, however I need it set to flash player 8. After I change these settings and export the movie to a .swf, I get the errors.Has the action script changed that much from flash 5 to flash 8?

View 7 Replies

Professional :: 1084: Syntax Error: Expecting Rightbrace Before End Of Program

Dec 13, 2010

So I'm doing this basic coding thing to make an object "shoot" bullets. It's from a tutorial video. My code matches his exactly unless I'm missing a tiny detail. Basically the code looks like this:

package {
import flash.display.Sprite;
import flash.events.Event; 

[Code]....
 
And the compiler error I'm getting says this:Location:bullet.as line 31 1084: Syntax error: expecting rightbrace before end of program. Source: }Location:bullet.as line 31 1084: Syntax error: expecting rightbrace before end of program. Source: }And yes it does say it twice. The vid I'm learning from is this:[URL]

View 2 Replies

Professional :: Syntax Errors 1093 And 1084 In Properties File

Apr 30, 2011

I'm starting to write an app, using localized strings. But I'm getting errors in a properties file, 5 errors, in lines 8 to 12, although there's only one single line in the property file. [URL].

View 2 Replies

Professional :: 1084: Syntax Error: Expecting Rightbrace Before End Of Program?

Jun 10, 2011

I am trying to create a page flipping motion in flash but I keep getting the above error.
 
import fl.transitions.Tween;
import fl.transitions.easing.Strong;
import fl.transitions.TweenEvent;

[code]...

View 1 Replies

Professional :: Go To Previous Keyframe

Nov 2, 2011

I am making a simple project ,a so called "quizz" .SO as every questions has wrong and true answers buttons I am wondering how do I go to the previous keyframe.Let me be more clear. I have this "screen" with a button that appears only when you click the "wrong answer" on a question,the screen has a button that will lead you to the menu to start a new game,but I realized that would be very ANNOYING ,because if we are at question 30 [we pretend] it would be very frustrating to start all over again.So I am wondering what code do I need to write to the Screen with the "start over" button that leads to menu to make it lead me to the question I  Answered wrong. I want to say that I tried something like "on (release) { gotoAndPlay ("previous") ;} but didn`t work To be even more clear I will show you on this picture.

View 3 Replies

Professional :: Get:1087: Syntax Error: Extra Characters Found After End Of Program?

Mar 8, 2010

after doing:"- Make a new button on the first keyframe and name it my_button - Select the keyframe not the button and open the actions panel (F9) - Attach the following code and test my_button.addEventListener(MouseEvent.CLICK,clickHandler);

function clickHandler(event:MouseEvent):void{ navigateToURL(new URLRequest("http://www.YOUR_PAGE.com")); } "In Flash File Actionscript 3.0I get:1087: Syntax error: extra characters found after end of program. What i need to do now to make it work?

View 24 Replies

ActionScript 2.0 :: Next And Previous Button Is Not Back To Previous Loaded Movie

Jun 25, 2004

my program is i can choose several movie to load and the movies are save in an array... For example: i choose movie 1 , 2 and 3. Movie 1 was loaded. After i lick 'next 'button, movie 2 will be show .Beside that,if i click 'previous' button, movie 1 will be show. i facing a problem that my previous button is not back to my previous loaded movie but is trace my choices in arrays backward. The next problem is, my first movie load to the second movie load will be a bit lagging. but the rest 1 is ok.

View 14 Replies

Professional :: Get To The Next/previous Keyframe On A Layer?

Jan 27, 2010

I'm new to Flash and can't find if there is a way to get to the next/previous keyframe on a layer by using something faster than dragging the playhead.

View 8 Replies

Professional :: Load New SWF After Previous SWF Has Stopped?

Feb 3, 2010

This is probably a simple thing, that I just cannot find the answer to.Basically I have designed an HTML based website.I want to incorporate a SWF element on the homepage, and am having problems doing so.In order to keep the file size of the swf I will be placing on my homepage to a minimum, I broke it down into a series of shorter scenes, that I plan on dynamically loading into my main file (which will hold all the AS) that will be placed on my site.

This is where I run into the problem.I have no trouble getting the first swf to load into my main file, but what I need to do is get the next swf to load and play after the first is done playing. So I am assuming I will need to find a script to unload the first movie, then load the second, and so on.Im actually not even sure if this is the right way to go about doing this.

View 1 Replies

Professional :: Creating Next / Previous Buttons

May 11, 2010

I am creating next & previous buttons on my main scene. I have created a scrolling photo gallery as well as a random button to randomly select images. I have a photos layer that has 15 images tagged in the AS "img1" "img2".

[Code]....

View 4 Replies

Professional :: How To Delete A Previous Post

Jun 26, 2011

For privacy reasons I urgently need to delete a Post, please could someone tell me how to DELETE a previous post from the forum.?

View 3 Replies

ActionScript 2.0 :: Button - Go Only To Previous Scene, Instead Of Going To Previous Frame?

Mar 2, 2006

I have various movies clip within a movie and my back (mc = arr2_mc) and next (mc = arr1_mc) buttons are on the main scene.This is on my main scene on a first frame

ActionScript Code:
movieclip.prototype.playBackwards = function(arg){
if(arguments.length>0) {[code]....

when it goes back, it goes back frame by frame without stopping but I want it to go only to previous Scene. instead of going to previous frame.Do i have to create a unique button? which i did but i didn't work?

View 2 Replies

Professional :: Button To Play Previous Frame?

Apr 16, 2010

I'm trying to create a "back" button, but when the user clicks on this button I want the animations to go in reverse and then go to the frame that it is calling. so for example i have 5 notes, what happens first is that "note 1" is on the stage then you click on 'next' and then "note 2" slides in from the bottom and pushes "note 1" up and out of the frame and stops and shows 'back' and 'next' buttons. what i am trying to do is, if the user clicks on 'back' , I want the movie to rewind and have "note 1" slide back down. Or if they click on 'next' 2 will be pushed up and 3 is revealed the same way 2 came in.

View 5 Replies

Professional :: Continuous Go To Next/previous Frame On Mouseover?

Jan 31, 2011

I have an image sequence on my timeline in Flash.I also have two buttons: forwards-button and backwards-button.I would like the timeline to play constantly forward, when the mouse is held over the forwards button.And I would like the timeline to play constantly backwards when the mouse is held over the backwards button.My attempts so far have failed: I can get the button to work only for one step at a time (and then I need to bring the mouse on and off the button again for it to move to the next frame).I need to have the sequence play forwards/ backwards the whole time that the mouse is over the button.

View 6 Replies

Professional :: GotoAndStop To A Previous Frame Won't Work

Mar 1, 2011

I'm making an app in flash as3, but there is a bug in my code. (i guess)
 
-I can go from frame 1 --> frame 2
-I can go from frame 2 --> frame 3

If i try to go from, let's say frame 3 --> 2, I get this message:TypeError: Error #1009: Cannot access a property or method of a null object reference.Why cant I go to a previous frame on my timeline?

View 9 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved