ActionScript 2.0 :: Tutorial For Tweening For MX 2004
Feb 22, 2005Does anyone know of a good tutorial for how to tween using actionscript? This is for MX 2004.
View 1 RepliesDoes anyone know of a good tutorial for how to tween using actionscript? This is for MX 2004.
View 1 Repliescontinue the success with incorporating the scrolling thumbnails feature to my current galleries.I have done my best to incorporate the code from Kirupa's "Adding Thumbnails" tutorial to my site, but have a feeling the loader class is only MX 2004 and on, and I'm using plain old MX. I have absolutely no thumbnails showing up at all.
PS I also found two discrepancies in the tutorial:
1. Initial code to be pasted has a line such as this:
Code:
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;
and later in the tutorial that same code is treated as this:
Code:
target_mc._x = hit_left._x+(target_mc._width+5)*k;
2. Initial code to be pasted has a line such as this:
Code:
}else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))){
but later in the tutorial when it's broken down it's listed as this:
Code:
}else if ((_root._xmouse<=(hit_left._x+40)) && (thumbnail_mc.hitTest(hit_left))) {
It's very difficult to test all possible variations in this, but I think I have, as there were 4 possible combinations since 2 lines of code varied. But none of them worked. Either way, would be good to know which users should be using. A little help in identifying: "snowThumbMC" is the name of my empty movie clip instance on my stage, in which I should be loading all of the thumbnails.
1. Is "target_mc" the name of an actual movie clip I should have on the stage somewhere? Or is it simply an empty one created via code to hold info?? I'm trying to figure out what exactly "target_mc" refers to.
2. Is "pictureValue" an actual value of a variable named "picture"? If so, should I have this variable on stage somewhere? I'm just not sure by reading the code (since I can't properly read it) what exactly "picture" refers to.
Code:
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
[code].....
I sent an email to pom regarding a tutorial that he wrote, but the email was bounced and he hasn't replied to my PM. I have followed both of pom's tutorials that involve experiments with perspective in Flash, but I have encountered a problem while attempting to duplicate a movie clip symbol in the second tutorial ([URL]). I have a single instance of the "ball" movie clip symbol appearing at random positions. However, I cannot seem to successfully duplicate the symbol instance at random positions using the loop that pom provided:
[Code]....
I have built a catalog in flash that was orginally built in InDesign and exported but it has some small content that is hard to read for the elderly users viewing it and I would like to add a zoom feature or some type of magnifying glass.
View 1 RepliesI am looking for a tutorial called Senocular's 3D car race tutorial
View 1 Repliesoriginal: I really just need to figure out how to center the pictures. here is what I did I have modified the tutorial that I finished to have a bigger stage for bigger pictures. Everything is working properly but the pictures are displayed on the left side, I want to have them centered in the stage for the images, after clicking on the thumbnails, plus my images are different sizes as well. ranging from 200x410 to 744x410 but all are the same height of 410. i will post up what I am talking about at the end. I believe it is something within either the action script or the xml coding that allows the position of the image to be differently? please help here is what i am talking about[URL] Continued: Here is my coding in action script:
[Code]....
I'm getting the following error: Motion tweening will not occur on layers with ungrouped shapes or on layers with more than one group or symbol. I don't have any ungrouped shapes (it's all text), each layer has 5 instances of only one symbol (keyframes), no objects are grouped and text is all static text.
When watching the animation, the first word (web) looks fine, on the second word (design) the tween fails on the last couple of frames of that clip (the blur filter disappears), the third word (and) is OK, and on the forth word (development) the blur filter is not applied to the last 16 frames of that clip.I broke each animation into its own MC thinking that was causing the issue, but that didn't fix anything.
[code]....
3.Image Viewer;When the image viewer is opened the image viewer window opens.When images are loaded into the viewer and captions are added they appear to work in Dreamweaver but they dont move in sequence when the buttons are clicked.In browsers the captions dont appear. If the window is closed and reopened all of the images have disappeared and just the image viewer returns.The response I got from an inquiry to Adobe was; The version of Dreamweaver has been discontinued and is no longer supported via phone or web cases. We only support versions CS3 andCS4 via telephone or web. have interoperability between these two programs?
I am working on flash both at home and at school. at school we have MX 2004, and at home i have CS5. i have just found that when i save a file in CS5, i then cant open it again in 2004. Is there any way i can convert the file back to 2004 to work on at school?
View 2 Repliesconverting flash 8 files to mx 2004? i have flash 8 files, but only have Flash mx2004 on my computer at home
View 1 RepliesI was looking at another thread and was wondering if the classes (like the Tween class) that 2004 has added were available in some way for MX? I don't know if this is the correct forum to post this question, so if not, feel free to move it...
View 1 RepliesI imported a panorama .jpg file (i.e., several overlapping landscape photos stitched together) onto the Flash MX 2004 stage, changed it to a symbol (graphic), and used Tween to simulate the panorama panning back and forth. The effect looks great when I click on the .swf file in Windows Explorer, but when I created a box on a PowerPoint 2000 slide and linked the .swf file to it, instead of the graphic, there is a red rectangle. The rectangle moves the way the graphic would, but you cannot see the photograph. By the way, I followed the steps at [URL] to link the .swf file to the PowerPoint slide.
View 1 Repliesflv player in Macromedia Flash MX 2004 (Educational version) work with mycorresponding video; however,when I go to test it, the script error box pops up saying:Errors 1 The Class FLVPlayback could not be loaded.[code]Does MX 2004 not support the FLVPlayback ref?
View 6 Repliesis there any way to make splash screen [ means ist frame should stay sometimes and should jump to another frame] in flash mx 2004.
View 1 RepliesI am having trouble with variables in the latest version of flash. I am using if statements to see if the variable is at a specific value. I keep getting errors telling me to put quotes around the variables and values but when I do they become strings which isnt what im looking for.
View 2 Repliesi have some problems in integrating with my own flash. 1st of all.. let me define the key things
1st step.. the flash will detect the xml. 2nd, it detect whether if it has people on air on the studio or not refer to the time. 3rd, if its between the [timeid] range ( 0-7) it has a slot but either has a dj or not, if the timeid = 8 , no slot and no deejays here is my core part of problem..
the flash will show the slot language pics background = MC ( session ), the slot name = dynamic text area ( slonem ), and who's the deejays = dynamic text area (djnem), of the current time, if there's no one on air or no slot , the pics background = MC ( session ) will show music only.
i'll include also my xml file and my dummy file for this thing.. also iincluded is the original schedule that working properly.. the original schedule and the dummy is basically different just they read from same xml file..
i just learn xml just a few months back then also with action script with help from my roomate [URL]..
loading external swf: mx 2004?
View 2 RepliesI only have flash MX but wish to use some of the flash MX 2004 AS tutorials to alter the menu when you right click in a flash movie. So i was wondering if this is possible
View 5 RepliesWhats the best way to customize UI components (all the cool sites have custom scroll boxes, text boxes, scroll easing etc.) in mx 2004? can any point me to any solid tutorials? or books? eg:[URL]
View 1 RepliesWhat I'm trying to achieve is have my images "flash/shine" when the cursor passes over the image, however; I want it to adjust to say +100, then back down to 0 immediately, not on roll out. The code I have thus far works perfectly fine for over and out.
Code:
sBright = 0;
eBright = 100;
stepValue = 25;
[code]....
I have this code below which works well to a certain extent. This code is on the 'PROFILE.swf'. On this page there is a sub menu containing 4 buttons: Biogs, Awards, Charity, Publications. When one of the the last 3 buttons are clicked the text already on the page fades away and the relevant, new, swf is loaded in place. Now because within each new swf there are more catergories in the sub menu to choose from, the buttons are also loaded with the new swf.
This means that after the first button is clicked, this code nolonger works as the target path changes. Initially the buttons are in Container2, then once the first button is loaded the buttons are in sub_cntr. My question is: Is it possible to write the code so that the target path is checked to both CONTAINER2 and SUB_CNTR?
[Code]...
I'm a former Flash 3 user that's desperately trying to get back into Flash with MX (not 2004) and need some assistance.I have been working through some 3D/perspective tutorials lately and have gotten stuck at trying to modify one of Senocular's great open source files from a tutorial covering Shape Movement vs. Camera Movement.
In the field of stars example at the bottom of this page, there is a scaling/easing/perspective effect that I am attempting to get a grip on.I moderately understand all the code that was provided in the "PullThroughSpace" FLA, but I need to modify it to do the following, which is where I get stuck:
1. Instead of duplicating the "stars" MC a set number of times, I wish to have five (just an example number) individual movie clips appear.
2. As opposed to random placement of these clips a la "PullThroughSpace", I wish to be able to define the spots myself.
3. Also NOT having them repeat when brought out of view. Similar to sofake, but with the addition of perspective. Also refer to bit-101's April 24, 2003 experiment.
4. Have buttons that, on release, will take you to a specific movie clip in this virtual field instead of having to click on the clip itself. Again... somewhat similar to the sofake design.
I am curious on how I can add springs into a basic motion tween for something like menus. I checked out Kirupa's small tutorial but that is a constant, not something like rollovers. The basic idea is much like lots of other sites, I just want to add a little less ridged feedback from my menus..
View 3 Repliesi have some problems in integrating with my own flash.1st of all.. let me define the key things
1st step.. the flash will detect the xml
2nd, it detect whether if it has people on air on the studio or not refer to the time.
3rd, if its between the [timeid] range ( 0-7) it has a slot but either has a dj or not, if the timeid = 8 , no slot and no deejays
the flash will show the slot language pics background = MC ( session ), the slot name = dynamic text area ( slonem ), and who's the deejays = dynamic text area (djnem), of the current time,if there's no one on air or no slot , the pics background = MC ( session ) will show music only.i'll include also my xml file and my dummy file for this thing.. also iincluded is the original schedule that working properly.. the original schedule and the dummy is basically different just they read from same xml file.i just learn xml just a few months back then also with action script with help from my roomate.
I have the following code which loads a sound, 'test.mp3', and then lowers its pitch, also slowing it down. The sound plays correctly at the lower pitch but at the end of the sample, I get this error: 'RangeError: Error #2004: One of the parameters is invalid.'. What am I doing wrong and how can I fix this problem?
[Code]...
I'm having problems with a simple flash site that contains a scrolling slide show, that uses a .xml file.I was sent a .fla file that I couldn't open with MX 2004 ... I asked them to save it as a MX 2004 file. They sent it back, and I was able to open it.The problem is ... when I save it as a .swf the slide show doesn't work.The .swf & .xml files are on the same level in the directory, and the .swf path to the .xml file is correct, also the .xml to the image folder path is correct.I have spent hours going through this, and can't get it to work.I have added images to the .xml file, and they show up (I am using the original .swf) so the .xml file is OK, and again the path from .xml to the images folder is correct. This is the working .swf file (click on the portfolio link )Now ... imagine no images there, and that's what I'm getting when I save the .fla as a .swf.Other changes I make to the .fla are working properly ... just the slideshow is the problem.Did something happen when the .fla was saved as a MX 2004 that caused the .xml part to stop working?IM not a whiz at actionscript, but I have gone over it several times, and can't see anything that looks out of place.
//http://www.kirupa.com/developer/mx2004/thumbnails.htm
function loadXML(loaded) {
if (loaded) {
[code].....
how a can i declare global variables in mx 2004? i want 2 declare a variable that can be accessed by all buttons & movie clips. i tried to put it in the main thingie (the one u find in the actions panel when you're not selecting anything)
View 3 Replieseverything was going well with my form until I transfer the files (php + swf) to a Windows server...the thing is that now it doesn't work.
View 14 Replies1.Load thumbnails from an XML file.
2.On click load the actual image which again is generated via XML file.
Now in the past I have used XML for a menu system, but I'm finding it hard to come up with this by myself from scratch. I can't seem to break the concept of how I would set this up. If anyone can lead me in the right direction with a link or example etc,
Im a bit confused about the adressing of .swf-files loaded into levels of another .swf-file.The adressing seem to be absolute, ie. if a sub.swf (which is loaded into a super.swf from another location) uses some sort of adressing (for instance, loading an image), that adress must include the path from the super.swf.
Cant you change that somehow, so that sub.swf's can adress other stuff relatively to its own adress?
Can you do that globally (so that relative adressing is used by every .swf)?Can you set it individually, so that adressing is relative only from the specified swf's?