Action Script Import
Hey Guys I love the idea and I know it is a daunting task to convert .fla into html5. I am working on removing any action script in any of my .fla files so that, 1: they may convert, but in doing so I realized that It may be possible to create a seperate stand alone action script...place it in the server, and the import said script into html5 the similar way you would when calling an image href, but the problem is... How if at all would I be able to import script into html5, and/or java for each individual scene related to a large .fla? My thoughts are I would need to create a new individual (Java class's) related to each individual action script scene and then import those into the html5 code! I am on track with the thought, or am I just crazy...
In order to accheive this I would need to import the action script standalone into the root folder any recommendations?
For example: stop(); frame 10 scene 1 layer Bck_Ground
Then file name would be: layer 1 Bck_Ground.AS
Java class 1Bckground. js
.requires(
bck_ground.as
This only as an eample of thought not real code!
and or the ssame ideal in HTML5?
Could this work?
Thanks James
Then no offense to Adobe, but this to me is an intermediate way of creating an animated gif...Granted if I wanted to create a animated gif from.swf I have to go through several steps, but at least I don't get the annoyance of ".fla not supported"! My input to Adobe in your Wallaby creation is this...Please consider the creation of a re-write enging for pre-existing action script that will interpelate the data of each scene, and layer directly from the .fla, and then import it into several native languages that the user can select such as java, html5, possibly C, xml, and be compatible for Mobile Web, IOS, SDK, and Stand-Alone Java!, and export all media assets into a seperate file folder with the a fore mentioned extensions placed and housed with coresponding media...After-all none of us Flash Heads really want to re-write code the hours of code we spent developing for a product that can't or won't be seen by mobile applicatioins. If you can do that I would pay my top dollar for it...and I would think everybody else would agree with me! Thanks for your hard work...keep plugging along!
James
Similar Messages
-
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 FDM Import Action script to import data from ERPI table "tdataseg_t"
Hi Experts
I have extracted data from EBS using ERPI and loaded into the intermediate table "tdataseg_t"
I am trying to use Import Action script within FDM to extract data from "tdataseg_t" table (where ERPI extract data is stored) as i could not use the normal import script.
Requirement : I have to restrict the custom 2 dimension based on Account dimension.
Dim Account
Account = ???? ( i am struck here)
If Account = 1000 to 5000 Then
Custom2 = Right( product , 5)
End If
but , I could not find the exact syntax to call the Account dimension from the "tdataseg_t" table.
Please Advise
Thanks
Sak
Edited by: user12292415 on Feb 26, 2012 1:19 AMHello,
Importing data via a manual script defeats the purpose of ERPi. As it will not provide you an audit trail, drill-through/drill-back, etc.
Your best bet is to use the default settings by the software. Just because it returns more records than you want is not a bad thing. You can conditionally change/alter the information either in an EventScript inside of FDM or by mapping the un-needed information to IGNORE.
Thank you, -
DRM Import, Action Script
Hi All,
I am new to Hyperion DRM 11.1.2, I am confused about concepts such as metadata and data still not able to understand difference between them. What I understand is all Versions hold is set of independent hierarchies which have nodes and their property values, which is nothing but metadata.
Please help me understand difference between data and metadata?
There are different task groups like Import, Action script and Migration Utility all the these are essentially used for importing metadata and data in the DRM Application.
Migration Utility - Provides the ability to bulk load metadata and security objects in DRM applications. Other operations which can be performed in migration utility are extract and difference.
Import- It provides a way to import data in DRM Applications, but it creates new version after import
Action Script - Used to process a bulk set of changes in an automated fashion.
Can anyone help me understand best case scenario for when to use which utility to import metadata and data?
Thanks in advance.
Regards,
AniketMigration Utility: When you are trying to Export/Import Properties, Validations, Export Definitions, Import Definitions etc to an XML or from another server.
Import: This function Imports a whole new Version once you have the load file in a specific Import format that you define.
Blendor: The Version you imported Can be blended with the Actual current existing version
Action Script: This is used when updating the current Hierarchies. Like Adding nodes, updating Properties etc. -
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. -
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? -
Hi.
I am using NetConnection and NetStream to play back flv in Flash Pro CS5.5, and trying to add cue point to trigger events using Action Script, and to automatically rewind to the start at the end. There is no problem to trigger events via AS when the cue points are embedded, but i am unable to add cue points using AS.
When i use an FLVPlayback component, there is no problem to add cue points (http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d1 18a9c65586-7feb.html) and to loop the playback using autoRewind (and fl.video.VideoEvent.AUTO_REWOUND which i got from Nafem at http://forums.adobe.com/thread/857036).
However, i am failing to use this same code w/a netConnection and netStream, and would appreciate any help.
thanks.Hello,
Well, I've got some help from another helpful fellow at macscripter.net and I have a working script - albeit a bit more specific (ie, hardcoded extensions to look for) and a different approach.
Here's the script:
on adding folder items to thisFolder after receiving addedItems
repeat with movieFile in addedItems
set {Nm, Ex} to getName_andExtension(movieFile)
set movieFilePath to (thisFolder as text) & Nm & ".avi"
set subtitleFile to (thisFolder as text) & Nm & ".srt"
if Ex is ".srt" then
try
tell application "iFlicks"
import (movieFilePath as alias) with gui
end tell
end try
else if Ex is ".avi" then
if my FinderItemExists(subtitleFile) then
try
tell application "iFlicks"
import (movieFilePath as alias) with gui
end tell
end try
end if
end if
end repeat
end adding folder items to
on getName_andExtension(F)
set F to F as Unicode text
set {name:Nm, name extension:Ex} to info for file F without size
if Ex is missing value then set Ex to ""
if Ex is not "" then
set Nm to text 1 thru ((count Nm) - (count Ex) - 1) of Nm
set Ex to "." & Ex
end if
return {Nm, Ex}
end getName_andExtension
on FinderItemExists(thePath)
try
set thePath to thePath as alias
on error
return false
end try
return true
end FinderItemExists -
Action script though batch client
While importing data using Action Script, if we have properties with same label name which belongs to different namespaces, DRM is not able to identify which property it should actually point to. Generally when we run the script from UI, we manually select the correct property in UI.
Now, what can be done to achieve the same functionality when we run the script from batch client.
Suppose we have two properties, with same label name as ACCOUNTCODE which are present in two different namespaces,
ESSBASE.ACCOUNTCODE
CUSTOM.ACCOUNTCODE
Now while importing the action script, system is unable to determine to which ACCOUNTCODE property it should point. What changes in action script or any other places can be done to make the system enable to point to the correct property.Our client wants it this way only (having same property labels across Namespaces). Is this possible to have Property Names or Fully qualified Property Names instead of Labels in hierarchy export of DRM?
-
Action script and default values
While importing data through action script, even if the property value present in Action script is same as default value defined at the property level , DRM marks that property value as Overridden in the hierarchy.
Is there any possible way to avoid this?Default value is set when no value is entered for the property. As soon as you enter a value for the property thru action script or manually, its overridden even though the value is the same which was set at the property level
Right click on the property and do a remove value then the icon should be set to default again.
If you want to restore multiple properties back to default, then use remove all below at the rollup level -
Action Script and button Behavior
Imported a bmp as png, made it into a movie clip. Setup the
AS to call for page 4. It works great. I would now like to have a
text box come up on the rollover. I tried to nest the mc into a
button. I can make the text box work but the script won’t
work when I click.
Could you refer me to a resource that would explain the
relationship between the two. Or is there another way to do this.
So the text box says “Click here for more Info”.
Can’t click to execute Action Script, I think it is not
addressable because it’s nested in the button.
If I reverse the nesting then the text box in the over frame
won’t execute.Mjddoyle wrote:
> Imported a bmp as png, made it into a movie clip. Setup
the AS to call for page
> 4. It works great. I would now like to have a text box
come up on the rollover.
> I tried to nest the mc into a button. I can make the
text box work but the
> script won?t work when I click.
> Could you refer me to a resource that would explain the
relationship between
> the two. Or is there another way to do this.
> So the text box says ?Click here for more Info?. Can?t
click to execute Action
> Script, I think it is not addressable because it?s
nested in the button.
> If I reverse the nesting then the text box in the over
frame won?t execute.
Sorry, a bit chaotic and i can't really get your arrangement.
Please upload what you have so far, we will go from there.
There is so many ways to achieve the same thing in flash that
there
is no point going into it, could turn up suggested solution
totally
does not suit your project. Need to see what you have so far.
Upload to your server and provide URL for us to check.
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
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... 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... -
Im taking over a job and I was given the original flash file
that doesnt seem to be working properly.
It a thumbnail menu that loads through xml...the images work
fine but the Links & Titles do not load.
Nor does the rollover effect. Here what I have.
Action Script:
Stage.align = "TL";
Stage.scaleMode = "noscale";
preloader._visible = true;
thumbs_line._visible = false;
import mx.transitions.Tween;
import mx.transitions.easing.*;
my_xml = new XML();
my_xml.ignoreWhite = true;
if (_parent.xml_file == undefined) {
my_xml.load((String(_url.slice(0, (_url.length-3))))+"xml");
} else {
my_xml.load(_parent.xml_file);
my_xml.onLoad = function(ok) {
if (ok) {
process_xml();
} else {
trace("XML not loaded");
function process_xml() {
total_images = my_xml.childNodes[1].childNodes.length-1;
gallery_width =
Number(my_xml.childNodes[0].childNodes[0].attributes.gallery_width);
gallery_height =
Number(my_xml.childNodes[0].childNodes[0].attributes.gallery_height);
max_thumb_height =
Number(my_xml.childNodes[0].childNodes[0].attributes.max_thumb_height);
thumbs_space =
Number(my_xml.childNodes[0].childNodes[1].attributes.thumbs_space);
thumb_border =
Number(my_xml.childNodes[0].childNodes[1].attributes.thumb_border);
image_border =
Number(my_xml.childNodes[0].childNodes[1].attributes.image_border);
fade_in_seconds =
Number(my_xml.childNodes[0].childNodes[2].attributes.fade_in_seconds);
fade_out_seconds =
Number(my_xml.childNodes[0].childNodes[2].attributes.fade_out_seconds);
thumb_fade_seconds =
Number(my_xml.childNodes[0].childNodes[2].attributes.thumb_fade_seconds);
fade_in_seconds += 0.01;
fade_out_seconds += 0.01;
thumb_fade_seconds += 0.01;
thumbs_line._y =
gallery_height-max_thumb_height-(4*thumbs_space);
thumbs_line.thumbs_bg._width = gallery_width;
thumbs_line.thumbs_mask._width = gallery_width;
thumbs_line.thumbs_bg._height =
max_thumb_height+thumbs_space*2+thumb_border*2;
thumbs_line.thumbs_mask._height =
max_thumb_height+thumbs_space*2+thumb_border*2;
thumbs_line._visible = true;
load_thumb(0);
preloader._x = int((gallery_width-preloader._width)/2);
preloader._y = int(thumbs_line._y/2-preloader._height/2);
max_image_height =
gallery_height-max_thumb_height-thumbs_space*6;
load_image(0);
this["link"+t] =
my_xml.childNodes[1].childNodes[t].attributes.link;
function load_thumb(t) {
thumbs_line.thumbs.createEmptyMovieClip('thumb'+t,
thumbs_line.thumbs.getNextHighestDepth());
thumbs_line.thumbs['thumb'+t]._y =
thumbs_space+thumb_border;
thumbs_line.thumbs['thumb'+t]._x =
thumbs_space+thumb_border;
if (t>0) {
thumbs_line.thumbs['thumb'+t]._x =
thumbs_line.thumbs['thumb'+(t-1)]._x+thumbs_line.thumbs['thumb'+(t-1)]._width+thumbs_spac e;
thumbs_line.thumbs['thumb'+t].image_number = t;
thumbs_line.thumbs['thumb'+t].onRollOver =
thumbs_line.thumbs['thumb'+t].attachMovie("thumbov_mc",
"thumbov_mc", 10);
thumbs_line.thumbs['thumb'+t].onRelease = function() {
tellTarget (thumbs_line.thumbs['thumb'+t]) {
var loadListener:Object = new Object();
loadListener.onLoadInit = function(target_mc:MovieClip) {
preloader.visible = false;
thumbs_line.thumbs['thumb'+t].attachMovie("border_grey",
"border_grey", 10);
thumbs_line.thumbs['thumb'+t].border_grey._x -=
thumb_border;
thumbs_line.thumbs['thumb'+t].border_grey._y -=
thumb_border;
thumbs_line.thumbs['thumb'+t].attachMovie("border_white",
"border_white", 20);
thumbs_line.thumbs['thumb'+t].border_white._x -=
thumb_border-1;
thumbs_line.thumbs['thumb'+t].border_white._y -=
thumb_border-1;
if (target_mc._height>max_thumb_height) {
ratio = target_mc._width/target_mc._height;
target_mc._height = max_thumb_height;
target_mc._width = int(target_mc._height*ratio);
thumbs_line.thumbs['thumb'+t].border_grey._width =
target_mc._width+thumb_border*2;
thumbs_line.thumbs['thumb'+t].border_grey._height =
target_mc._height+thumb_border*2;
thumbs_line.thumbs['thumb'+t].border_white._width =
target_mc._width+thumb_border*2-2;
thumbs_line.thumbs['thumb'+t].border_white._height =
target_mc._height+thumb_border*2-2;
if (t<total_images) {
t++;
load_thumb(t);
thumbs_width = thumbs_line.thumbs._width;
thumbs_right_limit = 0;
thumbs_left_limit =
0-thumbs_width+int(gallery_width-thumbs_space-thumbs_space);
var thumb_fade_in:Tween = new Tween(target_mc, "_alpha",
none.easeIn, 0, 100, thumb_fade_seconds, true);
var thumb_loader:MovieClipLoader = new MovieClipLoader();
thumb_loader.addListener(loadListener);
createEmptyMovieClip("img", 30);
thumb_loader.loadClip(this.my_xml.childNodes[1].childNodes[t].attributes.small,
img);
thumbs_line.onMouseMove = function() {
if (_xmouse>=thumbs_line.thumbs_bg._x and
_xmouse<=thumbs_line.thumbs_bg._width and
_ymouse>=thumbs_line._y and
_ymouse<=thumbs_line._y+thumbs_line._height) {
onRollOver =
thumbs_line.thumbs['thumb'+t].attachMovie("thumbov_mc",
"thumbov_mc", 10);
onEnterFrame = function () {
if (_xmouse<(gallery_width/2)-10 and
thumbs_line.thumbs._x<thumbs_right_limit) {
thumbs_line.thumbs._x -=
int((_xmouse-thumbs_line.thumbs_bg._width/2)/(100-scroll_speed));
if (thumbs_line.thumbs._x>thumbs_right_limit) {
thumbs_line.thumbs._x = thumbs_right_limit;
if (_xmouse>gallery_width/2+10 and
thumbs_line.thumbs._x>thumbs_left_limit) {
thumbs_line.thumbs._x -=
int((_xmouse-thumbs_line.thumbs_bg._width/2)/(100-scroll_speed));
if (thumbs_line.thumbs._x<thumbs_left_limit) {
thumbs_line.thumbs._x = thumbs_left_limit;
} else {
onEnterFrame = undefined;
this["link"+t] =
my_xml.childNodes[1].childNodes[t].attributes.link;
this["the_target"+t] =
my_xml.childNodes[1].childNodes[t].attributes.target;
XML File
<?xml version="1.0" encoding= "UTF-8" ?>
<options>
<option gallery_width="730" gallery_height="450"
max_thumb_height="96"/>
<option scroll_speed="75" thumbs_space="0"
thumb_border="1" image_border="2"/>
<option fade_in_seconds="1.5"
thumb_fade_seconds="1.5"/>
</options>
<gallery>
<img small="../flash/hosts/images/pic7.jpg" title="Name
1" link="hosts.asp"/>
<img small="../flash/hosts/images/pic1.jpg" title="Name
2" link="bio1.asp"/>
<img small="../flash/hosts/images/pic2.jpg" title="Name
3" link="bio2.asp"/>
<img small="../flash/hosts/images/pic3.jpg" title="Name
4" link="bio3.asp"/>
<img small="../flash/hosts/images/pic5.jpg" title="Name
5" link="bio4.asp"/>
<img small="../flash/hosts/images/pic6.jpg" title="Name
6" link="bio5.asp"/>
<img small="../flash/hosts/images/pic8.jpg" title="Name
7" link="bio6.asp"/>
<img small="../flash/hosts/images/pic9.jpg" title="Name
8" link="bio7.asp"/>
</gallery>
Thier is a dynamic Text field in the roll over effect that
should contain the "title"
the rollover MC name is: thumbov_mc
the dynamic text field is labeled: title
And the links are not working either?
Does anyone see the problem?
Thank You So Much for you help in AdvanceIf you think you can help just let me now and ill email you
the link to where this menu is...i dont want to post it for
everyone to see..thanks -
Problems adding url link to buttons in action Script 3
each time I added it link 1 to the button on file i get these error messages-
1046: Type was not found or was not a compile-time constant: link1.
1180: Call to a possibly undefined method link1.
Warning: 3594: exec is not a recognized method of the dynamic class RegExp. var r:Object = p.exec(s);
This is the code I am using: import flash.net.navigateToURL; import flash.net.URLRequest; var link_one:link1; link_one = new link1(); stage.addChild(link_one); link_one.addEventListener(MouseEvent.CLICK, buttonClickHandler); function buttonClickHandler(event:MouseEvent):void { var url:String = "http://www.masterpiececorp.com/ARMREF.htm"; var request:URLRequest = new URLRequest(url); navigateToURL(request); } I have no other problems with link 3 or 4, just link 1 I still cannot get my urls link to movie clips on the flash
Can you upload flash here? if not I have a image capture I can use to have you look at my buttons and action script code. i have been to every forum I know and not any have been helpful at all. This is my last hope.
Very frustrated newbie Gina T
Message was edited by: gtaylor0406The way you had your code originally would be correct...
var link_one:link1;
link_one = new link1();
addChild(link_one);
The 1046 error is indicating it doesn't recognize the link1 class. So the first thing you need to make sure of is that you have assigned the link1 class designation to whatever symbol that is in the library. -
New to flash / action script 3
hi guys,
got sick of playing flash games and want to learn to create.
i downloaded a gif of sub zero from mortal kombat...the gif has all the frames for each action like jumping / punching etc.
i have imported it into flash and i have organised the key frames so when i press enter it looks pretty smooth.
will i be able to control it like this with keyboard using action script? or do i have to convert it to a vector graphic?
or is this just not possible.
can anybody please recommend me a good flash/as3 book to read please...i know there are lots...
thanks
jonininirelandimm for an easy gif control try to import it as a movie clip , Gif images must be framed inside your - character Movie clip -
try to learn about cross images technique for animating chracters.
of course u'll be able to control game by keyboard ha ! .
see:http://as3gamedev.blogspot.com/
Read :Essential Guide to Flash Games
try:Develop Flash Games
Good luck
Mhood
Maybe you are looking for
-
For the captioned issue, is it possible? We have successfully created linked server between 2 MS SQL server 2008 standard edition, but failed for the standard and express edition. Is there any trick to setup? Thanks.
-
Printing/Preview does not honour to printer page margins and garbles text
I have this weird problem with printing. When I print, e.g., a pdf using preview, the page comes out of the printer incorrectly, that is the top 2.2cm gets chopped off and some of the characters have become unreadable (especially the I, the :, and th
-
What happened to the 17" Macbook Pro?
I have been using the 17" Macbook Pro since they were created and they have suddenly dissapeared, do they still exist?
-
I need help with embedding a graphic in email. I have a desktop progarm that allows me to do so, but I havent been able to do it in CF. Running CF7
-
CFIMAGE error "Numbers of source Raster bands and source color space components do not match"
I keep on getting this error when trying to upload a .JPG file. This error is not present for all jpegs, just for some of them. I am running CF 9 on a Windows 64-bit server. Any suggestions on how to modify cfimage tag or workaround this? Thank you!