ticketmaster uk phone numbers cryptload download honda civic hybrid reviews 2010 samsung omnia 2 verizon release date tan leather gloves ladies toyota camry 2010 price in india autodesk revit architecture 2010 rapidshare plant cell diagram labeled for kids land rover discovery 2 parts catalogue snow leopard server serial numbers mitsubishi lancer evolution viii mr specs dvdfab 6 torrent piratebay mitsubishi lancer evolution ix price crazy hair day n game download xbox 360 elite bundle deals mw2 mitsubishi outlander 2003 service manual used honda crv for sale philippines free screensavers for mac fireplace mitsubishi lancer evolution 8 parts sony vegas movie studio platinum 9 tutorials cheap honeymoon vacations all inclusive dodge trucks for sale by owner volvo s40 repair manual download sony vegas download torrent leather jackets and coats for women xbox live gold membership free trial 2000 jeep grand cherokee parts and accessories autodesk inventor 2010 tutorial series suzuki samurai off road products warcraft 3 download free full game for mac autodesk maya 2010 crack only toyota camry parts and accessories 2010 jeep wrangler unlimited sahara reviews nikon d90 vs canon 50d reviews download guitar hero 5 songs wii honda civic type r price list compaq presario 2100 laptop warcraft 3 frozen throne maps free download warcraft 3 frozen throne maps dota allstars xbox live support number ireland floor tile layout tool operation flashpoint 2 demo download apologize by song diamond jackson pornstar t shirt designing software free download playstation network store game list play pocket tanks game online dodge challenger srt 10 for sale hyundai accent parts catalog nikon coolpix p90 digital camera price in india wrt54g wireless bridge setup the notebook movie download free download free abandonware starcraft full download free software download download free antivirus software mac os x snow leopard torrent download download full free software objective type questions priya rai business affair lobster coupon nude pinup art programming software siemens s7 300 natural pubic hair handbags bali systemworks download trial free scrabble games lottery jackpot tax calculator apprentice lineman jobs bmw motorcycle parts xbox live gold membership codes for free youtube acorralada belt up and buckle off free dream of jeannie slots online game free download flight simulator x controls list lepo je milijonar download download nero start giving a hand job suzuki boulevard s40 free download virus update kaspersky free confederate wallpaper free email guitar strumming queen elizabeth ii ship latest flashget free download download r kelly download gamecube isos maori tattoo download psd files xbox live gold membership codes generator dragonfly tattoo teens bra antivirus pour win98 se breasts photography dvdfab 4 free download the all seeing download free wolf run slot asphyxiation movies work breakdown example in building portfolio management process steps harley davidson screaming parts catalog sony ericsson w910i subwoofer wiring diagram plans for slot ported subwoofer box electronics and computer engineering technology salary bc246t police software download free roller games to download free software unlock lg vx8500 download phim quoc autodesk maya 2010 serial free css templates silkroad download a earthmate gps of warcraft authentication key skype video not working ubuntu free download mp3 song free bible black download printable dvd covers free pei game download free rpg maker xp activation codes download excel vba book coca cola desktop themes beastyality movies free ghosting software autodesk autocad 2010 keygen the phonics game free tycoon games cigarette making machines cheats for psp games opel cars in usa marketing 4ps nativity scene kids costumes toyota replacement parts hot porn movies design your own tattoo lettering using tattoo fonts download screensaver for vista greek tattoo mercedes ambrus download microsoft word concentration camp tours in europe ford f150 radio diagram software download free download msn stocking movies toyota camry 2010 price club tires operation flashpoint 2 demo pc download turbo download suzuki atv manuals download ford escape hybrid battery life expectancy hacker msn password guitar pro tabs archive download jeep wrangler unlimited sahara 2010 self adhesive floor tiles home depot winx dvd ripper platinum keygen kia sorento 2011 mileage linux mint 8 helena reviews suzuki sx4 crossover 2010 reviews saturn sky hardtop 2009 south indian wedding invitation wordings for friends atheros ar5b91 wireless network adapter driver windows 7 minivan comparison reviews telugu movies free online watching jaguar performance parts wireless network security key cracker ford credit account access dodge challenger for sale toyota corolla recalls 2010 canon g11 accessories suzuki parts online uk imtoo dvd ripper platinum 5 serial number xbox 360 hard drive mod banned honda accord parts diagrams wireless network security key finder free hairstyle software windows soccer rules for dummies land rover defender 110 for sale south africa watch tool academy season 1 episode 1 gmc sierra 2500hd duramax diesel for sale paris hilton download 2008 subaru impreza sti for sale recipes for kids snacks derby car designs magic dvd ripper free full version download laptop reviews consumer reports watch saw 6 online free megavideo toyota corolla parts catalogue compaq presario v6000 wireless card not working bmw x5 e53 service manual mercedes benz clk63 amg black series for sale indian personal wedding invitation wordings for friends wireless network adapter driver hp xbox live gold free trial code young teens in bra underwear playstation network cards free codes plant cell parts and functions for kids jeep wrangler for sale by owner in nc honda civic type r mugen rr summer fashion internships 2010 guitar pro 5 crack code watch movies online free streaming twilight free 3d flight simulator games online play hunting games autodesk inventor 2010 download free trial bathroom shower tiles designs famous poems about dreams free sony ericsson w580i software downloads windows 7 wireless network connection disabled install flash player 9 linux tar gz playstation 2 emulator bios torrent compaq presario c700 drivers downloads bank motorcycles compaq mini netbook 110 reviews the logo creator free download for mac buy skate shoes online cheap flight simulator x downloads full version free nikon d40 digital slr camera price in india free templates for powerpoint slides wireless n usb network adapter drivers compaq mini netbook 110c battery macromedia flash player version 7 free download mitsubishi evo ix mr for sale autodesk maya 2010 serial number free software downloads for blackberry bold free marathi movies watch online 2010 ford fusion awd reviews xbox 360 repair guide torrents bmw x6 price list restaurant city hack tools free download play monster truck games online free macromedia flash player 9 download free free xbox 360 e73 repair guide nissan skyline gtr r35 price in malaysia recipes for chicken breasts with bone in wireless networking tutorial pdf samsung cdma mobile phones in india with price kawasaki mule 610 jeep grand cherokee srt8 body kit banana republic coupon code malta weather april draw your own house plans online free linksys wireless g usb network adapter software download nintendo ds games downloads for r4 snow patrol chasing cars mp3 download free english movies online streaming free tattoo ideas for girls wrists sony vegas movie studio 9 tutorials tattoo art samsung led tv 6000 series review 2010 volkswagen jetta tdi wagon review hairstyles for oval faces canon powershot g11 price comparison screensavers for mac os x snow leopard kawasaki versys 2010 reviews guitar bar chord chart 1968 dodge charger for sale in texas nissan rogue forum jeep cherokee reviews 2009 94 isuzu rodeo engine diagram desktop backgrounds nature famous short love poems for him lands end coupon codes free ship 2010 jeep wrangler unlimited sahara accessories flight simulator 2004 no cd crack download dress up celebrities boys download lemmings windows used chrysler 300 for sale in florida 2010 subaru outback review video usb flash drive not recognized windows 7 coupon codes for sears used honda crv for sale by owner samsung lcd tv problems color land rover defender for sale used download xbox live gold membership generator satellite images of earth from space famous portrait photographers wikipedia used dodge charger srt8 parts used bmw x5 diesel for sale usa guitar hero online keyboard game software testing jobs in bangalore bengaluru guitar pro tabs torrent download wireless network bridge isofter dvd ripper platinum keygen 2009 jeep grand cherokee laredo accessories dvdfab 6 serial crack bmw 3 series 2010 models caribbean map with capitals ford escape hybrid 2010 reviews youtube music downloader registration code free uk phone reverse lookup dish network internet prices canon g11 best buy coupon 2009 jeep wrangler rubicon 4 door leah remini in bra satellite tv for pc elite edition 2009 torrent xbox live points generator online autodesk inventor download crack pizza hut coupon codes december 2009 dvdfab 6 torrent crack xbox 360 custom case mods samsung solstice apps sony vaio cw series reviews nikon coolpix s220 driver download sheer lingerie dvdfab 6 crack key guitar pro tabs download pack sony vegas 9 keygen mediafire compaq presario 2100 hard drive removal celebrity cruises deals 2010 guitar tuner software for nokia n73 mitsubishi eclipse gsx turbo for sale bathroom floor tiles black and white mitsubishi outlander 2009 compaq presario 2100 ram memory dvd ripper free trial no watermark pci wireless network card windows 7 ancient egyptian artifacts for kids wireless n router comparison 2009 review snow blowers microsoft bluetooth mouse 5000 driver windows 7 discount furniture outlet atlanta ga pizza hut nutrition calculator uk volkswagen beetle for sale best gaming laptops for under 500 nikon coolpix free gps maps download tomtom digital tv antenna booster used honda civic parts for sale juicer recipes cancer guitar rig 4 pro torrent mac autodesk inventor 2010 key generator 2007 jeep grand cherokee laredo recalls dvdfab 5 registration key generator opel gt parts for sale free poker games winx dvd ripper platinum crack linux mint 8 helena screenshots guitar hero online flash jogos keno drive in 1968 dodge charger for sale cheap doctor serial bluetooth headset reviews for iphone youtube hindi movies free online fendi handbags dish network keys time warner cable tv guide nyc xbox live gold trial code generator hd desktop wallpaper widescreen summer internships for graduate students 2010 xbox 360 wireless adapter driver windows 7 car rental coupons codes enterprise trapped girl game tires plus oil change coupon gps tracking software free download download backgrounds for powerpoint 2007 junior bridesmaid hairstyles pictures pizza sauce recipe food network mercedes amg c63 wallpaper desktop destroyer christmas version portable carpet cleaning machines for sale pizza hut delivery menu prices facebook proxy server tourettes guy soundboard bob saget youtube video converter wmv online download warcraft 3 frozen throne keygen flight tracker live europe tattoo artist 3 online game hyundai santa fe 2010 interior pictures hummer h3 accessories australia watch summer heights high full episodes online mercedes benz fashion week february 2010 tickets snowboarding jackets men honda civic 2010 si sedan free playstation network card code generator samsung tv troubleshooting no color harley davidson boots for men compaq presario v5000 laptop drivers chrysler aspen 2010 photography quotes xanga xbox 360 games on demand free simple plant cell diagram for kids helmet decals stickers snowboards for cheap grassroots festival 2010 compaq presario v5000 laptop specs bmw 3 series coupe facelift 2010 sony vegas movie studio 10 release date compaq presario v6000 motherboard replacement dodge charger srt8 supercharged for sale rolex oyster perpetual datejust ladies price airlines currently hiring flight attendants used dodge trucks for sale in pa free satellite tv software for mac portfolio manager software india facebook proxy login rpg maker xp sprites creator 2010 hyundai elantra touring edmunds download skype for blackberry bold 9700 cox cable modem router setup cadillac cts coupe 2010 release date nintendo ds emulator for mac os x guitar tabs for enter sandman soccer jerseys clearance free dating sim games online wedding invitations templates ticketmaster ticket exchange sony vegas 9 tutorial book limewire 5 free download travel advisory weather air snowboard boots reviews 2009 free download flatbed scanners reviews 2009 clothes mentor orland park movie quotes from the hangover jack lalanne juicer pulp recipes sony vaio support forums used volkswagen jetta for sale in ohio satellite maps live canada 2010 bmw x6 m for sale compaq drivers for vista dvd shrink windows 7 radio shack cycling team gear brooks shoes sony vegas free download full version 2006 hyundai elantra blue book xbox 360 arcade games torrent e36 bmw m3 engine for sale anime dating simulation games online cigarette coupons marlboro chrysler corporate office location free wedding catalogs 2001 honda civic for sale by owner 1970 dodge challenger for sale cheap award for best virus restoration hardware outlet georgia honda civic hatchback for sale in ny computer science vs computer engineering salary us news computer science rankings 2010 girls soccer team quotes ticket to read cheat jeep liberty diesel specs tattoos ideas for girls volkswagen credit audi financial services sony ericsson xperia x10 phone price wireless router range extenders wedding reception invitations only animation vs animator game 2 dvdfab 6 key torrent motorcycle accessories honda shadow eros guide toronto guitar tabs and chords for beginners pontiac vibe 2005 recalls linksys wireless router setup comcast truck rental with liftgate samsung led tv 6000 calibration kawasaki dirt bikes 110cc bluetooth headset reviews 2009 best toyota oem parts catalog hp printers compatible with windows 7 64 bit pool tables for sale used ebay asus bluetooth dongle driver windows 7 mazda rx 8 r3 used desktop calendar free download for vista laminate wood flooring installation cost ancient egyptian food recipes for kids modern bathroom paint ideas wow armory addon advertising agency internet marketing gamecube games on wii system jeep liberty diesel reliability fiber cement siding cost per square foot mazda rx 8 2010 specs gamecube emulator for wii compaq presario f700 drivers free download bmw x5 parts catalogue honda civic hybrid battery life honda generators for sale craigslist mazda rx 8 price in india how to install laminate flooring on stairs video dvd burning software torrent download mitsubishi evolution 8 for sale plant cells and animal cells for kids mazda 626 parts list youtube videos de musica de reggaeton honda accord for sale by owner winter olympics sports icons wedding ceremony vows non religious xbox 360 cheats for gta 4 tbogt skype for macbook pro download pontiac grand prix gtp performance parts guess handbags shop online compaq presario f700 laptop specs gamecube emulator for psp download playstation emulator mac os x leopard keyboard symbols mac os x soccer dribbling drills buy cigarettes online indian reservation 2011 cadillac cts coupe msrp famous haiku poems about love wowwiki toc tactics satellite tv for pc 2009 titanium edition megaupload dish tv india recharge online software architecture diagram sample logo design studio pro torrent


