[Action Script] changer une valeur _alpha progressivement ?
Bonjour,
Je souhaiterais en cliquant sur un clip qui fait office de
bouton, qu'un
autre clip nommé clip2 puisse voir sa valeur _alpha se
changer mais
progressivement et lentement tant que ma souris reste sur le
clip réactif.
Je sais la faire se changer d'un seul coup dans le style :
on(rollover) {
_root.clip2._alpha=5;
Mais comment faire par exemple pour que cela se fasse en
douceur genre de
_alpha=100 à _alpha=5 et lentement et en ActionScript,
sans que j'ai donc à
effectuer une interpolation sur une timeline.
J'ai essayé avec une boucle mais ça ne donne rien.
Merci !
Bonjour,
Merci pour votre réponse :-)
J'ai en effet testé la fonction d'export en .fla qui "résoud" le problème,
mais rajoute une étape de plus dans ma production.
Le Document natif In Design ne comporte bien qu'une seule page, ducoup
je m'étais effectivement posé la question de lecture de différentes pages par le Flash Player…
au vu des nouvelles fonctionnalités (FlipBook) — en veillant bien à cocher page active au cas ou.
Mon document In Design n'est pas compliqué en soit, il s'agit juste d'un Tableau avec des données chiffrées,
c'est ce que je n'arrive pas à comprendre car tout fonctionnait bien "avant". J'ai fait tout de même fait un test en cochant Export HTML pour voir le rendu et là tout est correct cependant le Swf n'est pas "imbriqué" comme dans ma composition...
Peut-être y'a -il d'autres réglages que je ne saurai trouver ?
Merci encore pour votre aide.
Cordialement,
Bertrand
Similar Messages
-
Changing an action script from 2.0 to 3.0 & Flash 5 to the latest??
I have an action script 2.0 that I need to change to 3.0 and was wondering how to do that. Also wondering since I did this a number of years ago, I need to have my Tsunami menu updated to the latest Flash movie. Is there a way to do this?
you have to understand as2 code so you can see what's being done and then you must understand as3 code so you can rewrite it. there are some automated conversions that can accomplish some of that but i haven't seen any that are less time-consuming that doing it the long way.
-
Show the user action script function is in progress
Hi friends,
iam using action script code to store bitmap images and
display in the required format.
This code takes noticable time to complete.How can i show the
user that the operation is in progress .
regards,
KrishnaThe bar won't animate unless you give it a source.
Also, it won't animate if a loop clogs up the CPU.
Consider using callLater() for step by step execution of the
function in sync with the application framerate. -
Action script 3 and adding code to buttons
When I open a new doc and selct action script 3 it won't
allow me to insert code by selcting the button on the stage. It
does if I select action script 2. All my old pages update ok but if
I make new buttons it wont take the code. CAn someone tell me what
is going on???
Thanks a lotIf your in a bind at the moment, I would suggest not
attempting to learn AS3. The system is very different, good, but
different, the syntax structure is much more strict and most things
have been revised to use a listener/broadcaster (or event
dispatcher) model, as well as most coding being class oriented,
additionally the graphic display structure is quite different.
Now did you change your publish settings back to AS2? If so,
you should still be able to apply the above code to a button
instance. However, as Dave stated, even in AS2 the code is best
used from the timeline, to do so with the code above (which the on
handler above is meant for Object attachment) you need to write it
like this:
my_btn.onPress = function() {
_root.loadMovie("graphic_arts/graphic_arts.swf");
I would also consider using a MovieClipLoader and the
loadClip method forloading swf files, as it gives you more control
over the load targeting, progress reporting, and event
notifications.
All this said, to use a button and load a file in AS3, you
need to add an event listener to the button instance and construct
a responding function to the event, in this case the loading of a
swf file. Additionally, in AS3 the MovieClipLoader class, as well
as the loadMovie methods have been replaced by the Loader classes
and must be used to load swf files. So construct a button in AS3
you must write something like the following: -
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.? -
Setting timeout settings for Action Scripts
We are using OIM 11gR1 along with the AD and Domino connectors. We are also using Action Scripts to perform some post create actions on the AD and Domino resources that get created by OIM. The action scripts are being invoked with the correct set of parameters and they do their job. However for both connectors, the connector server (Java connector server for Domino, .NET connector server for AD) times out when waiting for the script to complete. Our scripts are expected to take a long time (30+ seconds).
Based on our testing, the AD connector times out in 30 seconds, and the Domino connector times out in 20 seconds. You would get the below exception in your Java Connector Server log file:
Dec 4, 2013 2:36:41 PM org.identityconnectors.framework.api.operations.ScriptOnConnectorApiOp runScriptOnConnector
FINE: Exception:
java.lang.RuntimeException: Timeout waiting for action, process was terminated
at org.identityconnectors.domino.WinJni._executeWinCommand(Native Method)
at org.identityconnectors.domino.WinJni.executeWinCommand(WinJni.java:31)
at org.identityconnectors.domino.ScriptOnConnector.executeCmdScript(ScriptOnConnector.java:143)
at org.identityconnectors.domino.ScriptOnConnector.runScriptOnConnector(ScriptOnConnector.java:88)
at org.identityconnectors.domino.DominoConnector.runScriptOnConnector(DominoConnector.java:316)
Is there any way to configure OIM so that it waits longer for the action script to complete. The real problem over here is that if 2 users are being provisioned to AD and/or Domino simultaneously (we use access policies to trigger provisioning rules), then the connector (Java or .NET) does NOT invoke the action script for the second user if the action script for the first user times out. It does however create AD/Domino resources for all applicable users. This in itself is a defect - but I need a workaround.
Looking at some old Sun Identity Manager documentation (which became Oracle Waveset), it seems that the entire OIM concept of action scripts has its origins in Sun Identity Manager/Oracle Waveset. And these products did support the notion of timeouts. Have a look at :
http://docs.oracle.com/cd/E19225-01/821-0092/bzbuc/index.html
Does anyone familiar with Oracle OIM code know if custom timeouts are supported by AD and Domino connectors?
Thanks
Aspi EngineerChange the time for the below under 'Web Intelligence Processing Server'
Idle Document Timeout (seconds):
Idle Connection Timeout (minutes):
If you still have problem then try changing the web.xml under the following war files,
AdminTools
PartnerPlatformService
PerformanceManagement
PlatformServices -
Dynamic Action On change tabular form question
Hi guys!
I've wanted to add dynamic action on change (tabular form) to execute PL/SQL which checks if column of the tabular form has changed and if yes it changes walue of text field to Y or N. It doesnt work...and I don't know why. If I create validation with this PL/SQL it works. Can you help?
DA:
On change - Tabular Form
PL/SQL;
DECLARE
nazwa VARCHAR2(4000);
counter NUMBER := 0;
BEGIN
FOR i IN 1 .. apex_application.g_f08.COUNT
LOOP
SELECT NAZWISKO INTO nazwa FROM SPR_META.M_UZYTKOWNICY WHERE NAZWA_UZYTKOWNIKA = apex_application.g_f02(i);
IF wwv_flow_item.md5(nazwa) <> wwv_flow_item.md5(apex_application.g_f08(i)) THEN
counter := counter + 1;
END IF;
END LOOP;
IF counter > 0 THEN
:P5_IS_TABULAR_FORM_CHANGED := 'Y';
ELSE
:P5_IS_TABULAR_FORM_CHANGED := 'N';
END IF;
END;Page items to submit: P5_IS_TABULAR_FORM_CHANGE
What's wrong?
With regards,
PsmakRRegion static id shouldn be in bracketsYou missed the '#' informt of the region id.
why my original PL/SQL process did not work
FOR i IN 1 .. apex_application.g_f08.COUNTThis works only when the application array has values and that happens only when the page is submitted.When you submit the dynamic action , it isn't.
This script combined with script to detect changes makes apex page running very slowIf you use that PLSQL code(assuming it works as expected) , then its going to take a server request every-time you change a field in the tabular form and loop though all the array values(if they would be submitted before) and recalculate and compare the checksums . Isn't that going to be very inefficient.
As for that JS code, it only runs at the client side. You can do all the server side checks on submit, when the user expects some delay due to processing. -
Acrobat 9 (or 9.1) -- Script changes prevent signing -- any workarounds?
I was having problems understanding the behavior of my form until I came across the document at http://www.adobe.com/devnet/reader/articles/reader_compatibility/readercomp_digitalsignatu res.pdf .
My use case, which is a little convoluted, so could probably be streamlined, is that my application server presents a PDF to the user in a browser for them to review / sign.
In some cases, I was getting the message "The document could not be signed." with no other explanation (unlike many other threads which cite more detailed messages with a similar feel).
After reading the section of that doc titled "Script changes prevent signing", I understand why since my form was making script changes
So, now that I understand the situation, I have some options to work around it but presently none are great.
The issue in a nut shell:
1. The form is delivered to the browser, so the notion of save/close/re-open/sign doesn't make sense
2. A button is on the form, with form submit on MouseUp. This is the part that causes problems ... the application server is generating the (same) MouseUp action for ANY button and, at this point, I don't have a way to prevent that.
3. My "illegal" script change was a Page Open script that replaced the MouseUp action to what it "should" be.
4. The problem button is one that I want MouseUp to fire a launchURL instead of a submit.
The workarounds I've considered:
1. Replace the button with a link or non-button fields that has the correct actions. Workable but not a great UI metaphor.
2. Putting the "right" action on the MouseDown. Also workable, but since this doesn't actually prevent the MouseUp from firing, it creates confusing user experience if I there are problems that prevent form submission (and I am not clear if the launchURL in fact prevents the form submission or not).
Are there any other workarounds? Is there any wiggle room on the restriction about no script changes? The script that changes the MouseUp action is defined in an application level javascript file, so I tried making it trusted but that did not seem to make a difference. I feel like
I have a similar, but less import case for a true submit button. I want to also send email on form submission, but since I cannot the form submission on MouseUp, there is no way for me to only send mail when the form is submitted (i.e. all required fields filled in). So, I am presently always sending the mail in MouseDown.It sounds to me like the same option. Perhaps it also applies to non-PostScript printers now. If the printer is capable of good colour management (many are not); and if the PDF is properly tagged with source profiles, no reason why results shouldn't be good.
-
Action Script to add MC as sub-pages ??
Alright please help.. I have tried everything, been fooling
around with this in the past 5 hours and its not going anywhere :(
. Here is what i have. :
I have 6 menu buttons... Button 4 is what i am concentrating
on.
at the moment here is the current action script of button 4 :
--CODE---
//-----this first few lines just controls the button
animation --
on (rollOver) {
if (_root.link<>4) {
gotoAndPlay("s1");
on (releaseOutside, rollOut) {
if (_root.link<>4) {
gotoAndPlay("s2");
//-----end of button animation-----
on (release) {
_root.scroller.scroller.gotoAndStop(3); // I understand this
calls for fram 3 in an mc within an mc.
if (_root.anim==true) { // not really sure where this means
if (_root.link<>4) { // if value of _root.link
<> 4 then activate the following code
_parent["but"+_root.link].gotoAndPlay("s2"); // I kind of
understand this part, i know it has to do with playing the button
animation, but i am stuck where it says "but" + _root.link .
_root.link = 4; // value of root.link
_root.all.play();
ok so basically, from what i can figure out what this action
script does is : somehow it calls out a mc called "all action page"
and the contents inside this mc are two layers. one layer is just a
stop frame, and the other layer has multiple frames, each frame in
the layer are each different mc's .. the _root.value is the value
of each frame, for example if i change the value to 2 or 3 it will
load frame 2 or 3 within the "all action page" mc..
now my question, is is there any way i can replicate this
script for the use of button 4 ?? i know i can just keep adding new
frams and mc's to the current "all action page" and just keep
changing the value that corresponds to the frame number, but i
would like to make it more neater and structured incase if i need
to change anything. any suggestions ??
-Steph'This package contains two scripts the use EXIF meta data. The one you want is StampExif the other GoogleMapGPS....
Crafting Actions Package UPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
Contains
Action Actions Palette Tips.txt
Action Creation Guidelines.txt
Action Dealing with Image Size.txt
Action Enhanced via Scripted Photoshop Functions.txt
CraftedActions.atn Sample Action set includes an example Watermarking action
Sample Actions.txt Photoshop CraftedActions set saved as a text file.
More then a dozen Scripts for use in actions
Download -
XML Gallery won't work remotely - Action Script issues
I created an XML scrolling thumbnail gallery using a
tutorial
found here
I then had to alter the action script to get my thumbnails to
display properly -- they were spaced out or overlapping each other
and not in the sequence specified in the XML file. The new code
works great locally, but the thumbnails and larger image refuse to
load remotely in every browser i've tried. Any thoughts on how to
alter the action script to load the gallery?!?! I'm not much
experienced in Flash so any help would be most appreciated.
You can find the page with my unloadable gallery
here
You can see my action script in my
Flash
CS3 file
Thanks!
Joe.Hi --
I clicked on the link for your gallery and the images load??
Both when I
click on the image or when I click the "next" and "previous"
buttons --
although the "hit" area for the buttons is below the actual
text so you
should adjust that on those buttons. I would also recommend
not making the
text selectable so the cursor won't change to the "I bar"
Rich
"joesavy" <[email protected]> wrote in
message
news:fcp3qi$4ak$[email protected]..
>I created an XML scrolling thumbnail gallery using a
>
http://www.kirupa.com/developer/mx2004/thumbnails.htm
>
> I then had to alter the action script to get my
thumbnails to display
> properly
> -- they were spaced out or overlapping each other and
not in the sequence
> specified in the XML file. The new code works great
locally, but the
> thumbnails
> and larger image refuse to load remotely in every
browser i've tried. Any
> thoughts on how to alter the action script to load the
gallery?!?! I'm not
> much
> experienced in Flash so any help would be most
appreciated.
>
> You can find the page with my unloadable gallery
>
http://www.sullivancreative.com/clients/se-07-7-24/se_website/gallery.html
>
> You can see my action script in my
>
http://www.sullivancreative.com/clients/se-07-7-24/se_website/xml_photogallery_s
> crollthms_fix.fla
>
> Thanks!
> Joe.
>
> -
Flash Newbie needs help with Movie Clips/Action Scripting
Hi -
I'm having a problem with my movie clips playing
simultaneously and cannot, for the life of me, figure out what I
have done wrong. I'm new to flash, so I may have set something up
incorrectly, but here's what I have so far:
11 layers, total: 1 layer with 10 control buttons, each
button with the following actionscript:
on (release) {
gotoAndPlay(85);
Where the number changes in relation to which keyframe the
next movie is on.
I have 10 movies, total, but they are only movie clips,
essentially photo slide shows with audio, made all in the library.
The problem happens when I click on the second or third
button. Not only does the movie that I have selected begin to play,
but all of the previous clips do as well, so it all sounds quite
garbled. I don't know what I am missing in the action script, as my
Action Layer has a stop command on it at each keyframe where there
is a new clip to play.
I have tried to add a stopAllSounds command, but I'm afraid
that doesn't do anything because it is not a "sound file" per se,
playing in the timeline.
I'm at the end of my rope and really need some help in
figuring this one out. My project is hanging in the balance on
this, as I have scripted everything else correctly and it runs
beautifully.
Please help!
Thanks,
CarolineEach layer has a blank keyframe before and after each
movieclip. Each movie clip is at a different frame. Even with the
blank keyframes added, the second video starts to play and then the
first video begins to play. Same happens if I click on the third
button. Third plays, and starts 1st and 2nd shortly thereafter. Is
there an action script I can put in that will tell the timeline
that, when a button is clicked, no matter where the movieclip is,
it will stop and start the newly selected movieclip? -
How to load data with carriage return through DRM action script ?
Hello,
We are using DRM to manage Essbase metadata. These metadata contain a field for member formula.
Currently it's a string data type property in DRM so we can't use carriage return and our formula are really hard to read.
But DRM support other data type property : memo or formatted memo where we can use carriage return.
Then in the export file, we have change the record delimiter to an other character than CRLF
Our issue : we are regularly using action script to load new metadata => How to load data properties with carriage return using action script ? There is no option to change the record delimiter.
Thanks!Hello Sandeep
here what I want to do through action script : loading a formula that use more on than one line:
Here, I write my formula using 4 lines but action script cannot load since one line = 1 record.
ChangeProp|Version_name|Hier_name|Node_name|Formula|@round(
qty*price
*m05*fy13 -
Action script problem for audio player
i have made a introduction with a audio and controller. I am facing one problem. I will like to play as soon as some one enter the page but it does not.
My action script is pasted below and kindly advise me for any changes that can be done
var soundReq:URLRequest = new URLRequest("Sonu Nigam_Alka Yagnik - Suraj Hua M.mp3");
var sound:Sound = new Sound();
var soundControl:SoundChannel = new SoundChannel();
var volumeControl:SoundTransform = new SoundTransform();
var resumeTime:Number = 0;
sound.load(soundReq); sound.addEventListener(Event.COMPLETE, onComplete);
up_btn.addEventListener(MouseEvent.CLICK, increaseVolume);
down_btn.addEventListener(MouseEvent.CLICK, decreaseVolume);
function onComplete(event:Event):void
play_btn.addEventListener(MouseEvent.CLICK, playSound);
stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
function playSound(event:MouseEvent):void
{ soundControl = sound.play(resumeTime);
pause_btn.visible = true;
pause_btn.addEventListener(MouseEvent.CLICK, pauseSound);
play_btn.visible = false; play_btn.removeEventListener(MouseEvent.CLICK, playSound);
function pauseSound(event:MouseEvent):void {
resumeTime = soundControl.position;
soundControl.stop();
play_btn.visible = true;
play_btn.addEventListener(MouseEvent.CLICK, playSound);
pause_btn.visible = false;
pause_btn.removeEventListener(MouseEvent.CLICK, pauseSound);
function stopSound(event:MouseEvent):void {
soundControl.stop();
play_btn.visible = true;
play_btn.addEventListener(MouseEvent.CLICK, playSound);
pause_btn.visible = false; pause_btn.removeEventListener(MouseEvent.CLICK, pauseSound);
function increaseVolume(event:MouseEvent):void {
volumeControl.volume += .5;
soundControl.soundTransform = volumeControl;
function decreaseVolume(event:MouseEvent):void {
volumeControl.volume -= .5;
soundControl.soundTransform = volumeControl;
pause_btn.visible = false;i am having big problem with the coding below with the sound. As it we enter the site, the music auto start very loud which is not good at all for the ear drums. How do i adjust that?
www.hitenkajal.co.uk
var soundReq:URLRequest = new URLRequest("10 Kabhi Alvida Naa Kehna_0.mp3");
var sound:Sound = new Sound();
var soundControl:SoundChannel = new SoundChannel();
var volumeControl:SoundTransform = new SoundTransform();
var resumeTime:Number = 0;
sound.load(soundReq);
sound.addEventListener(Event.COMPLETE, onComplete);
up_btn.addEventListener(MouseEvent.CLICK, increaseVolume);
down_btn.addEventListener(MouseEvent.CLICK, decreaseVolume);
function onComplete(event:Event):void
play_btn.addEventListener(MouseEvent.CLICK, playSound);
stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
function playSound(event:MouseEvent):void
soundControl = sound.play(resumeTime);
pause_btn.visible = true;
pause_btn.addEventListener(MouseEvent.CLICK, pauseSound);
play_btn.visible = false;
play_btn.removeEventListener(MouseEvent.CLICK, playSound);
function pauseSound(event:MouseEvent):void
resumeTime = soundControl.position;
soundControl.stop();
play_btn.visible = true;
play_btn.addEventListener(MouseEvent.CLICK, playSound);
pause_btn.visible = false;
pause_btn.removeEventListener(MouseEvent.CLICK, pauseSound);
function stopSound(event:MouseEvent):void
soundControl.stop();
play_btn.visible = true;
play_btn.addEventListener(MouseEvent.CLICK, playSound);
pause_btn.visible = false;
pause_btn.removeEventListener(MouseEvent.CLICK, pauseSound);
function increaseVolume(event:MouseEvent):void
volumeControl.volume = 1;
soundControl.soundTransform = volumeControl;
function decreaseVolume(event:MouseEvent):void
volumeControl.volume = 0.1;
soundControl.soundTransform = volumeControl;
pause_btn.visible = false;
playSound(null); -
Newbie here, with button action script issue
I have just started to scrach the surface with actionscript
and I have attempted to assign it to buttons. Much to my supprise,
it worked, sort of... All my buttons require a double click the
first time you click on them. I was able to put
this together, by
using the following action script for all my buttons:
on (release) {
ybutton.onRelease = function() {
gotoAndStop(28);
So I have 2 questions. What actionscript will give me the
single click that I am looking for? Also, is there any shortcut to
making a broad change? In other words, will have to switch out the
code for every button on 37 frames?
Thank you1: // You needed two clicks because you have 2 onRelease.
on (release) {
gotoAndStop(28);
2: Yes, it'll go fast I would copy the above and paste where
needed then just change the frame #. -
hiiiiiiiiiiiiiiiiii
can i use my flax sdk 3.5 action script-3 code into flash builder 4.5 .....if yes so plz give me detail how??..with step....Ya i tried by keeping <fx:Declarations> part but still it is throwing error,
In flex3 we are making a component ex: <mx:canvas> and changeing that component to
<cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:cairngorm="com.adobe.cairngorm.business.*">
</cairngorm:ServiceLocator>
if any one used 4.5 with cairngorm let me know
thanks
Maybe you are looking for
-
Foxtel GO - Ipad to TV via Apple TV - mirror problem
FOXTEL FO on Ipad4 (IOS 8.1.3) mirror to Samsung TV via Apple TV. Mirrors Foxtel image for a second (not full screen) then immediately switches to full screen Foxtel Go logo and nothing else? Any thoughts please?
-
When I go to some web sites, my apple freezes for several seconds and then responds
I try to go to certain sites and my mac freezes and then responds. This is happening more frequently.
-
Hi, I wonder if someone is able to answer my questions and offer some advice and help.....? I am purchasing a new external drive and would like to know how to clone the internal drive of my Power Mac G4 using disk Utility to the external drive, so th
-
Hi I am using Websphere Studio Device Developer 5.6.1 with Nokia SDK for J2ME 4.0. I am trying to run the SIP examples (SendMessage, ReceiveMessage MIDlets) distributed with the JSR180 RI. These run successfully on the emulator distributed with JSR18
-
Palm Centro Lockup (AT&T)
Picked up a Palm Centro for the wife last week on Thursday. On Friday and again tonight, the thing just locks up completely. Indicator light is red, screen is blank, it is completely unresponsive. Battery removal and reinsertion causes no change.