Transparency with action script
I have a swf file and i want to give it a transparent background to the stage. I understand that it's possible to give it the transparency through the HTML publish setting using the 'transparent windowless' property.
However, i wanted to know whether there's an actionscript property to give the same transparency effect to the stage. like the opactiy or something (sorry, I might be wrong)
The thing is I have a external preloader which loads the content swf and when it gets loaded, the stage loses it's transparency.
any help please with the action script on transparency?
you're either misunderstanding what you see or not accurately explaining what you see.
there's only one html that embeds a swf. that embedded swf's stage color will be seen (or not depending on the html settings). no loaded swf's background color will be seen. all loaded swf graphics will be seen. everything is this paragraph are facts that you cannot change using actionscript or anything else.
if you removed the graphics from content.swf there's no way it can "still show". the below paragraph explains the ways you could misinterpret what you're seeing:
if you removed graphics from content.fla and FAILED to publish a new swf, graphics will still show. and, if you're testing in a browser, and fail to clear your cache you may be seeing an old swf version that still has background and other graphics.
Similar Messages
-
Help with action script please
hay guys, im having trouble with changing my action script to
allow multiple layers of the same thing in order to show a greater
sense of depth than the normal application. im using a flash
toutorial on making a sort of matrix like falling text (
link)
and im not completely understanding what to change in order to
accomplish my goal. i tryed to send them a message using their
contact page, but its broken, forcing me to find a forum. im sure
it has something to do with the third group of code where it
identifies what its using. but whenever i change anything there to
either match the identifiers or movie clip names the action script
crashes when i test the movie. any help is appreciated.
im using flash cs3 and made sure to create it all in action
script 2.0
please excuse my spelling, im sure i made a mistake
somewhere."FlashTastic" <[email protected]> wrote in
message news:e4ir4t$ru4$[email protected]..
>I don't think an enterframe will be your best bet.
>
> You might want to use something like
>
> if(_root._currentframe >= _root.totalframes){
> loadMovie("myMovie.swf",_root)
Why in the world would you do that when you can just put a
keyframe on the last frame and ..
loadMovie("myMovie.swf");
tralfaz -
Problem with action script from Schewe and Frasier book.
I am working on a Photoshop CS3 action script to
open raw files, do a couple of modifications
in Camera Raw, exit camera raw and save
the file as a jpeg.
I think this should work, because I am working
on an example out of "Camera raw with Adobe
Photoshop CS3" by Schewe and Frasier which
shows the step recorded.
See page 344 of Schewe and Frasier.
In figure 9-11 you see, after the open
statement, 10 lines of details like
"As camera raw"
"Model:Canon 350d" etc.
I get the file path and name line, but
none of the other details reflecting
actions in Camera Raw.
The problem is that in setting up the action, none
of the steps done in camera raw after I do the
open get recorded.
And it works in my old CS version !
Out of frustration I repeated the action
script creation in my old CS version and
it worked fine.
Any idea where I am screwing up ?Crappy format justification:
I sometimes have a day of family
type pictures that are in raw format
that I want to put up on the internet
quickly. I would like to be able to
apply the "Auto" feature, as in general
it seems to be pretty good for something
quick.
OK, it sorta works in CS, go here
http://www.angelplace.net/photos/sample.jpg
It sets up all of the details and gets the
"As camera raw" but opens the .dng file
rather than the Camera raw window.
The point is, these important settings
seem to be saved, which does not happen
in CS3. -
Help with action script 2.0
I'm a beginner with flash. I created a flash file on my own.
I also created a flash file using a slideshow program. Generally I
like this program. I can insert them into my html with no problem.
I want to load the slideshow.swf file into an empty movie
clip in the flash file I created called products.swf. It works fine
using
loadMovie("slideshow.swf", call_mb_slideshow); (where
call_mb_slideshow is a empty movieclip.)
as long as the all the files are in the same folder. But, I
need the products.swf file with the empty movieclip to be in the
parent folder AND I need the slideshow.swf and the slideshow.xml
file to be in a child folder call musicbox_slideshow. When I change
the code to this:
loadMovie("musicbox_slideshow/slideshow.swf",
call_mb_slideshow);
It loads the slideshow.swf file into the movieclip fine, BUT
it doesn't know where to find the slideshow.xml file that loads the
pictures into the slideshow. It looks for it in the parent folder,
not the child folder.
How do I write the script in products.swf so that it knows
where the slideshow.xml file is? I cannot change the slideshow.swf
file code in any way. I need to do it from products.swf.I can use this code from html. I'm able to say where the swf
and xml file are. I just don't know how to do this using action
script.
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="768" height="576" id="tech" align="middle">
<param name="movie"
value="slideshow.swf?xml_path=musicbox_slideshow/slideshow.xml"
/>
<param name="quality" value="high" />
<embed
src="slideshow.swf?xml_path=musicbox_slideshow/slideshow.xml"
quality="high" width="768" height="576" name="tech" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="
http://www.macromedia.com/go/getflashplayer"
/>
</object>. -
Problem with action script to button
Hello all.
I'm having a problem with my adobe flash CS3 action script. My button cant link to the other URL. I tried to put an action script but i fail. anyone can help me? here the attachment for my flash document.HELLO,
just check navigateToURL() -
I have been developing a site and I am having issues with
something that is probably very simple. I have created several
movieclips that expand and contract as you roll over them. I wanted
to make a function/method so that when the user clicks, it takes
them to another scene in this movie. Here is the action script I am
using:
on(release) {
gotoAndPlay("Scene 9");
Unfortunately, this is not working. I thought that perhaps
the on(release) method wouldn't work on these movie clips based on
the action script I was already using to expand/contract the boxes,
but the following code works just fine:
on(release) {
getURL("home.html");
I'm stumped. Can anyone offer a suggestion as to what I
should do? Here is the web address of the page I'm working on, it
has the movie I'm having an issue with.
AndrewJW.com. The
first image on the left next to the word photography links to
another page of the site. The image of the pearl ring next to that
is the one that will not advance to another scene in the movie.
Thanks for any and all input.
AndrewJeckyl>
erm... ok i've to admit my mistake in 2nd script.
_root.gotoAndPlay() takes only ONE argument,
_root.gotoAndPlay("Scene 9", 1); won't works.
Thank for reminding me
actually this make me confuse sometime,
from the code hint in flash,
for
gotoAndPlay,
gotoAndPlay(
frame);
gotoAndPlay(
scene,
frame);
for
MovieClip.gotoAndPlay,
MovieClip.gotoAndPlay(
frame);
so, gotoAndPlay can accept 2 arguments only when use without
"something dot" in front.
if Andrew's script is attached to an instance of button
symbol, we can use
on(release) {
gotoAndPlay("Scene 9", 1);
Since Andrew will attach the script to an instance of
movieclip, he can only use:
on(release) {
gotoAndPlay("Scene 9");
where he have to give the label to the 1st frame of "Scene 9"
same name with the scene.
Am i right Jeckyl?
I heard many people said "scene"+"script"="buggy", but some
time I get it "works". What is your opinion? -
Help with Action script 2.0 please
Hi,
I am new to actionscript and i could really do with some help
please. I am trying to load external movie clips into two different
containers depending on which button is clicked. Sometimes there
may be two conatiners attached to a buuton click, whilst other
buttons may only need to load one movie clip. Here is the action
script i have been using:
button1.onPress = function () {
_root.createEmptyMovieClip("container", 1);
_root.createEmptyMovieClip("container1", 2);
unloadMovie("container1");
loadMovie("scene2.swf", "container");
loadMovie("scene5.swf", "container1");
container._x = 50 ;
container._y = 110 ;
container1._x = 170 ;
container1._y = 5 ;
button2.onPress = function () {
loadMovie("scene6.swf", "container");
unloadMovie("container1");
container._x = 50 ;
container._y = 110 ;
This does load the movies, however i have to press button one
first before button two will work. Ideally i need to be able to
call any movieclip at any time. Can anyone tell me where i am going
wrong?quote:
Originally posted by:
NedWebs
Try moving these lines outside of the button function:
_root.createEmptyMovieClip("container", 1);
_root.createEmptyMovieClip("container1", 2);
You can use "this" instead of "_root"... that'll save any
problem if you ever move this within some other movie. Also, move
the x/y assignments just under those lines since they relate to
them directly.
Hey thankyou for your help, that works now. although if i
move the x and y assignments i would have to create another
container right? Thanks again for your help. -
Problem with action script calculations
I have a simple action script 3 code that will not calculate the correct answer on my PC. I'm running flash cs5 on Window 7 OS. I can move the file to another machine running flash cs4 and it works, but when I run it on my laptop, I get funky answers. see cold below. I have uninstalled and reinstalled cs5 , run the cleanscript for cs5 and cs4 to make sure everything was removed. I have uninstalled and reinstalled flash player. but nothing seems to work. Any help will be appreciated. It acts like Action Script 3 is corrupt or something else that related to Action Script 3. Everything else seems to work. I also have a preloader running with the same issue. It is should be showing the percentage completed but it go 2 5 50 4 32 or something funky like that. Please help.
the code I'm using.
function calculateTotal(evtObject:MouseEvent):void {
var price:Number;
var totalCost:Number;
var numberOfJerseys:Number;
if (jerseyType.text == "2") {
price = 12;
if (jerseyType.text == "1") {
price = 10;
if (playerNames.text == "Y" || playerNames.text == "y") {
price += 1.50;
numberOfJerseys = int(numberOfPlayers.text) +int(numberOfCoaches.text);
totalCost = numberOfJerseys*price;
total.text = String(totalCost);
calc_btn.addEventListener(MouseEvent.CLICK, calculateTotal);
the preloader percentage is
var percent:int = amtLoaded*100
percent_txt.text = String(percent);HELLO,
just check navigateToURL() -
Error message with Action Script 2.0 file
Hi,
I am trying to edit an old flash file that uses Action Script 2.0. I am using CS6 and keep getting the following error message after publishing:
Scene 1, Layer 'AS', Frame 1, Line 5, Column 29
1067: Implicit coercion of a value of type int to an unrelated type String.
Can you suggest any fixes or workarounds? I also have Flash 4.0. Can i downsave the file? If so, how?
Thanks!Thank you. I think that did fix the original two errors. But now upon test of the file, I get some new errors:
Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 7, Column 3
1120: Access of undefined property ratio.
Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 7, Column 20
1180: Call to a possibly undefined method number.
Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 7, Column 27
1120: Access of undefined property _root.
Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 9, Column 27
1120: Access of undefined property ratio.
And on the MoneySlide layer in Actions:
this.ratio = 0;
this.loadBar._width = 0;
this.dragger.ratio.text= "$0";
dragger.onPress=function(){
this.startDrag(true,0,0,line._width,0);
this.onEnterFrame=function(){
ratio=Math.round(number(_root.transitBenefitLimit/100)*(this._x/(line._width/10 0)));
loadBar._width = Math.round(this._x);
dragger.ratio.text= "$"+ratio;
dragger.onRelease=dragger.onReleaseOutside=stopDrag; -
function loadProgress(my_content:ProgressEvent):void {
var percent:Number = Math.floor( (my_content.bytesLoaded * 100) / my_content.bytesTotal );
percent_Txt.text = percent + "%";
preloader.gotoAndStop(percent);
function loadComplete(e:Event):void {currentFrame;}
loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
loaderInfo.addEventListener(Event.COMPLETE, loadComplete);
is not working
Mean
the Text is to 1 - 100 % increase.
But not working that .
Only others are animating
Please some one help mefunction loadProgress(my_content:ProgressEvent):void {
var percent:Number = Math.floor( (my_content.bytesLoaded * 100) /
my_content.bytesTotal );
percent_Txt.text = percent + "%";
preloader.gotoAndStop(percent); // preloader should have frames
1,...,100.*
function loadComplete(e:Event):void {
currentFrame+1;
// the above will do nothing. what are you trying to do?
This action script is not working in my background. Any settings to change.? -
I tried to more action in my movie with action script
Hello
my name is chong hyo rhee from korea,
I use adobe production premium CS3
I made the movie(attached) , just picture motion tween.
as you see, that pictures in my movie just roll and roll.
But, I would like to some interactive move in my movie
like
"when the mouse clic > picture move"
I'm not good at action script yet. i'll try to study.
But, somebody gives me a hint!
thank youHave a look at this modification that I made to your movie. I added a stop(); command to the actions layer at three points to hold the playback head. Then I removed the extra frames that you were using to take up time. I then added an invisible button over the center image. When clicked it will tell the playback head to play.
-
Problem with action script 3 make input text box and button....
Hi every one I am trying to make a family book using "Air for Android" with a simple search engin in the book
air for android only work with AS3,
the search function is to type a person's name and hit submit then go to a specific frame.
have a problem making below code to work in AS3 and hopefully one of you guys can lead me in the right direction to fix the issue.
Currently, I have an input text box and a button. When you type specific words into the input box and then hit the button it sends you to a specific frame.
(it work find in AS2 but not in AS3,)
Here is my current code that is placed on the main timeline, first frame:
stop();
onEnterFrame = function () {
submit.onRelease = function() {
switch (yourname.text) {
case "name1" :
gotoAndStop(2);
break;
case "name2" :
gotoAndStop(3);
break;
My button that checks if the phrase is correct is called "submit" and my input box has an instance of "yourname".
My phrases that will be accepted in the input box are "name1" and "name2" which bring me to two different frames.
Basically, I'm having a problem with making this to work with AS3.you should use the default option in the switch statement
that way yourname contains something not in one of the case statements it will go to the default bit and execute teh code there
function onSubmit(e:MouseEvent):void
switch (yourname.text)
case "name1":
gotoAndStop(2);
break;
case "name2":
gotoAndStop(3);
break;
default:
goToAndStop(you frame you want);
break; -
Problem connecting electric piano with action scripts 3
Hi, I'm working on a project and I'll need to connect my electric piano to my PC and have detection to flash. I'm going to make some effect showing out of the screen when I played certain keys or chords on my electric piano. is there any event script that can detect my E.piano?
Flash is a tool for animation and programming. Programming can support to the level of website designing, Creating audio and video players even for live videos, you can create CBT for elearning, you can print, and now it supports all type of touch and gesture capabilities for mobiles especially Iphone/Ipad/IPOD, blackberry and Android. AIR is a tool that will communicate the system files and folder to some level and It will not support the piano inputs.
-
Flash buttons with action script working but I don't understand them enough to use
My addy is www.abdezines.com firstly otherwise i will forget.
Can anyone explain to me how my buttons work as I have pulled
them apart many a time and can not get my ead around them to be
able to re create in a similar idea. Someone built them for me
previously but will no longer help when all I want to do is
understand them so I can do them myself. I can change the wording
when they are in my current website, the speed it moves and the
same with the arrows but I cant see how to start it elsewhere
despite all my digginh around in it.
If someone can perhaps talk me through it, I have the files
for it if wanted.
Many thanksMy msn addy is [email protected] if anyone can help
me -
Help with action script number guessing game
can someone help me in flash cs6 to make a simple guessing game, i just need help with the coding. making a guessing game from 1-100
The constructor is coded to assign a random number for
the user to guess
• In the section of code indicated by the comments
(within the handler function doGuess()), write condition
statements that guide the user to guessing the number
using text written to the output
• Trace out the users' guess, plus a message
• Messages for the user depending how close they are from the
guess, condition each of the following:
• Guesses correctly, +/-1 from the guess, +/-10 from the guess,
+/-20 from the guess, +/-40 from the guess, all other guessesclose, it's actually an in class practice lab. After doing this we have to do another one that needs to be submitted. I just need help with the coding for this because i dont know how to start at all. let alone the actual lab.
Maybe you are looking for
-
Error in generating the JAVADOC
Hi all, I made a file called mylist.txt containing lists of files that will be used in the documentation process C:\jdk1.4\bin\DMD\*.java then when i try to generate javadoc then i am getting the following error i have kept the mylist.txt in C:\jdk1.
-
Freight condition in altcty and altcbv
suppose i want to calculate freight on material net weight then what numeric field we will enter in altcty and altcbv.
-
Whenever I add a one to one Apple class from my one to one site and click the ical icon, I get the following error message. I also get it when I click on the ical icon from the Apple email confirming my appointment to add to my calendar on my Mac Boo
-
Imessage seems to be missing files or something.
Yesterday I was having trouble getting imessages to work so I followed all of the suggestions in https://discussions.apple.com/message/19635377#19635377 topic which none of it had seemed to work. Today I got imessage to work how ever I cannot chang
-
OK, this is getting ridiculous...
I spend a lot of time writing software to help people with their problems with iTunes for Windows. Heck, I was even invited to that silly event for Discussions contributors (was it MacWorld, or the Developers Conference? .. nvm, doesn't matter.) A lo