# programming

**URL:** https://forum.kirupa.com/c/programming/41.md?page=324

[Latest](https://forum.kirupa.com/latest.md) · [Categories](https://forum.kirupa.com/categories.md)

**Page:** 325

---

## [gotoAndPlay Question](https://forum.kirupa.com/t/gotoandplay-question/319507)

<div class="topic-metadata">

**Author:** [@markhargrove](https://forum.kirupa.com/u/markhargrove)\
**Replies:** 0\
**Last updated:** [February 23, 2011, 3:19am UTC](https://forum.kirupa.com/t/gotoandplay-question/319507 "2011-02-23T03:19:52Z")

</div>

I'm an almost-complete newcomer to Flash, but an experienced programmer otherwise. I'm trying to create a simple interactive animation for a website that consists of three rollover areas on a page. When you mouse over …

---

## [Sockets and Sandbox](https://forum.kirupa.com/t/sockets-and-sandbox/319506)

<div class="topic-metadata">

**Author:** [@ajtyler](https://forum.kirupa.com/u/ajtyler)\
**Replies:** 0\
**Last updated:** [February 23, 2011, 1:18am UTC](https://forum.kirupa.com/t/sockets-and-sandbox/319506 "2011-02-23T01:18:35Z")

</div>

I'm not sure if this falls in here or not, but let me have a go at it. I'm working on a flash app that utilizes the AS3 SmartSocket classes from: https://github.com/XaeroDegreaz/SmartSocket It's really cool and easy…

---

## [Clear Facebook Like Cache / links on a specific URL](https://forum.kirupa.com/t/clear-facebook-like-cache-links-on-a-specific-url/319504)

<div class="topic-metadata">

**Author:** [@richimgd](https://forum.kirupa.com/u/richimgd)\
**Replies:** 0\
**Last updated:** [February 23, 2011, 12:33am UTC](https://forum.kirupa.com/t/clear-facebook-like-cache-links-on-a-specific-url/319504 "2011-02-23T00:33:53Z")

</div>

Now then everyone, I have a bit of a question about Facebook like buttons. I have on my own website (plug here www.imgd.co.uk :cap:) added a few like buttons on various pages. In particular on the homepage, Is there …

---

## [Problems with linking AS3 buttons to Scenes](https://forum.kirupa.com/t/problems-with-linking-as3-buttons-to-scenes/319503)

<div class="topic-metadata">

**Author:** [@Zaiconsulting](https://forum.kirupa.com/u/Zaiconsulting)\
**Replies:** 0\
**Last updated:** [February 22, 2011, 10:55pm UTC](https://forum.kirupa.com/t/problems-with-linking-as3-buttons-to-scenes/319503 "2011-02-22T22:55:16Z")

</div>

Hi, I am relatively new to Flash development. I have a scene that contains 3 buttons that are movie clips. I am trying to link each button to a seperate scene but no matter what script i use the buttons do not click …

---

## [AS2 - mouse.hide disturbs the rest of my code](https://forum.kirupa.com/t/as2-mouse-hide-disturbs-the-rest-of-my-code/319498)

<div class="topic-metadata">

**Author:** [@Panchita](https://forum.kirupa.com/u/Panchita)\
**Replies:** 0\
**Last updated:** [February 22, 2011, 8:37pm UTC](https://forum.kirupa.com/t/as2-mouse-hide-disturbs-the-rest-of-my-code/319498 "2011-02-22T20:37:27Z")

</div>

Hi - when i change the appearence of the mouse, it conflicts with some of the other code, i don't get an error, but it just doesn't work, i'm using this code in a mc to change the mouse: onClipEvent(enterFrame){ M…

---

## [Simple PHP function questionfrom noob!](https://forum.kirupa.com/t/simple-php-function-questionfrom-noob/319497)

<div class="topic-metadata">

**Author:** [@saucey](https://forum.kirupa.com/u/saucey)\
**Replies:** 0\
**Last updated:** [February 22, 2011, 7:58pm UTC](https://forum.kirupa.com/t/simple-php-function-questionfrom-noob/319497 "2011-02-22T19:58:50Z")

</div>

How do i write this code outside of a function, i have a tutorial but it shows me how to convert script into a function but this example below never did, it was just wrote straight into a function. function get\_subjec…

---

## [Sandbox error](https://forum.kirupa.com/t/sandbox-error/319493)

<div class="topic-metadata">

**Author:** [@Scribe](https://forum.kirupa.com/u/Scribe)\
**Replies:** 0\
**Last updated:** [February 22, 2011, 4:23pm UTC](https://forum.kirupa.com/t/sandbox-error/319493 "2011-02-22T16:23:43Z")

</div>

Hi, I've been creating a fla that reads an XML file, that tells which swf to import. Finally got that all working and put it on the local network at work, only to get a sanbox error. It seems for some people the main f…

---

## [Controlling main timeline from loaded swf](https://forum.kirupa.com/t/controlling-main-timeline-from-loaded-swf/319490)

<div class="topic-metadata">

**Author:** [@Sir\_Psycho](https://forum.kirupa.com/u/Sir_Psycho)\
**Replies:** 0\
**Last updated:** [February 22, 2011, 12:06pm UTC](https://forum.kirupa.com/t/controlling-main-timeline-from-loaded-swf/319490 "2011-02-22T12:06:22Z")

</div>

Hey all, I don't know if this is even possible in this case or anything, but it's worth a try. I'm not that good with AS3 anyway and I've been trying to solve this problem the whole day and feel stuck.. I think the ans…

---

## [currentLabel (name or comment difference) in CS5](https://forum.kirupa.com/t/currentlabel-name-or-comment-difference-in-cs5/319488)

<div class="topic-metadata">

**Author:** [@Guiyom](https://forum.kirupa.com/u/Guiyom)\
**Replies:** 0\
**Last updated:** [February 22, 2011, 10:32am UTC](https://forum.kirupa.com/t/currentlabel-name-or-comment-difference-in-cs5/319488 "2011-02-22T10:32:27Z")

</div>

Hi, On CS5, currentLabel can return the value of a label comment as well as a label name of the timeline For example, if on frame 1 I have a label name called "screen1" and on frame 8 I have the label comment "//com"…

---

## [onLoadComplete with 4 mc's](https://forum.kirupa.com/t/onloadcomplete-with-4-mcs/319486)

<div class="topic-metadata">

**Author:** [@Henky](https://forum.kirupa.com/u/Henky)\
**Replies:** 0\
**Last updated:** [February 22, 2011, 9:30am UTC](https://forum.kirupa.com/t/onloadcomplete-with-4-mcs/319486 "2011-02-22T09:30:17Z")

</div>

Unfortunately this doesn't work. I want to load a picture into a mc: list\_0.listA.container. When this is done, the mc list\_0 must play. When the first picture is loaded into list\_0.listA.container, the second picture mu…

---

## [Sound duration in AS3](https://forum.kirupa.com/t/sound-duration-in-as3/319484)

<div class="topic-metadata">

**Author:** [@myazdian](https://forum.kirupa.com/u/myazdian)\
**Replies:** 0\
**Last updated:** [February 22, 2011, 8:55am UTC](https://forum.kirupa.com/t/sound-duration-in-as3/319484 "2011-02-22T08:55:23Z")

</div>

Hi every bodyI need to create a player to stream audio files (mp3 and other audio extentions) in my website. To create this player I used flash cs3 and actionscript3.I found actionscript 2 is easyer to creat and get dura…

---

## [Load image position problem](https://forum.kirupa.com/t/load-image-position-problem/319483)

<div class="topic-metadata">

**Author:** [@lillo\_\_hotmail](https://forum.kirupa.com/u/lillo__hotmail)\
**Replies:** 0\
**Last updated:** [February 22, 2011, 8:51am UTC](https://forum.kirupa.com/t/load-image-position-problem/319483 "2011-02-22T08:51:16Z")

</div>

Hi all! I'm trying to load an image with the following code but sometimes the image wont end up in the right place. Can someone understand why? var exampleHolder = exampleLoader\_mc.attachMovie("exampleLoaderHolder\_mc…

---

## [Marlboro Blue](https://forum.kirupa.com/t/marlboro-blue/319482)

<div class="topic-metadata">

**Author:** [@Roisin22](https://forum.kirupa.com/u/Roisin22)\
**Replies:** 0\
**Last updated:** [February 22, 2011, 7:24am UTC](https://forum.kirupa.com/t/marlboro-blue/319482 "2011-02-22T07:24:52Z")

</div>

The most popular & famous cigarettes brand in the world. Marlboro cigarettes have a distinctive taste and type of smoke. The rich and strong flavor is what makes Marlboro cigarettes so popular among smokers all over t…

---

## [AS2 How can I discover/access on(release) functions on clips within loaded swf](https://forum.kirupa.com/t/as2-how-can-i-discover-access-on-release-functions-on-clips-within-loaded-swf/319479)

<div class="topic-metadata">

**Author:** [@digivid\_pro](https://forum.kirupa.com/u/digivid_pro)\
**Replies:** 0\
**Last updated:** [February 22, 2011, 6:03am UTC](https://forum.kirupa.com/t/as2-how-can-i-discover-access-on-release-functions-on-clips-within-loaded-swf/319479 "2011-02-22T06:03:14Z")

</div>

I've been scouring the forums and AS2 documentation and trying every thing I could think of to find out if/where on(release) functions might be "hiding" on clips within loaded movies. My particular problem is that I need…

---

## [Play moviclip using button(as3)](https://forum.kirupa.com/t/play-moviclip-using-button-as3/319478)

<div class="topic-metadata">

**Author:** [@pravingate07](https://forum.kirupa.com/u/pravingate07)\
**Replies:** 0\
**Last updated:** [February 22, 2011, 5:58am UTC](https://forum.kirupa.com/t/play-moviclip-using-button-as3/319478 "2011-02-22T05:58:28Z")

</div>

hii, i am new to as3, and trying to develop a small game. i want play a movieclip when i 'll click on button which is placed over another movieclip. The tree structure for this is: (in flash layer wise re…

---

## [How to manipulate movieclips from a class file?](https://forum.kirupa.com/t/how-to-manipulate-movieclips-from-a-class-file/319474)

<div class="topic-metadata">

**Author:** [@nowhereman](https://forum.kirupa.com/u/nowhereman)\
**Replies:** 0\
**Last updated:** [February 22, 2011, 3:32am UTC](https://forum.kirupa.com/t/how-to-manipulate-movieclips-from-a-class-file/319474 "2011-02-22T03:32:11Z")

</div>

Hi, I don't know how to manipulate/access movieclips from a class file. Is it possible? What i know is when you right click the movieclip from the library you can link in to your class. I want to know if i can do it wi…

---

## [Learn how to work with Flash Player 10.2 new features](https://forum.kirupa.com/t/learn-how-to-work-with-flash-player-10-2-new-features/319472)

<div class="topic-metadata">

**Author:** [@everythingFLA](https://forum.kirupa.com/u/everythingFLA)\
**Replies:** 0\
**Last updated:** [February 22, 2011, 2:29am UTC](https://forum.kirupa.com/t/learn-how-to-work-with-flash-player-10-2-new-features/319472 "2011-02-22T02:29:45Z")

</div>

I've been working the past few weeks and created a few quick videos that if you want to be ahead of everyone else you don't want to miss first one is on the new stage video more information and the 18 minute video that…

---

## [Shooting Offset](https://forum.kirupa.com/t/shooting-offset/319470)

<div class="topic-metadata">

**Author:** [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)\
**Replies:** 0\
**Last updated:** [February 21, 2011, 11:40pm UTC](https://forum.kirupa.com/t/shooting-offset/319470 "2011-02-21T23:40:30Z")

</div>

Hey \[smile\] I'm using this code to have an object called mc create a bullet and shoot it in the direction it is facing: angle=mc.rotation\*Math.PI/180; x=mc.x+Math.cos(angle)\*barrelLength; y=mc.y+Math.sin(angle)\*barrel…

---

## [Tweening multiple objects in TweenLite](https://forum.kirupa.com/t/tweening-multiple-objects-in-tweenlite/319468)

<div class="topic-metadata">

**Author:** [@hoolagon](https://forum.kirupa.com/u/hoolagon)\
**Replies:** 0\
**Last updated:** [February 21, 2011, 9:51pm UTC](https://forum.kirupa.com/t/tweening-multiple-objects-in-tweenlite/319468 "2011-02-21T21:51:21Z")

</div>

I've recently made the move from Tweener to TweenLite (about time) and am wondering if its possible to pass more than one object into a tween like I could with tweener. For example, does this tweener syntax... Twee…

---

## [How to use function to generate buttons](https://forum.kirupa.com/t/how-to-use-function-to-generate-buttons/319466)

<div class="topic-metadata">

**Author:** [@jthomps123](https://forum.kirupa.com/u/jthomps123)\
**Replies:** 0\
**Last updated:** [February 21, 2011, 8:09pm UTC](https://forum.kirupa.com/t/how-to-use-function-to-generate-buttons/319466 "2011-02-21T20:09:52Z")

</div>

Im very new to AS3 and trying to figure some things out. Im sure there is an easy way to accomplish what im doing. I want to make generating the code for my movie clip buttons. This is what I have right now: // Butt…

---

## [Print External PDF from flash](https://forum.kirupa.com/t/print-external-pdf-from-flash/319465)

<div class="topic-metadata">

**Author:** [@bladeswim83](https://forum.kirupa.com/u/bladeswim83)\
**Replies:** 0\
**Last updated:** [February 21, 2011, 7:59pm UTC](https://forum.kirupa.com/t/print-external-pdf-from-flash/319465 "2011-02-21T19:59:21Z")

</div>

Hello- I've searched all over Kirupa and the internet to figure this out. All I want to do is create a Print button and then have it Print an external PDF file. I've tried talking my clients into just having a downl…

---

## [Resize Image With Mouse](https://forum.kirupa.com/t/resize-image-with-mouse/319464)

<div class="topic-metadata">

**Author:** [@noahssite](https://forum.kirupa.com/u/noahssite)\
**Replies:** 0\
**Last updated:** [February 21, 2011, 7:45pm UTC](https://forum.kirupa.com/t/resize-image-with-mouse/319464 "2011-02-21T19:45:04Z")

</div>

I want to do this but in ActionScript 3.0 with an Image. http://webfx.eae.net/dhtml/genresize/genresize.html Basically, I am writing an app for the Blackberry Tablet and I want to know how I can allow the user to res…

---

## [Flash & Math Moving Clouds](https://forum.kirupa.com/t/flash-math-moving-clouds/319463)

<div class="topic-metadata">

**Author:** [@mindmolotov](https://forum.kirupa.com/u/mindmolotov)\
**Replies:** 0\
**Last updated:** [February 21, 2011, 7:12pm UTC](https://forum.kirupa.com/t/flash-math-moving-clouds/319463 "2011-02-21T19:12:52Z")

</div>

Herrow \[smiley\] I'm trying to use this tut from Flash & Math generating realistic moving clouds the two layer effect: http://www.flashandmath.com/intermediate/cloudsfast/ Here is the test site: http://dracvsfran…

---

## [Help assigning URL to MovieClip in Flash 2](https://forum.kirupa.com/t/help-assigning-url-to-movieclip-in-flash-2/319462)

<div class="topic-metadata">

**Author:** [@truenorthtreks](https://forum.kirupa.com/u/truenorthtreks)\
**Replies:** 0\
**Last updated:** [February 21, 2011, 6:26pm UTC](https://forum.kirupa.com/t/help-assigning-url-to-movieclip-in-flash-2/319462 "2011-02-21T18:26:07Z")

</div>

Hi, I recently purchased a Joomla template to update our nonprofit's website (www.truenorthtreks.org/index.php) and it uses flash on the front page for some of the buttons (they're actually movie clips). I've been able t…

---

## [Send email with PDF attachment](https://forum.kirupa.com/t/send-email-with-pdf-attachment/319461)

<div class="topic-metadata">

**Author:** [@malamin](https://forum.kirupa.com/u/malamin)\
**Replies:** 0\
**Last updated:** [February 21, 2011, 6:17pm UTC](https://forum.kirupa.com/t/send-email-with-pdf-attachment/319461 "2011-02-21T18:17:14Z")

</div>

I'm hoping someone can help me out with an upcoming project. I'm developing a training program where a trainer will travel to different locations to run the application from his laptop. At the end of the session the tr…

---

## [Help with game over screen \[AS2.0\]](https://forum.kirupa.com/t/help-with-game-over-screen-as2-0/319460)

<div class="topic-metadata">

**Author:** [@ben1996123](https://forum.kirupa.com/u/ben1996123)\
**Replies:** 0\
**Last updated:** [February 21, 2011, 6:01pm UTC](https://forum.kirupa.com/t/help-with-game-over-screen-as2-0/319460 "2011-02-21T18:01:22Z")

</div>

I'm making a game where you start with 3 lives, and every time you do something wrong, you lose a life. How could I make it so that when the dynamic text box reaches zero, that it goes to and stops on another frame? Here…

---

## [How to delete movie clips generated from as3 classes](https://forum.kirupa.com/t/how-to-delete-movie-clips-generated-from-as3-classes/319458)

<div class="topic-metadata">

**Author:** [@daragh\_c](https://forum.kirupa.com/u/daragh_c)\
**Replies:** 0\
**Last updated:** [February 21, 2011, 5:58pm UTC](https://forum.kirupa.com/t/how-to-delete-movie-clips-generated-from-as3-classes/319458 "2011-02-21T17:58:57Z")

</div>

Hi Guys, Can you take a look at the following; basicly every time the displayDetails() is called, a new class called playerHighlights is added to the stage. This works fine. However, when the displayDetails class…

---

## [How turn elastic into scroll bar?](https://forum.kirupa.com/t/how-turn-elastic-into-scroll-bar/319457)

<div class="topic-metadata">

**Author:** [@thanulee](https://forum.kirupa.com/u/thanulee)\
**Replies:** 0\
**Last updated:** [February 21, 2011, 5:40pm UTC](https://forum.kirupa.com/t/how-turn-elastic-into-scroll-bar/319457 "2011-02-21T17:40:23Z")

</div>

Hello, I want to have a limitation to my page. So i want to set my elastic function after a certain amount of downsizing the browser to stop being elastic and stay still with a scrollbar on side. Any tips? I hope i descr…

---

## [Context change in image gallery](https://forum.kirupa.com/t/context-change-in-image-gallery/319456)

<div class="topic-metadata">

**Author:** [@thanulee](https://forum.kirupa.com/u/thanulee)\
**Replies:** 0\
**Last updated:** [February 21, 2011, 5:32pm UTC](https://forum.kirupa.com/t/context-change-in-image-gallery/319456 "2011-02-21T17:32:53Z")

</div>

Hi! I have a webpage in flash cs5 with AS3. The "gallery" section is in AS2. I have used a free gallery and I have it customized to my own needs. But I cant change the right click content. I cant find anything in my scri…

---

## [Newbie having Trouble - Error #1009](https://forum.kirupa.com/t/newbie-having-trouble-error-1009/319455)

<div class="topic-metadata">

**Author:** [@RCNLE](https://forum.kirupa.com/u/RCNLE)\
**Replies:** 0\
**Last updated:** [February 21, 2011, 4:35pm UTC](https://forum.kirupa.com/t/newbie-having-trouble-error-1009/319455 "2011-02-21T16:35:24Z")

</div>

I am new to Flash and am working on a banner slider where there are 5 different images (slides) that come onto the scene about 8 seconds apart. Each slide I am trying to link to a web page but am getting the error; TypeE…

[Previous page](https://forum.kirupa.com/c/programming/41.md?page=323)

[Next page](https://forum.kirupa.com/c/programming/41.md?page=325)
