Hi Everyone, i have made a flash gallery using actionscript..how to add a loader to it?
hi i am loading all thumbs and images in a container on a single frame using action script..but the size of the swf becomes 1.2 mb so i want to add a loader to it...the loader i am trying to add counts the frames but my file has just one frame so the loader doesnot show up..
here is the script of my gallery..and the timeline has just one frame...
import mx.transitions.Tween;
import mx.transitions.easing.*;
this.createEmptyMovieClip("container",1);
var imagesNumber:Number = 18;
var scrolling:Boolean = true;
for (i=1; i<=imagesNumber; i++) {
container.attachMovie("thumb"+i,"thumb"+i+"_mc",i);
myThumb_mc = container["thumb"+i+"_mc"];
if (i==1)
myThumb_mc._x = (0.0)*myThumb_mc._width;
else
myThumb_mc._x = ((1.2*i)-1.2)*myThumb_mc._width;
myThumb_mc._y = (Stage.height-myThumb_mc._height)/2;
myThumb_mc._alpha = 100;
myThumb_mc.largerImage = i;
myThumb_mc.onRollOver = function() {
this._alpha = 60;
myThumb_mc.onRollOut = function() {
this._alpha = 100;
myThumb_mc.onRelease = function() {
this._alpha=100;
for (i=1; i<=imagesNumber; i++) {
var myClip = container["thumb"+i+"_mc"];
myClip.enabled = false;
scrolling = false;
_root.attachMovie("image"+this.largerImage,"large_mc",2);
large_mc._x = (Stage.width-large_mc._width)/2;
large_mc._y = (Stage.height-large_mc._height)/2;
new Tween(large_mc, "_alpha", Strong.easeOut, 0, 100, 0.5, true);
new Tween(container,"_alpha",Strong.easeOut,100,50,0.5,true);
large_mc.onRelease = function() {
scrolling = true;
var myFadeOut = new Tween(large_mc, "_alpha", Strong.easeOut, 100, 0, 0.5, true);
new Tween(container,"_alpha",Strong.easeOut,50,100,0.5,true);
myFadeOut.onMotionFinished = function() {
for (i=1; i<=imagesNumber; i++) {
var myClip = container["thumb"+i+"_mc"];
myClip.enabled = true;
large_mc.removeMovieClip();
container.onEnterFrame = function() {
if (scrolling){
this._x += Math.cos((-_root._xmouse/Stage.width)*Math.PI)*20;
if (this._x>0) {
this._x = 0;
if (-this._x>(this._width-Stage.width)) {
this._x = -(this._width-Stage.width);
anyone knows how to add a loadre to this...?
thanks..
You'll need to repost in the AS2 forum. That's all AS2 code and this is the AS3 forum.
Similar Messages
-
I have made a slide show using iPhoto - how can i play this on s standard DVD player connected to a standard TV?
Try posting in the iPhoto forum where those experts are.
-
I have made a Flash gallery that works in DW but not in browsers
Hi, I am fairly new to Flash and Dreamweaver and have encountered a problem with my CS4 Dreamwever and Flash. I have made two galleries in flash of 30-40 stills that change after 2 seconds in time line. I saved these and exported to DW as .swf files.
Having placed them into my web page in DW and viewing the page locally in both Safari (yes I'am a Mac user) and Firefox they work fine, so I have uploaded the whole schbang to the remote server. When viewing the pages in Safari or Firefox they do not view at all, I get either a blank field in the page where the Flash should be or a message from adobe saying I need to update to a newer version of flash player, depending on which browser I'm using. I have followed the download link and installed the new player but it still comes up the same. Is this somthing I'm doing wrong or a problem with CS4, The CS3 I trained on seemed to be able to do this ok?
All help greatfully received, ThanksYopu may have missed uploading a javascript file to the server. It will be identified in the head section of the html file, possibly as a file in a Scripts folder. If that is not the case, then you'll need to provide a link to the file on the server.
-
I cannot access my iphoto application on my imac as it says I have made changes in Iphoto using a newer version. We have recently purchased a Macbook Air and this has Lion (as opposed to leopard on the iMac) and we are sharing photos between the 2. I am awaiting the upgrade discs for snow leopard and then to Lion for the iMac but is there a way to access my photos until this arrives?
Do a malware check with several malware scanning programs on the Windows computer.
Please scan with all programs because each program detects different malware.
All these programs have free versions.
Make sure that you update each program to get the latest version of their databases before doing a scan.
*Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
*AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
*SuperAntispyware:<br>http://www.superantispyware.com/
*Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
*Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
*Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
*Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
You can also do a check for a rootkit infection with TDSSKiller.
*Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
See also:
*"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked -
HT2404 Hey everyone I have a MacBook and I use it for papers in college
Hey everyone I have a MacBook and I use it for papers in college what is the best software to get like Microsoft word can i purchase that software for my MacBook? Also how do I save work I did on my MacBook so it will come up in the correct format for my professor?
You can buy Microsoft Office for Mac, or get the free NeoOffice
http://download.neooffice.org/neojava/en/index.php
NeoOffice is equivalent to Microsoft Office. It can open Excel files, Word files & PowerPoint files. You can also create these types of files that can be opened by PC users.
Cheers, Tom -
I have to change a computer using Indesign How to transfer the license
I have to change a computer using Indesign
How to transfer the licenseDe-activate on the first computer, then install on the new one and activate. Nothing special is required as long as the user does not change.
-
I work on a website where I open a flash window to see how the changes I have made look. When I open the flash window, my mouse no longer works properly - I cannot click into the window - and scroll down to look at it. It also seems to "lock" up the page as I cannot click anywhere sometimes on this page (original or the flash window.) If I click on a different page completely and then go back, it seems to reset (actually sort of blinks) and then I can close the flash window. When I use the touchpad on my laptop, it works fine. When I use internet explorer, it works.
What kind of menu opens if you right click in the Flash area?<br />
Is that the Flash player menu?
You can check for problems caused by a recent Flash 11.3 update and possibly downgrade to Flash 11.2 or 10.3.
*https://support.mozilla.org/kb/flash-113-doesnt-load-video-firefox
*https://support.mozilla.org/kb/flash-113-crashes -
I have gone into my Tools and then Options and have made changes there (like for Downloads I clicked "Close when all downloads are finished"), but the changes will not save for when I close and reopen the browser; my changes to the settings are not being saved at all. How can I get the changes to stay? Also, I keep getting this popup from Firefox asking, "Will you help improve Mozilla Firefox by sending information about performance, hardware, usage, and customizations to Mozilla?" and I keep pressing the "No" button but it appears every time I open the browser. Even when I press "Yes," it reappears. Is there a way to permanently say "NO"? I would appreciate any help!
hello vnsonwu, this sounds like there might be a problem with the file in your profile folder that stores the settings (maybe it is set to read-only or corrupted in another form) - please go through the troubleshooting steps described here: [[How to fix preferences that won't save]]
-
How to add a loader to an image gallery loading content using only actionscript
hi i am loading all thumbs and images in a container on a single frame using action script..but the size of the swf becomes 1.2 mb so i want to add a loader to it...the loader i am trying to add counts the frames but my file has just one frame so the loader doesnot show up..
here is the script of my gallery..and the timeline has just one frame...
import mx.transitions.Tween;
import mx.transitions.easing.*;
this.createEmptyMovieClip("container",1);
var imagesNumber:Number = 18;
var scrolling:Boolean = true;
for (i=1; i<=imagesNumber; i++) {
container.attachMovie("thumb"+i,"thumb"+i+"_mc",i);
myThumb_mc = container["thumb"+i+"_mc"];
if (i==1)
myThumb_mc._x = (0.0)*myThumb_mc._width;
else
myThumb_mc._x = ((1.2*i)-1.2)*myThumb_mc._width;
myThumb_mc._y = (Stage.height-myThumb_mc._height)/2;
myThumb_mc._alpha = 100;
myThumb_mc.largerImage = i;
myThumb_mc.onRollOver = function() {
this._alpha = 60;
myThumb_mc.onRollOut = function() {
this._alpha = 100;
myThumb_mc.onRelease = function() {
this._alpha=100;
for (i=1; i<=imagesNumber; i++) {
var myClip = container["thumb"+i+"_mc"];
myClip.enabled = false;
scrolling = false;
_root.attachMovie("image"+this.largerImage,"large_mc",2);
large_mc._x = (Stage.width-large_mc._width)/2;
large_mc._y = (Stage.height-large_mc._height)/2;
new Tween(large_mc, "_alpha", Strong.easeOut, 0, 100, 0.5, true);
new Tween(container,"_alpha",Strong.easeOut,100,50,0.5,true);
large_mc.onRelease = function() {
scrolling = true;
var myFadeOut = new Tween(large_mc, "_alpha", Strong.easeOut, 100, 0, 0.5, true);
new Tween(container,"_alpha",Strong.easeOut,50,100,0.5,true);
myFadeOut.onMotionFinished = function() {
for (i=1; i<=imagesNumber; i++) {
var myClip = container["thumb"+i+"_mc"];
myClip.enabled = true;
large_mc.removeMovieClip();
container.onEnterFrame = function() {
if (scrolling){
this._x += Math.cos((-_root._xmouse/Stage.width)*Math.PI)*20;
if (this._x>0) {
this._x = 0;
if (-this._x>(this._width-Stage.width)) {
this._x = -(this._width-Stage.width);
anyone knows how to add a loadre to this...?
thanks..Check these links for tutorials on loading images
http://www.kirupa.com/developer/flashcs3/loading_image_as3_pg1.htm
http://tutorials.flashmymind.com/2009/02/loading-multiple-images/ -
All menus have display problem (flash) when using FF on extended desktop monitor
I use two monitors at work. Each time I display FF on the "secondary" monitor (extended Desktop), all menus (normal menu, bookmarks, right click), flashes going from visible to hidden and so on).
I have the same problem. Windows 7 (64 Bit), extended desktop, 2 monitor system. I have AMD HD 4800 graphics card with all AMD updates current as of 12/8/2012.
The drop down menus display briefly (flicker) and then are not visible. If I am careful and know the dropdown line I want, I can blindly select it. This happens only on the second monitor on the extended desktop. If I move Mozilla to the primary monitor the same page works correctly.
Disabling the hardware acceleration and restarting Mozilla resolves the issue. While I can use Mozilla, it is still not ready for prime time using hardware acceleration.
Given that it is the only Browser or applicaiton that has this problem with displaying drop down menus on the second monitor, I would suggest that it is either a Mozilla hardware acceleration problem or Mozilla needs to work with the graphics card manufacturers to resolve a problem that only Mozilla seems to have with their drivers. -
Flash CS4, Using ActionScript in Buttons to go to cue points in a FLV
Hi.
I'm pretty much a Flash novice, so i don't think this question is particularly hard, it's just something that's vexing me for a few days. I know it's possible based on all the literature I've read, but I can't seem to get it done properly.
Basically, I have a video file that I rendered in FLV with 5 navigation points called 1, 2, 3, 4, 5.
What I want to do is use buttons to navigate to the five cue point in the flash movie. I think that this is possible using ActionScipt 2, but I don't know what to code in the script function.
Any help would be very, very appreciated.
Thanks,
JavierHi,
The following AS2 code may help you
stop();
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
<your flv playback instance name>.addEventListener("ready", listenerObject);
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
<your button instance name>.onRelease = function () {
playback.seekToNavCuePoint("<your cue point name>");
<your flv playback instance name>.addEventListener("cuePoint", listenerObject);
\\replace all the placeholder things including the < >
Also just take a look at the description at http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00003003.html for more details
Thanks!
ps: pls mark this post as answered if this is of help to you -
We each have a phone and our three children are on our account as well. One of my boys just started his own account and is no longer using his phone or the line that is on our account. The contract end date is another year away but my other son's contract end date is next month. Is it possible to transfer the contract end date like we can transfer upgrade dates? I hate to pay $50/month for a line that's not being used.
No, you cannot transfer contract end dates. If you cancel the unused line, you will have to pay an ETF.
Your son still on your account could start using your other son's line and number. Then you could cancel out HIS old line once the contract runs out, but then he could not get a new phone for another year. Can his phone last another year? -
I have convert JAR to DLL using VisualCafe, how to use it in VB?
Hello all,
I have successfully convert/compile my Jars file to DLL files following the steps given in the VisualCafe Expert Edition help file.
Let say my Jars file contain the following class & method:
class1 setName(String sData)
class1 getName()
class2 mtd_Open(String sFileName)
class2 mtd_Save(String sFileName)
... so on ...
Does anyone know how to use the DLL in the VB program? Let say, I want to use the method "mtd_Open(String sFileName)" in the class "class2" in my VB program, how do I code this in VB? Please help...
Thanks for your time.suggest that donot convert jar to dll.
use the jar in VB directly through JNI technology of SUN JAVA.
peter
JawaBeginer (A powerful JavaIDE tool for Java Programmer, exp: beginer)
http://www.pivotonic.com -
my daughter purchased many itune songs because she did not know how to add to ipod from cd's..can I get a reversal on my credit card and delete songs from her ipod?
Mmoll,
The rules of the iTunes Store are that all purchases are final. However, if you feel that there were extenuating circumstances, you can request an exception by contacting iTunes Customer Service via their web page:
http://www.apple.com/support/itunes/contact/
There is no guarantee that they will grant an exception, but you might as well ask. -
Have 32 bit and cannot use Turbotax how to update to 64 bit? Thank you
How do I update my MacBook Pro from 32 bits to 64 bits? And what are bits? Thank you
You give no information about what specific Macbook Pro you are using.
http://support.apple.com/kb/ht3773
Intel Core 2 Duo processor or newer, your computer is a 64 bit.
In terminal you can determine 32 or 64bit: copy and paste:
ioreg -l -p IODeviceTree | awk -F'"' '/firmware-abi/{print $4}'
Maybe you are looking for
-
How to get SO data on PR creation using exit EXIT_SAPLMEQR_001 ?
Dears, I have a requirement which involves activation of PR creation from SO. I have activated the exit EXIT_SAPLMEQR_001to assign source suply according to non standard rules. The thing is that I need to have the field VBAK-VTWEG (Distribution Chann
-
SSRS 2008 Using Stored Procedure with SysRef Cursor Oracle
Hi, I am new to SSRS. I have a ssrs procedure which runs to Return Result of Select Query. ( In form of SYS REF Cursor in Oracle ). When I am trying to see the Value in Test Window. It is showing Output. But when I m Running the Report in the environ
-
Modify "sync movie" list.
How does one modify the "sync movie" list under the video tab?
-
Identification Specification missing in Source structure!!!
Hi, I'm Saikumar. I'm doing LSMW (in that recording for MAP1 and MAP2 transactions). I've created 2 source structures ZMAP1_SOURCE and ZMAP2_SOURCE and also assigned some fields. I created only one flat file for these 2 source structures and I've as
-
PS Elements 9 Missing Shares to Facebook Features
Hi everyone, I just installed PSE9, only to find that the Shares to Facebook features is missing as you can see from the screenshots. Anyone idea what should I do to 'enable' this feature back?