Convert flash mx actionscript to cs4
Hi i am new t flash and am not good with actionscript at all.
Basically this code is what i need to make a menu act how i want
when scrolling. Does anyone know how to convert the following
flash mx actionscript to actionscript 3.0(Flash cs4
compatible).
If you do i would be really greatful if you ccould post it in
a reply. the tutorial i am using is at the bottom if it is of any
help.
[CODE]
mouseX = _xmouse;
menuX = menu._x;
if (mouseX > 280) {
diff = (mouseX-280)/15;
if (mouseX < 220) {
diff = (220-mouseX)/15;
if (mouseX <= 250 && menuX <= 56) {
setProperty("menu", _x, menuX+diff);
if (mouseX >= 250 && menuX >= -204) {
setProperty("menu", _x, menuX-diff);
if (menu._x >= 56) {
menu._x = 56;
} else if (menu._x <= -204) {
menu._x = -204;
gotoAndPlay(2);
[/CODE]
Page
1
Page
2
"vookster" <[email protected]> wrote in
message
news:go7cec$obn$[email protected]..
>
> I was wondering are files produced from Flash MX
compatible with
> Dreamweaver
> cs4? I have Flash MX and don't want to buy Flash cs4 if
I don't need
> to.
Flash MX creates .swf files. Dreamweaver CS4 creates HTML
files, and
has the capability of inserting .swf files in a web page. It
doesn't
matter which version of Flash you use to create your .swf
files; they
can be inserted into a web page in any version of
Dreamweaver.
David Powers
Adobe Community Expert, Dreamweaver
http://foundationphp.com
Similar Messages
-
Write to and read from TCP/IP address using Flash and Actionscript
Hi,
I'm a bit of a newbie with flash and Actionscript. I have been programming for a number of years now, but I have only been messing around with flash since CS4. I have CS5 now, and need a bit of help. I have a wireless device that I have made, I wish to make a flash program (potentially adapted to iPhone or Android) that sends and receives data (in the form of Word or Byte sized variables) from an IP address assigned to the device. Is this achievable?
Please help. Thank youbump
Please! anyone! HELP -
Converting Flash/SWF to HTML5
I.
Following Ned's advice I'm posting this message on Dreamweaver's forum (after posting it in the Flash/Actionscript 3 forum).
I'm not a programmer, so this question might sound a bit noobish.
I have this flash project with an advanced button - here's the code:
portfolio.addEventListener(MouseEvent.ROLL_OVER,btnOver);
portfolio.addEventListener(MouseEvent.ROLL_OUT,btnOut);
portfolio.addEventListener(MouseEvent.CLICK,clickPortfolioToGoToWebPage);
function btnOver(event:MouseEvent)
event.currentTarget.gotoAndPlay("Rollover");
function btnOut(event:MouseEvent)
event.currentTarget.gotoAndPlay("Rollout");
function clickPortfolioToGoToWebPage(event:MouseEvent):void
event.currentTarget.gotoAndPlay("ClickPortfolio");
navigateToURL(new URLRequest("http://www.fudzilla.com/"), "_blank");
In order to comply with the HTML5/CSS3 "new standards", I converted the swf file to HTML5 with Google Swiffy. The problem was that it doesn't support Actionscript 3, so it was converted as a looping movie. Question: Is it even possible to retain the Mouse events? Or do I have to make a HTML5 for the Rollover, another one for the Rollout and one for the Click? Again, I'm not a programmer.
Forgive my noobish remarks...
***** UPDATE: I got the code and downgraded to Actionscript 2.0 and it worked. *****
One question though: is this good practice? Creating my animations in Flash AS2 and then converting the SWF file to HTML5 using a SWF/HTML5 converter? Will I have any problems? I suppose it's not an elegant way of doing it...Hi
If you want your animations to work on HTML5 devices including mobile devices, one solution is to convert the flash content to video and use the HTML5 <video> tag to embed the video on a webpage.
Of course this works only if your content is non-interactive.
FLABACO (www.Flash-Banner-Converter.com) is a Free, online tool which converts Flash (SWF) to video. It generates excellent quality video which can be used with HTML5 to work on all HTML5 devices / mobile devices.
Kayo
Flabaco -
How to convert flash to html5 ?
HTML5 is here no way to avoid it. mainly if your building mobile applications but creating animation in html5 is just not that fun.I want to know how to convert flash to html5,with what can convert flash to html5 .
Any help will be appreciated.Thank you.Hi
You can convert flash swf file to html5 using either Adobe Wallaby or Google swiffy
http://www.designscripting.com/2011/03/convert-flash-cs5-to-html5-download-wallaby/
http://www.designscripting.com/2011/06/google-swiffy-convert-flash-to-html5-similar-to-wal laby/
Still there are some limitations,
Some of the features unsupported by Wallaby
3D transforms
ActionScript 1,2
ActionScript 3
Blend Modes
Button – events
Compiled Clips
Components
Inverse Kinematics
Sound – Stream, Event
Video – Embedded/External -
Stop and Play All Child MovieClips in Flash with Actionscript 3.0
I am stuck with the ActionScript here. I have a very complex animated flash movie for eLearning. These contain around 10 to 15 frames. In each frame I am having multiple movie clip symbols. The animation has been created using a blend of scripting and also normal flash animation.
Now I want to create pause and play functionality for the entire movie. I was able to create the pause function but when i try to play the movie it behaves very strange.
I was able to develop the pause functionality by refering to the below mentioned links:
http://www.unfocus.com/2009/12/07/stop-all-child-movieclips-in-flash-with-actionscript-3-0 /
http://www.curiousfind.com/blog/174
Any help in this regard is highly appreciated as i am approaching a deadline.
I am pasting the code below:
import flash.display.MovieClip;
import flash.display.DisplayObjectContainer;
import flash.utils.Timer;
import flash.events.TimerEvent;
import fl.transitions.*;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
import flash.events.Event;
import flash.events.MouseEvent;
stop();
// function to stop all movieclips
function stopAll(content:DisplayObjectContainer):void
if (content is MovieClip)
(content as MovieClip).stop();
if (content.numChildren)
var child:DisplayObjectContainer;
for (var i:int, n:int = content.numChildren; i < n; ++i)
if (content.getChildAt(i) is DisplayObjectContainer)
child = content.getChildAt(i) as DisplayObjectContainer;
if (child.numChildren)
stopAll(child);
else if (child is MovieClip)
(child as MovieClip).stop();
// function to play all movieclips
function playAll(content:DisplayObjectContainer):void
if (content is MovieClip)
var movieClip:MovieClip = content as MovieClip;
if (movieClip.currentFrame < movieClip.totalFrames) // if the main timeline has reached the end, don't play it
movieClip.gotoAndPlay(currentFrame);
if (content.numChildren)
var child:DisplayObjectContainer;
var n:int = content.numChildren;
for (var i:int = 0; i < n; i++)
if (content.getChildAt(i) is DisplayObjectContainer)
child = content.getChildAt(i) as DisplayObjectContainer;
if (child.numChildren)
playAll(child);
else if (child is MovieClip)
var childMovieClip:MovieClip = child as MovieClip;
if (childMovieClip.currentFrame < childMovieClip.totalFrames)
//childMovieClip.play();
childMovieClip.play();
function resetMovieClip(movieClip:MovieClip):MovieClip
var sourceClass:Class = movieClip.constructor;
var resetMovieClip:MovieClip = new sourceClass();
return resetMovieClip;
pauseBtn.addEventListener(MouseEvent.CLICK, onClickStop_1);
function onClickStop_1(evt:MouseEvent):void
MovieClip(root).stopAll(this);
myTimer.stop();
playBtn.addEventListener(MouseEvent.CLICK, onClickPlay_1);
function onClickPlay_1(evt:MouseEvent):void
MovieClip(root).playAll(this);
myTimer.start();
Other code which helps in animating the movie and other functionalities are as pasted below:
stage.addEventListener(Event.RESIZE, mascot);
function mascot():void {
// Defining variables
var mc1:MovieClip = this.mascotAni;
var sw:Number = stage.stageWidth;
var sh:Number = stage.stageHeight;
// resizing movieclip
mc1.width = sw/3;
mc1.height = sh/3;
// positioning mc
mc1.x = (stage.stageWidth/2)-(mc1.width/2);
mc1.y = (stage.stageHeight/2)-(mc1.height/2);
// keeps the mc1 proportional
mc1.scaleX <= mc1.scaleY ? (mc1.scaleX = mc1.scaleY) : (mc1.scaleY = mc1.scaleX);
stage.removeEventListener(Event.RESIZE, mascot);
mascot();
this.mascotAni.y = 100;
function mascotReset():void
// Defining variables
var mc1:MovieClip = this.mascotAni;
stage.removeEventListener(Event.RESIZE, mascot);
mc1.width = 113.45;
mc1.height = 153.85;
mc1.x = (stage.stageWidth/2)-(mc1.width/2);
mc1.y = (stage.stageHeight/2)-(mc1.height/2);
// keeps the mc1 proportional
mc1.scaleX <= mc1.scaleY ? (mc1.scaleX = mc1.scaleY) : (mc1.scaleY = mc1.scaleX);
var interval:int;
var myTimer:Timer;
// function to pause timeline
function pauseClips(secs:int, myClip:MovieClip):void
interval = secs;
myTimer = new Timer(interval*1000,0);
myTimer.addEventListener(TimerEvent.TIMER, goNextFrm);
myTimer.start();
function goNextFrm(evt:TimerEvent):void
myTimer.reset();
myClip.nextFrame();
myTimer.removeEventListener(TimerEvent.TIMER, goNextFrm);
// function to pause timeline on a particular label
function pauseClipsLabel(secs:int, myClip:MovieClip, myLabel:String):void
interval = secs;
myTimer = new Timer(interval*1000,0);
myTimer.addEventListener(TimerEvent.TIMER, goNextFrm);
myTimer.start();
function goNextFrm(evt:TimerEvent):void
myClip.gotoAndStop(myLabel);
myTimer.removeEventListener(TimerEvent.TIMER, goNextFrm);
MovieClip(root).pauseClips(4.5, this);
// function to fade clips
function fadeClips(target_mc:MovieClip, next_mc:MovieClip, from:Number, to:Number):void
var fadeTW:Tween = new Tween(target_mc, "alpha", Strong.easeInOut, from, to, 0.5, true);
fadeTW.addEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
function fadeFinish(evt:TweenEvent):void
next_mc.nextFrame();
fadeTW.removeEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
// function to fade clips with speed
function fadeClipsSpeed(target_mc:MovieClip, next_mc:MovieClip, from:Number, to:Number, speed:int):void
var fadeTW:Tween = new Tween(target_mc, "alpha", Strong.easeInOut, from, to, speed, true);
fadeTW.addEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
function fadeFinish(evt:TweenEvent):void
next_mc.nextFrame();
fadeTW.removeEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
// function to show screen transitions
function screenFx(target_mc:MovieClip, next_mc:MovieClip):void
//var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
var tranFx:TransitionManager = new TransitionManager(target_mc);
tranFx.startTransition({type:Iris, direction:Transition.OUT, duration:1.2, easing:Strong.easeOut, startPoint:5, shape:Iris.CIRCLE});
tranFx.addEventListener("allTransitionsOutDone",doneTrans);
function doneTrans(evt:Event):void
next_mc.nextFrame();
tranFx.removeEventListener("allTransitionsOutDone",doneTrans);
// function to show screen transitions inverse
function screenFxInv(target_mc:MovieClip, next_mc:MovieClip):void
var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
var tranFx:TransitionManager = new TransitionManager(target_mc);
tranFx.startTransition({type:Iris, direction:Transition.IN, duration:2, easing:Strong.easeOut, startPoint:5, shape:Iris.SQUARE});
tranFx.addEventListener("allTransitionsInDone",doneTrans);
function doneTrans(evt:Event):void
next_mc.nextFrame();
tranFx.removeEventListener("allTransitionsInDone",doneTrans);
// function to zoom in
function zoomFx(target_mc:MovieClip):void
//var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
var tranFx:TransitionManager = new TransitionManager(target_mc);
tranFx.startTransition({type:Zoom, direction:Transition.IN, duration:3, easing:Strong.easeOut});
//tranFx.addEventListener("allTransitionsInDone",doneTrans);
/*function doneTrans(evt:Event):void
next_mc.nextFrame();
// Blinds Fx
function wipeFx(target_mc:MovieClip):void
var tranFx:TransitionManager = new TransitionManager(target_mc);
tranFx.startTransition({type:Wipe, direction:Transition.IN, duration:3, easing:Strong.easeOut, startPoint:9});
// Blinds Fx Center
function fadePixelFx(target_mc:MovieClip):void
var tranFx:TransitionManager = new TransitionManager(target_mc);
tranFx.startTransition({type:Fade, direction:Transition.IN, duration:1, easing:Strong.easeOut});
tranFx.startTransition({type:PixelDissolve, direction:Transition.IN, duration:1, easing:Strong.easeOut, xSections:100, ySections:100});This movie is an animated movie from the start to end. I mean to say that though it stops at certain keyframes in the timeline it stops for only a certain time and then moves on to the next animation sequence.
Its not an application where the user can interact.
On clicking the play button i want the movie to play normally as it was playing before. If the user has not clicked on the pause button it would anyhow play from start to finish.
Is there anyway where i could send in the fla file? -
How to Setup Flash Builder ActionScript only project for iPad?
Hello!
Can someone give a short guide on how to setup an ActionScript only prject in flash builder such that it can be compiled using adt and deployed to the iPad?
i created successfully iphone games using FlashIDE and PFI.
now I'd like to create an iPad app using Flash Builder (ActionScript only). but I fail to load the compiled IPA to the ipad, keep getting different errormessages thus i think something with my projectsetup is wrongYes, in Terminal you type a single line which is made from the path to the adt application, some parameters, and paths to other documents. Here's the full list of things:
/Location/to/AdobeAIRSDK_2.6/bin/adt
-package
-target ipa-test
-provisioning-profile /Location/to/Provision.mobileprovision
-storetype pkcs12
-keystore /Location/to/Certificates.p12
-storepass password
NameOfApp.ipa ApplicationDescriptor-app.xml
-C /Location/to/swf NameOfApp.swf
splashscreens
icons
That "-C" line is clever, it does a directory change to the folder you give it, so after the -C /location/to/swf part it will then look in that same folder for other documents, and for where to build the IPA file. -
Convert flash QT.mov to WMV or MPG
Please help!
Does anyone know the simplest way to convert a flash
animation Quicktime movie to WMV or MPG?
This is a rush, I'm working under deadline. Originally, I was
told QT.mov was acceptable format.
Now, I'm being told that their server can only handle WMV or
MPG. When they tried to convert the
QT file it was converted without the audio track. I've tried
to download serveral of the free shareware converters -- no luck.
(either corrupted or some glitch occurs or company logo is
embedded in converted file).
I know AE (AfterEffects) to some degree and I believe I can
export to WMV of MPG there. But this is a huge file,
trying to download it now at a cybercafe with two T1 lines --
still it's "watching paint dry".
Please anybody, any suggestions, please.
Thank you.I think the simpliest way converting flash into video - use
Flash To Video
Encoder.
recommendation for
Adobe Premiere
is a good one too -
I have made a very large flash animation (1920 x 1080, 40fps)
with the intention of converting it so some other format (.avi,
.mpg, .vob, etc...) so that it can be played on a digital media
player (
http://www.mvixusa.com/).
I have successfully made the flash file but am unable to
convert it without some significant loss in framerate, resolution,
or quality. My machine is well equipped (quad-core Phenom, RAID,
etc...) and I have access to CS3 master collection but have been
unable to find a solution so far. You can see a sample here:
http://aquarium.org/oddwaterTesting/odd3.htm
I have tried exporting directly from flash, using after
effects, and a handful of other dinky "flash converter" programs
that seem to be meant for converting flash to lo-res handheld video
or pirating online content. I need to find a solution asap. Any
help you can give me is appreciated.quote:
Originally posted by:
Walter Elias
If you're converting to any kind of standard HD video format,
then of course you're going to experience loss in frame rate. You
should have done your homework before setting up the file. For
television, the frame rate is approximately 30 fps (actually 29.97)
in NTSC (North America) and 25 fps in PAL (much of the rest of the
world). There are other "standard" frame rates for HD video,
including 59.94 and 60. But not 40. Compressed Quicktime, AVI and
MPG is often rendered at 15 fps so as to make less gargantuan files
and be playable on websites and handheld devices. This is done by
skipping or interlacing every other frame. from an original created
at 30 fps. But your 40 fps is an odd rate which wouldn't compress
easily. Perhaps your media player is configured to play back movies
only at standard rates.
Awesome. This is the problem I was having. I actually had
done some research and found that different types of encoding used
different framerates and just settled on 40 since its a good high
number. I anticipated possibly having to change the FPS so I made
sure that the only sount is ambience, this way nothing besides the
overall speed is messed up.
quote:
As a test, try building a small, temporary animation file at
30 fps and see whether you experience the same problems.
This is what I did eventually changing the entire file to 30
fps.
As a side note is there a standard framerate for HD? -
The Flex Actionscript is exactly the same as FLASH PROFESSIONAL Actionscript
To learn Flex you start with scripting relative languages mxml, etc , or with learning the menus in Flash Builder? how you proceed after you startup? Learning Flex you must choose a server side scripting language from the ones you know very well, and use it by a way in Flex works? like Java if I am familiar with?
Only Actionscript/MXML (+client side) or/and one server side lang REQUIRED, like java/jsp? Can you recommend any textbook in Actionscript/MXML? the Actionscript is exactly the same as FLASH PROFESSIONAL Actionscript? how many months study in Actionscript/MXML, to move to learning menues in BUILDER? IF REQUIRED one server side lang, what level of JAVA I must have, SE & EE & ME to proceed in learning Flex/Actionscript/MXML and thereafter BUILDER-MENUES?You are asking a ton of questions here, but in general ActionScript in Flex and Flash is the same, but in some cases it is used differently, but most of the time the same.
Great book on ActionScript:
http://www.amazon.com/Essential-ActionScript-3-0-Colin-Moock/dp/0596526946
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com -
Converting flash document (FLA) to Flex project
Hi, I am trying to convert flash document to flex project.
I initially had the .swf file. Then I created flash document(.fla) from .swf file. Now I need to convert to flex project so that I can modify and add new functionality. Please let me know if there are conversion tools available or is this purely a manual effort.You should take your question over to the Dreamweaver forum if it asking how to work with HTML5. HTML5 by itself cannot reproduce Flash designs... the burden is moreso on javascript and CSS to make that happen.
http://forums.adobe.com/community/dreamweaver/dreamweaver_general?view=discussions -
Flash panels crashing Photoshop CS4
Flash panels crash Photoshop CS4 under the following conditions:
1. The "Auto-Collapse Iconic Panels" option is activated under Edit > Preferences > Interface.
2. The flash panel is collapsed to an icon.
3. You click on the panel icon to display it and run a filter plugin from the flash panel.
The crash happens when you run the filter plugin from the panel or after you click OK on the plugin dialog. Sometimes the crash happens after the plugin was applied and you do something else in Photoshop.
I was able to reproduce the problem with my own ThePluginSite panel and the Blow-Up panel of Alienskin.
If the "Auto-Collapse Iconic Panels" option is deactivated, there is no crash.
Can this problem be fixed in Version 11.02 of Photoshop CS4?
What does this have to do with the SDK? Does it crash in a plugin that you wrote using the SDK?
Or are you just trying to report a bug in the flash panel code? If so, use the normal bug report form, and include details so we can work with Alien Skin to resolve the problem. -
Using Dreamweaver MX to edit pages with Flash 9 Actionscript 3
I designed a site using CS3 and used Actionscript 3 and Flash
9 for a banner on the site.
The site pages will now be edited and updated by the owners
who have Dreamweaver MX 2004.
Is there going to be any problems or errors that can be
expected regarding the Flash banner/Actionscript? The owner will
not be editing the banner just updating some page content.
Thanks for your helpzuy377 wrote:
> I designed a site using CS3 and used Actionscript 3 and
Flash 9 for a banner on
> the site.
>
> The site pages will now be edited and updated by the
owners who have
> Dreamweaver MX 2004.
>
> Is there going to be any problems or errors that can be
expected regarding the
> Flash banner/Actionscript? The owner will not be editing
the banner just
> updating some page content.
No problem.
If they aren't updating that part of the page then nothing
will be
altered in terms of the code so it will continue to work.
A page is only html and can be edited in any html editor or
text editor.
I don't know how the owners are going to update the pages but
of course
by giving them access to all of the code they can ruin
everything if
they don't know what their doing........theres nothing you
can do about
that unless you create some sort of Content Management
System, which
only allows them to alter specific parts of the code. -
Converting Flash to Chinese and Japanese
I'm being asked by a client if their Flash-based elements
containing English text can be converted to Chinese and Japanese
for alternate versions of their site. Is this possible? If so, how
do I go about doing it? Is it a simple copy and paste, or do I have
to configure Flash or my system in some way?
P.S. - I'm using a MacbookPro with Intel Core 2 Duo processor
and Flash CS3.
Thanks in advance.You probably just downloaded the Flash browser plugin -it does not show up in your Applications folder.
[MPEG Streamclip|http://www.squared5.com] can open and convert Flash to .mov.
If you export a H264 of your finished project from FCP, changing the file extension to .fla apparently works, although I have never tried it.
The perfect solution is to buy a copy of Flash from Adobe. But their are plenty of other solutions such as [this one|http://www.versiontracker.com/dyn/moreinfo/macosx/36217] that are easier on your finances. -
Can i convert flash 8 mack to flash MX??
I want to convert flash 8 mack to flash MX so i can work on
my flash at college.. i tryed just copying the image over from the
last keyframe but this didnt work.. does anyone have any
ideas???Flash 8 can only save back to MX 2004. You will need a
version of MX04 to save back to MX.
To save back - File/Save As. Select Flash MX 2004 from the
drop-down menu. -
Does anybody know of a way to convert flash 8 files to flash
mx?you need mx 2004 as well. Flash 8 can backwards save to mx
2004 and then with mx 2004 you cna backwards save to mx
Maybe you are looking for
-
Exporting to Excel from Aria People Search
Is it possible to export to Excel from Aria People Search. I would like to output the Org Chart (built in) and the Tree (I created) to an Excel file. Does anyone know how to do this? Thanks, Tom
-
Problem with update for Windows 7 64 bit
I downloaded and updated to the newest version of iTunes, but when I restarted, as requested, my internet wouldn't work anymore. Not just when iTunes was open mind you....it wouldn't work AT ALL!! Up until the update iTunes ran fine, the internet was
-
Jdeveloper 11g web service - java.lang.NoClassDefFoundError
Hi, I've just installed JDeveloper 11 preview 3. I'd like to perform this http://www.oracle.com/technology/obe/obe11jdev/11/ws/ws.html tutorial, but when I test web service, I get java.lang.NoClassDefFoundError. Attached is the complete server log. D
-
Safari and Traditional Chinese Fonts
Quick question...Why isn't Safari 3.0.4 rendering Traditional Chinese text on some websites anymore? The older Tiger version rendered everything beautifully. Specifically having problems with pull down tabs with hyperlinked text within. Having no pro
-
WCM CONFIG DETAILS(GUIDE)
Hi experts, Any body have WCM config guide kindly share.