Mouseover in Action Script 2
I have a graphic floor plan with 4 apartments. I want to
create a mouseover effect whereby when the mouse moves over each
apartment, the respective turns blue leaving the other 3 white. I
have created five jpegs, one all white and the other four tinted
blue respectively. How do I create this effect using these five
jpegs?
I assume you may want to see the floor plan and furnature
arrangements under the blue and white.
If so you can create buttons the shape of the
apartments/rooms. In the rollover frame draw a graphic the shape of
the room fill it with solid blue. Make it into a graphic or movie
clip. Apply the alpha to allow you to see through it. F^ on frame 4
of the buttonto duplicate shape to hit area of button.
Do this for each appartment/room.
When you mouse over the apartment/room it will be highlighted
with blue. when you roll out itwill return to normal.
Hope I understood you correctly. Hope it helps.
Similar Messages
-
How do I use the button states in an action script?
In my Captivate 8 project I use smart shape as buttons. The buttons have different images presented dependent on the state of the button. I have also created a simple action script that shows what happens when the button is pressed. When the button has been pressed the normal state of the button appear. I, however, want the down state of the button to remain visible util the user presses another button. How do I accomplish this? Is there variables for the buttons different state or how can I create that?
BR,
MadeleineWhen you talk about 'actionscript' do you mean advanced or shared actions? You cannot write actionscript within Captivate, only Javascript. If you use advanced/shared actions they'll be converted on runtime to either Actionscript (for SWF output) or Javascript (for HTML5 output).
The states in shape buttons are the normal way buttons behave (not only in Flash). If you are indeed using shared/advanced actions, and you want the down state to remain until the next shape button is clicked, you'll have to go the way described by iFlashAppsToo. Create shapes that have the look of the down state, make them initially invisible and group all those shapes on one slide. Add two statements to the shared/advanced action (please do use shared actions, you'll save time):
Hide Group so that eventual down mimicked states on previously clicked buttons disappear
Show Im_Downx to show the down image for that button -
Adding data to cfgrid using action script
how can i add data to a grid row called name in action
script. i have a cfselect control containing name of students and i
want to add the values of the selected student from the list to
grid.Did you add your instance of SpectrumCanvas to the stage with addChild()?
If so, you should boil your posted code to a more simple example.
If this post answered your question or helped, please mark it as such. -
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; -
using action script 2 how can i send a variable value to a dynamic textbox on a different keyframe?
Thanks for your swift response.
That sounds like a good solution, but the code I have on frame 2 is this
timer = 0;
countup = function(){
timer++;
countupInterval = setInterval(countup,100);
If I added the same actionscript to frame 3 which has a dynamic textbox with a variable timer attached wouldn't it just put the timer back to 0? What I want is the last known value that was given when it was in frame 2.
I am thinking of temple run here, I am trying to caculate the total distance(set in the timer variable) from the previous try.
Hope this makes sense.
Chazwick -
Error while loading an child movieclip if the child has any action script
Hi
I am developing an application where I need to load a child.swf . All works fine when I load the mc but as soon as I add Action Script (lets say trace("test")) to the Child.swf I get a Error #1009: Cannot access a property or method of a null object reference. On the addChild line.
Code
trace("Toothpaste click");
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest("Child);
mLoader.load(mRequest);
mcContainer.addChild(mLoader);Sorry.Thanks
Typo on the forum.
I can load the child.swf see the image/text in the child displayed in the parent but as soon as I add as3 to the child page I receive the above mentioned error. If I run the child.swf from the IDE or by itself everything works fine .
trace("Toothpaste click");
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest("Child.swf");
mLoader.load(mRequest);
mcContainer.addChild(mLoader); -
Could someone help me with my action script?
I followed a tutorial on how to make an interactive photo gallery but for some reason the file isn't working. I am new to flash and no very little about action script.
Would someone be willing to take a look at my file and advise me?
ThanksDid your tutorial have you download XML from a server to feed the images to the gallery? Many people forget to check for errors loading the XML file or forget to "do something" once the XML is loaded. Common things not to look for are IOErrorEvent.IO_ERROR or SecurotyErrorEvents warning you the XML you're trying to load is on a different domain (a webserver online) and it doesn't have permission (a crossdomain.xml).
In those situations it can appear like it's doing nothing.
Did you just take the code of the tutorial at the end and try to play it as you went through the tutorial? If you just copy and pasted it all you'lre going to have a hard time isolating the issue. In that case you can always re-do the tutorial until you start to see issues. Then you know where they are. -
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 -
I can't get the original disk to work on a reinstall. I get the message
AdobeColorCommonSetRGB
Error:
Error 2.
I teach a class using this program on Macintosh computers running 10.9.5 and the action script is not working. It will work on any program designed using the 10.8 but if you design any animation on 10.9.5 the action script will not work for the buttonsYou would have to manually delete the color profiles in question... Run the cleaner tool and see if it gets you started.
http://www.adobe.com/support/contact/cscleanertool.html
Mylenium -
Error in phase of assigniment Action Script
Hello Guys!
I created the following action script named "sketch.as" :
package
import flash.display.Sprite;
import flash.events.MouseEvent;
import com.adobe.images.JPGEncoder;
public class sketch extends Sprite {
public function sketch():void {
//this is your documentclass constructor
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCursor);
Mouse.hide();
function moveCursor(event:MouseEvent):void
pencil.x = event.stageX;
pencil.y = event.stageY;
var canvas_mc:MovieClip = new MovieClip()
addChildAt(canvas_mc, 0);
canvas_mc.swapDepths
function sketch()
canvas_mc.graphics.beginFill(0xFFFFFF);
canvas_mc.graphics.drawRect(0, 0, 600, 500);
canvas_mc.graphics.endFill();
canvas_mc.addEventListener(MouseEvent.MOUSE_DOWN, startDrawing);
canvas_mc.addEventListener(MouseEvent.MOUSE_UP, stopDrawing);
canvas_mc.addEventListener(MouseEvent.MOUSE_MOVE, makeLine);
function startDrawing(event:MouseEvent):void{
canvas_mc.graphics.lineStyle(1, 0, 1);
canvas_mc.graphics.moveTo(mouseX, mouseY);
canvas_mc.addEventListener(MouseEvent.MOUSE_MOVE, makeLine);
function stopDrawing(event:MouseEvent):void{
canvas_mc.removeEventListener(MouseEvent.MOUSE_MOVE, makeLine);
function makeLine(event:MouseEvent):void{
canvas_mc.graphics.lineTo(mouseX, mouseY);
sketch();
var serverPath:String = "";
function createJPG(m:MovieClip, q:Number, fileName:String)
var jpgSource:BitmapData = new BitmapData (m.width, m.height);
jpgSource.draw(m);
var jpgEncoder:JPGEncoder = new JPGEncoder(q);
var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);
var header:URLRequestHeader = new URLRequestHeader ("Content-type", "application/octet-stream");
var jpgURLRequest:URLRequest = new URLRequest ( serverPath+"jpg_encoder_download.php?name=" + fileName + ".jpg");
jpgURLRequest.requestHeaders.push(header);
jpgURLRequest.method = URLRequestMethod.POST;
jpgURLRequest.data = jpgStream;
var jpgURLLoader:URLLoader = new URLLoader();
//jpgURLLoader.load(jpgURLRequest);
navigateToURL(jpgURLRequest, "_blank");
save_btn.addEventListener(MouseEvent.CLICK, saveBtnPress);
save_btn.addEventListener(MouseEvent.ROLL_OVER, saveBtnOver);
save_btn.addEventListener(MouseEvent.ROLL_OUT, saveBtnOut);
function saveBtnPress(e:Event):void
createJPG(canvas_mc, 90, "sketch");
function saveBtnOver(e:Event):void
Mouse.show();
pencil.visible = false;
function saveBtnOut(e:Event):void
Mouse.hide();
pencil.visible = true;
Lately I created a file .fla in the same root of the file .as naming it "sketch.fla"
When I try, in the Adobe Flash CS4 Professional screen, to assign to ".fla" in the properties Publish my action script, the following message appears:
“A definition for the document class could not be found in the classpath, so one will be automatically generated in tha SWF file upon export.”
Obviously, it doesn’t function
Could somebody help me??i don't understand, "When I try, in the Adobe Flash CS4 Professional screen, to assign to ".fla" in the properties Publish my action script, the following message appears:"
but i do understand that error message. you need to assign the document class for your fla. in the properties panel with the backstage selected, assign sketch in the class or document class field. -
Is Import to DRM by action script the only way to build hierarchies?
Hi,
If I am getting by source file as a big generation wise excel format and even properties in excel sheet with large number of custom property field values.
Is making a Import action script out of the excel to load to DRM is the only way, or do we hav any other option to load these hierechies to DRM from excel without going fpr manual efforts in making scripts one by one for large no of dimensions.hi, the import functionality can build hierarchies. It has a draw back of only building NEW hierarchies. So if your source master hierarchy is external to DRM, action script or API is best way, if it is to be automated. If this is only be imported/updated once a month the import can be used to create the "new" version. You can use then blend update your old version.
-
Using mx components in Action Script project in Flash Builder
Hi
I have created an Action Script project in flash builder 4 and want to use a mx.controls.button.
The as file looks like this:
package
import flash.display.Sprite;
import mx.controls.Button;
public class as_test_project extends Sprite
public function as_test_project()
var btn:Button = new Button();
btn.label = "test";
addChild(btn);
I have added C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\src as a Source Path in the project settings. I have also added framework.swc to the library path.
I still get errors like :
Description Resource Path Location Type
Unable to resolve resource bundle "core" for locale "en_US". as_test_project Unknown Flex Problem
Have then tried added various Bundles folders like
C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\bundles
to the source path and library path, but I still get the errors.
WHAT IS THE CORRECT WAY OF USING MX COMPONENTS IN A PURE ACTION SCRIPT PROJECT ?
If I want to use th fl.controls componets instead but dont have CS3 where can I download them ?Thank you for your quick reply.
But how then can I obtain the fl.controls components and use them in an Action
Script project in Flash Builder 4?
I don't have CS3 or CS4 (the flash authoring tool) installed.
Is there an SWC somewhere to be downloaded? -
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 -
Action script for batch-opening psd layer files flat? (alt+shift?)
hi
i am daily batch processing with an action script to make flat tiffs from psd layer files, like 10-100 files every couple of days in my workflow.
until now i could not fine a solution to begin the batch processing-action with opening layer files FLAT.
the reason is: i am working with huge files, 5-20GB .psb files, (16bit, ECI-RGB, 50x100cm, 300dpi) and it takes a couple of seconds to open with my pcie-SSD.
that multiplies the time it takes to open 50 of such files. i would gain a lot of time, if photoshop cs6 would not open it with layers, but flat.
there is a workaround i am using daily: (osx) hold alt+shift, then click on the layer file in the finder and cs6 opens it flat.
but that did not work in the action script. it doesnt store the keyboard command alt+shift.
any idea how i could save time and use the alt+shift command in the action script or any other solution please?
thanks
peterI just tried to record this using ScriptListener, and it didn't record it either. No indo in the ExtendScript SDK on this either. I don't think that this is possible at this time. Maybe someone who know more than I do can find a way.
-
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.
>
>
Maybe you are looking for
-
I want to use numbers on my iPad mini for a team I coach. I have a spreadsheet on my mac I want to import onto the iPad mini for players to enter in wellness ratings. On this spreadsheet (on the mac) I have a conditioning formatting rule that when a
-
I have purchased Black Jack Pro - G 3 Studios. It will not work. It come up but immediately flips off. I called apple Support and they said delete it and re-down load. I have tried that many times. When I go to App store and try to re-download -
-
Use of "User Role" tab in T.Code - VL10G
Hi, Can anyone help me in providing more information or document on "User Role" tab in T.Code-VL10G. Rahul
-
Is my graphic card broken?
Hi! Just returned to my computer (iMac G5), woke it up and found that menues and transparent areas in the OS looked weird: Screenshot: http://www.beakid.se/bugg1.png Tried to switch to 256 colors: http://www.beakid.se/256colors.png Have tried to rest
-
Annotations in a protected PDF document - ipad
I have a protected PDF document - Not password protected. The document was emailed, I have saved and opened using the Adobe Reader app on my ipad. I am unable to make comments or annotations to the document as the "cloud" is grey. The creator of the