Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-01-2003, 08:32 PM   #1
jimburton
no sleep til bedtime
 
jimburton's Avatar
 
Join Date: May 2001
Location: Brighton
Posts: 1,322
Default live preview

I am having problems getting live preview to work for my component - a bar for bar graphs...trying to follow the example in the OOP for Actionscript book, I created a movie which contains my component and put a new function in the component called onUpdate, which refers to the xch object...in the lirary I changed the component definition to include this swf embedded as the live preview...but no go. my component seems to work fine...I've attached it and the attempt at live preview (called barclass and barclassLP respectively)...anyone with experience of this that can help me out? TIA
Attached Files
File Type: zip bar_proto.zip (16.2 KB, 366 views)
jimburton is offline   Reply With Quote
Old 02-02-2003, 02:39 AM   #2
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

I've still not worked with Live Previews on my own components but there's a good description of how to do it here http://www.flashcomponents.net/tutor.../triangle.html ... Best I can offer. PS - The components section will be ready in a few days, I'll hope to see your stuff up there
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 02-02-2003, 10:45 AM   #3
jimburton
no sleep til bedtime
 
jimburton's Avatar
 
Join Date: May 2001
Location: Brighton
Posts: 1,322
Default

thanks jesse, it occurs to me that live preview restricts the framerate of the swf and other things, so maybe that includes calls to setInterval, which my comp. depends on...will check it out & post here,
jimburton is offline   Reply With Quote
Old 02-02-2003, 12:02 PM   #4
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

also there is a very cool one in
http://www.ultrashock.com/link.php?id=9
__________________
‚€* GOD Is Near ‚€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 02-02-2003, 02:45 PM   #5
buggedcom
CONTEMPLATING LIFE
 
Join Date: Sep 2001
Location: i'm feeling slightly teddy-ish
Posts: 733
Send a message via AIM to buggedcom
Default

this isn't exactly related to the live preview question but it is to do with components. I've got more or less everything ready for my gallery component to be put into mxi form but i can't work out how the hell to do it. I've searched every where an haven't got a clue. All the documentation about the mxi format seems to be related to Dreamweaver.

From what i worked out you package them from the extension manager itself, but when i try to package my fla it won't let me select it. Does it have to have special code inside the fla...? Also how do i include my reference panel xml data in the package?
__________________
~bugged
I am looking for freelance work

imageWeaver gallery
microsite direct download

play here microgame (unfinshed, also give it a while to load)
game
buggedcom is offline   Reply With Quote
Old 02-02-2003, 02:46 PM   #6
buggedcom
CONTEMPLATING LIFE
 
Join Date: Sep 2001
Location: i'm feeling slightly teddy-ish
Posts: 733
Send a message via AIM to buggedcom
Default

Also Jesse, why not have a forum pirley for component questions etc? like on were-here before it went down. Anybody know what happened to that?
__________________
~bugged
I am looking for freelance work

imageWeaver gallery
microsite direct download

play here microgame (unfinshed, also give it a while to load)
game
buggedcom is offline   Reply With Quote
Old 02-02-2003, 07:58 PM   #7
jimburton
no sleep til bedtime
 
jimburton's Avatar
 
Join Date: May 2001
Location: Brighton
Posts: 1,322
Default

Quote:
Originally posted by buggedcom
this isn't exactly related to the live preview question but it is to do with components. I've got more or less everything ready for my gallery component to be put into mxi form but i can't work out how the hell to do it. I've searched every where an haven't got a clue. All the documentation about the mxi format seems to be related to Dreamweaver.

From what i worked out you package them from the extension manager itself, but when i try to package my fla it won't let me select it. Does it have to have special code inside the fla...? Also how do i include my reference panel xml data in the package?
this doc describes the mxi format and there is sample one for flash docs in the folder that your extension manager is installed in ...extension manager/samples/flash/sample.mx1 - edit a copy of that then point the extension manager at it
jimburton is offline   Reply With Quote
Old 02-02-2003, 08:59 PM   #8
buggedcom
CONTEMPLATING LIFE
 
Join Date: Sep 2001
Location: i'm feeling slightly teddy-ish
Posts: 733
Send a message via AIM to buggedcom
Default

thanks man, i had read the pdf already but didn't quite follow it, but the example in the folder helps out a lot .

ta.
__________________
~bugged
I am looking for freelance work

imageWeaver gallery
microsite direct download

play here microgame (unfinshed, also give it a while to load)
game
buggedcom is offline   Reply With Quote
Old 02-02-2003, 09:11 PM   #9
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

Here's a quick tutorial I wrote on building an MXP and MXI from a FLA. The sample file it mentions is attached. This is in preparation for the components section which will accept only MXP archives and will be ready by the end of the week. (Excuse the huge block of text, I lost the dot point when I copied this over)

An MPX file is the best and easiest way to distribute your new Flash MX Component. MPX files are basically a compressed archive of all the files required for your component in a specialized file format which is compatible with the Macromedia Extension Manager. Distributing your Component as an MPX file makes installation a breeze - the client only has to double click the MPX file they downloaded and your component will automatically be installed. The Macromedia Extension manager also allows easy uninstallation or updating of the component once installed. Best of all, creating an MPX archive is quick and easy. Follow these simple steps and you're done:

If you don't already have Extension Manager installed you can install it from your Flash MX CD (Goodies\Macromedia\Extension Manager\) or download it free from Macromedia Exchange (it's about 2Mb).
With Exchange installed you need to create a Macromedia Exchange Installation file (or MXI file) which is done most easily by editing a template, so grab this one and let's continue. Note this template is just an adapted version of the sample which comes with Extension Manager. All credit should go to Macromedia.
Open the template from above and change the 'name' and 'version' attributes of the root 'macromedia-extension' node.
Change the name in the 'author' node.
Enter a description of the component's purpose where the file currently has ---Description Here---.
Set up a FLA file which contains just your component(s) and the relevant Flash assets (movie clips, etc). Give this FLA a name less than about 30 characters long. Make the name descriptive because it will be the Component Suite's name in the Components Panel. Change the value of the first 'file' node (within the 'files' parent node) in the template you're editing to the exact name of the FLA file containing your component(s).
If your component requires any external files which you provide, such as a source XML file add an additional 'file' node immediately after the existing file node and enter the name of that second file in the new node. Basically you're listing all the files required to use your component, each one in a different node.
Leave everything else unchanged unless you know what you're doing. See the Extension Manager help for more advanced options.
That's it! Now just save your MPI file (in the same directory as the FLA you made above) and double click it. It will open in the Extension Manager and automatically allow you to save an MPX file which you can then upload to our site. Before uploading your MPX file please ensure that it works correctly by installing it locally yourself and verifying it installs your component within Flash. If you can't see your component in the Components Panel don't forget to select your component suite name from the small drop down menu at the top of the Components Panel.
Attached Files
File Type: zip template.zip (479 Bytes, 360 views)
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 02-02-2003, 09:14 PM   #10
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

Quote:
Originally posted by jimburton
thanks jesse, it occurs to me that live preview restricts the framerate of the swf and other things, so maybe that includes calls to setInterval, which my comp. depends on...will check it out & post here,
Your wish is my command. I've moved this thread over too.
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:54 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.