11. Advanced Interactivity 2

**UPDATE
This tutorial has been updated
view-update

This tutorial will show you how to handle full interactivity on an objects surface, just as if it's a normal movieclip.

For my example, I've made this. The red spot in the centre is a button. You can click it to toggle it's glow on and off. The other button will reveal how it works!

There are other ways to do this, but I think this way is the easiest and most hassle-free, and it's pretty fast.

I've super-commented the source code, so from reading the comments in the code you should be able to figure out exactly what's going on.

The basic idea is, you add the movie clip which is being used as the texture to the scene, but make it invisible. You then move it so that your mouse is over the correct part of the movieclip, when your mouse touches the texture on the 3d model. I think the "Show Movieclip" button on the cube above will explain better than I can :)

Actionscript:
  1. package  {
  2.     import flash.display.Bitmap;
  3.     import flash.display.MovieClip;
  4.     import flash.events.MouseEvent;
  5.     import flash.filters.GlowFilter;
  6.     import org.papervision3d.materials.MovieMaterial;
  7.     import org.papervision3d.materials.utils.MaterialsList;
  8.     import org.papervision3d.objects.primitives.Cube;
  9.     import org.papervision3d.events.InteractiveScene3DEvent;
  10.    
  11.     public class Main extends PaperBase {
  12.        
  13.         // This is the movieclip that we'll use as the texture.
  14.         private var movie:MovieClip = new MovieClip();
  15.        
  16.         // This movieclip will be completley transparent and will hold the
  17.         // texture movieclip, then move it to the correct loaction under the mouse.
  18.         private var movieParent:MovieClip = new MovieClip();
  19.        
  20.         // These are buttons that I'm going to add to the texture movieclip
  21.         private var button:MovieClip = new MovieClip();
  22.         private var showbutton:MovieClip = new MovieClip();
  23.        
  24.         // A "MovieMaterial" will use a movieclip as a texture.
  25.         private var mat:MovieMaterial;
  26.        
  27.         // The cube that we're going to texture..
  28.         private var cube:Cube;
  29.        
  30.         // This will import the file "E:/Papervision/images/showtex.jpg" to the project, and
  31.         // store the data in "ButtonIm". (This is the "Show Movieclip" Button)..
  32.         [Embed(source = "E:/Papervision/images/showtex.jpg")] private var ButtonIm:Class;
  33.        
  34.         public function Main() {
  35.             // Initiate, 400px wide, 400px tall..
  36.             init(400, 400);
  37.         }
  38.        
  39.         override protected function init3d():void {
  40.             // - See the prepareMovieclip function. This just builds the movieclip called "movie".
  41.             // You can use ANY movie clip for this..
  42.             prepareMovieclip();
  43.            
  44.             // Prepare out moviematerial. Make it animated and interactive.
  45.             mat = new MovieMaterial(movie, false, true);
  46.             mat.interactive = true;
  47.            
  48.             // Zoom in a bit..
  49.             default_camera.zoom = 5;
  50.            
  51.             // Prepare the cube.
  52.             cube = new Cube(new MaterialsList( { all: mat } ), 500, 500, 500, 4, 4, 4);
  53.             // Listen for when the mouse is moved over the cube.
  54.             // Trigger the mMove function when this happens.
  55.             cube.addEventListener( InteractiveScene3DEvent.OBJECT_MOVE, mMove);
  56.            
  57.             // Add the cube to the scene.
  58.             default_scene.addChild(cube);
  59.            
  60.             // The movieParent movieclip will hold the movieclip which is being used
  61.             // as the texture. It will then move depending on the mouse posirion.
  62.             movieParent.addChild(movie);
  63.             // Make it invisible.
  64.             movieParent.alpha = 0;
  65.            
  66.             // Add the movieParent movieclip to the stage.
  67.             addChild(movieParent);
  68.            
  69.         }
  70.        
  71.        
  72.         private function prepareMovieclip():void {
  73.            
  74.             // - This code will set up our movieclip which is going to be used
  75.             // as the texture for the cube.
  76.             // Draw Outline:
  77.             movie.graphics.beginFill(0xFFFFFF);
  78.             movie.graphics.drawRect(0, 0, 500, 500);
  79.             movie.graphics.endFill();
  80.             movie.graphics.beginFill(0x000000);
  81.             movie.graphics.drawRect(0, 0, 10, 500);
  82.             movie.graphics.drawRect(490, 0, 10, 500);
  83.             movie.graphics.drawRect(0, 0, 500, 10);
  84.             movie.graphics.drawRect(0, 490, 500, 10);
  85.             movie.graphics.endFill();
  86.            
  87.             // Draw Circular Button:
  88.             button.graphics.beginFill(0xBB0000);
  89.             button.graphics.drawCircle(0, 0, 50);
  90.             button.graphics.endFill();
  91.             button.x = 250;
  92.             button.y = 250;
  93.             button.buttonMode = true;
  94.            
  95.             // Load bitmap button texture:
  96.             var Bim:Bitmap = new ButtonIm();
  97.             // Draw "Show Movieclip" Texture:
  98.             showbutton.graphics.beginBitmapFill(Bim.bitmapData);
  99.             showbutton.graphics.drawRect(0,0,100,30);
  100.             showbutton.graphics.endFill();
  101.             showbutton.buttonMode = true;
  102.             showbutton.x = 380;
  103.             showbutton.y = 450;
  104.            
  105.             // Add the buttons to the movieclip
  106.             movie.addChild(showbutton);
  107.             movie.addChild(button);
  108.            
  109.             // -- Listen for the buttons to be clicked --
  110.             button.addEventListener(MouseEvent.CLICK, mClickButton);
  111.             showbutton.addEventListener(MouseEvent.CLICK, showHide);
  112.             // --
  113.         }
  114.        
  115.         private function showHide( e:MouseEvent ):void {
  116.             // The "Show Movieclip" button has been clicked
  117.             if (movieParent.alpha == 0) { // If it's invisible,
  118.                 movieParent.alpha = 0.2; // Make it slightly visible.
  119.             }else {
  120.                 movieParent.alpha = 0; // Or make it invisible again
  121.             }
  122.         }
  123.        
  124.         private function mClickButton(e:MouseEvent):void {
  125.             // The cental round button has been clicked.
  126.             if(button.name == "on"){
  127.                 button.filters = null;
  128.                 button.name = "off"
  129.             }else {
  130.                 button.filters = [new GlowFilter(0x000000, 1, 15, 15, 10, 1)];
  131.                 button.name = "on";
  132.             }
  133.         }
  134.        
  135.         private function mMove( e:InteractiveScene3DEvent ):void {
  136.             // This code is run when the mouse is moved on the cube.
  137.             // This will move the movieclip to the right place beneath
  138.             // the mouse.
  139.             movieParent.x = root.mouseX -e.x;
  140.             movieParent.y = root.mouseY -e.y;
  141.         }
  142.        
  143.         override protected function processFrame():void {
  144.             // Spin our cube a bit.
  145.             cube.yaw(0.25);
  146.             cube.pitch(0.25);
  147.         }
  148.        
  149.        
  150.     }
  151. }

