Xml flash action scprit - help
can someone please tell me how to fix this action script for
a gallery so it plays through automatically? Please help im still
learning this.
There's a great tutorial on kirupa...
click
here for link
Similar Messages
-
XML & Flash: ImageFader Component help
Item 1
Tutorial, with built-in (AS 2.0) Flash Component
http://tutorialoutpost.com/count/7022
Item 2
Tutorial/Sample of XML thumbnail, photo, caption file:
http://www.tutorio.com/tutorial/simple-flash-xml-photogallery/1
(click 2nd page, go to bottom to download source code)
Basically, I want to create a portfolio section with the
components of the basic XML (item 2), but when you click on the
thumbnails, you dont get that jumpy feeling, rather a smooth
ImageFader (Item 1)
Here are the files, or look at the code (Files are a bit more
helpful)
http://www.dominicdesign.com/mikegreener/Archive.zipFor starters, read the Help Docs in Flash on Data
Integration. There's even a tutorial in Flash 8 called "Flash and
PHP Integration." Then you might want to Google "flash php xml
tutorial" which returns plenty of stuff to keep you reading for a
while.
Good luck! -
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... -
Hello Guys,
I am stuck with a xml flash menu which contains quite a few great options to manipulate the text, url, button and even change the color to the menu externally from xml. The only thing missing here (which I massively need it) is the option resizing the buttons from the xml file itself. The buttons need to be resized so that they fit each text length. I have the feeling that someone that is good at XML and deal with ActionScript would be able to easily add this option.
Thanks for commiting your time on this and I would be happy to help anyone in return who tackles this requirement I am after now.
Please download the file attached and you can own it as well.
Looking forward to hearing from you soon.
Respectfully yours,
BekoOk, here we go:
ACTION SCRIPT CODE:
_parent._visible = false;
// xml processing
menu_cfg_xml = new XML();
menu_cfg_xml.load(String(_url.slice(0, (_url.length-3)))+"xml");
menu_cfg_xml.ignoreWhite = 1;
menu_cfg_xml.onLoad = function(ok) {
// create main menu after successful loading of XML
if (ok) {
create_menu();
} else {
trace("XML not loaded");
counter = 1;
function create_menu() {
while (counter<menu_cfg_xml.firstChild.childNodes.length) {
attachMovie("button_type", "btn"+counter, counter);
set("btn"+counter+"._x", counter*80-100);
btn1._y = 0;
// set the buttons text
set("btn"+counter+".the_text", menu_cfg_xml.firstChild.childNodes[counter].attributes.text);
set("btn"+counter+".the_url", menu_cfg_xml.firstChild.childNodes[counter].attributes.url);
set("btn"+counter+".the_target", menu_cfg_xml.firstChild.childNodes[counter].attributes.target);
this["btn"+counter].onRollOver = this["btn"+counter].onDragOver=function () {
this.effect.gotoAndPlay(2);
this.textul1.textColor = "0x"+menu_cfg_xml.firstChild.childNodes[0].attributes.text_color2;
this["btn"+counter].onRollOut = this["btn"+counter].onDragOut=function () {
this.textul1.textColor = "0x"+menu_cfg_xml.firstChild.childNodes[0].attributes.text_color1;
this.effect.gotoAndPlay(9);
this["btn"+counter].onRelease = function() {
if (this.the_url != undefined and this.the_url != "") {
getURL(this.the_url, this.the_target);
//set buttons color
this["button_color"+counter] = new Color("btn"+counter+".btn_color");
this["button_color"+counter].setRGB("0x"+menu_cfg_xml.firstChild.childNodes[0].attributes .button_color);
//set button effect color
this["effect_color"+counter] = new Color("btn"+counter+".effect");
this["effect_color"+counter].setRGB("0x"+menu_cfg_xml.firstChild.childNodes[0].attributes .effect_color);
//set button text color
this["btn"+counter].textul1.textColor = "0x"+menu_cfg_xml.firstChild.childNodes[0].attributes.text_color1;
counter++;
_parent._visible = true;
info_clip._visible = false;
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
XML CODE:
<?xml version="1.0" encoding= "UTF-8" ?>
<!-- Menu created by www.adrianTNT.com -->
<menu>
<options button_color="000066" effect_color="87A10C" text_color1="87A10C" text_color2="FFFFFF">
</options>
<button text="Task force" url="http://www.google.com" target="_parent">width="250" height="136"</button>
<button text="Service og turisme" url="http://www.google.com" target="_parent"></button>
<button text="Fodbold" url="http://www.google.com" target="_parent"></button>
<button text="Idraet" url="http://www.google.com" target="_parent"></button>
<button text="Kunst and Design" url="http://www.google.com" target="_parent"></button>
<button text="Teknisk/praktisk linje" url="http://www.google.com" target="_parent"></button>
<button text="Gastronomi" url="http://www.google.com" target="_parent"></button>
<button text="Laekker mad" url="http://www.google.com" target="_parent"></button>
<button text="Musik" url="http://www.google.com" target="_parent"></button>
<button text="Turbo-boglig" url="http://www.google.com" target="_parent"></button>
</menu> -
To start, I'm a total newbie in Flash, so I'm sorry if what I'm asking is ridiculously primitive, but I was literally thrown into this blindfolded and I'm using google and several forums to help me out.
What I'm doing: redesigning a website. At the moment, the website has a flash file that introduces it's logo and subcategories of its' website on the top of the page. What I wanted to do was make sure there was a hyperlink on the logo that would bring anyone back to the homepage, very basic stuff. The issue I have run into is that the logo is actually a flash movie. Different parts of the logo appear at different times, and I think this is what is specifically causing me issues.
The logo that I want to hyperlink has several layers, and what I've done so far is select them all and create a button (F8, select 'Button' and rename it). When I did that, I noticed the layers significantly changed and when I tested the movie, it looks terrible, choppy and not how it originally looked.
I know the step after that is to go into behaviors and insert the url to which I want it to be hyperlinked. The only thing is that I don't want to show a terrible flash movie to my boss even if it's hyperlinked to the homepage.
Anyone understand all that gibberish I wrote down? Or does anyone see a flaw in what I'm doing? I'm not 100% positive if the steps I'm taking are correct, I've been to several different sites, all of which tell me to do different things.
Initially I tried coding it with ActionScript, but I was having terrible issues with that as well.
If it helps, the file I'm working on was altered a while back. Could it be that the file is not compatible or proper for Flash CS5?
Help!!!... how do I give that shape/button a url?
Since it is a button, it is already a self animating object that will react to mouse interactions, but only visually at this stage. The first thing you need to do to make it useful code-wise is to assign it a unique instance name. So you drag a copy of it out to the stage from the library, and while it's still selected, you enter that unique instance name for it in the Properties panel... let's say you name it "btn1"
In AS3, to make a button work with code, you need to add an event listener and event handler function for it. You might need to add a few (for different events, like rollover, rollout, clicking it, but for now we'll just say you want to be able to click it to get a web page to open. In the timeline that holds that button, in a separate actions layer that you create, in a frame numbered the same as where that button exists, you would add the event listener:
btn1.addEventListener(MouseEvent.CLICK, btn1Click);
The name of the unique function for processing the clicking of that button is specified at the end of the event listener assignment, so now you just have to write that function out:
function btn1Click(evt:MouseEvent):void {
var url:String = "http://www.awebsite.com/awebpage.html";
var req:URLRequest = new URLRequest(url);
navigateToURL(req);
... how do I know it's properly placed on the correct area?
What area? If you place it where you want it, that should be correct. (?)
... how do I make sure it's invisible...?
If you can't see it when you test the file and you know it's there and your cursor turns into a hand when you are over where it should be, it's invisible.
...how do I see the other objects in the flash file I'm working on?
Select Edit -> Edit Document to get out of the symbol editing mode and back to the file editing mode. If you doubleclick an object on the stage, rather than clickingit in the library, you open it up in editing mode on the stage, but the stage and everything else will still be visible behind it in a faded tone. -
Can access c++ library from flash action script by using SWC lib?
We want to develope a Flash application based on Windows CE 6.0 R3. The application aims to communicate with middleware libraries written in C/C++. Is it possible to create SWC file using the c++ library file so that we can load this as a component in fla project for accessing the library functions from flash action script 3.0? OR Is there any simple way to access c++ library from action script?
Thanks,
SauminiI don't think Alchemy will help you. The reason is Alchemy does not give socket capabilities beyond what Flash provides.
-
How to create animated xml flash gallery ?
I am a new starter . I want to create a xml flash gallery ,
but i dnt know how to create it ....Can any one let me know what is
the procedure to do this dynamically .....
ThanksIf you are using Actionscript 3, there is a pretty good
tutorial on working with XML files here:
http://www.gotoandlearn.com/player.php?id=64
The home page of that site provides numerous other tutorial
links that may come in handy for you in other projects.
You will also need to become familiar with the Loader object
and the addChild method in order to dynamically insert externally
stored images. Look for the "Loading display objects" section in
the Flash help documentation.
I'd recommend just getting one image to load/display to
become familiar, then you can decide how you want/need to make the
rest of the design work. -
Contact.php file for my XML, Flash based contact form
I am trying to create a contact.php file for my XML, Flash based contact form.
Anybody know some good tutorials Please introduce me !
Amanda NguyenI think that I should post the 2 .xml files here:
structure.xml
<?xml version="1.0" encoding="utf-8" ?>
<contactFormStructure>
<formItems>
<item id="1" label="Name" required="true" />
<item id="2" label="E-mail" required="true">
<validator>EmailValidator</validator>
</item>
<item id="3" label="Message" required="true" />
</formItems>
</contactFormStructure>
configuration.xml
<?xml version="1.0" encoding="utf-8" ?>
<contactFormConfiguration>
<emailTo>[email protected]</emailTo>
<serverProcessorType>php</serverProcessorType>
<serverProcessorFileName>contact</serverProcessorFileName>
<validateRequiredOnly>false</validateRequiredOnly>
<submitFormOnEnter>true</submitFormOnEnter>
<messageSentText>Thank you for your message.</messageSentText>
<messageSentFailedText>The form is not submitted.</messageSentFailedText>
<formProcessingText>processing...</formProcessingText>
<plainText>false</plainText>
<emailFromSource>2</emailFromSource>
<subjectSource>Contact Form from your site</subjectSource>
<validationErrorMessages>
<message type="fieldIsRequired">{LABEL} is required.</message>
<message type="emailNotValid">{LABEL} - is not valid email address.</message>
<message type="minCharsLimitError">{LABEL} - The specified number of characters in a field is less
than a required minimum.</message>
<message type="reqExpError">{LABEL} - The specified string does not match with the regular
expression.</message>
<message type="biggerThanMaxError">{LABEL} - The specified number is greater than an acceptable
biggest number for this field.</message>
<message type="lowerThanMinError">{LABEL} - The specified number is lower than an acceptable
lowest number for this field.</message>
<message type="notANumberError">{LABEL} - The data is not a number.</message>
<message type="negativeError">{LABEL} - The specified number must not be negative.</message>
<message type="minRequirementError">{LABEL} - The minimum number of variants is not
selected</message>
<message type="maxRequirementError">{LABEL} - The number of variants selected exceeds the
maximum</message>
<message type="shouldBeEqualError">{LABEL} - values do not match</message>
<message type="dateIsNotValidError">{LABEL} - date has wrong format</message>
</validationErrorMessages>
</contactFormConfiguration>
I am working and learning and I would like to create the contact.php for my contact form.
Please help !
Amanda -
i can't open swf files for schoolwork. Installed VCL, Flip4Mac and Adobe flash and shockwave players. Can get white screen with connection erro message with adobe flash player. Help me!
Apple dropped playback support for .swf formats in QuickTime almost ten years ago.
Adobe Flash Player is the only way to view them. -
XML Loader action URL via global properties with no drive letter
Trying to use the XML Loader action. If we hard code the URL as "c:\Inetpub\wwwroot\Camstar\Errors\logDetails.xml" it works fine. We want to use several global properties to construct the URL as follows.
Resulting in:
10.40.4.78\Inetpub\wwwroot\Camstar\Errors\logDetails.xml.
This does not work in the XML Loader action configuration but will work in IE every time. The XML Loader action throws the following errors.
[ERROR]: Unable to complete requested action on XML document.
10.40.4.78\Inetpub\wwwroot\Camstar\Errors\logDetails.xml (Access is denied)
[ERROR]: ACTION FAILED: End Action XmlLoader_LogDetails : ()
Does anyone know how to resolve this issue?Tim,
Ron is right about IE using the Microsoft magic of switching between Windows Explorer and Internet Explorer to locate the file.
Your best bet would be to construct a true http formatted string such as: http://localhost/Camstar/Errors/logDetails.xml
This would of course be only good for files on the local server, but would also be very upgrade friendly for version 12.0 migration. UNC paths would not work to other servers or network shares either.
If the xml files are in the IllumDoc Rowsets/Rowset/Row format you could just as easily use and XMLQuery action block instead of the XMLLoader, which might make it easier you to use the [Param.x] tokens in the template, etc.
Regards,
Jeremy -
Video bookmark (videomark) using flash/action script?
Video bookmark is called videomark.
Anybody did videomark using flash?.
Is there any good place, i can learn more about videomark in
flash?.yeah..........
Can I have a small example on this ... so that it would be very easy for me to understand....
I am a new bee in flash action scripting......
Thanks & Regards -
I have the 10.7.4 and I cannot get the Flash Player ,, please help me.
If you downloaded it, it's likely in your Downloads folder as a Disk Image .dmg. Just open it and intall Flash player and restart your browser. Everything should work.
Clinton -
Looking to Download Leopard Patch File for XML Flash Slideshow Maker?
Hi I was told that I have to download and install the Leopard
patch for the extension XML Flash Slideshow to work properly with
its style wizard (it isnt loading at the moment). I cant seem to
find it. Is there a source where I can download it.atomic king wrote:
> Hi I was told that I have to download and install the
Leopard patch for the
> extension XML Flash Slideshow to work properly with its
style wizard (it isnt
> loading at the moment). I cant seem to find it. Is there
a source where I can
> download it.
Is the patch you're talking about for Leopard itself, or for
the extension? If the patch is for Leopard, I'd assume that You'd
have to get it from Apple, but I don't know where to look for that.
If the patch is for the extension, then you probably need to go to
the developer's site to see if the patch is posted there, or
contact the developer directly to see where this patch may be if
indeed it is necessary.
Danilo Celic
|
http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert -
hello and thankyou for whoever is reading this for taking the
time! Im makinga band
web site and I made flash buttons in flash 8(not the
flash buttons in dreaweaver). now I need to add a link to each
button. How can I do this. I see that a lot of band pages are made
like this. take a look at www.relientk.com. Thats what im trying to
make. Can any one help me with Ho I could link a flash file????
linking flash FILE PLZ HELp
thank you so muchSee your answer on the DW forum.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"beliy333" <[email protected]> wrote in
message
news:enffbg$c3f$[email protected]..
> hello and thankyou for whoever is reading this for
taking the time! Im
> makinga
> band
web site and I made flash buttons in flash 8(not the
flash
> buttons
> in dreaweaver). now I need to add a link to each button.
How can I do
> this. I
> see that a lot of band pages are made like this. take a
look at
> www.relientk.com. Thats what im trying to make. Can any
one help me with
> Ho I
> could link a flash file????
>
linking flash FILE PLZ HELp
>
> thank you so much
> -
How do you auto reconnect a live video stream broadcast in flash action script 3?
how do you auto reconnect a live video stream broadcast in flash action script 3?
so i don't have to ask people to refresh the page if the connection drops
i copy pasted the live video stream broadcast files and script from here;
http://www.adobe.com/devnet/adobe-media-server/articles/beginner_live_fms3.html
http://www.adobe.com/content/dotcom/en/devnet/adobe-media-
server/articles/beginner_live_fms3/_jcr_content/articlePrerequistes/multiplefiles
/node_1278314297096/file.res/beginner_live_fms3.zip
i don't know what i'm doingWhy don't you use several layers with appropriate alpha properties, and move these layers according to the mouse events?
Maybe you are looking for
-
Address book entries have vanished
I needed to move my address book from my Mac Book Pro to my Power Mac G5. Here's what I did: 1. On Mac Book Pro, I did a "Backup Address Book" to FILE 1 2. On Power Mac I did a "Backup Address Book" to FILE 2 as a precaution 3. Then I did a "Revert t
-
Is There any fm having the same Functionality of CUSTOMER_DUE_DATE_ANALYSIS
Hi , Is there any function module which have same functionality of the fm CUSTOMER_DUE_DATE_ANALYSIS. Here i am facing the Problem is It is showing the amounts in company code currency and we want in Document Currency. Next issue is regardin
-
Hi all, I need to do BW BEX queries documentation. The requirement is to put a mark to indicate "infoObject" are exists in a particular query. Is there a way to list down all "infoobject" that exist in a particular query. I did try to look for all ta
-
How can I tell which is the last Device Profile Update installed on the computer I work on? How can I tell if the Flash Lite 3 update was installed before the Device Profile Update #4 or not? Was the Flash Lite 3 update done by the built in CS3 updat
-
Mountain Lion not installing on MacBook pro 17inch
I have downloaded without any issue and followed the prompt to install. The install start and goes on for 35 minutes with the progress bar moving. So it is doing something. Then it is getting to the end with the following message: install failed. OsX