Action Script Mysteriously Changing width of Items ???
Hello,
I am working on this website and I decided to add some flash to the front page in the form of a little image gallery with a nifty slide effect.
The problem is this. For some reason its squishing my images. When you look in the scripting you will see that I've set the image width to the full width of the stage, but when you test the movie they are getting squished to about 3/4th's the width of the stage (ive double checked the image size as well).
Hopefully you will see something I have missed.
Thanks for your help, this is bugging me to no end!
-Brian
While the problem has nothing to do with the actionscript, you posted this in the wrong forum since the file uses AS2.
The problem has to do with having modified the scale of the movieclips into which the images are loaded. If you open the imgscroller movieclip, select all of the little white squares in the upper left (clip1 thru clip7), and select Modify -> Remove Transform, it will restore them to normal scale.
Similar Messages
-
Flash Action Script hitTest Change Variable
Hello! I am making a flash game which is my own take on Pacman. I at trying to make a wall that when the character hits, the character doesn't move at all. When I put code on the wall itself, the character would hit it, then move forward 10 pixels while the key was pressed and spring back 10 pixels when it wasn't pressed. Is there any way to make something completely solid? This is the code I was using before.
onClipEvent (enterFrame) {
if (this.hitTest(_root.char))
_root.char._x += 10;
The code on the character (char) was
onClipEvent (enterFrame) {
var a_variable = 10;
if (Key.isDown(Key.LEFT))
this._x -= a_variable;
_root.char.gotoAndStop(2);
else if (Key.isDown(Key.RIGHT))
this._x += a_variable;
_root.char.gotoAndStop(1);
else if (Key.isDown(Key.UP))
this._y -= a_variable;
_root.char.gotoAndStop(3);
else if (Key.isDown(Key.DOWN))
this._y += a_variable;
_root.char.gotoAndStop(4);
I am wondering if there is a way to set the variable a_variable to 0 when the character hits the wall.
Thanks.
~WaltYes you're completely right, I fixed it because I noticed that the stage was null, after fixing that it basicly solved the issue.
-
How to change the particular item size via script?
Hello,
I need to change the particular item(pathitem,grapitem) size(width and height) in the illustrator cs3 file through script. Is it possible kindly advice me.
Thanks for looking into this...I changed the widh and height of the selected items. While converting stroke weight of the selected item also changed. But i need to change the width and height of the selected items without any modification in the stroke weight(scale strokes and effects). Could you please advice me the possiblilities and solution via scripting.
Thanks for looking into this.. -
Item renderer using action script
Hi,
Can anybody tell me how to use item renderers using actions script,
I have a data grid and iam using item renderer in mxml works fine but it is causing memory issues >
So i want to know to use item renderers in action script to avoid memory issue.
Thank You,
Anuuse the ClassFactory
example:
<!-- MyCombo.mxml -->
<?xml version="1.0" encoding="utf-8"?>
<mx:ComboBox xmlns:mx="http://www.adobe.com/2006/mxml" >
</mx:ComboBox >
and in ActionScript
private var myComboFac:ClassFactory = new ClassFactory(MyCombo);
private function myFunction():void
colCombo.itemRenderer = myComboFac;
and in DataGrid
<mx:DataGrid xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:columns>
<mx:DataGridColumn id="colCombo" />
</mx:columns>
</mx:DataGrid>
regards
Leonardo França
Adobe Certified Expert Flex 3 with AIR
Adobe Certified Expert Rich Internet Application Specialist v1.0
Adobe Certified Expert Flash CS3 Professional
Certified Professional Adobe Flex 2 Developer
Adobe Certified Professional Flash MX 2004 Developer
http://www.leonardofranca.com
http://twitter/leofederal
Manager AUGDF - Adobe User Group do Distrito Federal
http://www.augdf.com.br
http://twitter/augdf
anu3000 escreveu:
Hi,
Can anybody tell me how to use item renderers using actions script,
I have a data grid and iam using item renderer in mxml works fine but it is causing memory issues >
So i want to know to use item renderers in action script to avoid memory issue.
Thank You,
Anu
> -
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.
-
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>. -
Help... link URL from XML to Flash Action Script 2
I am trying to link a different URL to each of my files in XML and use this XML in Flash were I created a carousel. In the carousel, when you click on a picture I would like to insert a specific URL. Each picture will have a different URL (http://------------).
Here are my codes:
XML:
<icons>
<icon image="icon1.png" tooltip="Planning" />
<icon image="icon2.png" tooltip="Investments" />
<icon image="icon3.png" tooltip="Education" />
<icon image="icon4.png" tooltip="Insurances" />
<icon image="icon5.png" tooltip="Mortgages" />
<icon image="icon6.png" tooltip="Retirement" />
<icon image="icon7.png" tooltip="Business Owner" />
<icon image="icon8.png" tooltip="Banking" />
</icons>
Flash Action Script 2:
import mx.utils.Delegate;
var numOfItems:Number;
var radiusX:Number = 250;
var radiusY:Number = 75;
var centerX:Number = Stage.width/2;
var centerY:Number = Stage.height/2;
var speed:Number = 0.01;
var perspective:Number = 60;
var home:MovieClip = this;
var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
tooltip._alpha = 0;
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0;i<numOfItems;i++)
var t = home.attachMovie("item","item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
t.toolText = nodes[i].attributes.tooltip;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.ref.inner.loadMovie(nodes[i].attributes.image);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
function over()
home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
home.tooltip._alpha = 100;
function out()
delete home.tooltip.onEnterFrame;
home.tooltip._alpha = 0;
function released()
function moveTip()
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
xml.load("icons.xml");
function mover ()
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = (this._y - perspective) / (centerY+radiusY-perspective);
this._xscale = this._yscale = s * 100
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
this.onMouseMove = function()
speed = (this._xmouse-centerX)/10000;
Thanks so much for the help.You should be able to add that data into your xml tags and then extract it in the AS2 onLoad function...
XML:
<icons>
<icon image="icon1.png" tooltip="Planning" linkURL="http://www.someURL.com/somePage.html" />
AS2:
xml.onLoad = function()
etc....
t.onEnterFrame = mover;
t.toolText = nodes[i].attributes.tooltip;
t.urlLink = nodes[i].attributes.linkURL;
etc... -
This action is not valid for this item
Hi all,
I am facing with "This action is not valid for this item" error, if I submit the items by using "Submit Decisions" button on UWL. Please find the uwl, below;
<ItemType name="uwl.task.webflow.decision.TS90100027" connector="WebFlowConnector" defaultView="DevamDevamsizlik" defaultAction="viewDetail" executionMode="pessimistic">
<ItemTypeCriteria externalType="TS90100027" connector="WebFlowConnector"/>
<CustomAttributes>
<CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebflowContainer" cacheValidity="session">
<Attribute name="Personel" type="string" displayName="Personel Adı"/>
<Attribute name="AttAbsText" type="string" displayName="Devam/Devamsızlık Tipi"/>
<Attribute name="BaslangicTarihi" type="date" displayName="Başlangıç Tarihi"/>
<Attribute name="BaslangicSaati" type="time" displayName="Başlangıç Saati"/>
<Attribute name="BitisSaati" type="time" displayName="Bitiş Saati"/>
<Attribute name="BitisTarihi" type="date" displayName="Bitiş Tarihi"/>
</CustomAttributeSource>
</CustomAttributes>
<Actions>
<Action name="Onayla" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="decisionKey" value="0001"/>
<Property name="UserDecisionTitle" value="Onayla"/>
</Properties>
<Descriptions default="Onayla"/>
</Action>
<Action name="Reddet" groupAction="" handler="SAPBSPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="decisionKey" value="0002"/>
<Property name="UserDecisionTitle" value="Reddet"/>
<Property name="Application" value="zh12j010"/>
<Property name="PageId" value="rejectreason.htm"/>
<Property name="workitemId" value="${item.externalId}"/>
</Properties>
<Descriptions default="Reddet"/>
</Action>
<Action name="Detay" groupAction="" handler="SAPBSPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="Application" value="zh12j010"/>
<Property name="PageId" value="detail.htm"/>
</Properties>
<Descriptions default="Detay"/>
</Action>
<Action name="Yazdir" groupAction="" handler="SAPBSPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="Application" value="zh12j010"/>
<Property name="PageId" value="print.htm"/>
</Properties>
<Descriptions default="Yazdır"/>
</Action>
<Action name="submitUserDecisions" groupAction="yes" handler="UIActionHandler" referenceBundle="submit" returnToDetailViewAllowed="no" launchInNewWindow="no"/>
</Actions>
</ItemType>
<View name="DevamDevamsizlik" selectionMode="MULTISELECT" width="98%" supportedItemTypes="uwl.task.webflow.decision.TS90100027" columnOrder="createdDate, Personel, AttAbsText, BaslangicTarihi, BitisTarihi, BaslangicSaati, BitisSaati, redCol, onayCol" sortby="createdDate" tableDesign="STANDARD" visibleRowCount="10" headerVisible="yes" queryRange="undefined" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" refresh="-1" dueDateSevere="0" dueDateWarning="0" emphasizedItems="new" displayOnlyDefinedAttributes="no" dynamicCreationAllowed="yes" actionPosition="bottom">
<Descriptions default="Devam/Devamsızlık Talepleri">
<ShortDescriptions>
<Description Language="en" Description="Devam/Devamsızlık Talebi Onay"/>
</ShortDescriptions>
</Descriptions>
<DisplayAttributes>
<DisplayAttribute name="onayCol" type="checkbox" width="" sortable="no" format="default" actionRef="0001" hAlign="CENTER" vAlign="TOP" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Onayla">
<ShortDescriptions>
<Description Language="en" Description="Onayla"/>
</ShortDescriptions>
</Descriptions>
</DisplayAttribute>
<DisplayAttribute name="Personel" type="string" width="30" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Personel"/>
</DisplayAttribute>
<DisplayAttribute name="AttAbsText" type="string" width="15" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Devam/Devamsızlık Tipi"/>
</DisplayAttribute>
<DisplayAttribute name="BaslangicTarihi" type="date" width="" sortable="yes" format="medium" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Başlangıç Tarihi"/>
</DisplayAttribute>
<DisplayAttribute name="BaslangicSaati" type="time" width="" sortable="no" format="medium" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Başlangıç Saati"/>
</DisplayAttribute>
<DisplayAttribute name="redCol" type="link" width="20" sortable="no" format="default" actionRef="Reddet" hAlign="CENTER" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Reddet">
<ShortDescriptions>
<Description Language="en" Description="Reddet"/>
</ShortDescriptions>
</Descriptions>
</DisplayAttribute>
<DisplayAttribute name="BitisSaati" type="time" width="" sortable="no" format="medium" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Bitiş Saati"/>
</DisplayAttribute>
<DisplayAttribute name="BitisTarihi" type="date" width="" sortable="yes" format="medium" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Bitiş Tarihi"/>
</DisplayAttribute>
</DisplayAttributes>
<Actions>
<Action reference="submitUserDecisions"/>
<Action reference="refresh"/>
<Action reference="forward"/>
</Actions>
</View>
Can anyone give a suggestion about it?
Thank youHi all,
I had the exact same error using a user decision configuration. Issue was that I was using a VIEW that did not exist:
ItemType name="uwl.task.webflow.TS90300005" connector="WebFlowConnector" defaultView="DefaultApprovalView">
DefaultApprovalView was not defined as a custom view.
SOLUTION: changed it to standard SAP com.sap.pct.erp.srvconfig.approvaloverview view and it worked!
ItemType name="uwl.task.webflow.TS90300005" connector="WebFlowConnector" defaultView="com.sap.pct.erp.srvconfig.approvaloverview">
This is normally by default defined in a standard portal system.
Edited by: David Pierre on Jan 13, 2010 3:15 PM
Edited by: David Pierre on Jan 13, 2010 3:16 PM
Edited by: David Pierre on Jan 13, 2010 3:19 PM -
Problem with dynamic change a page item value
Hi,
I'm trying to dynamically calculated the value of an item based on a simple formula that involves the multiplication of two elements from the same page.
To do this, create dynamic action as follows:
Event: Change
Selection Type: Item(s)
Item(s): P19_DURATION
Action: Set value
Fire on page load: TRUE
Set Type: SQL Statement
SQL Statement: SELECT :P19_DURATION * :P19_RATE FROM DUAL
Page items to submit: P19_DURATION
Selection Type: Item(s)
Item(s): P19_AMOUNT
When altering the P19_DURATION get no change in P19_AMOUNT
Since my knowledge of javascript is almost zero, I'm trying to do this with pl / sql or sql. Try the dynamic action with a function or a PL / SQL statement and nothing works.
Have to use javascript for this?
Searching the forum I think it's something simple, but I did not find an example similar to what I need.
RegardsEvent: Change
Selection Type: Item(s)
Item(s): P19_DURATION
Action: Set value
Fire on page load: TRUE
Set Type: javascript
javascript Code:
amount = $v('P19_DURATION') * $v('P19_RATE');
$s('P19_AMOUNT',amount); -
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 -
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. -
Change Higher Level Item of the Sub-Item in Repair Order
Hello
We have a in-house-Repair order created from Compliant.
This repair order has main Line Item of type 'Repair Request' having Item no 1000.
From this Line, we are creating new main lines 'Return for Repair' 1001
and 'Diagonsis' lines 1002 through Actions(appearing as buttons on the Items Assignment Block).
Both these lines have Higher Level Item as 1000.
From the Diagonsis 1002 line, we are generating new Debit Memo line 1003(higher as 1002 ) by selecting a new button . This is billable and to be charged to the Customer in ECC.
How do I change the Parent/Higher Level Item value from 1002 to 1001(Return for Repair) for charging the Customer.
I found an action used for generating the Debit Line in CRM.
Please advice on how to achive this functionality.. Is this possible ?
Cheers
RJ
Note: I am new Tech Guy in Service area.
Edited by: Remo J on Jul 30, 2011 11:00 PMHi Remo,
Did you implement the in-house repairs completely?
Did you also work on ECC billing and controlling integrations?
would really appreciate your response on this.
Regards,
Itisha -
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 -
Powershell script to change the a column value of all documents in a site.
Hi,
I need a powershell script to change the value of a column (a site column which has been added to all document libraries) in all documents in a site,
For example:
-column 1 is a site column added to all libraries
the value of column 1 of all documents under this site: http://intranet.doman/ex1 should be equal to V1
the value of column 1 of all documents under this site: http://intranet.doman/ex2 should be equal to V2
So, if I can write a powershell script to change the value of all documents in a site, I can modify it for different site that I have and run it for each of them individually,cls
# Is dev version?
$dev = $false
# Configuration
$termStore = "Managed Metadata Service"
$group = "G1"
$subjectMatterTermSetName = "Subject Matter"
# Check if SharePoint Snapin is loaded
if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) {
Add-PSSnapin Microsoft.SharePoint.PowerShell
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Taxonomy") | Out-Null
function GetTermStore($site, $termStore, $group, $termSet) {
$session = New-Object Microsoft.SharePoint.Taxonomy.TaxonomySession($site)
$termStore = $session.TermStores[$termStore]
$group = $termStore.Groups[$group]
$termSet = $group.TermSets[$termSet]
return $termSet
if($dev) {
Write-Host "Running DEV version..."
$webUrl = "http://Site1"
$libraryName = "L1"
$subjectMatter = "C1"
} else {
$webUrl = Read-Host "Enter Site URL"
$libraryName = Read-Host "Enter Document Library name"
$subjectMatter = Read-Host "Enter Subject Matter"
try {
$web = Get-SPWeb $webUrl
$site = $web.Site
$library = $web.Lists[$libraryName]
$items = $library.GetItems()
$subjectMatterTermSet = GetTermStore $site $termStore $group $subjectMatterTermSetName
$subjectMatterTerm = $subjectMatterTermSet.GetTerms($subjectMatter,$true) | select -First 1
foreach($item in $items) {
if([string]::IsNullOrEmpty($item["Subject Matter"])) {
#Write-Host "Filename: $filename / Keywords: $keywords / Subject Matter: $subjectMatter / Document Type: $documentType"
Write-Host "Updating $($item["ows_FileLeafRef"])..."
# Set Subject Matter column
$subjectMatterField = [Microsoft.SharePoint.Taxonomy.TaxonomyField]$item.Fields["Subject Matter"]
$subjectMatterField.SetFieldValue($item,$subjectMatterTerm)
# Update Item
$item.SystemUpdate()
catch
$ErrorMessage = $_.Exception.Message
Write-Host "Something went wrong. Error: $ErrorMessage" -ForegroundColor Red -
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 don't seem to be able to put a screenshot in this message but the screen is basically mostly black. I have tried uninstalling and then reinstalling Firefox but to no avail. It suddenly started doing this last week. Is there something I can do to pu
-
Is there a way to remove only parts of audio in a clip (remove music but keep voiceover)
I've been given a promotional video to edit, with a voiceover and background music. The file I have is an MP4 file, and I do not have the separate pieces of the file (Video, audio, and music). Is there a way to remove the music but keep the voiceover
-
Unsupported third party add ons
Safari has difficulty in loading and it is suggested that this is due to "Unsupported third party add ons". How do I find what "Unsupported third party add ons" I have on my computer
-
Function Moudule not showing under the Function Group in SE80
Hi guys I transported a couple of newly developed Function Modules to the R3Q ( Quality System) under an exsitng Function Group. the FM are all transported perfectly and the report is also working but in SE80 where u can see a function group and all
-
Bad versions also for different color and contrast!!!!! Help
hi, the master sharper than version is an issue for me also knowing that is due to antialiasing in monitor scaling (I print 200+ sport shoots in 1 hour at the end of ski races after racers seen them on monitor and give me ok for print - and need a fa