The image that's embedded in the code can be found here: showtex.jpg

Have fun! More Examples coming soon.

Post to Twitter Post to Delicious Delicious Post to Digg Digg This Post Post to Facebook Facebook Post to StumbleUpon Stumble This Post

57 Responses to “11. Advanced Interactivity 2”


  • hi~

    After test your new cool source,
    I found that the function “mMove” never be called.
    Is it just me?

  • Ah,

    You’ll have to change the base class a bit, read the basic interactivity tutorial and you should be all set.

    -Luke

  • The function “mMove” is not triggered. :(

  • Hi Alexander,

    You need to change the base class.

    Read the tutorial here:
    http://papervision2.com/basic-interactivity/

    I’m going to set up a download section so that people can download the newest version of the base class and all of my examples.

    Hope this helps.

    -Luke

  • Nice one! ..is it possibile to have a tutorial where there’s some timeline animation inside a movieclip triggered by a button inside that movieclip? the movieclip shouls be used a moviematerial…thank u
    A.

  • Hi Andrew,

    Yes this is possible, just make the button do “movieclipname.play();” on click.

    I’m planning on publishing some tutorials on how to use this in the Flash IDE soon, It’s on my long list of todo’s :)

    -Luke

  • Hi~ I changed the base class, and it works fine now.
    I do read your previous awesome tutorials,
    but I forgot to update base class I have renamed.

    Thanks a lot and sorry for boring you with this trivia.

  • Great tutorials, I’ve gone through all of the other tutorials and have been able to get them to work but for some reason I’m coming up with this error now and I can’t figure it out.
    For some reason I’m getting this error:

    DisplayObject3D: null
    Papervision3D Public Alpha 2.0 – Great White (14.2.08)

    PV3D 2.0a WARNING : DO NOT USE WITH BETA 9 PLAYERS. ONLY WITH OFFICIAL TO TEST.
    CHECK YOUR VERSION!
    DisplayObject3D: null
    DisplayObject3D: null
    TypeError: Error #1007: Instantiation attempted on a non-constructor.
    at Main/::prepareMovieclip()
    at Main/Main::init3d()
    at PaperBase/init()
    at Main$iinit()

  • Hey!
    Brilliant tutorials and thanks to the comments for fixing the base class ;)
    One question though, how exactly does the InteractiveScene3DEvent event type work to give you the correct x,y output? Does this work with any shape, button setup etc?

    Again, thanks for the great examples,
    Dan

  • Hey Luke,

    thanks a lot… This is exactly what I need.

    Mike

  • Very nice; one question that’s bugged me about using MovieMaterials – is there a way to make them look better/less aliased? It seems like papervision removes all anti-aliasing that was being done inside the movieclip; how do you smooth that look out?

  • Hi Paul,

    Try “material.smooth = true;”. That should work, it’ll make it run a bit slower though which is why by default it’s turned off.

    -Luke

  • Hey,

    Another wicked tutorial, really helping me get to grips with papervision. I have same problem as Michelle 5 up from me. Getting this whole “Instantiation attempted on a non-consturctor”!??! Haven’t a clue what that means and would really love to get this one working. Paperbase.as all up to date if it helps.

    Cheers, Kev

  • Hi Michelle and Kev,

    Ok, I think the problem is this line:

    var Bim:Bitmap = new ButtonIm();

    I -think- that it’s telling you that there is no “ButtonIm”, which means that you need to check this line:

    [Embed(source = "E:/Papervision/images/showtex.jpg")] private var ButtonIm:Class;

    Make sure that you point that to an image on your hard drive and it should work.

    Tell me if that helps!
    Thanks for your comments both of you! :)

    -Luke

  • Hi,

    Great tutorials, thanks! One thing I’ve noticed is that the interaction movieclip only moves when the mouse moves. As the object turns, it is not updated, giving rise to the problem that the button can still be clicked on if it has moved away. I would’ve thought the way to do this would be to add an enterFrame handler when rolling over the material and remove it when rolling out. The only problem is that I’m not sure how to get the mc offset, without using the coords from the InteractiveScene3DEvent.OBJECT_MOVE event.

  • Hi Owen,

    Yeah I’d noticed this too, but like you say, It’s very difficult to get the mouse position over a texture when it’s not from an InteractiveScene3DEvent.

    I’ll try as always to see what I can come up with..

    -Luke

  • Hi Luke,

    It’s definitely that bit like you said cause when I remove all reference to that button it works fine.

    This is the first thing I tried. Put the texture in the same folder as the project and changed the line to…

    [Embed(source = "showtex.jpg")] private var ButtonIm:Class;

    chucks out the same errors?!

  • 18 Questions about ASE

    I love this websites and tutorials. Its the only way to learn the Papervision in few steps if you dont have time to read the papervision as code and decide how it realy works. Is there any way to load collada or ase with vertex animation? I have complex Vertex animation and I need to get it in Papervision and it cannot be made up only with bones and skin :( because I know at this time only one way how to make it and its quite difficult to get vertex animation directly in papervision with vertex deformation :o/

  • Questions about ASE , you can load collada files with papervision, though I don’t know what ASE is.

    The easiest way to pick up papervision, by far, is by going to one of the traveling workshops. I went to the one in New York and it was EXTREMELY helpful.

    It really is a very, very simple coding interface to get their engine running, though at first it is daunting and difficult to understand why something isn’t working, especially if you’re going it alone and aren’t a programmer by trade.

  • Thanks for the tutorials, they’re really helpful.

    Think I’ve got an easier solution to making this cube interactive, posted it in the forums:

    http://papervision2.com/forum/viewtopic.php?f=3&t=20&sid=2f38b6eb8e16e9c67337a23d5dd62608

    Cheers,
    Ed

  • Great tutorials!
    But how can I do the same if I have 6 different MovieClips?

  • i’m getting the error:

    TypeError: Error #1007: Instantiation attempted on a non-constructor.
    at main$iinit()

    Any ideas?

  • Hi, thanks for the tutorial.
    Regarding the problem Owen noticed (the movieParent position is not updated when mouse isn’t moving), I have some kind of workaround. I manullay dispatch MouseMove events.
    In the processFrame() method, I simply added:
    this.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_MOVE));
    It seems to work fine in my animation (it uses a Cylinder instead of a cube but it should work in that example too).

  • how do you go about making a dae-object interactive, say you want to add a sound to the cow (in earlier tutorial) when you click on it, any ideas?

  • I like the approach to getting this to work, it seems like the mapped cube faces have interactive areas but they dont. One thing I spot with this is that it cant work out which face is being clicked. So I might try to add 6 movie clips ! Then it might be just checking which is highest in the stack of movieclips after having swapped it in depth depending on the cube position, and the closest face, that is the tricky part I think.

  • The reason for getting Error #1007 is that the [Embed] meta tag is not supported in the flash IDE. Using the embedded image showtex.jpg is not crucial for this tutorial but if you want to fudge this the way to do it is to load the image into a loader, and then access its bitmapData from there, instead of caching the bitmap is a class as per this example. The flash documentation has an example in the entry for the Bitmap class that shows how to access the bitmapData of a loader’s content.

  • luke, what would be the “other ways to do this” ?

  • Hi, thanks for the tutorial.
    I reproduced it with Flex 3 and it s nice.. but the hand cursors doesn’t appears on the buttons of the cube event when i set their buttonMode and useHandCursor to true .. Any idea about that ?

  • Great tutorials,
    I’m getting the #1007 error and have been trying to sort it. Is there anyone who has solved the problem at all?

  • help me plz!
    i replace movieclip on file .swf and the button on file .swf doesn’t work. Any ideas?

  • Thanks very much for the tutorial luke.

    I’m trying to use text fields in my movie clip – text fields that can be highlighted.

    But unfortunately, the text field parts of the movie clip are visible even when the alpha of the movie parent is set to 0. So you see the text field duplicated, one hovering over the other, in a rather distracting fashion. I tried copying the movie clip to another movie clip, and setting the alpha of the

    Has anyone managed to get interactive text fields working?

  • Hello… I’m trying to use text fields in a moveclip as well, just as Peter. I’ve got the same problem.

    By the way, as someone who has no idea what their doing, your tutorials have been extremely helpful and I thank you very much for putting them together.

    Thanks again,

    J

  • I’m having the same issue as Peter, is there any way to have input text fields? I’m loading a bunch of swfs into a coverflow type gallery, I’d like all of them to have their own interactivity based on their own content… so it can be easier to scale.

    Any suggestions?

  • I come across this hassle a lot.

    The dynamic textfield problem is not a pv3d prob, but a common Flash prob. Just use an embedded font from the library. The same way you’d use antialiasing on a dynamic textfield. That won’t work without an embedded font either.

  • Great tutorials by the way. Everything works like a charm here on Flash CS3. With some adaptations as discussed here earlier: passing the stage variable to the classes.

  • @ Peter, Brian, Jeremy.

    Have any of you managed to get your TextInput component fields working yet? I’ve tried Hans suggestion of embedding the fonts by using the setStyle method with TextFormat on a library Font and had no joy. However I can get it to appear with by using the drawNow statement. I can also get it to activate the focus with a simple mouse click function calling a draw focus. I feel like I’m so near. Any help on this from anyone would be awesome!

  • Hi! Thanks fpr the tutorial, but as a Flex developer I’ve found another trick to get a plane interactive: for example to make a flex Panel interactive I’am able to hide it in a 0×0 px canvas, and use the panel in the MovieMaterial of a plane. Then the plane acts like a flex panel!

    Cheers

  • hi there,
    Great tutorials by the way.
    if i am using flashcs3 IDE which can not use [Embed(source = "E:/Papervision/images/showtex.jpg")]
    what can I do?

  • Evian,

    To embed in Flex is is the same as having something in the Library in Flash.

    nd

  • hi,
    thanks for the tuts.
    I have same problem as Puch’s. I replaced the MovieClips with a SWF file loaded with “Loader” not SWFLoader; but it is not shown.
    what can I do ?

  • For Users of Flash CS3 :
    Comment line : “[Embed(source = "E:/Papervision/images/showtex.jpg")]”

    - Add in your project (.fla) the “showtex.jpg” with File/Import/”Import to library”
    - In your library, right click on “showtex.jpg” and select “Link” menu.
    - Tick “export to ActionScript” and write in input text : Class => “ButtonIm”. Normally “flash.display.BitmapData” appears in the fields of below. And box “export in the first frame” is checked. Click “Ok”

    In the Main.as :
    1. Add “import flash.display.BitmapData;”
    2. Replace
    –>
    var Bim:Bitmap = new ButtonIm();

    var BimData:BitmapData = new ButtonIm(100,30);
    var Bim:Bitmap = new Bitmap(BimData);
    <–

    And it works !!!

    Ps: I am french and I use the French version, so I perhaps have me wrong on the name correct commands, sorry.

  • Hey –
    No troubles here. Just wanted to say that’s a crafty solution you’ve got there. Fancy Thinking!

  • I would like to make a quick note here as i have been struggling for ages with this. It is critical for you to add more segments to your object as the model becomes distorted as it gets near the camera and the positions returned in the event become inaccurate!

  • hi there.

    i tried this :

    movieAssetMaterial_text1.smooth = true;

    its pretty cool, but animation is with small “gli-glitches” — any opinion, how can I this problem solve?

    can remove this problem when i change a fps for publish or image quality??

    KTHX for answer..

    hAvE a NiCe DaY!!

    Manyak

    PS: sorry, but my grammar is horible.. i wasn´t be focus on english lessons :-D

  • sorry but where i put this code and i execute it…its a actionscript file…how to execute it…

  • 46 pquer juegos de azar internet poker holdem on line sin límite

    Hi there, I must say that you have done a wonderful job on your site and I thoroughly enjoyed my stay here, I thank you for sharing it with me…

  • I only want to tell you thanks for this package of tutorials wich are very usefull.

    Thanks a lot!

  • Hi,

    Excuse my english..
    Thanks a lot for tutorials ! Really good ! But all your tutorials about interractivity will be easylier for newbies if PaperBase.as is updated like this:

    viewport = new Viewport3D(vpWidth, vpHeight,false,TRUE);
    I spend really 3 days trying to make a fucking interactive Object…just because viewport in Viewport3D.as, interactivity is false by default :\

  • Please, help me…ERROR

    Papervision3D Public Alpha 3.0 – PapervisionX (18.09.08)

    TypeError: Error #1007: Se intentó crear una instancia en un tipo no constructor.
    at interactivo3/::prepareMovieclip()
    at interactivo3/interactivo3::init3d()
    at PaperBase/init()
    at interactivo3$iinit()

    http://clipdepelicula.com

Leave a Reply


Follow papervision2 on Twitter

Flash and the City banner
2010 Flash And The City Speaker

RSS Feed