Help with a scroll in the background without end

I tried to recreate the tutorial in the link below.

http://www.pixelhivedesign.com/tutorials/endless+scrolling+background/

And think that I followed the instructions, but my actionscript generates only a 1 movieclip rather than the 2 required to create the desired effect.

Here's the action script I typed on in AS2 on the first frame as shown in the tutorial.

Could someone there watching over and explain what I did wrong?

Animator = createEmptyMovieClip('animator',1);
bg_1 = animator.attachMovie('bg_mc','bg_1',1);
bg_2 = animator.attachMovie('bg_mc','bg_2',2);
bg_1._x = - bg_1.width/2;
bg_2._x = bg_2.width/2;
Speed = 1;
cloudWidth = 380;
animator.onEnterFrame = function () {}
bg_1._x = speed;
bg_2._x = speed;
If (bg_1._x < = - bg_1._width) bg_1._x = cloudWidth;
If (bg_2._x < = - bg_2._width) bg_2._x = cloudWidth;

}

There is no property of width in a2.  Use _width:

Animator = createEmptyMovieClip('animator',1);
bg_1 = animator.attachMovie('bg_mc','bg_1',1);
bg_2 = animator.attachMovie('bg_mc','bg_2',2);
bg_1._x = - bg_1._width / 2;
bg_2._x = bg_2._width / 2;

Speed = 1;
cloudWidth = 380;
animator.onEnterFrame = function () {}
bg_1._x = speed;
bg_2._x = speed;
If (bg_1._x<= -bg_1._width)="" bg_1._x="">
If (bg_2._x<= -bg_2._width)="" bg_2._x="">
   
}

Tags: Adobe Animate

