Publishing to Flash 8 / 6 differences?

I have created a button that when pressed, moves a picture to
the right in a smooth slide (this is for browsing through
thumbnails of pics). When published to Flash 6 it works perfectly,
but when publishing to Flash 8 it doesn't work. I have to publish
to 8 because I have FLVPlayback flash video objects. Can anyone
help as to how to make it work on Flash 8?
The button code ActionScript is:
on (release) {
if (targetx>-500) {
targetx -= +78;
The picture ActionScript is:
onClipEvent (load) {
accel = 0.1;
rate = 0.2;
targetx = 0;
onClipEvent (enterFrame) {
x = x*accel+(targetx-_x)*rate;
_x += x;
if (Math.abs(targetx-_x)<1) {
_x = targetx;
Thanks!

Hi,
First i suggest to datatype your variables event if in your
case it will not solve your problem but its a good habit to take.
example:
var accel:Number = 0.1;
var rate:Number = 0.2;
var targetx:Number = 0;
So now in order to help you a suggest to use the Tween Class.
It is not really hard to use and it does quite a good job to move
things around or for alpha fade and also for so many other use.
Here is a really good tutorial for the Tween Class:
http://www.actionscript.org/tutorials/advanced/Tween-Easing_Classes_Documented/index.shtml

Similar Messages

  • Fullscreen published in flash - htm 100%  width and height file is too big

    Hello everyone
    I need some help to create a fullcreen flash animation inside
    dreamweaver.
    What I did was to create a html file published in flash 100%
    width and height.
    It worked well on my explorer browser, but the size of the
    file is 995 k and this would be my index.
    When I publish on my provider the file doesn't open, probably
    is too big as an index, i don't know.
    Is there anyone there that could help me on that one?
    Thank you
    This is the code on Dreamweaver html
    <HTML>
    <HEAD>
    <meta http-equiv=Content-Type content="text/html;
    charset=ISO-8859-1">
    <TITLE>back_men</TITLE>
    </HEAD>
    <BODY bgcolor="#262626">
    <!-- URL's used in the movie-->
    <!-- text used in the movie-->
    11cf-96B8-444553540000"
    codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
    WIDTH="100%" HEIGHT="100%" id="back_men" ALIGN="">
    <PARAM NAME=movie
    VALUE="file:///C|/betoko_webfiles/flash_files/betoko/back_men.swf">
    <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor
    VALUE=#262626> <EMBED
    src="file:///C|/betoko_webfiles/flash_files/betoko/back_men.swf"
    quality=high bgcolor=#262626 WIDTH="100%" HEIGHT="100%"
    NAME="back_men" ALIGN=""
    TYPE="application/x-shockwave-flash" PLUGINSPAGE="
    http://www.macromedia.com/go/getflashplayer"></EMBED>
    </OBJECT>
    </BODY>
    </HTML>
    <script type="text/javascript"
    src="fixit.js"></script>

    Well, firstly you have > 60 minutes of video, therefore, you should not use the 60 minute preset. Since you have 80 minutes of video, you're probably better off using the 90 minute preset.
    Secondly, the presets assume that you are compressing your audio to AC3 with A.pack or Compressor 2 (depending on which version of DVDSP you're using). Uncompressed audio takes up lots of disc space and bandwidth.
    Thirdly, the difference between the measured size in the Finder and the size in DVDSP is the difference between true gigabytes (how the Finder measures things) and billions of bytes (how DVDSP measures things). When you Get Info in the Finder, look at the number following the file size in GB... it's a larger number that's so many billions of bytes. This larger number should agree with the number you see in DVDSP. See the DVD FAQ for a discussion of this issue.

  • How do I turn video smoothing on for projects that I publish to Flash?

    I am using Captivate 7.  I have an MP4 that is places on a slide.  I am publishing to Flash.  I have set everything to the highest quality and have turned off all compression.  Due to contstraines in our delivery system I must limit the playback size by editing the HTML file after it has been plublished (I dont have a choice in this and I have to use Flash).  So the problem is that when the player is resized the video quality is very poor in the flash output.  If I simply play the MP4 outside of flash I can cleanly resize the window.  It appears that video smoothing is not turned on in when Captivte publishes a Flash file.  Anyone know a script or setting to turn this feature on in the resulting flash file?  As a side note before I got here they used Camtasia and it used video smoothing by default.  So Im trying to get the same look.  As a test I took the same mp4 (newly created by me) and droped in into one of their old Camtasia flash folders and it looked fine.  So I know it is something that Captivate is not doing the way I want it too.  Any help?

    From your end, it is likely you cannot. Some cellular providers do not allow anything other than simple SMS, or the person you wish to message may not have elected to include those feature, or have them turned off. It has nothing to do with any settings or capability on your phone.

  • Publishing a flash with AS3.0 on website does not work

    Okay, I'm finally at the end of my flash card. Here's the whole code.
    //import classes
    import com.greensock.TweenLite;
    import com.greensock.easing.*;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    //end of importing
    //start of sound section is for sound
    var cssLoader:URLLoader;
    var css:StyleSheet;
    var soundReq:URLRequest=new URLRequest("audioFiles/PaukenBrumfiel_AngelsOnHigh.mp3");
    var sound:Sound = new Sound();
    sound.load(soundReq);
    sound.addEventListener(Event.COMPLETE, onComplete);
    //end of sound section
    //Loading external texts
    var weiss:Font = new Weiss();
    var weissBold:Font = new WeissBolder18();
    var weissBolder:Font = new WeissBolder();
    var slideXTween:Tween;
    var txtAlphaTween:Tween;
    var txtNextText:Tween;
    var txtContainer:Sprite;
    var txtField:TextField = new TextField();
    var myTxtField:TextField = new TextField();
    var txtFldwebImages:TextField = new TextField();
    var textRequest:URLRequest=new URLRequest("happyHoliday.txt");
    var textLoad:URLLoader = new URLLoader();
    var txtFormat:TextFormat = new TextFormat();
    var myLinkFormat:TextFormat = new TextFormat();
    var strLink:String;
    var numXPos:Number;
    var numYPos:Number;
    //end of loading external texts
    function onComplete(event:Event):void {
        sound.play();
    function textReady(event:Event):void {
        //txtFormat.font= weiss.fontName;
        txtFormat.color=0x000066;
        txtFormat.size=24;
        //txtField.x = stage.stageWidth;
        //txtField.width = 800;
        txtField.autoSize=TextFieldAutoSize.LEFT;
        //txtField.height = txtField.autoSize
        txtField.wordWrap=false;
        txtField.text=event.target.data;
        txtField.setTextFormat(txtFormat);
        //txtField.y = 350;
        txtField.embedFonts=true;
    textLoad.load(textRequest);
    txtFormat.font= weiss.fontName;
    textLoad.addEventListener(Event.COMPLETE, textReady);
    txtField.x=stage.stageWidth;
    addChild(txtField);
    txtField.y=350;
    TweenLite.to(txtField, 40, {x:-stage.stageWidth*2.25, ease:Linear.easeNone, delay:0.5, onComplete:Inspiration});
    function Inspiration():void {
        txtFormat.font= weissBolder.fontName;
        textLoad.load(new URLRequest("inspiration.txt"));
        txtField.x=130;
        txtField.y=330;
        txtField.alpha=0;
        TweenLite.to(txtField, 5, {alpha:1, onComplete:GoogleFunc});
    function GoogleFunc():void {
        //create and initialize css
        addChild(myTxtField);
        strLink = "<a href='http://www.google.com/' target='_blank'>Google</a>";
        numXPos = 180;
        numYPos = 370;
        var myCSS:StyleSheet = new StyleSheet();
        myCSS.setStyle("a:link", {color:'#000066',textDecoration:'none'});
        myCSS.setStyle("a:hover", {color:'#FF6600',textDecoration:'underline'});
        txtFormat.font = weissBold.fontName;
        //txtFormat.color=0x000066;
        txtFormat.size=20;
        //txtFormat.bold = true;
        myTxtField.setTextFormat(txtFormat);
        myTxtField.defaultTextFormat=txtFormat;
        myTxtField.styleSheet = myCSS; // Linking CSS to TextField
        myTxtField.htmlText="";
        myTxtField.htmlText=strLink;
        myTxtField.wordWrap=false;
        //myTxtField.embedFonts = true;
        myTxtField.width = strLink.length*2;
        myTxtField.x=numXPos;
        myTxtField.y=numYPos;
        //trace("Third txtField.y: " + txtField.y);
        myTxtField.alpha=0;
        TweenLite.to(myTxtField, 1, {alpha:1, onComplete:webImages});
        //trace("tween done");
    function webImages():void {
        addChild(txtFldwebImages);
        var myCSS:StyleSheet = new StyleSheet();
        myCSS.setStyle("a:link", {fontsize:'20',color:'#000066',textDecoration:'none'});
        myCSS.setStyle("a:hover", {fontsize:'20',color:'#FF6600',textDecoration:'underline'});
        txtFormat.font = weissBold.fontName;
        //txtFormat.color=0x000066;
        txtFormat.size=20;
        //txtFormat.bold = true;
        txtFldwebImages.setTextFormat(txtFormat);
        txtFldwebImages.defaultTextFormat=txtFormat;
        txtFldwebImages.styleSheet = myCSS; // Linking CSS to TextField
        txtFldwebImages.htmlText = "";
        txtFldwebImages.htmlText="<a href='http://www.google.com/webImages/' target='_blank'>Google Images</a>";
        txtFldwebImages.wordWrap=false;
        //myTxtField.embedFonts = true;
        txtFldwebImages.width = 300;
        txtFldwebImages.x=300;
        txtFldwebImages.y=370;
        txtFldwebImages.alpha=0;
        TweenLite.to(txtFldwebImages, 1, {alpha:1});
    //end of loading external texts
    Okay, the problem is when I publish the .swf files and put it in an html or .aspx page, it does not work. The audio is not there and a few others things ar enot working. However, it does work if I click on the.html file that Flash created during the publication.
    Here are the folder structions:
    www.mysite.com/myFlashPage.aspx
    www.mysite.com/flashFileFolder/
    www.mysite.com/flashFileFolder/audioFiles/
    So, the myFlashPage.aspx containsthe myFlash.swf file that is inside the flashFileFolder. For some reason, it does not work. Any suggestion is much appreciated.

    The .html file does work if I publish it into the same folder as I created the Flash project. However, when I publish the
    flash .swf to my web site folder (mapped), it's no longer working. The mapped web site drive structher are as follows:
    D:\Mysite\ contains the .html file
    D:\Mysite\flashFileFolder\ contains the .swf file
    D:\Mysite\flashFileFolder\audioFiles contains the PaukenBrumfiel_AngelsOnHigh.mp3 file
    D:\Mysite\flashFileFolder\greensock-tweening-platform-as3 contains all the tweenlite files
    The .html file does not work either. What else do I need to change?

  • Help:How to publish a Flash with full screen HTML

    Please, guys, be kind enough to teach me how to publish a
    Flash with full screen size in HTML. I have tried to search the
    board, but so far no luck.
    Originally, I want my .SWF to keep changing its background.
    The solution I got was placing colored stage-sized rectangles on
    the bottom layer. Then I don't want the viewers to see the HTML
    area where I cannot seem to control smooth color changes.
    So, after I construct a Flash file with backdrop-color
    changing by the method I mentioned above, how do I publish it with
    full screen mode in HTML, as you can see
    here? Help!
    Thanks in advance, guys.

    Here's an AS2 and a AS3 version I got from David Stiller
    2 small details you have to add 1 in publish settings set Dimensions to percent 100 100
    and in the html set <style>body {margin: 0; padding: 0}</style>
    // AS2
    import flash.display.BitmapData;
    Stage.align = "TL";
    Stage.scaleMode = "noScale";
    var tile:BitmapData = BitmapData.loadBitmap("tile");
    function fillBG():Void {
      beginBitmapFill(tile);
      moveTo(0, 0);
      lineTo(Stage.width, 0);
      lineTo(Stage.width, Stage.height);
      lineTo(0, Stage.height);
      lineTo(0, 0);
      endFill();
    fillBG();
    var listener:Object = new Object();
    listener.onResize = fillBG;
    Stage.addListener(listener);
    // AS3
    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    var bmp:Tile = new Tile(50, 50);
    var tile:BitmapData = new BitmapData(50, 50);
    tile.draw(bmp);
    function fillBG(evt:Event = null):void {
      graphics.beginBitmapFill(tile);
      graphics.moveTo(0, 0);
      graphics.lineTo(stage.stageWidth, 0);
      graphics.lineTo(stage.stageWidth, stage.stageHeight);
      graphics.lineTo(0, stage.stageHeight);
      graphics.lineTo(0, 0);
      graphics.endFill();
    fillBG();
    stage.addEventListener(Event.RESIZE, fillBG);
    David Stiller
    Co-author, ActionScript 3.0 Quick Reference Guide
    http://tinyurl.com/dpsAS3QuickReferenceGuide
    "Luck is the residue of good design."

  • Background audio not adjusting after project is paused when published to Flash. Any suggestions?

    Hello,
    I'm working with:
    Captivate 6
    Mac OS X 10.8.2
    Flash Player is updated to most recent version
    My project contains background audio music set to adjust to slide audio. When I publish to Flash the background audio adjusts appropriately until I pause the video and then resume. Once the video resumes the background audio no longer adjusts to slide audio. So basically anytime a learner pauses the video and then resumes the background audio drowns the slide audio out. I've tried this with multiple projects and get the same result.
    When I publish in HTML5 it works fine. But I cannot use HTML5 because my project contains necessary rollover objects and captions, slide transitions, text animations, and other effects that HTML5 does not support.
    I've to remove and re-add the background audio, uninstall and reinstall Captivate, adjust the background and slide volume levels, uncheck loop audio, and pretty much any audio settings and publish settings I can think of.
    Can someone else with the same OS and Captivate version try and see if they encounter the same problem when publishing to Flash?
    Or does anyone have a solution/workaround?
    Thank You!

    Hi folks
    Sorry, I don't have a fix to offer. Only an observation. I'm rather surprised to see this many folks actually USING background audio. I say that, because I have facilitated hundreds of Captivate classes over the years. And there are lots of folks with Instructional Design background that attend. And in so many of the classes, when we reach the audio section and we cover how to use Background Audio, the same comment is made.
    The comment is that generally speaking, it is their opinion that from an Instructional Design standpoint, background music is a "no no" and should be avoided because it detracts from the learning objective.
    Perhaps the link below will help.
    Click here
    Cheers... Rick

  • Dynamic text not displaying when publishing for flash 8

    This dynamic text works fine when the movie is published for
    flash 7, but when i export for the flash 8 player it seems to be
    invisible. Is there any obvious reason for this happenning?
    thanks
    jon

    Ok, thanks, looks like you've pointed me in the right
    direction. I havent fixed it yet though. Heres where i am at:
    eval(theTarget+".buttonPrime").tex.embedFonts = false;
    now i can see my text. of course its using a default font.
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.font = "arial14b";
    eval(theTarget+".buttonPrime").tex.embedFonts = true;
    eval(theTarget+".buttonPrime").tex.text = "wasssup?";
    eval(theTarget+".buttonPrime").tex.setTextFormat = my_fmt;
    this isnt working. I have added a font object to the library
    and linked it for actionscript using the monkier "arial14b".
    however my text is quite invisible. i have checcked, 'export in
    first frame' for the font object i even tried it with this
    deselected. i have deselected the embed font option on the text
    feild itself. that doesnt work either (unless i dont try to set the
    text format, so long as i accept a default font, its fine).
    so err, help?
    confused
    jon
    ps further to this is have discovered more about this strange
    behaviour. i can set the text to a different string, provided i do
    not try to embed the font in any way. if i set the font to embed, i
    can have the text display with the correct font, until i change the
    text. then it dissappears. also i cannot seem to affect properties
    like font size by means of my TextFormat object. the textFormat
    object also does not seem to affect the font of the text.
    in short, when exporting for flash 8, i cannot seem to
    successfully embed fonts for dynamic text. the only thigs i have
    gotten to work are: static text (or a dynamic text feild with
    unchanged text) with an embedded font, or dynamic text with a
    default font.

  • Preloader for Acrobat 3D PDFs without publishing to flash

    Hi,
    Is there anyway I can make pre-loaders natively for Acrobat 3d without having to publish to flash? Some of the .pdf files can get pretty big with the 3d objects and I'd like to have a loading bar for them. Is this possible without flash?

    Hi,
    Is there anyway I can make pre-loaders natively for Acrobat 3d without having to publish to flash? Some of the .pdf files can get pretty big with the 3d objects and I'd like to have a loading bar for them. Is this possible without flash?

  • Captivate 3 publish as Flash no swf files in folder

    My colleague created a Captivate 3 file with audio voice over. After publishing to Flash file, the View output button was grayed out and no files in the output folder. Please help.

    Hi there
    Glad to hear the issue is solved. Yes, full screen is seldom (if ever) a good idea.
    WRT: Please think Green. Do you really need to print this email?
    I plan on terribly inconveniencing some electrons with this message...
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Publishing for flash player 9

    How do I publish for flash player 9? using macromedia mx
    2004

    you simply cant until flash 9 (authoring tool) comes out. MX
    2004 was developed in 2004 - we are
    almost in 2007 and flash 9 player has been released - but for
    now it is to penetrate the market and
    insure backward compatability - none of us can author any
    flash 9 content until the flash 9 tool is
    released - what are you wanting to do in flash 9 that cant be
    done in flash 8? nobody is developing
    for flash 9 right now because it doesnt exist as a tool yet.
    --> **Adobe Certified Expert**
    --> www.mudbubble.com
    --> www.keyframer.com
    Z33 wrote:
    > Ok, then how do I become able to publish for flash
    player 9?
    >
    >
    > -> is it possible to do with flash mx 2004 by
    installing something?
    > ->How can i do it?

  • How to publish from Flash CC to player 10.1 or lower?

    How to publish from Flash CC to player 10.1 or lower?
    Just realised CC by default dont have such player as option to publish for... Problem is, that a lot of big ads publishers like google adwords doesnt allow swfs in player higher than 10.1... So basically i have a huge problem... Why Adobe has to be so ignorant towards the needs of their customers? "If you dont upgrade flash, you wont be able to open higher versions of .fla files", if you do upgrade, you wont be able to publish in lower players version"... You make my proffesional part of life miserable, you know that? :/ I bet most of flash usage is for ads, so why not checking what publishers demand and maybe consider not removing it from your software?
    That just ruined my schedule and deadlines are collapsing on me. Thank you very much.

    Hi,
    If you open the swf file in text editor:
    The first 8 bytes of any SWF file are not compressed, the rest of the file could be compressed (or not) by zlib compression.
    1st byte: 'F' (not compressed) OR 'C' (compressed).
    2nd byte: 'W' always.
    3rd byte: 'S' always.
    4th byte: version number (09 means this file is targeted at Flash Player 9 and so on...)
    5th to 8th: Length of entire file in bytes
    More details at actionscript 3 - How can I determine what flash player version a swf was published for? - Stack Overflow
    Thanks!
    Mohan

  • Flash CC 2014 publisher for Flash player 8 or below?

    I have Pro CC 2014 and need to publish for flash 8 or below.... when I tried to get the older player files, my newer computer can not even open them.  Suggestions? Work arounds?  The only think I can think of at this point is I THINK I have CS6 still installed on my older macbook pro....
    TIA!!!!

    Your best bet will be to fall back to using CS6 when you run into something that CC was not made to handle.

  • Does anyone know a fix for video being out of sync after publishing to Flash in Captivate 6?

    I'm working in Captivate 6.0.2.325 on Mac OS 10.6.8. My Captivate file is just 10 slides, and 2 of them contain talking-head style video clips 30 - 40 seconds long.
    Everything looks fine in Preview, but when I publish to Flash the video segments appear choppy and the audio is badly out of sync.
    Also, I have one slide where the audio does not play after publishing, though it plays in Preview. It's a widget slide.
    I have tried the fixes suggested in this forum. My Preferences slider is slid all the way to retain slide quality etc. I've tried changing Flash versions and forcing re-publishing of slides. I've tried copying all my slides into a new file. No luck.
    I have spent approximately 6 hours trying to resolve this problem and I'm about at the end of my rope, so any suggestions will be much appreciated! I will have to insert LOTS more video segments to complete this project.
    Thank you!

    Thank you, Rod!
    While researching frame rate I came across this helpful blog posting: Crazy about Captivate: Lessons Learned: Video and Resolution in Adobe Captivate
    This is the line that caught my attention: "I discovered, after several experiments, that if you publish a course in Captivate as SCALABLE with a video inserted, no matter what the resolution, it makes the video look pixelated."
    When I unclick the "scalable HTML content" button before publishing, the video is fine!
    Big sigh of relief! Now I just need to figure out why audio won't play on one of the slides (it has an accordian widget, if that's relevant) and why I can no longer use Effects (I get the message, "Effect file is not valid")

  • Publish Settings - Flash Player 11 problem

    Yes correct I'm talking about Flash Player 11, thats what it says in Flash CS5 software.
    Whatever I do in Publish Setting, Flash software always returns option to be Flash Player 11, i don't get this. I choose Flash Player 8 and AS 2.0 and re-open Publish Settings it is again back on Flash Player 11 and AS 3.0.
    Why is it doing that ?
    First screenshot
    Second screenshot

    Try installing your Flash CS5 again

  • Publishing with flash CS5

    If I publish a flash movie within a html page with the swfobject, I can't scroll the page.
    Has anyone an idea, why ?

    The earliest Flash Pro I've got installed is CS6 - so can't be sure if this is the same with 5.5 - but with CS6 when you publish for Android just select "Embed AIR runtime with application".
    And this covers ADT pretty comprehensively ...
    Adobe AIR * Android APK packages

Maybe you are looking for

  • How many computers can i use with creative cloud?

    how many computers can i use with creative cloud?

  • Desactivate standard buttons in GUI Status

    We are looking to desactivate these standard buttons in the gui status. Button 1: Creates new session Button 2: Generates a shortcut on the desktop Button 3: Help Button 4: Customizing of local layout We thing that these buttons are set automaticaly

  • Shuts Down Playing iTunes

    Search did not turn up anything. I have an Airport Express that I use to play tunes on my stereo. Open iTunes and set to shuffle play. After about 15-20 minutes iTunes stops playing and I have to open the screen, enter my password, and start playing

  • Enhancement for F-58

    Hi Guys, Is there any enhancement available for F-58 t-code. Regards Sathis

  • Fcpproject files - can't open them in fcp 10.1.4

    I have fcpproject files that I'm trying to force final cut pro 10.1.4 to update but the files are grayed out.  I moved the project folder to the movies directory but that didn't have any effect.  Is there anything I'm overlooking?  How can I confirm