ActionScript 3.0 :: Greensock Animation Not Working When Imported
Mar 14, 2012
Using the greensock tween engine I have a little effect going over my button. It works when I publish on my desktop. But stops working when I import the swf into my main swf. It's the scaling e.target, that is not working!
PHP Code:
map.east.buttonMode = true;
map.east.mouseChildren = false;
map.east.addEventListener (MouseEvent.MOUSE_OVER, eastOverHandler);
map.east.addEventListener (MouseEvent.MOUSE_OUT, eastOutHandler);
function eastOverHandler (e:Event):void {
[Code] .....
View 1 Replies
Similar Posts:
Jul 24, 2009
I'm trying to stop an animation running that I've imported from an .SWF file.I've loaded it using the new URLRequest method, but now I can't seem to talk to it.Is it possible to Talk to it, or should I just leave it in the Library and pull it from there.
View 2 Replies
Mar 25, 2010
I am trying to understand what is going on in a SWC that I am importing from Flash CS4 into Flex Builder 3. Specifically I am using a SWC supplied by a Designer as the animation for a custom preloader (a subclassed DownloadProgressBar).The issue I am trying to understand is, once the FlexEvent.INIT_COMPLETE is fired, I cleanup by removing the swc by running this [code]though even after I have removed this (which is successful, as I have checked by comparing this.numChildren before and after the call) the key framed animation still continues to run (not visibly). This has been detected by the Designer placing a trace in the time line of the animation (in Flash). Can anyone tell me why is it, that even after I have removed the animation from the subclassed DownloadProgressBar, it still keeps running ? Also, is it standard practice when importing SWCs to manage the cleanup of resources from the Flash side of things (much like releasing memory in obj-c). I find it counter intuitive that removing the child from the Flex side does not stop the animation.
View 1 Replies
Sep 30, 2009
i have produced a simple drag and drop slide for use in my captivate project, works fine standalone, but when i import into Captivate it doesnt work correctly, the drag and drop element works ok but it doesnt seem to be targeting the drop target i then use to then goto the next frame etc.
on (press) {
startDrag(this, true);
}
on (release) {
[Code]......
is there another way to reference "/want_box" that will work in Captivate?
View 1 Replies
Apr 5, 2011
I have 4 swfs that I have exported from flash, all containing clickable links. By themselves, the links work just fine. However, I have a "Main" movie that I am trying to import the 4 swf files into. They import fine and I have no problems except that when I test/export the movie the links in the original swf files no longer work.
View 2 Replies
Jul 25, 2007
I have a Drag&Drop game that works perfectly when viewed alone, but when I import it through a master SWF it wont work. You can drag the items but when you release them on the right droptarget they are all sent back. Its like it doesn't recognize the droptargets I think, but Im not sure...(Take a look at the Zip for .fla & .swf)
[Code]...
View 2 Replies
Nov 17, 2010
I have downloaded the "greensock-as3.zip" extracted it and tried to run the following file to install the plug-in. But it throws an error "Unexpect file format".
greensock.swc
View 3 Replies
Nov 30, 2009
i am new in flash development, i heard that Greensock lib is the best one. But when am trying to download its really confusing. there are a lot of names like
* TweenNano
* TweenLite
* TweenMax
* TimelineLite
* TimelineMax
* Tweening Platform v11
Which is the best or full featured lib.. where do i get the download link for the complete package or. lease guide me if am wrong.
View 6 Replies
Nov 22, 2011
LoaderMax uses the following function in their DisplayObjectLoader.as class which is under loader/core :
Although they have put the forced GC under a Try/Catch block. Flash Player 11 still manages to crash on it. Any ideas about this?
protected static function _forceGCHandler(event:Event):void {
if (_gcCycles == 0) {
_gcDispatcher.removeEventListener(Event.ENTER_FRAME, _forceGCHandler);
_gcDispatcher = null;
[Code]...
View 2 Replies
Nov 29, 2011
I have a page I'm developing that has a greensock split text field that I use to animate text. [URL].. I'm using a timer to help control the tween it doesn't work real smoothly.
import com.greensock.*;
import com.greensock.easing.*;
import com.greensock.text.*;
import com.greensock.text.SplitTextField;
[Code]...
View 2 Replies
Mar 30, 2012
importing GreenSock external classes into my flash project.
Line 27: import gs.*;
DesktopmyFlashAPPS wittersrczainu witterMainClass.as, Line 271172: Definition gs could not be found.
[Code].....
View 6 Replies
Jul 5, 2010
I want to tween programmatically an image using greensock, but i dont know if it is possible to make it look like the image is 3d.
View 1 Replies
May 14, 2010
ive got xml file which in:
HTML Code:
<easeType easeType="Bounce.easeInOut"></easeType>
and after xml loaded to flash i set variable which is actually set up in function after starting flash movie to just refresh values of variables:
ActionScript Code:
newEasing = setupXmlList.attribute("easeType");
changeSetup(newEasing);
[Code]......
but there is no any change whichever easing i choose... I think there is some issue with refferencing objects, as from XML there comes String and in the TweenLite constructor i pass a string when i think some specific object is required.
View 3 Replies
Jun 28, 2011
I am finding my way with AS3 but am having difficulty with a gallery project I am trying to put together based on the sample slideshow available on this site.
The problem relates to reading the thumb and image paths in the xml file. The error that is coming back is:
Loading error on ImageLoader 'loader1' (assets/thumbs/): Error #2035: URL Not Found. URL: file:///C|/Documents%20and%20Settings/Alistair.HOME/Desktop/AB%20gallery%20proj/assets/thumbs/
[Code].....
View 1 Replies
Mar 31, 2012
I'm using greensock LoaderMax to load video files and sound files. I've copied as much code as is available to me. A video (s9) is playing and at a certain percentage through the video, I need to play another sound.
[Code]...
View 2 Replies
Oct 29, 2011
Is it possible to make tweens happen at the same time with Greensock Timelinelite?
I know it could be possible to fake it by putting a negative delay in but that's not very accurate.
View 1 Replies
Jul 7, 2011
I want a random image from the xml to be loaded and displayed when gallery is opened, together with gallery thumbs. Then remaining images are to be loaded in the background.
I am having problems pushing and retrieving data from the array that I have set up. The trouble I am have relates to the following code (but I attach a zip with all code and assets).
ActionScript Code:
private function _xmlCompleteHandler(event:LoaderEvent):void {
trace("loading complete");
_slides = [];
[Code].....
View 0 Replies
Sep 8, 2010
I have made an animation, when i veiwed it as a preveiw in flash CS4 it works fine.So I published it as both a HTML fie and SWF.The HTML file runs perfectly fine, but the SWF file is missing almost all of the illustrations and the play button at the begining, the sounds all work fine however.. I have no Idea what to do or what I have done wrong and it is driving me crazy as I wanted to post it on the net so my friends can see it....
View 2 Replies
Jul 31, 2009
*I can't post the file due to the company policy, so I'll do my best to explain. 3 movie clips: slide 1, 2, and 3. Each loads an external image.
Layers (how I have them set up):
slide 1
slide 2
slide 3
The slides have a 3d feel, as if they are in the distance. When the user clicks one, the slide(mc) motion-tweens towards the screen, while the other 2 stay back. Obviously, if slide 2 comes towards the screen then slide 1 will be over top of it DUE TO layer structure (above). And of course, 1 & 2 will be over slide 3. To get around this I made a "current" layer over top of all the slide layers. So if I click on slide 2/3 then the tween is up on the "current" layer instead of the "slide 2/3" layer so that it's the highest.
[Code]....
View 2 Replies
Jun 5, 2011
The site is up at [URL]
It is a horizontal layout and when you click on certain buttons it side scrolls to that specific area. The buttons don't execute the actionscript that I need them to not to mention that some images are missing.
Also, are there any bulk packaging publisher settings like InDesign has? I think there may be a problem in the location of some files and I think Flash may not be locating them properly.
View 3 Replies
Aug 26, 2010
i am trying to add animation to my pie. its not working. any help?[code]
View 3 Replies
Nov 3, 2010
I have a flash file that I created that basically runs an animation, stops, than has 5 buttons that call upon other swf files to popup and show dynamic text from a txt file. I have the animation running perfectly and everything works but when I try and implement it into a website template the buttons do not call to the other swf files. It runs the initial animation from main.swf, but when any of the buttons are clicked nothing happens.I made sure that all files were uploaded, even the txt files. The bottom of the browser reads "Transferring data from website..." So it sounds like its trying to read the actionscript but its taking too long to process.
MAIN.SWF
Code:
stop();
var popUpLoader:Loader = new Loader();[code].......
View 2 Replies
Jun 23, 2009
I'm building a website and decided I was going to work with a pre-built web template. Problem is, as I painfully found out, my host wants the file structure of the site a very certain way (html pages in the root directory, media-files folder, image-files folder, support-files folder following that). I had to go through the template and recode a good bit of it myself (only knowing HTML, while the site is written in HTML, CSS, Java, and Flash). I've gotten the vast majority of the site working now.. on my computer at least.
I went through the flash file and corrected the directories so it could find the background pictures it needs and saved the file. Now, when I hit CTRL+Enter in CS4, the preview comes up correction and works flawlessly. However, when I bring the file up in firefox, the flash animation is STILL missing the background images. Also, I need to move a related file to the flash animation into another folder, but when I do that the text disappears, even after correcting the directory in flash.
The template I'm working with can be found here : Click. The flash animation in question is on the mid-left side of that page, where you can click the arrow to proceed through 4 different slides. Also having problems with the logo of the site, where the text will disappear if I move the related file I was talking about (A text file).
Here are pictures of the problem:
No background: Click
No Background/No text (moved text file, corrected directory): Click
What I see in Flash CS4: Click
I've also tested the site in Internet Explorer, same problem. I'm guessing there's probably a simple fix for this, but being unfamiliar with flash I just don't know it...
View 2 Replies
Dec 22, 2009
I am a Noob to ActionScripting and am having problems getting some movieclips to link to different URLs on release. I am able to get them to animate, and I am able to get them to link to an html page in the same folder, but I can�t get both functionalities to work at the same time and it is driving me crazy!! I've tried putting the actionscript in the instance object, in the action layer, and other things and nothing seems to work!?I believe that the actionscripting needs to be done in the "baners" movieclip, but it could also be the "Symbol 3" movieclip
Here is also a link to the . See, if you mouse over the first two clips, they animate, but they do not go to the HTML page if you click on them. The third clip will go to the page success1.html in the same folder if you click on it, but it does not animate on mouse over.I'm using Flash CS3 as my editor and I'm using ActionScript 2.0 for the scripting
View 5 Replies
May 14, 2010
I have a class which extends a SWC , in the swc i have two boxes, front and back and an animation on the same timeline. The animation works fine without swapping when I swap them the animation stops working.[code]...
View 7 Replies
May 14, 2010
I have a class which extends a SWC , in the swc i have two boxes, front and back and an animation on the same timeline. The animation works fine without swapping when I swap them the animation stops working.
I have the following code :
var frontTemp:DisplayObject = this.animationInstance.getChildByName("front");
var backTemp:DisplayObject = this.animationInstance.getChildByName("back");
this.animationInstance.swapChildren(frontTemp,backTemp);
this.animationInstance.gotoAndPlay("animation");
View 1 Replies
Jun 1, 2011
This is a fairly simple question I would think.here is the code (I cut it down for an easy read)
<fx:Declarations>
<s:AnimateColor id="rw"
target="{targetRatioCol}"
[code]....
View 1 Replies
May 14, 2010
I have a class which extends a SWC , in the swc i have two boxes, front and back and an animation on the same timeline. The animation works fine without swapping when I swap them the animation stops working
I have the following code :
var frontTemp: DisplayObject = this.animationInstance.getChildByName("front");
var backTemp: DisplayObject = this.animationInstance.getChildByName("back");
[code]......
View 1 Replies
Dec 22, 2009
I am new to Flash/Actionscript and am having problems getting some movieclips to link to different URLs on release. I am able to get them to animate, and I am able to get them to link to an html page in the same folder, but I can't get both functionalities to work at the same time. I've tried putting the actionscript in the instance object, in the action layer, and other things and nothing seems to work!?
Here is the link to the source file: [URL] believe that the actionscripting needs to be done in the "banners" movieclip, but it could also be the "Symbol 3" movieclip. Here is also a link to the .swf [URL]. See, if you mouse over the first two clips, they animate, but they do not go to the HTML page if you click on them [URL]. The third clip will go to the page success1.html in the same folder if you click on it, but it does not animate on mouse over.
View 5 Replies
Jun 24, 2010
I have made an animation, when i veiwed it as a preveiw in flash CS4 it works fine.So I published it as both a HTML fie and SWF.The HTML file runs perfectly fine, but the SWF file is missing almost all of the illustrations and the play button at the begining, the sounds all work fine however.
View 1 Replies