Similar Questions

  • How can I switch phones with a member of the family without losing the data on a phone?

    How can I switch phones with a member of the family without losing the data on a phone?

    jkatts wrote:

    How can I switch phones with a member of the family without losing the data on a phone?

    Make a backup of each phone to iTunes or iCloud (do not forget to use your Apple ID or personal computer), then do whatever your carrier wants do you to change numbers if that's your intention, then restore these backups on the device of the "other."

  • Creating a background without end

    I'm looking for online tutorials to create a background without end, much like these images below. Can someone tell me please in the right direction?endless2.jpgendless1.jpg

    I would do it with a gradient fill layer

    1. Choose layer/new layer fill / gradient, give a name to your new layer and presso OK.

    2. in the window of gradient fill, choose the Style / thought

    3. drag & drop directly in the scene of the line of the gradient so that it overlapped the horizon line

    4. click on the preset gradient and the gradient editor-enter

    5 play with colors, but don't forget the stop no is opacque and the other is transparent.

  • How to remove the trial version of Acrobat DC 30 days that I have somehow on my MacBook Pro?  I don't want the dang thing, and it prevents me from using my Acrobat Pro 11 software.  Trying to access using the tree without end of support for Adobe is reall

    How to remove the trial version of Acrobat DC 30 days that I have somehow on my MacBook Pro?  I don't want the dang thing, and it prevents me from using my Acrobat Pro 11 software.  Trying to access using the tree without end of support for Adobe of really making me cranky.

    Hi thomh65004143,

    You simply drag the Acrobat DC application from the applications folder to the trash to uninstall.

    Then restart your system & install Acrobat XI Download Adobe Acrobat products. Standard, Pro | DC, XI, X.

    Let me know if you are still having a problem.

    Kind regards

    Nicos

  • How to make background of spotlight with a picture on the front, without the color of focus, thereby showing?

    Okay, so I'm new to Illustrator and currently make a logo. I want a background color of sight with a picture appears in front of the focal point. However, when I do this the color since the shows through the image focal point. I still have the black outlines, but the before image is also colored. I want the image before remain black and white. Anyone know how I can accomplish this? It has been a real nuisance


    I have some photos of what I'm trying to do:


    (It's the vector image until I made using vectorization)


    logo.JPG


    (This is the vector image before with focus background. I want the focus to appear behind the vector image).


    logo with bulls-eye background.JPG


    I would appreciate help. Thank you!!

    The key and the circle do not seem to be filled.

    Then drag on the artboard and see if the white turns to the background color.

  • Need help with video scrolling

    Hello

    I need help with a project. Subsequently, I want is that a webcam controls the position of the mouse and the mouse position

    control of a video. But I would like the part where the mouse position controls the video.

    So, if the mouse is on the left on your screen, the video will be on the first image and when you move, you're the mouse for

    the right to the video play as a result traffic. and stop when the mouse is completely right.

    Effectivly the scrolles from the mouse through the video. It must be on the x-axis.

    I'm not that formilliar with flash, so any help would be great

    THX!

    Thijs

    what you need to do, is to designate a rectangle where users can use their mouse to scroll through the video.  If this rectangle has instance name bar, you can use:

    var m, b:Number;

    var lastSeek:int = getTimer();

    flv_pb.addEventListener (MetadataEvent.METADATA_RECEIVED, f);

    bar.addEventListener (MouseEvent.MOUSE_MOVE, moveF);

    function f(e:MetadataEvent):void {}

    paramF (0,0,stage.stageWidth,e.info.duration);

    }

    function moveF(e:MouseEvent):void {}

    {if (getTimer () - lastSeek > 1000)}

    flv_pb. Seek(m*e.stageX+b);

    lastSeek = getTimer();

    flv_pb. Play();

    }

    }

    function paramF(x1:Number,y1:Number,x2:Number,y2:Number):void {}

    m = (y2 - y1) / (x 1 - x 2);

    b = y1 - m * x 1;

    }

  • Need help with a scroll bar.

    Hello guys. Ive has designed the following website... www.trigpointselby.com

    It's just a standard static Web site, display of information.

    My problem is on the areas of the bussiness section I created a div of ap and filled with information... the text was big for the box as he could go in, so in the css rule definition, I put "overflow" positioning in the volute of option.

    Now it works perfectly well and sounds great when you view it from any internet browser. My question is, I tried to watch it on my iphone and the scroll bar was not visible, so I could only read the part of the text and could not scroll down to read the rest like in a web browser on the pc / mac.

    So my question is does a step a way round so that if people were to see the web page on the iphones that they could used the css that I put the rule making a scroll bar visible for people to read the text. Im guessing that this will be a problem with all the mobile phones not only the iphone


    Regards rob

    > Now that I designed this website in ap div because you can position layers
    > where
    > you like, now when I did everything first, they was everywhere in the shooting when I
    > viewed in a web browser but someone told said that if you set the
    > positioning
    > absolutes of they will stay where you their positioned on Dreamweaver.

    You seem to be saying that you replaced "ap div" by "layers." Surprise! They
    It's the same thing. This statement shows a lot of confusion and you offers
    have been 'stolen' try something that you do not really understand meaning
    and then try to fix it by using something else that you do not understand also.
    Not long to really mess up your code making it virtually impossible to
    Difficulty. Yuck!

    Your best bet is to stop where you are and learn more about the two CSS HTML &
    and how they interact. Then you should be able to develop a practice more
    design strategy, probably using NO positioning. (Any block element has a
    by default the static position. I estimate 99 + % of all block elements that I use have
    their default (static) position).

    Click on the link Tim has given you to learn the pitfalls of the divs (layers) PA

    > Now you commented saying I was "20 CSS rules using the" position: absolute "
    ' > statements. I don't understand what you mean, so could you explain more
    > If
    > you don't mind?

    I just read your stylesheet (trigpoint.css). Here is one rule in this
    style sheet that uses absolute positioning (AP):
    {#menubar}
    position: absolute;
    Width: 800px;
    height: 42px;
    z index: 4;
    left: 0px;
    top: 129px;
    } There is more than 19.
    NOTE: Everything between {and} is called the "declaration block". Each
    a part of the declaration block (for example "position: absolute;") is called a
    Statement. Where my formulation, "20 of the CSS rules using the" position: absolute "
    statements. "

    Here's the good news: the issue of using or not using layers (divs PA (or)
    other PA block elements)) is requested here every week at least. There is a wealth
    the info if you search this newsgroup/forum:
    http://groups.Google.com/advanced_search?q=+group:Macromedia.Dreamweaver

    One of my favorite CSS Reference: http://reference.sitepoint.com/css

    Part of what you learn is that there is a gulf between that of simple.
    dimension of the Web sites, you can build without understanding HTML & CSS and the
    site more complex than you probably want to build.

    Reading, try, ask your questions here and they're all getting start adapting
    set.

    --

    Walt

    "robo2009" wrote in message
    News:gnafbr$6vi$1@forums. Macromedia.com...
    > Hiya mate. Just read your post on my wit ap div question!
    >
    > What you wrote made me laugh ha ha!
    >

    > So the Elves ran straight into my code, you said!
    >
    > I'm alone again to this, so I'll take edge that you and other people
    > say
    > in the forums as your knowledge is extremely higher than mine!
    >
    >
    > Now that I designed this website in ap div because you can position layers
    > where
    > you like, now when I did everything first, they was everywhere in the shooting when I
    > viewed in a web browser but someone told said that if you set the
    > positioning
    > absolutes of they will stay where you their positioned on Dreamweaver.
    >
    >
    > Now you commented saying I was "20 CSS rules using the" position: absolute "
    ' > statements. I don't understand what you mean, so could you explain more
    > If
    > you don't mind?
    >
    > With the web page being in the centre and me to have all these different
    > layers
    > I had to put each absolute ap div while they was in the correct position
    > and
    > dint moving when I saw them in a web browser... Obviously you do not more
    > order
    > please explain where'm going wrong and what I need to do.
    >
    > Also if you would realized the site Internet how would you because
    > differently
    > for me, I tried to use fair tables, but he did not like the logo of the
    > surveyor goes on the top image and on the menu bar section and in
    > tables
    > it is not possible for is it?
    >
    >
    > Kind regards rob Cheshire
    >
    > www.trigpointselby.com
    >
    >

  • Need help with uploading photos to the new macbook

    I just bought a macbook pro 13 inch and had all my old files saved on a WD My Passport for Mac external hard drive. When try to import my library of photos from the external hard drive to the macbook, I receive a message reading "none of these files can be imported into your photo library.

    I read that you are unable to import the whole photo library to another library of photos, but I don't know if I understand that correctly. in any case, can someone please walk me through how to fix this problem, because a lot of these photos are very important to me. In case this is useful, I was able to import more pictures of the new photo library (such as those that have been saved on the desktop, iCloud etc.)

    Sorry, but unless you detail we can without help

    What format is the WD MyPassport? What you have on it (your library of Photos or just Photos)?

    You import photos - you open and migrate the library

    What version of the OS and the Photos or iPhoto do you have on your old system?

    LN

  • 10-2101 U.S. Tablet HP: Need help with firmware mix to the top

    Little problem with the tablet in place lately and accidentally erased the firmware. My best look up and somehow able to reinstall one from here. But the thing is now the entire Tablet is in Chinese, because it seems I could have installed the wrong one... ghoulish pls help me fix it? Appreciate the help if ever...

    Hi@Robin Wendigo,

    Thank you for the HP's Support Forums. Best platform for all kinds of solutions, tips and settings for your questions/problems.

    For the best experience on HP forum, see our Guide to HP Forums to learn more.

    Problems of language on the tablet settings. Is this fair?

    I want to help you.

    Follow the steps from the link below and check if that helps.

    http://HP.care/2dyWVI3

    I hope this helps. Let me know to learn more

    Happy announcement.

    Resolv_S

    Happy to help you. I work for HP

    Please click on " ""Accept as Solution " " " if you feel my post solved your problem, it will help others find the solution.
    Click on the " Bravo Thumbs Up" " " to say 'Thank you' to help! "

  • help with blue screen of the 0x1000007e

    Hi, can I get help with freezes my computer?

    View blue screen information:

    ==================================================
    Dump file: 121015-27421 - 01.dmp
    Crash time: 10/12/2015-20:41:47
    Bug Check String: SYSTEM_THREAD_EXCEPTION_NOT_HANDLED
    Bug check code: 0x1000007e
    Parameter 1: ffffffff "c0000005
    Parameter 2: fffff880'0463f0d2
    Parameter 3: fffff880'03b378d8
    Parameter 4: fffff880'03 b 37110
    Caused by the driver: rtbth.sys
    Caused by the address: rtbth.sys + 2185c
    Description of the file: Ralink Bluetooth adapter
    Product name: Ralink Bluetooth adapter
    Company: Ralink Technology, Corp..
    File version: 2.9.22.0 built by: WinDDK
    CPU: x 64
    Plant address: rtbth.sys + 130d2
    Stack address 1:
    The stack address 2:
    Address 3 the battery:
    Computer name:
    Full path: C:\Windows\Minidump\121015-27421-01.dmp
    Number of processors: 4
    Main version: 15
    Minor Version: 9200
    Empty the file size: 284.744
    Dump of file time: 10/12/2015-20:42:49
    ==================================================

    ==================================================
    Dump file: 120815-32078 - 01.dmp
    Crash time: 08/12/2015-11:38:26
    Bug Check String: SYSTEM_THREAD_EXCEPTION_NOT_HANDLED
    Bug check code: 0x1000007e
    Parameter 1: ffffffff "c0000005
    Parameter 2: fffff880'058d40d2
    Parameter 3: fffff880'033dd8d8
    Parameter 4: fffff880'033dd110
    Caused by the driver: rtbth.sys
    Caused by the address: rtbth.sys + 2185c
    Description of the file: Ralink Bluetooth adapter
    Product name: Ralink Bluetooth adapter
    Company: Ralink Technology, Corp..
    File version: 2.9.22.0 built by: WinDDK
    CPU: x 64
    Plant address: rtbth.sys + 130d2
    Stack address 1:
    The stack address 2:
    Address 3 the battery:
    Computer name:
    Full path: C:\Windows\Minidump\120815-32078-01.dmp
    Number of processors: 4
    Main version: 15
    Minor Version: 9200
    Size of the dump file: 284.800
    Dump of file time: 12/08/2015-11:39:44
    ==================================================

    ==================================================
    Dump file: 120515-23000 - 01.dmp
    Crash time: 12/05/2015 14:11:48
    Bug Check String: SYSTEM_THREAD_EXCEPTION_NOT_HANDLED
    Bug check code: 0x1000007e
    Parameter 1: ffffffff "c0000005
    Parameter 2: fffff880'058c00d2
    Parameter 3: fffff880'0609a8d8
    Parameter 4: fffff880'0609 has 110
    Caused by the driver: rtbth.sys
    Caused by the address: rtbth.sys + 2185c
    Description of the file: Ralink Bluetooth adapter
    Product name: Ralink Bluetooth adapter
    Company: Ralink Technology, Corp..
    File version: 2.9.22.0 built by: WinDDK
    CPU: x 64
    Plant address: rtbth.sys + 130d2
    Stack address 1:
    The stack address 2:
    Address 3 the battery:
    Computer name:
    Full path: C:\Windows\Minidump\120515-23000-01.dmp
    Number of processors: 4
    Main version: 15
    Minor Version: 9200
    Size of the dump file: 284.800
    Dump of file time: 12/05/2015 14:13:26
    ==================================================

    ==================================================
    Dump file: 120315-46625 - 01.dmp
    Crash time: 12/03/2015-21:46:50
    Bug Check String: PAGE_FAULT_IN_NONPAGED_AREA
    Bug check Code: 0 x 00000050
    Parameter 1: fffffa80'0f7e35b8
    Parameter 2: 00000000'00000000
    Parameter 3: fffff880'010985da
    Parameter 4: 00000000'00000000
    Caused by the driver: mpsdrv.sys
    Caused by the address: mpsdrv.sys + 88215 b 8
    Description of the file: Protection of Microsoft Service pilot
    Product name: Microsoft® Windows® Operating System
    Company: Microsoft Corporation
    File version: 6.2.9200.16753 (win8_gdr.131030 - 1505)
    CPU: x 64
    Plant address: ntoskrnl.exe + 5 has 540
    Stack address 1:
    The stack address 2:
    Address 3 the battery:
    Computer name:
    Full path: C:\Windows\Minidump\120315-46625-01.dmp
    Number of processors: 4
    Main version: 15
    Minor Version: 9200
    Size of the dump file: 284.800
    Dump of file time: 12/03/2015-21:48:50
    ==================================================

    Ntoskrnl.exe and rtbth.sys have been mentioned in the 3 last crashesmpsdrv.sys only in the first

    News of the event viewer:

    I saved a lot of event that happened in 08.12 accidents and 10.12, marked with red circles with white cross

    and some other events around them

    pastebin.com/xwU9pVf4

    (its in Spanish)

    I have not installed manually a new hardware or driver, the last accident occurred when I took the computer to sleep in airplane mode

    This phenomenon was related to adapter Bluetooth Ralink from Ralink Technology, Corp. rtbth.sys.

    Remove the driver current completely and install the latest driver available.  For instructions on how to do read everything to update the drivers of my partner JMH3143 http://answers.microsoft.com/en-us/windows/wiki/windows_other-hardware/updating-a-driver/a5e6345e-af9b-4099-bef0-8d22254aa1c1?tm=1436753520149 here
  • Hello, I need help with my photoshop, rececently the majority of my family disappeared merger options and I cant access AVC and other options ive tried reset preferences and it seems to come back but when I add an image and try add text again

    Hello, I need help with my photoshop, the majority of my family rececently disappeared options fusion and I can't access strokes and other options ive tried to reset the settings of preference and he seems to come back but when I add an image and you try to add text again, they'll only options I have are drop shadow , gradient, Chromakey, shine of satin overlay, inner (I use photoshop cc 2015) Please help, my Skype contact options are: RoblivionM8 and email:[email protected]

    Thanks for your time

    Your first screenshot shows the layer style dialog where not all types of effects are indicated on the left. Bottom left of the dialog box, you see a small icon fx with a menu arrow drop-down. Use drop down the menu and make sure all you click on show all effects or restore the default list. I don't know what you're trying the shoe on the second screen capture.

  • Need help with positioning scroll effects...

    If I have an object, perhaps a 100px square centered horizontally. I want that it start from the left edge of the page width of scroll, scroll to Center, and then scroll to the top. It scrolls to the Center, but it starts to the right of the page border. Is there some math I have to do to get it to start where I want it? Here are the screenshots of the transform, the page Properties palette and palette effects scrolling for better reference.

    page-properties.png

    Figured out, and I think that this works in most cases. What I did take x coordinate of the object definition and divide it by the key position, that gave me my multiplier for the initial rights movement. What is this equation is made your point of departure at the edge of the page, NOT the browser. Here's what I've done digitally:

    430 (X) / 240 (key position) = 1.79 (multiplier) I hope this helps!

  • Help with dynamic action and the selection list item

    G ' Day Apex gurus.

    I have problems trying to achieve to trigger the Help window from an element automatically select. A Help window is triggered when it is clicked on the label of an item, but my customer wants to be triguered automatically as soon as the user clicks to view the options in the select list.

    I think I should be able to do with dynamic actions but I can't function.

    I know when someone clicks on the label of the item selection list trigger this JavaScript

    JavaScript:popupFieldHelp('277938589795252851','1545903379570909')

    So I want to trigger the javascript also when the user click on the item selection list and pull down the options and for that I think that the dynamic action is the way to go, but I can't do things.

    That's what I have to do:

    I created a dynamic option as follows:

    Name: test
    Sequence: 30
    Even: click
    Selection type: product (s)
    Article (s): P1_RATING <-a selection list item
    Condtion: - no requirement.

    Real Actions
    Sequence: 10
    Action: Run the JavaScript Code
    Fires when the result of the event is: true
    Fire on loading the page: checked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')

    Thank you anyone who can tell me what I'm doing wrong here or bring a solution to my problem to trigger the Help window from an element automatically select.

    Kind regards
    Carlos

    Hi Carlos,

    I've set up a test case of exactly in the same way and it worked fine for me. I've created a page element called P1_DA_DEMO and added some values of the static selection list, then added a help text. I used the settings are lower, I suggest you try again, but also make sure that you have no other Javascript errors on the page. Use a tool like firebug to check.

    Name: Action Dynamics demo
    Sequence: 10
    Even: click
    Selection type: product (s)
    Product (s): P1_DA_DEMO<- a="" selection="" list="">
    Condtion: - no requirement.

    Real Actions
    Sequence: 10
    Action: Run the JavaScript Code
    Fires when the result of the event is: true
    Fire on loading the page: unchecked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')

    Scope of the event set a Bind s.

    Thank you

    Paul

  • How to get help with conversion ROCK on the export of PDF?

    How can I get help with the quality of the PDF documents converted to word format export.

    Not likely to have, you're doing a "happy dance" but a scanned image is "the ear of the sow" and (Yes, I'll say).

    You can't have a scholarship of silk in one ear of the sow.

    Make you a picture of the text content. You get a result of OCR of all that is recognized. The character by character recognition accuracy is generally quite good. But - No image/photo file actually holds information on format, layout, fonts, etc. - it's just a picture. Acrobat OCR makes some assumptions about all this.

    -You have a bunch of each of the characters being exported to Word. Individual characters, not paragraphs, sentences no, no words, no values "white space", etc.

    So you get an export that is a "best estimate" of the less desirable source. Sometimes, it isn't so bad. Sometimes it's just awful. In all cases, you will need to do some cleanup of the exported content that landed in the Word file.

    The alternative is to transcribe the hardcopy to the Word file.
    In fact it can often be higher as a workflow rather than the scanning-ocr-export-cleanup shuffle

    .

    For really nice export "spot - we ', you must start with a PDF file from an application of creation (not a scanned image) which is a well-formed tag PDF (for example ISO 14289-1, PDF/UA-1).
    The purpose of the tagged PDF document is not only Accessible PDF is also how PDF supports actively the re-use of content (for example, export).

    Be well...

  • Please help with conditional actions showing the PlayBar

    I tried to set up a tip action that will not allow users to move forward until they have clicked on the 3 themes I want to see again them.  I assigned variables, follow the tutorials and do everything now.  Please help how I my Advanced actions set upwards... everything shows and hides all work so I have to assume that the assignment of variable works as well.  I used numbers initially and changed my value of the variable of "dude" just to make sure I was not missing something.

    Capture.PNGCapture2.PNGcapture3.PNG

    Here's the aciton condtional which is performed after the entry of the slide

    Capture4.PNG

    All logic seems in tact for me however I click on each of my boxes and all conditions must be true, but will not display game bar...

    Note: I also tried to show a next button and just show the things randomly with the same logic and it just will not work... What am I doing wrong?

    Something escapes me in your question: How do trigger you the conditional action? I suspect that he is never executed, but may be wrong of course.

    I created a small example to check: slide contains 3 buttons that trigger an action condtional with two decisions. The first decision is a simulated standard measure (condition 1 = 1 is always correct) assigns the value 1 to the variable corresponding user and displays a caption text, that was initially hidden. This is a screenshot of this first decision Stand for the first Bt_One action to be triggered by the first button:

    The second decision Check is the action of condtional real, very similar to yours. This will be done after the first decision:

    Create a duplicate of this action for the other two buttons, you only have to edit the first decision where the user variable needs to be changed.

    In my example, when you click the last button (regardless of the sequence) all the text captions should have been disclosed (I na not hide others, but you can do the same of course) and the second decision check will result in a positive response, so the playback bar appears immediately.

    Lilybiri

Maybe you are looking for

  • Re: Webcam does not work on Satellite T130

    I have a Satellite T130 and the webcam has just stopped working.Can someone tell me how to get this going again please? Thank you

  • HP Pavilion dv6-6060ep: question to replace HARD drive

    Hello. I would like to know if replacing the current 500 Gb Hdd with a SSD would cancel or in any way affect my warranty coverage. The laptop is a year old. Thanks in advance for any assistance of withy this question.

  • Hp250g4: Network controller driver

    Nu reusesc his gasesc driverul ptr wireless, am instalat toate driverele gasite producator if nu numai, icc rtl8139/810 x device of este scris pe, am descarcat dar tot nu functioneaza

  • age of empire 3 trial version

    I demo empire 3 years now, but I can't figure out how to put my cd key in to get the full game

  • clock, stopping in taskbar

    My cursor pc showed my system was busy and I couldn't do anything. I noticed that my clock in the taskbar area had stopped running that it's about half an hour behind the real time. What would cause this.